
/* MES Heading Section */
.mes-heading {
    width: 100%;
    overflow: hidden;
    background-image: linear-gradient(rgba(7, 47, 133, 0.8), rgba(7, 47, 133, 0.8)), url("../../img/products/mes-head.png");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-attachment: fixed;
    position: relative;
}

.mes-heading-title {
    padding: 15px;
    text-align: center;
    border-radius: 5px;
}

.mes-heading-title h1 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 300;
    margin: 0;
}

.mes-heading-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.mes-heading-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.mes-heading-img img {
    max-width: 100%;
    height: auto;
    max-height: 246px;
}

.mes-heading-info {
    flex: 1;
    min-width: 300px;
    color: #fff;
    padding: 0 20px;
}

.mes-heading-info ul {
    padding-left: 20px;
}

.mes-heading-info li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/*--------------------------------- section-2 Background Texture -----------------------------------*/


.bg-texture {
    background-image: url("/api/placeholder/1200/600");
    background-position: center;
    background-size: cover;
    /* padding: 60px 0; */
    position: relative;
}

/* MES Improvement Section */
.mes-improvement {
    background: linear-gradient(135deg, rgb(199, 228, 251) 0%, rgb(180, 212, 243) 100%);
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); */
    padding: 59px 0px;
}

.mes-improvement::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.mes-improvement::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
    z-index: 1;
}

.mes-header {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    z-index: 2;
}

.mes-header h1 {
    font-size: 2.5rem;
    color: #072f85;
    margin-bottom: 15px;
    font-weight: 700;
}

.mes-header p {
    font-size: 1.2rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.mes-list {
    padding: 0 1rem 6rem;
    position: relative;
    z-index: 2;
}

/* Main categories */
.benefits-grid {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 25px;
}

.benefit-card {
    flex: 1;
    padding: 30px;
    min-width: 300px;
    max-width: 380px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(7, 47, 133, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #072f85, #3a6bc5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(7, 47, 133, 0.15);
}

.benefit-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Category headings */
.benefit-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.benefit-icon {
    font-size: 2rem;
    color: #072f85;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(199, 228, 251, 0.4);
    border-radius: 50%;
}

.benefit-card h2 {
    font-size: 1.6rem;
    color: #072f85;
    font-weight: 600;
    margin: 0;
}

/* Sub-items */
.benefit-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.benefit-list li {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 14px;
    text-align: left;
    line-height: 1.5;
    padding-left: 28px;
    position: relative;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.mes-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: auto;
    opacity: 0.1;
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .benefits-grid {
        gap: 20px;
    }
    
    .benefit-card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .bg-texture {
        padding: 40px 0;
    }
    
    .mes-header h1 {
        font-size: 2rem;
    }
    
    .mes-header p {
        font-size: 1.1rem;
    }
    
    .benefits-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .benefit-card {
        padding: 25px 20px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .benefit-card h2 {
        font-size: 1.4rem;
    }
}


/* ------------------------------------------------------------------------------------------------ */
/* MES Background Image */
.mes-bg {
    position: absolute;
    right: 5%;
    top: 20%;
    width: 20%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

/* MES Features Section */
.mes-features {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.mes-main-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    position: relative;
    z-index: 1;
}


/* Left side styling */
.mes-left {
    flex: 1;
    min-width: 300px;
}

.mes-left-heading, .mes-right {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.mes-left-heading h1, .mes-right h1 {
    position: relative;
    font-size: 1.2rem;
    color: #072f85;
    margin: 0 0 0.8rem 0;
    padding: 0.5rem 1rem;
    text-align: left;
    z-index: 3;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    background-color: white;
    border-left: 3px solid #072f85;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 0% 100%);
}

.mes-left-heading h1:first-of-type {
    margin-top: 0;
}

.mes-left-heading h1:not(:first-of-type) {
    margin-top: 1.5rem;
}

.polygon-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    border: 2px solid #072f85;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    z-index: 1;
    background: #3939bf;
}

.polygon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #203897;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    z-index: 2;
}

/* Image styling in mes-left-heading */
.mes-left-heading img {
    max-width: 100%;
    height: auto;
    margin: 0.8rem 0;
    z-index: 3;
    position: relative;
    border-radius: 4px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

/* List styling in mes-left-heading */
.mes-left-heading ul {
    width: 100%;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    list-style-type: disc;
    position: relative;
    z-index: 3;
}

.mes-left-heading ul li {
    margin-bottom: 0.7rem;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: justify;
    display: list-item !important;
    list-style-position: outside;
}

/* Right side styling */
.mes-right {
    flex: 1;
    min-width: 300px;
}

.mes-right h1:not(:first-of-type) {
    margin-top: 1.5rem;
}

.mes-right p {
    margin: 0 0 1rem 0;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        max-width: 1140px;
    }
    
    .mes-heading-content {
        width: 95%;
    }
    
    .mes-list > ul > li {
        margin: 10px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .mes-heading-img, .mes-heading-info {
        flex: 100%;
        min-width: 100%;
    }
    
    .mes-heading-img {
        margin-bottom: 20px;
        padding: 0;
    }
    
    .mes-list > ul {
        justify-content: center;
    }
    
    .mes-list > ul > li {
        flex: 0 0 calc(50% - 30px);
    }
    
    .mes-left, .mes-right {
        flex: 100%;
    }
    
    .mes-bg {
        display: none; /* Hide background image on smaller screens */
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .mes-heading-title h1 {
        font-size: 1.5rem;
    }
    
    .mes-list > ul > li {
        flex: 0 0 calc(100% - 30px);
        max-width: 500px;
    }
    
    .mes-right, .mes-left {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .page-header {
        margin-top: 70px;
        padding: 10px 22px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .mes-heading-title {
        width: 95%;
        padding: 10px;
    }
    
    .mes-heading-title h1 {
        font-size: 1.3rem;
    }
    
    .mes-heading-content {
        padding: 5px;
    }
    
    .mes-list h1 {
        font-size: 1.3rem;
        padding-left: 10px;
    }
    
    .mes-list > ul > li {
        padding: 15px;
        margin: 10px 0;
    }
    
    .mes-list > ul > li > ul > li {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .mes-left-heading h1, .mes-right h1 {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .mes-left-heading ul li, .mes-right p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .mes-heading-title h1 {
        font-size: 1.2rem;
    }
    
    .mes-improvement {
        padding: 107px 0;
    }
    
    .mes-features {
        padding: 20px 0;
    }
    
    .polygon-border, .polygon-bg {
        height: 30px;
    }
}