/* Styles unique to leadership.php.
   Everything shared (tokens, header, nav, drawer, footer, layout,
   cards, responsive rules) lives in style.css. */

:root {
    --navy: #0a2158;
    --blue: #1a4fa0;
    --gold: #c9a227;
    --gold-light: #f0c84a;
    --cream: #fdf8ef;
    --text: #1c1c2e;
    --text-muted: #5a607a;
    --white: #ffffff;
    --border: rgba(10,33,88,0.1);
    --shadow: 0 4px 24px rgba(10,33,88,0.10);
    --radius: 14px;
}

.hero {
    position: relative; height: 55vh; min-height: 380px;
    display: flex; align-items: flex-end; color: var(--white); overflow: hidden;
}

.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,33,88,0.92) 0%, rgba(10,33,88,0.45) 55%, rgba(10,33,88,0.12) 100%);
}

.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 3rem 2rem; animation: heroUp 0.8s ease-out; }

@keyframes heroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; opacity: 0.75; margin-bottom: 0.75rem; }

.breadcrumb a { color: var(--white); text-decoration: none; }

.breadcrumb a:hover { color: var(--gold-light); }

.breadcrumb i { font-size: 0.6rem; opacity: 0.6; }

.hero-label { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(201,162,39,0.22); border: 1px solid rgba(201,162,39,0.5); color: var(--gold-light); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 0.35rem 0.9rem; border-radius: 50px; margin-bottom: 0.9rem; }

.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.15; margin-bottom: 0.75rem; }

.hero p { font-size: 1rem; opacity: 0.85; font-weight: 300; max-width: 520px; line-height: 1.7; }

.filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 76px; z-index: 800;
}

.filter-bar .inner {
    max-width: 1180px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; gap: 0.5rem;
    overflow-x: auto; scrollbar-width: none;
}

.filter-bar .inner::-webkit-scrollbar { display: none; }

.filter-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.85rem 1.1rem; font-size: 0.84rem; font-weight: 700;
    color: var(--text-muted); background: none; border: none;
    border-bottom: 3px solid transparent; cursor: pointer;
    white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}

.filter-btn:hover { color: var(--blue); }

.filter-btn.active { color: var(--blue); border-bottom-color: var(--gold); }

.filter-btn i { font-size: 0.8rem; }

.page-body { max-width: 1180px; margin: 0 auto; padding: 3rem 2rem; }

.section-heading { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }

.section-heading .line { flex: 1; height: 1px; background: var(--border); }

.section-heading h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); white-space: nowrap; }

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.leader-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.leader-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(10,33,88,0.15); }

.leader-photo-wrap {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
}

.leader-photo-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.leader-card:hover .leader-photo-wrap img { transform: scale(1.05); }

.leader-avatar-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.leader-role-badge {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1rem 0.7rem;
    background: linear-gradient(to top, rgba(10,33,88,0.92), transparent);
    color: var(--white);
}

.leader-role-badge .role-label {
    display: inline-block;
    background: rgba(201,162,39,0.9);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.3rem;
}

.leader-role-badge .leader-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.leader-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.leader-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.leader-body .leader-contact {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.leader-contact-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; font-weight: 700;
    color: var(--blue); text-decoration: none;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: background 0.2s, border-color 0.2s;
}

.leader-contact-btn:hover { background: var(--cream); border-color: var(--blue); }

.leader-contact-btn i { font-size: 0.72rem; }

.category-section { margin-bottom: 3rem; }

.category-section[data-category]:not([data-category="all"]) { display: none; }

.category-section.visible { display: block; }

.leader-card.featured {
    grid-column: span 2;
    flex-direction: row;
}

.leader-card.featured .leader-photo-wrap { width: 280px; flex-shrink: 0; height: auto; min-height: 280px; }

.leader-card.featured .leader-body { padding: 2rem; }

.leader-card.featured .leader-body p { font-size: 0.93rem; }

@media (max-width: 960px) {
    .leader-card.featured { grid-column: span 1; flex-direction: column; }
    .leader-card.featured .leader-photo-wrap { width: 100%; height: 260px; }
}

@media (max-width: 720px) {
    .leaders-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
}

@media (max-width: 480px) {
    .hero-content { padding: 2rem 1rem; }
    .leaders-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .leaders-grid { grid-template-columns: 1fr; }
}

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }

.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
    /* Repeated here because this file restates .hero h1 and .page-body
       outside a media query, which would otherwise beat style.css. */
    .hero h1 { font-size: 2rem; }
    .page-body { padding: 2rem 1rem; }
}
