/* =========================================================
   ANCOR — BOARD OF DIRECTORS
   ========================================================= */

#ancor-board-section {
    position: relative;
    width: 100%;
    padding: clamp(70px, 8vw, 112px) 0;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            135deg,
            rgba(149, 122, 86, 0.055),
            transparent 42%
        ),
        #f7f4ef;
}

#ancor-board-section::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 560px;
    height: 560px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.055;
    background-image:
        url("/assets/images/brand/ancor-topography.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(-8deg);
}

#ancor-board-section *,
#ancor-board-section *::before,
#ancor-board-section *::after {
    box-sizing: border-box;
}

.ancor-board-container {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.ancor-board-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.ancor-board-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #957a56;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.ancor-board-kicker::before,
.ancor-board-kicker::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

.ancor-board-title {
    margin: 0;
    color: #212121;
    font-family:
        "Tajawal",
        "IBM Plex Sans Arabic",
        Arial,
        sans-serif;
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.ancor-board-intro {
    max-width: 650px;
    margin: 16px auto 0;
    color: #6f675f;
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 500;
    line-height: 1.9;
}

.ancor-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 32px);
}

.ancor-board-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #212121;
    border: 1px solid rgba(149, 122, 86, 0.22);
    border-radius: 26px;
    box-shadow:
        0 22px 60px rgba(33, 33, 33, 0.10);
    transform: translateZ(0);
}

.ancor-board-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #d8d1c8;
}

.ancor-board-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(22, 22, 22, 0.16) 68%,
            rgba(22, 22, 22, 0.90) 100%
        );
}

.ancor-board-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform 600ms cubic-bezier(.2,.7,.2,1),
        filter 350ms ease;
}

.ancor-board-card:hover .ancor-board-photo {
    transform: scale(1.035);
}

.ancor-board-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 28px 26px 25px;
    color: #fcfcfc;
    text-align: right;
}

.ancor-board-name {
    margin: 0 0 7px;
    color: #fcfcfc;
    font-family:
        "Tajawal",
        "IBM Plex Sans Arabic",
        Arial,
        sans-serif;
    font-size: clamp(23px, 2vw, 31px);
    font-weight: 900;
    line-height: 1.25;
}

.ancor-board-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: rgba(252, 252, 252, 0.83);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.ancor-board-role::before {
    content: "";
    flex: 0 0 34px;
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: #957a56;
}

.ancor-board-card:first-child {
    transform: translateY(-12px);
}

@media (max-width: 950px) {
    .ancor-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ancor-board-card:first-child {
        grid-column: 1 / -1;
        width: min(100%, 430px);
        margin: 0 auto;
        transform: none;
    }
}

@media (max-width: 640px) {
    #ancor-board-section {
        padding: 62px 0 56px;
    }

    #ancor-board-section::before {
        top: -80px;
        right: -220px;
        width: 480px;
        height: 480px;
    }

    .ancor-board-container {
        width: min(100% - 24px, 1320px);
    }

    .ancor-board-heading {
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .ancor-board-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ancor-board-card,
    .ancor-board-card:first-child {
        grid-column: auto;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        border-radius: 22px;
        transform: none;
    }

    .ancor-board-content {
        padding: 24px 21px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ancor-board-photo {
        transition: none;
    }

    .ancor-board-card:hover .ancor-board-photo {
        transform: none;
    }
}

@media print {
    #ancor-board-section {
        break-inside: avoid;
        background: #ffffff;
    }
}

/* ANCOR_BOARD_IMAGE_FIX_START */
#ancor-board-section {
    display: block !important;
}

#ancor-board-section .ancor-board-grid {
    display: grid !important;
}

#ancor-board-section .ancor-board-card {
    display: block !important;
    position: relative !important;
    min-height: 520px;
    overflow: hidden !important;
}

#ancor-board-section .ancor-board-photo-wrap {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden !important;
}

#ancor-board-section .ancor-board-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: cover !important;
}

@media (max-width: 640px) {
    #ancor-board-section .ancor-board-card {
        min-height: 440px;
    }
}
/* ANCOR_BOARD_IMAGE_FIX_END */

/* ANCOR_BOARD_DETAILS_START */

#ancor-board-section .ancor-board-card {
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
    background: #212121 !important;
}

#ancor-board-section .ancor-board-photo-wrap {
    flex: 0 0 auto;
    aspect-ratio: 4 / 4.55 !important;
}

#ancor-board-section .ancor-board-photo-wrap::after {
    background:
        linear-gradient(
            180deg,
            transparent 72%,
            rgba(33, 33, 33, 0.25) 100%
        ) !important;
}

#ancor-board-section .ancor-board-content {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 245px;
    padding: 25px 25px 28px !important;
    background: #212121;
}

#ancor-board-section .ancor-board-name {
    margin-bottom: 6px !important;
    font-size: clamp(23px, 2vw, 29px) !important;
}

#ancor-board-section .ancor-board-role {
    margin-bottom: 17px !important;
    color: #c46b6b !important;
}

#ancor-board-section .ancor-board-role::before {
    background: #957a56 !important;
}

#ancor-board-section .ancor-board-specialty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #fcfcfc;
    font-size: 14px;
    line-height: 1.6;
}

#ancor-board-section .ancor-board-specialty span {
    display: inline-flex;
    padding: 4px 9px;
    color: #212121;
    background: #957a56;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

#ancor-board-section .ancor-board-specialty strong {
    color: rgba(252, 252, 252, 0.94);
    font-weight: 800;
}

#ancor-board-section .ancor-board-experience {
    margin: 0;
    color: rgba(252, 252, 252, 0.67);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.9;
}

@media (max-width: 640px) {
    #ancor-board-section .ancor-board-content {
        min-height: 0;
        padding: 22px 20px 24px !important;
    }

    #ancor-board-section .ancor-board-experience {
        font-size: 13px;
    }
}

/* ANCOR_BOARD_DETAILS_END */
