/*
Theme Name: Mogaveera Sangha
Theme URI: https://mogaveerasanghabengaluru.com
Author: Mogaveera Sangha, Bengaluru
Description: Custom WordPress theme for Mogaveera Sangha, Bengaluru — preserving coastal heritage through education, culture, and unity since 1974.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mogaveera-sangha
Tags: custom-menu, custom-logo, featured-images, full-width-template
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    --ocean-deep: #0a3d62;
    --ocean-medium: #1e5f8b;
    --ocean-light: #3c7ba6;
    --sand-warm: #e8d5b7;
    --sand-light: #f5ebe0;
    --coral-accent: #d4624f;
    --seafoam: #7fb3a0;
    --pearl-white: #fefdfb;
    --charcoal: #2c3e50;
    --gold-accent: #c9a961;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --font-size-2xl: clamp(2rem, 1.6rem + 2vw, 2.8rem);
    --font-size-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

    --font-serif: 'Playfair Display', serif;
    --font-body: 'Crimson Text', serif;

    --max-width: 1400px;
    --header-height-mobile: 70px;
    --header-height-desktop: 80px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--pearl-white);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

*:focus-visible { outline: 3px solid var(--gold-accent); outline-offset: 2px; }

/* ============================================
   HEADER
   ============================================ */
.header-bar {
    position: fixed;
    width: 100%; top: 0; z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all var(--transition-base);
}

.header-bar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-lg);
    position: relative;
}

.header-brand { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }

.logo {
    width: 50px; height: 50px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid var(--ocean-medium);
}
.logo img { width: 100%; height: 100%; object-fit: contain; }

.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: 50px; height: 50px; border-radius: 50%; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text h1,
.brand-text .site-name {
    font-family: var(--font-serif);
    font-size: 1.4rem; font-weight: 800;
    color: var(--ocean-deep); line-height: 1.2; margin: 0;
    display: block;
}
.brand-tagline {
    font-size: 0.75rem; color: var(--ocean-light);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

.nav-menu {
    display: none; align-items: center;
    gap: var(--space-xl); flex: 1; justify-content: center;
}
.nav-menu a {
    color: var(--ocean-deep); font-size: 0.95rem; font-weight: 700;
    text-decoration: none; transition: color var(--transition-base);
    position: relative; padding: var(--space-xs) 0;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--gold-accent);
    transition: width var(--transition-base);
}
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a[aria-current="page"] { color: var(--gold-accent); }
.nav-menu a:hover::after,
.nav-menu a:focus::after,
.nav-menu a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-md); }
.header-actions .lang-toggle { display: flex; }

.nav-lang-toggle {
    display: none; width: 100%;
    justify-content: center; padding: var(--space-sm) var(--space-lg);
}

.mobile-menu {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--ocean-deep);
    padding: var(--space-xs);
    min-width: 44px; min-height: 44px;
    transition: all var(--transition-fast);
}
.mobile-menu:hover { color: var(--gold-accent); }
.mobile-menu:active { transform: scale(0.9); }

.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    background: #f5f7fa; padding: 4px; border-radius: 999px;
    border: 1px solid rgba(10,61,98,0.1);
}
.lang-btn {
    border: none; background: transparent; color: var(--ocean-deep);
    font-weight: 700; padding: 6px 10px; border-radius: 999px;
    cursor: pointer; font-size: 0.85rem; transition: all var(--transition-fast);
}
.lang-btn.active { background: var(--ocean-deep); color: var(--pearl-white); }

@media (max-width: 968px) {
    .header-actions .lang-toggle { display: none; }
    .nav-menu.mobile-active .nav-lang-toggle { display: flex; }
}

.nav-menu.mobile-active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; box-shadow: var(--shadow-xl);
    padding: var(--space-md) 0; gap: 0; z-index: 100;
}
.nav-menu.mobile-active a {
    padding: var(--space-md) var(--space-lg); width: 100%;
    border-bottom: 1px solid rgba(10,61,98,0.1);
}
.nav-menu.mobile-active a::after { display: none; }
.nav-menu.mobile-active a:hover { background: rgba(10,61,98,0.05); }

/* ============================================
   HERO (homepage)
   ============================================ */
.page-hero-margin { margin-top: calc(var(--header-height-mobile) + 16px); }

.hero {
    margin-top: var(--header-height-mobile);
    position: relative; height: 70vh; min-height: 500px; overflow: hidden;
}
.hero-slide-img {
    position: absolute; width: 100%; height: 100%;
    object-fit: cover; background: var(--ocean-deep);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,61,98,0.85) 0%, rgba(30,95,139,0.75) 100%);
    z-index: 1;
}
.hero-slider {
    position: relative; height: 100%;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.hero-slide {
    position: absolute; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 1s ease; will-change: opacity;
}
.hero-slide.active { opacity: 1; }

.hero-content {
    text-align: center; color: var(--pearl-white);
    max-width: 90%; padding: var(--space-xl);
    position: relative; z-index: 10;
}
.hero-subtitle {
    display: inline-block; font-size: var(--font-size-sm); font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; color: var(--gold-accent);
    margin-bottom: var(--space-md);
}
.hero-content h2 {
    font-size: var(--font-size-2xl); font-weight: 900;
    margin-bottom: var(--space-lg); text-shadow: 2px 4px 12px rgba(0,0,0,0.4);
}
.hero-content p {
    font-size: var(--font-size-lg); max-width: 700px;
    margin: 0 auto var(--space-xl); line-height: 1.6;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
}
.hero-cta {
    display: flex; gap: var(--space-md);
    justify-content: center; flex-wrap: wrap;
}
.hero-indicators {
    position: absolute; bottom: var(--space-xl); left: 50%;
    transform: translateX(-50%); display: flex; gap: var(--space-sm); z-index: 10;
}
.hero-indicators .indicator {
    width: 12px; height: 12px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.4); border: 2px solid var(--pearl-white);
    cursor: pointer; transition: all var(--transition-base); padding: 0;
}
.hero-indicators .indicator.active {
    background: var(--gold-accent); width: 32px; border-radius: 6px;
}
.hero-indicators .indicator:hover { background: rgba(255,255,255,0.7); }

/* Buttons */
.btn {
    display: inline-block; padding: 14px 32px; font-size: var(--font-size-base);
    font-weight: 700; text-decoration: none; border-radius: 50px;
    transition: all var(--transition-base); cursor: pointer;
    border: 2px solid transparent; text-transform: uppercase;
    letter-spacing: 1px; min-width: 180px; text-align: center;
}
.btn-primary { background: var(--gold-accent); color: var(--ocean-deep); border-color: var(--gold-accent); }
.btn-primary:hover, .btn-primary:focus {
    background: #d4b571; border-color: #d4b571;
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,169,97,0.4);
}
.btn-secondary { background: transparent; color: var(--pearl-white); border-color: var(--pearl-white); }
.btn-secondary:hover, .btn-secondary:focus {
    background: var(--pearl-white); color: var(--ocean-deep);
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}
.btn:active { transform: translateY(0); }

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

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    max-width: var(--max-width); margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-medium) 100%);
    padding: 5rem 2rem 3rem;
    text-align: center; color: var(--pearl-white);
    position: relative; overflow: hidden;
    margin-top: var(--header-height-mobile);
}
.page-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><path d="M0,150 Q300,100 600,150 T1200,150 L1200,300 L0,300 Z" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: cover;
}
.page-hero h1 {
    font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 900; margin-bottom: 1rem; position: relative; z-index: 1;
}
.page-hero p {
    font-size: 1.15rem; font-style: italic; opacity: 0.9;
    position: relative; z-index: 1;
}

.content-section { padding: 4rem 0; }

.section-title {
    font-family: var(--font-serif); font-size: 2.6rem;
    color: var(--ocean-deep); text-align: center; margin-bottom: 2.5rem;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 120px; height: 5px;
    background: linear-gradient(90deg, var(--coral-accent), var(--gold-accent));
    margin: 1rem auto 0; border-radius: 3px;
}

/* ============================================
   LEADERSHIP SECTION (homepage)
   ============================================ */
.leadership-section {
    display: grid; grid-template-columns: 1fr;
    gap: var(--space-xl); margin-bottom: var(--space-3xl);
}
.leader-card {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--pearl-white) 100%);
    border-radius: var(--radius-lg); padding: var(--space-lg);
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.leader-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--ocean-deep), var(--gold-accent));
}
.leader-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.leader-header { text-align: center; margin-bottom: var(--space-xl); }
.leader-photo {
    width: 130px; height: 130px; border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg); border: 4px solid var(--ocean-deep);
    box-shadow: var(--shadow-lg); overflow: hidden;
    background: linear-gradient(135deg, var(--ocean-light), var(--seafoam));
    display: flex; align-items: center; justify-content: center;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-name { font-size: var(--font-size-xl); font-weight: 700; color: var(--ocean-deep); margin-bottom: var(--space-sm); }
.leader-title { font-size: var(--font-size-base); color: var(--coral-accent); font-weight: 600; font-style: italic; }
.leader-message { font-size: var(--font-size-base); line-height: 1.7; color: var(--charcoal); text-align: justify; }
.leader-message p { margin-bottom: var(--space-md); }
.leader-message.is-collapsed p:nth-of-type(n+2) { display: none; }
.read-more {
    display: inline-block; margin-top: var(--space-lg); color: var(--ocean-deep);
    font-weight: 600; border-bottom: 2px solid var(--ocean-deep);
    transition: all var(--transition-base); padding-bottom: 2px;
}
.read-more:hover, .read-more:focus { color: var(--coral-accent); border-color: var(--coral-accent); }

/* ============================================
   NOTICE BOARD
   ============================================ */
.notice-section {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-medium) 100%);
    border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-md);
    margin-bottom: var(--space-3xl); box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.notice-section::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px; border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.notice-header { text-align: center; margin-bottom: var(--space-xl); position: relative; z-index: 1; }
.notice-header h2 { font-size: var(--font-size-2xl); color: var(--pearl-white); margin-bottom: var(--space-sm); }
.notice-header::after {
    content: ''; display: block; width: 100px; height: 4px;
    background: var(--gold-accent); margin: var(--space-md) auto 0; border-radius: 2px;
}
.notice-grid {
    display: grid; grid-template-columns: 1fr; gap: var(--space-md);
    position: relative; z-index: 1; max-height: 350px; overflow-y: auto;
    padding-right: var(--space-xs); -webkit-overflow-scrolling: touch;
}
.notice-grid::-webkit-scrollbar { width: 8px; }
.notice-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 10px; }
.notice-grid::-webkit-scrollbar-thumb { background: var(--gold-accent); border-radius: 10px; }
.notice-item {
    background: rgba(255,255,255,0.95); padding: var(--space-lg);
    border-radius: var(--radius-md); transition: all var(--transition-base);
    border-left: 4px solid var(--coral-accent);
}
.notice-item:hover { background: var(--pearl-white); transform: translateX(5px); box-shadow: var(--shadow-md); }
.notice-title { font-size: var(--font-size-base); font-weight: 600; color: var(--ocean-deep); margin-bottom: var(--space-sm); }
.notice-link {
    color: var(--coral-accent); font-weight: 600;
    display: inline-flex; align-items: center; gap: var(--space-xs);
    transition: color var(--transition-base);
}
.notice-link:hover { color: var(--ocean-deep); }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, #061f33 100%);
    color: var(--pearl-white); padding: var(--space-2xl) var(--space-md) var(--space-lg);
}
.footer-content {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr;
    gap: var(--space-xl); margin-bottom: var(--space-2xl);
}
.footer-section h3 { font-size: var(--font-size-lg); margin-bottom: var(--space-md); color: var(--gold-accent); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: var(--space-sm); }
.footer-section a { color: var(--pearl-white); opacity: 0.85; transition: all var(--transition-base); display: inline-block; }
.footer-section a:hover, .footer-section a:focus { opacity: 1; color: var(--gold-accent); transform: translateX(5px); }
.footer-bottom {
    text-align: center; padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.2); opacity: 0.7; font-size: var(--font-size-sm);
}
.social-links { display: flex; gap: var(--space-md); margin-top: var(--space-md); flex-wrap: wrap; }
.social-icon {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full); display: flex; align-items: center;
    justify-content: center; transition: all var(--transition-base); font-size: 1.2rem;
}
.social-icon:hover, .social-icon:focus { background: var(--gold-accent); transform: translateY(-5px); }
.footer-section form { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-section form input {
    flex: 1; padding: var(--space-md); border: none; border-radius: var(--radius-sm);
    font-size: var(--font-size-base); min-height: 44px;
}
.footer-section form button {
    padding: var(--space-md) var(--space-lg); background: var(--gold-accent);
    border: none; border-radius: var(--radius-sm); color: var(--ocean-deep);
    font-weight: 600; cursor: pointer; transition: all var(--transition-base);
    min-height: 44px; width: 100%;
}
.footer-section form button:hover { background: #d4b571; transform: translateY(-2px); }

.wave-decoration { position: relative; height: 100px; background: var(--pearl-white); margin-top: -1px; }
.wave-decoration::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,0 L0,0 Z" fill="%230a3d62"/></svg>');
    background-size: cover;
}

/* ============================================
   GALLERY LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center;
    padding: var(--space-md); z-index: 2000;
}
.lightbox-overlay.open { display: flex; }
.lightbox-dialog {
    background: #0b2d3c; border-radius: var(--radius-lg);
    max-width: 1000px; width: 100%; max-height: 90vh;
    color: var(--pearl-white); box-shadow: var(--shadow-xl);
    overflow: hidden; position: relative;
}
.lightbox-media { background: #061f33; display: grid; place-items: center; }
.lightbox-media img { width: 100%; max-height: 50vh; object-fit: contain; display: block; }
.lightbox-media video { width: 100%; max-height: 55vh; display: block; background: #000; }
.lightbox-info { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.lightbox-info h3 { font-size: var(--font-size-lg); margin-bottom: var(--space-xs); }
.lightbox-info p { font-size: var(--font-size-base); opacity: 0.9; line-height: 1.6; }
.lightbox-close {
    position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.6);
    color: #fff; border: none; border-radius: var(--radius-full);
    width: 40px; height: 40px; display: grid; place-items: center;
    cursor: pointer; font-size: 1.2rem; transition: all var(--transition-base); z-index: 10;
}
.lightbox-close:hover { background: rgba(0,0,0,0.8); transform: rotate(90deg); }
.lightbox-nav {
    position: absolute; top: 50%; left: 0; right: 0;
    display: flex; justify-content: space-between; padding: 0 var(--space-sm);
    transform: translateY(-50%); pointer-events: none;
}
.lightbox-nav button {
    pointer-events: all; background: rgba(0,0,0,0.6); color: #fff;
    border: none; border-radius: var(--radius-full); width: 44px; height: 44px;
    display: grid; place-items: center; cursor: pointer; font-size: 1.1rem;
    transition: all var(--transition-base);
}
.lightbox-nav button:hover { background: rgba(0,0,0,0.8); transform: scale(1.1); }

/* ============================================
   GALLERY PAGE
   ============================================ */
.filter-bar {
    display: flex; justify-content: center;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.filter-chip {
    padding: 0.7rem 1.2rem; border-radius: 999px;
    border: 2px solid var(--ocean-deep); background: #f7f5ef;
    color: var(--ocean-deep); font-weight: 700; cursor: pointer;
    transition: all var(--transition-base);
}
.filter-chip:hover,
.filter-chip.active {
    background: var(--ocean-deep); color: var(--pearl-white);
}
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.gallery-card {
    position: relative; border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12); background: var(--pearl-white);
    border: 2px solid var(--sand-light); cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.16); }
.gallery-card img,
.gallery-card .gallery-thumb {
    width: 100%; height: 220px; object-fit: cover; display: block;
}
.gallery-card .gallery-thumb {
    background: var(--ocean-deep); position: relative;
    display: flex; align-items: center; justify-content: center;
}
.gallery-card .play-icon {
    position: absolute; font-size: 3rem; color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.gallery-card .caption { padding: 1rem; background: linear-gradient(135deg, #ffffff, #f6efe2); }
.gallery-card .caption h3 {
    font-family: var(--font-serif); font-size: 1.2rem;
    color: var(--ocean-deep); margin-bottom: 0.4rem;
}
.gallery-card .caption p { font-size: 1rem; color: var(--charcoal); opacity: 0.85; }

/* ============================================
   COMMITTEE PAGE
   ============================================ */
.committee-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem;
}
.committee-card {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--pearl-white) 100%);
    padding: 2rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid var(--sand-light); transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: hidden;
}
.committee-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--ocean-deep), var(--gold-accent));
}
.committee-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,0.12); }
.committee-avatar {
    width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1rem;
    display: grid; place-items: center; font-size: 2rem; font-weight: 800;
    color: var(--pearl-white);
    background: linear-gradient(135deg, var(--ocean-light), var(--seafoam));
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); overflow: hidden;
}
.committee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.committee-name {
    font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
    color: var(--ocean-deep); text-align: center; margin-bottom: 0.35rem;
}
.committee-role { text-align: center; font-weight: 700; color: var(--coral-accent); margin-bottom: 0.75rem; }
.committee-note { text-align: center; font-size: 0.98rem; color: var(--charcoal); opacity: 0.9; line-height: 1.7; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem;
}
.about-card {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--pearl-white) 100%);
    padding: 3rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.about-card.full-width { grid-column: 1 / -1; }
.about-card h2 {
    font-family: var(--font-serif); font-size: 2.2rem; color: var(--ocean-deep);
    margin-bottom: 1.5rem; border-bottom: 3px solid var(--gold-accent); padding-bottom: 0.8rem;
}
.about-card p { font-size: 1.1rem; line-height: 1.9; color: var(--charcoal); margin-bottom: 1.2rem; }
.about-card ul { list-style: none; padding-left: 0; }
.about-card ul li {
    font-size: 1.05rem; padding: 0.8rem 0 0.8rem 2rem;
    position: relative; color: var(--charcoal);
}
.about-card ul li::before {
    content: '◆'; position: absolute; left: 0; color: var(--coral-accent); font-size: 0.8rem;
}

/* Timeline */
.timeline { position: relative; padding: 3rem 0; }
.timeline::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--ocean-light), var(--seafoam));
}
.timeline-item { display: flex; margin-bottom: 3rem; position: relative; }
.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
    width: 45%; background: var(--pearl-white); padding: 2rem;
    border-radius: 15px; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 2px solid var(--sand-light);
}
.timeline-year {
    font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
    color: var(--ocean-deep); margin-bottom: 0.5rem;
}
.timeline-desc { font-size: 1.05rem; line-height: 1.8; color: var(--charcoal); }
.timeline-dot {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 20px; height: 20px; background: var(--gold-accent);
    border-radius: 50%; border: 4px solid var(--pearl-white);
    box-shadow: 0 0 0 4px var(--ocean-light); z-index: 1;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
.contact-card {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--pearl-white) 100%);
    padding: 2rem; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 2px solid var(--sand-light);
}
.contact-card h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--ocean-deep); margin-bottom: 0.75rem; }
.contact-card p, .contact-card a { font-size: 1.05rem; line-height: 1.7; color: var(--charcoal); }
.contact-card a { color: var(--coral-accent); font-weight: 700; }
.map-placeholder {
    width: 100%; height: 320px; border-radius: 16px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   CTA BANNER (gallery, contact)
   ============================================ */
.cta-banner {
    background: #04313c; color: var(--pearl-white);
    border-radius: 18px; padding: 2rem;
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 1.5rem; align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); margin-top: 2rem;
}
.cta-banner h3 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 0.5rem; }
.cta-banner p  { font-size: 1.05rem; opacity: 0.9; }
.cta-actions { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }
.cta-button {
    background: var(--gold-accent); color: #0a3d62;
    padding: 0.9rem 1.6rem; border-radius: 10px; border: none;
    font-weight: 700; text-decoration: none; display: inline-block;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12); transition: all var(--transition-base);
}
.cta-button:hover { background: #d4b571; transform: translateY(-2px); }
.cta-button.secondary {
    background: transparent; color: var(--pearl-white);
    border: 2px solid rgba(255,255,255,0.3);
}
.cta-button.secondary:hover { background: rgba(255,255,255,0.1); }

/* ============================================
   GENERIC PAGE CONTENT (Gutenberg editor output)
   ============================================ */
.page-content {
    font-size: var(--font-size-base); line-height: 1.8; color: var(--charcoal);
}
.page-content h2 {
    font-family: var(--font-serif); font-size: 2rem; color: var(--ocean-deep);
    margin: 2rem 0 1rem; border-bottom: 3px solid var(--gold-accent); padding-bottom: 0.5rem;
}
.page-content h3 {
    font-family: var(--font-serif); font-size: 1.6rem; color: var(--ocean-deep); margin: 1.5rem 0 0.75rem;
}
.page-content p { margin-bottom: 1.2rem; }
.page-content ul, .page-content ol { padding-left: 2rem; margin-bottom: 1.2rem; }
.page-content ul li { margin-bottom: 0.5rem; }
.page-content strong { color: var(--ocean-deep); }
.page-content a { color: var(--coral-accent); font-weight: 600; border-bottom: 1px solid currentColor; }
.page-content a:hover { color: var(--ocean-deep); }
.page-content .wp-block-image { margin: 2rem 0; border-radius: var(--radius-md); overflow: hidden; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 480px) {
    .notice-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (min-width: 640px) {
    .logo { width: 70px; height: 70px; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .footer-section form { flex-direction: row; }
    .footer-section form button { width: auto; }
    .lightbox-media img { max-height: 60vh; }
}

@media (min-width: 768px) {
    .page-hero { margin-top: calc(var(--header-height-desktop) + 20px); }
    .hero { height: 65vh; }
    .container { padding: var(--space-2xl) var(--space-lg); }
    .leadership-section { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
    .leader-card { padding: var(--space-2xl); }
    .leader-photo { width: 150px; height: 150px; }
    .notice-section { padding: var(--space-2xl); }
    .notice-grid { max-height: 450px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .timeline::before { left: 50%; }
    .cta-banner { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 968px) {
    .mobile-menu { display: none; }
    .nav-menu { display: flex !important; }
    .nav-menu.mobile-active {
        position: static; background: transparent; box-shadow: none;
        padding: 0; flex-direction: row;
    }
    .nav-menu.mobile-active a { padding: var(--space-xs) 0; width: auto; border-bottom: none; }
    .nav-menu.mobile-active a::after { display: block; }
    .nav-menu.mobile-active a:hover { background: transparent; }
    .hero { height: 75vh; min-height: 550px; margin-top: var(--header-height-desktop); }
    .hero-content { max-width: 900px; }
    .container { padding: var(--space-3xl) var(--space-xl); }
    .leader-photo { width: 180px; height: 180px; border: 5px solid var(--ocean-deep); }
    .notice-grid { max-height: 500px; }
    .footer-content { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
    .nav-menu { gap: 2.5rem; }
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-banner { grid-template-columns: 1fr; }
    .cta-actions { justify-content: flex-start; }
    .timeline::before { left: 20px; }
    .timeline-item { flex-direction: row !important; padding-left: 60px; }
    .timeline-content { width: 100%; }
    .timeline-dot { left: 20px; }
}

@media (max-width: 640px) {
    .committee-card { padding: 1.5rem; }
}

@media (max-width: 968px) and (orientation: landscape) {
    .hero { height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

@media print {
    .header-bar, .mobile-menu, .hero, .wave-decoration, footer, .lightbox-overlay { display: none !important; }
    .header-bar { position: static; }
    body { font-size: 12pt; line-height: 1.5; }
    .container { max-width: 100%; padding: 0; }
}

.hero-slide, .leader-card, .institution-card, .notice-item { will-change: transform, opacity; }
