/* ============================================
   MOGAVEERA SANGHA WEBSITE - MOBILE-FIRST DESIGN
   Modern, Accessible, High-Performance Stylesheet
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Color Palette */
    --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;

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

    /* Typography Scale - Fluid */
    --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 Families */
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Crimson Text', serif;

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

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

    /* Shadows */
    --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);

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

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::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;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    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;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
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;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.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 styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--gold-accent);
    outline-offset: 2px;
}

/* ============================================
   HEADER - MODERN HORIZONTAL LAYOUT
   ============================================ */
.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 (Logo + Text) */
.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;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ocean-deep);
    line-height: 1.2;
    margin: 0;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--ocean-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop Navigation */
.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 (CTA + Mobile Menu) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.btn-header {
    background: var(--ocean-deep);
    color: var(--pearl-white);
    padding: 10px 24px;
    font-size: 0.9rem;
    min-width: auto;
    display: none;
}

.btn-header:hover,
.btn-header:focus {
    background: var(--ocean-medium);
    color: var(--pearl-white);
}

/* Mobile Menu Button */
.mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ocean-deep);
    cursor: pointer;
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
}

.mobile-menu:hover {
    color: var(--gold-accent);
}

.mobile-menu:active {
    transform: scale(0.9);
}

/* Mobile Navigation Dropdown */
.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 SECTION - MOBILE FIRST
   ============================================ */
.page-hero {
    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 {
    content: '';
    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);
    animation: fadeInUp 0.8s ease;
}

.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);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-content p {
    font-size: var(--font-size-lg);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* Hero Indicators */
.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);
}

/* Modern 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);
    }
}

/* ============================================
   MAIN CONTENT - MOBILE FIRST
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

/* Leadership Section */
.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 strong {
    color: var(--ocean-deep);
    font-weight: 600;
}

.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 Section */
.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);
    -webkit-tap-highlight-color: rgba(10, 61, 98, 0.1);
}

.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);
}

/* Institutions Section */
.institutions-section {
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--font-size-2xl);
    color: var(--ocean-deep);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--coral-accent), var(--gold-accent));
    margin: var(--space-md) auto 0;
    border-radius: 3px;
}

.institutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.institution-card {
    background: var(--pearl-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    -webkit-tap-highlight-color: rgba(10, 61, 98, 0.1);
}

.institution-card:hover {
    border-color: var(--ocean-medium);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.institution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--ocean-light), var(--seafoam));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--pearl-white);
}

.institution-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: var(--space-sm);
}

.institution-desc {
    font-size: var(--font-size-base);
    color: var(--charcoal);
    opacity: 0.8;
}

/* ============================================
   FOOTER - MOBILE FIRST
   ============================================ */
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;
    color: var(--pearl-white);
}

.social-icon:hover,
.social-icon:focus {
    background: var(--gold-accent);
    transform: translateY(-5px);
}

/* Newsletter Form */
.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,
.footer-section form button:focus {
    background: #d4b571;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-section form button:active {
    transform: translateY(0);
}

/* Wave Decoration */
.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 - MOBILE FIRST
   ============================================ */
.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-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,
.lightbox-close:focus {
    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,
.lightbox-nav button:focus {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.lightbox-nav button:active {
    transform: scale(0.95);
}

/* ============================================
   RESPONSIVE - PROGRESSIVE ENHANCEMENT
   ============================================ */

/* Small tablets and up (min-width: 480px) */
@media (min-width: 480px) {
    .brand-text {
        display: block;
    }

    .brand-text h1 {
        font-size: 1.3rem;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content {
        max-width: 85%;
    }

    .notice-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Tablets and up (min-width: 640px) */
@media (min-width: 640px) {
    .logo {
        width: 70px;
        height: 70px;
    }

    .header-secondary-logo img {
        width: 75px;
        height: 75px;
    }

    .hero {
        height: 60vh;
        min-height: 360px;
    }

    .hero-content {
        max-width: 80%;
    }

    .leader-photo {
        width: 150px;
        height: 150px;
    }

    .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;
    }
}

/* Large tablets and up (min-width: 768px) */
@media (min-width: 768px) {
    .header-top .nav-container {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .logo {
        width: 90px;
        height: 90px;
    }

    .header-secondary-logo img {
        width: 100px;
        height: 100px;
    }

    .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: 170px;
        height: 170px;
    }

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

    .notice-section {
        padding: var(--space-2xl);
    }

    .notice-grid {
        max-height: 450px;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Desktop and up (min-width: 968px) */
@media (min-width: 968px) {
    :root {
        --header-height-desktop: 80px;
    }

    .header-bar {
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    }

    .header-container {
        padding: var(--space-lg) var(--space-2xl);
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .brand-text h1 {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.8rem;
    }

    .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;
    }

    .btn-header {
        display: inline-block;
    }

    .hero {
        height: 75vh;
        min-height: 550px;
        margin-top: var(--header-height-desktop);
    }

    .hero-content {
        max-width: 900px;
        padding: var(--space-xl);
    }

    .container {
        padding: var(--space-3xl) var(--space-xl);
    }

    .leader-photo {
        width: 180px;
        height: 180px;
        border: 5px solid var(--ocean-deep);
    }

    .leader-card {
        padding: var(--space-2xl);
    }

    .institutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .notice-grid {
        max-height: 500px;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

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

/* Large desktop and up (min-width: 1200px) */
@media (min-width: 1200px) {
    .nav-menu {
        gap: 2.5rem;
    }

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

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

    .stacked-header .hero {
        margin-top: 140px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@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;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header-nav-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;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.hero-slide,
.leader-card,
.institution-card,
.notice-item {
    will-change: transform, opacity;
}

@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    * {
        -webkit-tap-highlight-color: rgba(10, 61, 98, 0.1);
    }
}
