/* ============================================================
   MAHFOOZ ACADEMY
   MANAGEMENT / LEADERSHIP SECTION
============================================================ */

.academy-management {
    position: relative;
    width: 100%;
    padding: 95px 25px 105px;
    background: #ffffff;
    overflow: hidden;
}


/* ============================================================
   BACKGROUND DESIGN
============================================================ */

.academy-management::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(121, 13, 37, 0.025);

    top: -300px;
    right: -220px;

    pointer-events: none;
}


.academy-management::after {
    content: "";
    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background: rgba(212, 163, 61, 0.035);

    bottom: -230px;
    left: -180px;

    pointer-events: none;
}


/* ============================================================
   CONTAINER
============================================================ */

.academy-management-wrap {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1450px;

    margin: auto;
}


/* ============================================================
   INTRO
============================================================ */

.management-intro {
    max-width: 850px;

    margin: 0 auto 60px;

    text-align: center;
}


/* ============================================================
   TOP LABEL
============================================================ */

.intro-tag {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    margin-bottom: 15px;

    color: #790d25;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2.8px;
}


.intro-tag span {
    width: 30px;
    height: 2px;

    display: block;

    background: #790d25;
}


/* ============================================================
   HEADING
============================================================ */

.management-intro h2 {
    margin: 0;

    color: #222222;

    font-size: 43px;
    line-height: 1.18;

    font-weight: 700;

    letter-spacing: -1px;
}


.management-intro h2 strong {
    display: block;

    color: #790d25;

    font-weight: 800;
}


/* ============================================================
   DESCRIPTION
============================================================ */

.management-intro p {
    max-width: 680px;

    margin: 17px auto 0;

    color: #667085;

    font-size: 16px;
    line-height: 1.75;
}


/* ============================================================
   MANAGEMENT PROFILES
============================================================ */

.management-profiles {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    align-items: stretch;
}


/* ============================================================
   LEADER CARD
============================================================ */

.leader-card {
    position: relative;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(30, 20, 20, 0.08);

    transition:
        transform 0.4s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.4s ease;

    opacity: 0;

    transform: translateY(35px);
}


/* ============================================================
   SHOW ANIMATION
============================================================ */

.leader-card.show-leader {
    opacity: 1;

    transform: translateY(0);
}


/* ============================================================
   CARD HOVER
============================================================ */

.leader-card:hover {
    transform: translateY(-9px);

    box-shadow:
        0 22px 48px rgba(121, 13, 37, 0.17);
}


/* ============================================================
   PHOTO
============================================================ */

.leader-photo {
    position: relative;

    margin: 14px 14px 0;

    height: 330px;

    overflow: hidden;

    border-radius: 13px 13px 0 0;

    background: #eeeeee;
}


/* ============================================================
   IMAGE
============================================================ */

.leader-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;

    transition:
        transform .65s cubic-bezier(.2, .8, .2, 1);
}


/* ============================================================
   IMAGE HOVER
============================================================ */

.leader-card:hover .leader-photo img {
    transform: scale(1.065);
}


/* ============================================================
   IMAGE BOTTOM BLEND
============================================================ */

.leader-photo::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 85px;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .16),
            transparent
        );

    pointer-events: none;
}


/* ============================================================
   DETAILS PANEL
============================================================ */

.leader-details {
    position: relative;

    z-index: 4;

    margin-top: -1px;

    min-height: 130px;

    padding: 21px 15px 22px;

    text-align: center;

    background: #790d25;

    color: #ffffff;

    clip-path: polygon(
        0 9px,
        50% 0,
        100% 9px,
        100% 100%,
        0 100%
    );
}


/* ============================================================
   POST
============================================================ */

.leader-post {
    margin-bottom: 7px;

    color: #e8c87b;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


/* ============================================================
   NAME
============================================================ */

.leader-details h3 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 700;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* ============================================================
   GOLD DECORATION
============================================================ */

.leader-decoration {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 11px;
}


.leader-decoration span {
    width: 17px;
    height: 1px;

    background: #d8ad4d;
}


.leader-decoration b {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #d8ad4d;
}


/* ============================================================
   LARGE SCREEN
============================================================ */

@media (max-width: 1250px) {

    .academy-management {
        padding-left: 20px;
        padding-right: 20px;
    }


    .management-profiles {
        gap: 18px;
    }


    .leader-photo {
        margin-left: 11px;
        margin-right: 11px;

        height: 300px;
    }


    .leader-details {
        padding-left: 8px;
        padding-right: 8px;
    }


    .leader-details h3 {
        font-size: 16px;
    }


    .leader-post {
        font-size: 9px;



        
        letter-spacing: 1.2px;
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1000px) {

    .management-profiles {
        grid-template-columns:
            repeat(1, minmax(0, 1fr));

        gap: 20px;
    }


    .management-intro h2 {
        font-size: 38px;
    }


    .leader-photo {
        height: 320px;

        margin: 14px 14px 0;
    }


    .leader-details {
        padding-left: 15px;
        padding-right: 15px;
    }


    .leader-details h3 {
        font-size: 18px;
    }


    .leader-post {
        font-size: 10px;
    }

}


/* ============================================================
   SMALL TABLET
============================================================ */

@media (max-width: 700px) {

    .academy-management {
        padding-top: 70px;
        padding-bottom: 75px;
    }


    .management-profiles {
        grid-template-columns:
            repeat(1, minmax(0, 1fr)) !important;

        gap: 18px;
    }


    .management-intro {
        margin-bottom: 42px;
    }


    .management-intro h2 {
        font-size: 33px;
    }


    .management-intro p {
        font-size: 15px;
    }


    .leader-photo {
        height: 300px;
    }


    .leader-details {
        min-height: 125px;

        padding: 21px 12px 22px;
    }


    .leader-details h3 {
        font-size: 17px;
    }


    .leader-post {
        font-size: 9px;

        letter-spacing: 1.2px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 560px) {

    .academy-management {
        padding: 58px 15px 70px;
    }


    .academy-management-wrap {
        max-width: 430px;
    }


    .management-intro {
        margin-bottom: 35px;
    }


    .intro-tag {
        font-size: 10px;

        letter-spacing: 2px;

        gap: 7px;
    }


    .intro-tag span {
        width: 18px;
    }


    .management-intro h2 {
        font-size: 29px;

        line-height: 1.22;

        letter-spacing: -.4px;
    }


    .management-intro h2 strong {
        margin-top: 3px;
    }


    .management-intro p {
        font-size: 14px;

        line-height: 1.65;
    }


    /* TWO COLUMNS ON MOBILE */

    .management-profiles {
        display: grid;

        grid-template-columns:
            repeat(1, minmax(0, 1fr));

        gap: 14px;
    }


    .leader-card {
        width: 100%;

        border-radius: 15px;
    }


    .leader-photo {
        height: auto;

        aspect-ratio: .88 / 1;

        margin: 12px 12px 0;

        border-radius: 11px 11px 0 0;
    }


    .leader-details {
        min-height: 115px;

        padding: 19px 8px 18px;
    }


    .leader-post {
        font-size: 15px;

        letter-spacing: 1px;

        margin-bottom: 6px;
    }


    .leader-details h3 {
        font-size: 25px;

        line-height: 1.3;

        min-height: auto;
    }


    .leader-decoration {
        margin-top: 9px;
    }


    .leader-decoration span {
        width: 13px;
    }


    .leader-decoration b {
        width: 4px;
        height: 4px;
    }

}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

    .academy-management {
        padding-left: 12px;
        padding-right: 12px;
    }


    .management-profiles {
        gap: 12px;
    }


    .management-intro h2 {
        font-size: 27px;
    }


    .leader-photo {
        margin-left: 10px;
        margin-right: 10px;
    }


    .leader-details {
        padding-left: 6px;
        padding-right: 6px;
    }


    .leader-details h3 {
        font-size: 14px;
    }


    .leader-post {
        font-size: 7.5px;

        letter-spacing: .8px;
    }

}


/* ============================================================
   IMAGE FALLBACK
============================================================ */

.leader-photo.photo-missing {
    background: #f1f1f1;
}


.leader-photo.photo-missing::before {
    content: "Image unavailable";

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: #999999;

    font-size: 12px;

    white-space: nowrap;

    z-index: 2;
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .leader-card,
    .leader-photo img {
        transition: none !important;
    }

}
@media (max-width: 560px) {
    .management-profiles {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 14px;
    }
}