/* ============================================================
   leadership.css — Our Leadership Page Dedicated Stylesheet
   Extends the global style.css from the main site
   ============================================================ */

/* ─── HERO BANNER ─────────────────────────────────────────── */
.leadership-hero {
    position: relative;
    height: 400px;
    background-image: url('image/past projects/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.leadership-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 190, 217, 0.85) 0%, rgba(20, 190, 217, 0.6) 100%);
    z-index: 1;
}

.leadership-hero .container {
    position: relative;
    z-index: 2;
}

.leadership-hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── NAVBAR DROPDOWN ─────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown>a svg,
.nav-dropdown>a i {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover>a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(-8px);
    z-index: 999;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(20, 190, 217, 0.08);
    color: var(--primary-cyan);
}

.dropdown-menu a.active {
    color: var(--primary-cyan);
    background: rgba(20, 190, 217, 0.08);
}

/* ─── SHARED SECTION HEADER ───────────────────────────────── */
.ldr-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ldr-section-header .ldr-badge {
    display: inline-block;
    background: rgba(20, 190, 217, 0.1);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.ldr-section-header h2 {
    font-size: 2.1rem;
    color: var(--primary-navy);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.ldr-section-header p {
    font-size: 0.9rem;
    color: var(--text-main);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── BREADCRUMB ──────────────────────────────────────────── */
.ldr-breadcrumb {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ldr-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.ldr-breadcrumb a:hover {
    color: #fff;
}

.ldr-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ─── BOARD OF DIRECTORS ──────────────────────────────────── */
.ldr-section {
    padding: 5rem 0;
    background: #fff;
}

.ldr-section.bg-light-grey {
    background: #f8fafc;
}

.ldr-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.ldr-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* 4-col centred flex grid — last row orphans centre automatically */
.ldr-grid-4-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.ldr-grid-4-centered .ldr-card {
    flex: 0 0 calc(25% - 1.2rem);
    min-width: 210px;
    max-width: 280px;
}


/* ─── PERSON CARD ─────────────────────────────────────────── */
.ldr-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ldr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(25, 84, 172, 0.18);
}

.ldr-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.ldr-card:hover img {
    transform: scale(1.04);
}

/* Info overlay at bottom */
.ldr-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #14BED9;
    padding: 0.85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transition: background 0.35s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ldr-card:hover .ldr-card-info {
    background: #1954AC;
}

.ldr-card-info h5 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.ldr-card-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    line-height: 1.3;
}

/* Yellow arrow button */
.ldr-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ldr-card:hover .ldr-arrow-btn {
    transform: scale(1.12);
    background: #fff;
}

.ldr-arrow-btn i {
    width: 14px;
    height: 14px;
    color: var(--primary-navy);
}

.ldr-card:hover .ldr-arrow-btn i {
    color: #1954AC;
}

/* Smaller arrow for advisory cards */
.ldr-card.sm .ldr-card-info {
    padding: 0.7rem 0.9rem;
}

.ldr-card.sm .ldr-card-info h5 {
    font-size: 0.8rem;
}

.ldr-card.sm .ldr-card-info p {
    font-size: 0.68rem;
}

.ldr-card.sm .ldr-arrow-btn {
    width: 24px;
    height: 24px;
}

.ldr-card.sm .ldr-arrow-btn i {
    width: 12px;
    height: 12px;
}

/* ─── DIVIDER BETWEEN SECTIONS ───────────────────────────── */
.ldr-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 0 auto;
    max-width: 900px;
}

/* ─── CENTRED FLEX GRID (5-card board members) ────────────── */
.directors-grid-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.directors-grid-centered .director-card {
    flex: 0 0 calc(33.333% - 1.4rem);
    min-width: 240px;
    max-width: 320px;

}

@media (max-width: 900px) {
    .directors-grid-centered .director-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: unset;
    }
}

@media (max-width: 560px) {
    .directors-grid-centered .director-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ─── SUPPORT SPLIT ───────────────────────────────────────── */
.ldr-support-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

.ldr-support-img {
    background-image: url('image/Leadership/Support Our Mission.jpg');
    background-size: cover;
    background-position: center;
}

.ldr-support-content {
    background: var(--primary-cyan);
    padding: 4rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ldr-support-content h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ldr-support-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .ldr-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ldr-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ldr-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ldr-support-split {
        grid-template-columns: 1fr;
    }

    .ldr-support-img {
        min-height: 260px;
    }

    .ldr-support-content {
        padding: 3rem 2rem;
    }
}

@media (max-width: 767px) {
    .leadership-hero h1 {
        font-size: 2.2rem;
    }

    .ldr-section-header h2 {
        font-size: 27px !important;
    }




    .ldr-support-content h2 {
        font-size: 27px !important;
    }

    .ldr-support-content p,
    .ldr-section-header p {
        font-size: 14px !important;
    }
}

@media (max-width: 430px) {
    .ldr-grid-4 {
        grid-template-columns: 1fr;
    }
}