/* =========================================================
   MANAGEMENT COUNCIL
========================================================= */

.mc-section {
    position: relative;
    overflow: hidden;

    padding: 90px 0 100px;

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(22, 169, 224, 0.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 85%,
            rgba(44, 182, 125, 0.09),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f8fcff 0%,
            #ffffff 48%,
            #f4faff 100%
        );
}


/* =========================================================
   DECORATIONS
========================================================= */

.mc-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.mc-decoration--one {
    width: 380px;
    height: 380px;

    top: -190px;
    right: -130px;

    border: 65px solid rgba(22, 169, 224, 0.055);
}

.mc-decoration--two {
    width: 300px;
    height: 300px;

    left: -160px;
    bottom: 60px;

    border: 50px solid rgba(44, 182, 125, 0.05);
}


/* =========================================================
   HEADING
========================================================= */

.mc-heading {
    position: relative;
    z-index: 2;

    max-width: 780px;

    margin: 0 auto 55px;

    text-align: center;
}

.mc-heading__badge {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    padding: 8px 16px;

    color: #075b9a;

    background: #e9f8ff;

    border: 1px solid #c8eafb;
    border-radius: 50px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.mc-heading h2 {
    margin: 0;

    color: #053359;

    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1px;
}

.mc-heading__divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 18px 0;
}

.mc-heading__divider span {
    width: 50px;
    height: 2px;

    background: #16a9e0;
}

.mc-heading__divider i {
    color: #2cb67d;

    font-size: 11px;
}

.mc-heading p {
    max-width: 680px;

    margin: 0 auto;

    color: #617b8d;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   FOUNDER FEATURE
========================================================= */

.mc-founder {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(300px, 420px)
        minmax(0, 1fr);

    max-width: 1050px;

    margin: 0 auto 60px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dceaf3;

    border-radius: 28px;

    box-shadow:
        0 20px 60px rgba(5, 51, 89, 0.10);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.mc-founder:hover {
    transform: translateY(-7px);

    box-shadow:
        0 30px 75px rgba(5, 51, 89, 0.16);
}


/* Image */

.mc-founder__image {
    position: relative;

    min-height: 440px;

    overflow: hidden;

    background: #edf7fb;
}

.mc-founder__image img {
    display: block;

    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    object-fit: cover;
    object-position: top center;

    transition: transform 0.8s ease;
}

.mc-founder:hover .mc-founder__image img {
    transform: scale(1.055);
}

.mc-founder__image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(5, 51, 89, 0.42)
        );
}

.mc-founder__photo-badge {
    position: absolute;

    left: 22px;
    bottom: 22px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 9px 17px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #075b9a,
            #16a9e0
        );

    border-radius: 50px;

    box-shadow:
        0 7px 20px rgba(5, 51, 89, 0.25);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}


/* Founder content */

.mc-founder__content {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px 55px;

    overflow: hidden;
}

.mc-founder__content::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -110px;
    bottom: -110px;

    border: 35px solid rgba(22, 169, 224, 0.06);

    border-radius: 50%;
}

.mc-founder__label {
    margin-bottom: 13px;

    color: #2a9d70;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.mc-founder__content h3 {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #164d70;

    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 500;

    line-height: 1.25;
}

.mc-founder__content h3 strong {
    color: #053359;

    font-weight: 800;
}

.mc-founder__line {
    width: 70px;
    height: 4px;

    margin: 22px 0;

    background:
        linear-gradient(
            90deg,
            #075b9a,
            #16a9e0,
            #2cb67d
        );

    border-radius: 10px;
}

.mc-founder__content > p {
    margin: 0;

    color: #607b8c;

    font-size: 16px;
    font-weight: 700;
}

.mc-founder__quote {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 25px;

    padding: 18px;

    color: #557589;

    background: #f4fbfe;

    border-left: 4px solid #16a9e0;

    border-radius: 0 12px 12px 0;

    font-size: 14px;
    line-height: 1.65;
}

.mc-founder__quote i {
    margin-top: 3px;

    color: #2cb67d;
}


/* =========================================================
   GRIDS
========================================================= */

.mc-primary-grid,
.mc-member-grid {
    position: relative;
    z-index: 2;

    display: grid;

    margin-left: auto;
    margin-right: auto;
}

.mc-primary-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    max-width: 900px;

    gap: 28px;

    margin-bottom: 28px;
}

.mc-member-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    max-width: 1150px;

    gap: 25px;
}


/* =========================================================
   MANAGEMENT CARD
========================================================= */

.mc-card {
    position: relative;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid #dceaf3;

    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(5, 51, 89, 0.08);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.mc-card::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    z-index: 4;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #075b9a,
            #16a9e0,
            #2cb67d
        );

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.45s ease;
}

.mc-card:hover {
    transform: translateY(-10px);

    border-color: #b9dfef;

    box-shadow:
        0 25px 55px rgba(5, 51, 89, 0.15);
}

.mc-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.mc-card__image {
    position: relative;

    height: 330px;

    overflow: hidden;

    background: #edf6fb;
}

.mc-card--primary .mc-card__image {
    height: 360px;
}

.mc-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top center;

    transition:
        transform 0.65s ease,
        filter 0.65s ease;
}

.mc-card:hover .mc-card__image img {
    transform: scale(1.06);
}

.mc-card__image::after {
    content: "";

    position: absolute;
    inset: 45% 0 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(4, 40, 67, 0.52)
        );

    pointer-events: none;
}


/* Badge */

.mc-card__badge {
    position: absolute;

    left: 18px;
    bottom: 18px;

    z-index: 3;

    padding: 7px 14px;

    color: #ffffff;

    background:
        rgba(7, 91, 154, 0.92);

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: 50px;

    backdrop-filter: blur(8px);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.mc-card__content {
    position: relative;

    padding: 28px 22px 30px;

    text-align: center;
}

.mc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin:
        -53px auto 18px;

    position: relative;
    z-index: 5;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #075b9a,
            #16a9e0
        );

    border:
        4px solid #ffffff;

    border-radius: 50%;

    box-shadow:
        0 8px 20px rgba(7, 91, 154, 0.25);

    transition:
        transform 0.4s ease,
        background 0.4s ease;
}

.mc-card:hover .mc-card__icon {
    transform:
        translateY(-3px)
        rotate(5deg);

    background:
        linear-gradient(
            135deg,
            #2cb67d,
            #16a9e0
        );
}

.mc-card__position {
    display: block;

    margin-bottom: 7px;

    color: #2a9d70;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.mc-card__content h3 {
    margin: 0;

    color: #053359;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.45;
}

.mc-card__bottom-line {
    width: 35px;
    height: 2px;

    margin: 16px auto 0;

    background: #16a9e0;

    transition: width 0.4s ease;
}

.mc-card:hover .mc-card__bottom-line {
    width: 70px;
}


/* =========================================================
   SCROLL ANIMATION
========================================================= */

.mc-reveal {
    opacity: 0;

    transform:
        translateY(40px)
        scale(0.98);

    transition:
        opacity 0.75s ease,
        transform 0.75s
            cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-reveal.mc-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* Sequential animation */

.mc-primary-grid
.mc-card:nth-child(2) {
    transition-delay: 0.12s;
}

.mc-member-grid
.mc-card:nth-child(2) {
    transition-delay: 0.12s;
}

.mc-member-grid
.mc-card:nth-child(3) {
    transition-delay: 0.24s;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .mc-section {
        padding:
            70px 0 80px;
    }

    .mc-founder {
        grid-template-columns:
            minmax(280px, 340px)
            1fr;
    }

    .mc-founder__image {
        min-height: 400px;
    }

    .mc-founder__content {
        padding: 38px;
    }

    .mc-member-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        max-width: 760px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .mc-section {
        padding:
            55px 0 65px;
    }

    .mc-heading {
        margin-bottom: 38px;
    }

    .mc-heading p {
        font-size: 14px;
    }


    /* Founder */

    .mc-founder {
        grid-template-columns: 1fr;

        max-width: 500px;

        margin-bottom: 40px;

        border-radius: 20px;
    }

    .mc-founder__image {
        min-height: 400px;
    }

    .mc-founder__content {
        padding: 30px 25px;

        text-align: center;
    }

    .mc-founder__line {
        margin-left: auto;
        margin-right: auto;
    }

    .mc-founder__quote {
        text-align: left;
    }


    /* All cards one column */

    .mc-primary-grid,
    .mc-member-grid {
        grid-template-columns: 1fr;

        max-width: 500px;

        gap: 22px;
    }

    .mc-primary-grid {
        margin-bottom: 22px;
    }

    .mc-card__image,
    .mc-card--primary
    .mc-card__image {
        height: 390px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .mc-section {
        padding:
            45px 0 55px;
    }

    .mc-heading h2 {
        font-size: 2rem;
    }

    .mc-founder__image {
        min-height: 340px;
    }

    .mc-founder__content {
        padding:
            25px 18px;
    }

    .mc-founder__content h3 {
        font-size: 1.8rem;
    }

    .mc-card__image,
    .mc-card--primary
    .mc-card__image {
        height: 340px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mc-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .mc-card,
    .mc-card__image img,
    .mc-founder,
    .mc-founder__image img {
        transition: none;
    }

}


/* =========================================================
   SAFE SCROLL REVEAL
   Content remains visible if JavaScript fails
========================================================= */

.mc-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Hide only after JS confirms animations are available */
html.mc-js .mc-reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.mc-js .mc-reveal.mc-visible {
    opacity: 1;
    transform: translateY(0);
}



/* =========================================================
   MANAGEMENT COUNCIL
   NAVBAR OVERLAP FIX
========================================================= */

/*
    Navbar is covering the beginning of the section.

    margin-top:
    Moves the ENTIRE section below the navbar.

    padding:
    Keeps the original internal section spacing.

    IMPORTANT:
    Keep this code at the BOTTOM of the CSS file.
*/


/* =========================================================
   DESKTOP
========================================================= */

.mc-section {
    position: relative;

    width: 100%;

    

    padding:
        90px
        0
        100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(22, 169, 224, 0.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 85%,
            rgba(44, 182, 125, 0.09),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f8fcff 0%,
            #ffffff 48%,
            #f4faff 100%
        );

    /*scroll-margin-top: 120px;*/
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .mc-section {
        margin-top: 85px;

        padding:
            70px
            0
            80px;

        scroll-margin-top: 105px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .mc-section {
        margin-top: 75px;

        padding:
            55px
            0
            65px;

        scroll-margin-top: 95px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .mc-section {
        margin-top: 70px;

        padding:
            45px
            0
            55px;

        scroll-margin-top: 90px;
    }

}


/* =========================================================
   CENTER LAST MANAGEMENT CARD
========================================================= */

/*
   The member grid contains only one card currently.
   This keeps the existing grid structure and moves
   the single card to the center.
*/

.mc-member-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    justify-items: center;
}


/* =========================================================
   LAST / SINGLE MEMBER CARD
========================================================= */

.mc-member-grid
.mc-card:only-child {

    grid-column:
        2;

    width: 100%;

    max-width: 390px;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .mc-member-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .mc-member-grid
    .mc-card:only-child {

        grid-column:
            1 / -1;

        width: 100%;

        max-width: 390px;

        justify-self: center;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .mc-member-grid {

        grid-template-columns:
            1fr;
    }


    .mc-member-grid
    .mc-card:only-child {

        grid-column:
            auto;

        width: 100%;

        max-width: 500px;

        justify-self: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .mc-member-grid
    .mc-card:only-child {

        width: 100%;

        max-width: 100%;

        justify-self: center;
    }

}