/* ═══════════════════════════════════════════════════════════════
   The Heron — Residents Association
   Design: dark architectural glass + warm gold, editorial spacing
   ═══════════════════════════════════════════════════════════════ */

:root {
    --black: #0c0c0e;
    --dark: #141418;
    --dark-surface: #1a1a1f;
    --gold: #c8a960;
    --gold-dim: #a8904d;
    --gold-glow: rgba(200,169,96,0.15);
    --cream: #f7f6f3;
    --white: #ffffff;
    --text: #1c1c21;
    --text-2: #4a4a55;
    --text-3: #8a8a96;
    --border: rgba(0,0,0,0.07);
    --radius: 8px;
    --ease: cubic-bezier(0.25,0.1,0.25,1);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; } /* iOS Safari: body alone doesn't prevent horizontal scroll */

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* ─── Navbar ────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.7rem 0;
    background: rgba(12,12,14,0.95);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.4s var(--ease);
}

/* On the homepage the navbar starts transparent over the hero image */
.navbar.navbar-hero {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    padding: 1.25rem 0;
}

.navbar.navbar-hero.scrolled {
    background: rgba(12,12,14,0.95);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    padding: 0.7rem 0;
    border-bottom-color: rgba(255,255,255,0.04);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
}
.logo:hover { color: var(--gold); }

.nav-links { display: flex; gap: 0.15rem; align-items: center; }

.nav-link {
    font-size: 0.82rem;
    font-weight: 450;
    color: rgba(255,255,255,0.65);
    padding: 0.45rem 0.85rem;
    border-radius: 5px;
    transition: all 0.2s var(--ease);
    letter-spacing: 0.02em;
}
.nav-link::after { display: none; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.navbar.navbar-hero:not(.scrolled) .nav-link {
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.3);
}
.navbar.navbar-hero:not(.scrolled) .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.navbar.navbar-hero:not(.scrolled) .nav-user {
    color: rgba(255,255,255,0.6);
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 0.3rem; }
.dropdown-arrow { transition: transform 0.2s var(--ease); }
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 170px;
    background: rgba(18,18,22,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.35rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 1000;
}
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.35rem;
    left: 0;
    right: 0;
    height: 0.35rem;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 450;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    transition: all 0.15s var(--ease);
}
.nav-dropdown-item:hover { color: #fff; background: rgba(255,255,255,0.07); }

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    padding: 0 0.4rem;
}
.nav-user svg { opacity: 0.5; width: 14px; height: 14px; }

.btn-login { color: rgba(255,255,255,0.65); }

.btn-signup {
    background: var(--gold);
    color: var(--black) !important;
    padding: 0.45rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-shadow: none !important;
    margin-left: 0.25rem;
}
.btn-signup:hover {
    background: var(--gold-dim);
    box-shadow: 0 4px 20px rgba(200,169,96,0.25);
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    will-change: opacity;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(12,12,14,0.65) 0%,
            rgba(12,12,14,0.25) 30%,
            rgba(12,12,14,0.25) 60%,
            rgba(12,12,14,0.7) 100%
        );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    animation: heroIn 1s var(--ease) both;
    animation-delay: 0.2s;
}

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

.hero-eyebrow {
    font-family: var(--serif);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold, #c8a960);
    margin-bottom: 0.25rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.0;
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}

.hero-glass {
    display: inline-block;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 2.5rem 2.25rem;
    margin-top: 1rem;
}

.hero-actions { display: flex; gap: 0.75rem; justify-content: center; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.55);
    animation: scrollBounce 2.4s ease-in-out infinite;
    transition: opacity 0.5s ease, color 0.2s ease;
}
.scroll-indicator:hover { color: rgba(255,255,255,0.9); }
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
.scroll-indicator svg { width: 28px; height: 28px; }

@keyframes scrollBounce {
    0%   { transform: translateX(-50%) translateY(0);    opacity: 0.55; }
    50%  { transform: translateX(-50%) translateY(8px);  opacity: 0.9; }
    100% { transform: translateX(-50%) translateY(0);    opacity: 0.55; }
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--sans);
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    border: 1.5px solid transparent;
    letter-spacing: 0.015em;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-dim);
    border-color: var(--gold-dim);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(200,169,96,0.3);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

/* ─── Features Section ──────────────────────────────────────────── */
.features {
    padding: 6rem 0 7rem;
    background: var(--cream);
}

.section-title {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 0.6rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0.9rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-3);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

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

a.feature-card { display: block; color: inherit; }

.feature-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Accent bar at top */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    opacity: 0.8;
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
    border-color: rgba(200,169,96,0.3);
}

.feature-card:hover::before {
    height: 6px;
}

.feature-image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.feature-card:hover .feature-image { transform: scale(1.05); }

/* Gradient overlay on image */
.feature-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

/* Icon badge */
.feature-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: var(--gold);
    color: var(--white);
}

.feature-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* Arrow link */
.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-dim);
    transition: color 0.2s ease, gap 0.2s ease;
}

.feature-card:hover .feature-link {
    color: var(--gold);
    gap: 0.6rem;
}

/* ─── Recent News (homepage) ─────────────────────────────────── */

.recent-news {
    padding: 4rem 0 5rem;
    background: var(--white);
}

.news-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .news-grid-home { grid-template-columns: 1fr; }
}

.news-card-home {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-card-home:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-card-home-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2520 0%, #1a1612 100%);
    flex-shrink: 0;
}

.news-card-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.news-card-home:hover .news-card-home-image img { transform: scale(1.04); }

.news-card-home-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.45) 40%,
        transparent 70%
    );
    padding: 1.1rem;
}

.news-card-home-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.news-card-home-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
}

.news-card-home-date {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-dim, #a8904d);
}

.news-card-home-author {
    font-size: 0.75rem;
    color: var(--text-3);
}

.news-badge-public,
.news-badge-private {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-left: auto;
}

.news-badge-public {
    background: rgba(34,197,94,0.12);
    color: #16a34a;
}

.news-badge-private {
    background: var(--gold-glow, rgba(200,169,96,0.15));
    color: var(--gold-dim, #a8904d);
}

/* ─── Page Header ───────────────────────────────────────────────── */
.page-header {
    background: var(--dark);
    padding: 5.5rem 0 2rem;
}

.page-header-title {
    font-family: var(--serif);
    font-size: 1.9rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 3rem 0 1.75rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    transition: color 0.2s var(--ease);
    letter-spacing: 0.01em;
}
.footer-links a:hover { color: var(--gold); }

.footer-address { text-align: center; margin-bottom: 1.5rem; }

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    transition: color 0.2s var(--ease);
    letter-spacing: 0.01em;
}
.footer-map-link:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-crest {
    width: 28px;
    height: auto;
    opacity: 0.3;
    transition: opacity 0.2s var(--ease);
}
.footer-crest:hover { opacity: 0.55; }

.footer-bottom a {
    color: rgba(255,255,255,0.55);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255,255,255,0.2);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ─── Flash Messages ────────────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 100%;
    max-width: 440px;
    padding: 0 1rem;
}

.flash-message {
    padding: 0.75rem 1rem;
    margin-bottom: 0.4rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 450;
    animation: flashSlide 0.35s var(--ease);
}

@keyframes flashSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info    { background: #f0f4ff; color: #1e40af; border: 1px solid #c7d2fe; }

/* ─── Auth Pages ────────────────────────────────────────────────── */
.auth-page { background: var(--cream); }

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1rem 3rem;
}

.auth-card {
    background: var(--white);
    border-radius: 14px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.auth-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    color: var(--text-3);
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s var(--ease);
    font-family: var(--sans);
    background: var(--cream);
    color: var(--text);
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: var(--white);
}
.form-input::placeholder { color: var(--text-3); }

.btn-block { display: block; width: 100%; text-align: center; }

.auth-help {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-3);
    text-align: center;
    line-height: 1.5;
}
.auth-help a { color: var(--gold-dim); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Admin Pages ───────────────────────────────────────────────── */
.admin-page { background: var(--cream); }

.admin-container { padding: 6rem 0 3rem; min-height: 80vh; }

.admin-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 1.75rem;
    font-weight: 600;
}

.admin-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.4rem 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.admin-card h2 {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.admin-form .form-row { display: flex; gap: 0.85rem; align-items: flex-end; flex-wrap: wrap; }
.admin-form .form-group { flex: 1; min-width: 140px; }

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
}

.table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.admin-table th,
.admin-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-3);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-table tr.inactive { opacity: 0.4; }
.admin-table .actions { display: grid; grid-template-columns: 7.5rem 7rem; gap: 0.35rem; align-items: center; }
.inline-form { display: contents; }

.btn-sm {
    padding: 0.28rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    transition: all 0.2s var(--ease);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d4d4d8;
    color: var(--text-2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dim); }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-promote { background: #22c55e; color: #fff; }
.btn-promote:hover { background: #16a34a; }

.btn-demote { background: #f97316; color: #fff; }
.btn-demote:hover { background: #ea6a0a; }

.text-muted { color: var(--text-3); font-size: 0.82rem; }

/* ─── Cookie Banner ─────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    display: none;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 480px;
    width: calc(100% - 2rem);
    font-size: 0.78rem;
    transition: opacity 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }

.cookie-accept {
    flex-shrink: 0;
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.2s var(--ease);
}
.cookie-accept:hover { background: var(--gold-dim); }

/* ─── Content Pages ─────────────────────────────────────────────── */
.privacy-container { padding: 2.5rem 0 4rem; min-height: 80vh; }
.privacy-section { margin-bottom: 2rem; max-width: 680px; }

.privacy-section h2 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.privacy-section p,
.privacy-section li {
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.privacy-section ul { padding-left: 1.25rem; }
.privacy-section a { color: var(--gold-dim); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Hamburger ─────────────────────────────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* ─── Weather Widget ────────────────────────────────────────────── */
/* Hero-positioned weather widget (bottom left of hero image) */
.weather-widget-hero {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    padding: 1rem 1.25rem;
    background: rgba(12, 12, 14, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.9);
    max-width: 280px;
}

.weather-hero-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.weather-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(200, 169, 96, 0.15);
    color: var(--gold);
}

.weather-hero-temp {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.weather-hero-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.weather-hero-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.weather-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

@media (max-width: 768px) {
    .weather-widget-hero {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        padding: 0.875rem 1rem;
    }
    
    .weather-hero-message {
        font-size: 0.8rem;
    }
}

.weather-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(200,169,96,0.08) 100%);
    border: 1px solid rgba(200,169,96,0.2);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    flex-wrap: wrap;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.weather-icon svg {
    stroke: var(--gold);
}

.weather-icon-sun { background: linear-gradient(135deg, #fff9e6, #fff); }
.weather-icon-sun-cloud { background: linear-gradient(135deg, #f0f4ff, #fff9e6); }
.weather-icon-cloud { background: linear-gradient(135deg, #f5f5f5, #fff); }
.weather-icon-rain { background: linear-gradient(135deg, #e8f4f8, #fff); }
.weather-icon-snow { background: linear-gradient(135deg, #f0f8ff, #fff); }
.weather-icon-thunder { background: linear-gradient(135deg, #f8f0f8, #fff); }
.weather-icon-fog { background: linear-gradient(135deg, #f5f5f5, #fff); }

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.weather-desc {
    font-size: 0.8rem;
    color: var(--text-2);
    text-transform: capitalize;
}

.weather-message {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.weather-message p {
    font-size: 1rem;
    color: var(--text-2);
    font-style: italic;
    margin: 0;
}

.weather-subtitle {
    font-size: 0.7rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3) !important;
    font-style: normal !important;
    margin-bottom: 0.35rem !important;
}

.weather-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-3);
}

.weather-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.weather-location {
    font-weight: 500;
    color: var(--gold-dim);
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

@media (max-width: 768px) {
    .weather-widget {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .weather-main {
        flex-direction: column;
    }
    
    .weather-message {
        order: -1;
        min-width: auto;
    }
    
    .weather-message p {
        font-size: 0.95rem;
    }
    
    .weather-location {
        border-left: none;
        padding-left: 0;
    }
}

/* ─── Login Teaser (for non-logged-in visitors) ─────────────────── */
.login-teaser {
    position: absolute;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(12, 12, 14, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 169, 96, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: teaserSlideUp 0.6s ease 1s both;
}

@keyframes teaserSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.login-teaser-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.login-teaser-content svg {
    color: var(--gold);
    flex-shrink: 0;
}

.login-teaser-btn {
    background: var(--gold);
    color: var(--black);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.login-teaser-btn:hover {
    background: var(--gold-dim);
}

.login-teaser-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.login-teaser-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .login-teaser {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        animation: teaserSlideUpMobile 0.6s ease 1s both;
    }
    
    @keyframes teaserSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .login-teaser-content {
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
    
    .login-teaser-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ─── 6-Column Feature Grid ─────────────────────────────────────── */
.feature-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .feature-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .feature-grid-5 { grid-template-columns: 1fr; }
}

/* ─── Preview Sections (Events/Polls on Homepage) ───────────────── */
.preview-section {
    padding: 4rem 0;
    background: var(--cream);
}

.preview-section-alt {
    background: linear-gradient(to bottom, rgba(200,169,96,0.04), rgba(200,169,96,0.04));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.preview-section-events {
    background: linear-gradient(135deg, #f5f3ef 0%, #f0ece5 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-header .section-title {
    margin-bottom: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
    min-width: 0;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--gold);
}

.preview-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.75rem;
    background: var(--gold-glow);
    border-radius: var(--radius);
    color: var(--gold-dim);
}

.preview-day {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.preview-month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gold-glow);
    border-radius: 50%;
    color: var(--gold-dim);
    flex-shrink: 0;
}

.preview-content {
    flex: 1;
    min-width: 0;
}

.preview-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta {
    font-size: 0.8rem;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ─── CTA Section ───────────────────────────────────────────────── */
.cta-section {
    padding: 5rem 0;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.cta-actions .btn-primary:hover {
    background: var(--gold-dim);
    border-color: var(--gold-dim);
}

.cta-actions .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

.cta-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ─── About / Governance Page ───────────────────────────────────── */
.about-page {
    padding: 6rem 0 5rem;
    min-height: 60vh;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.about-section h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.about-section-mission {
    background: linear-gradient(135deg, var(--white) 0%, rgba(200,169,96,0.08) 100%);
}

.mission-statement p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
}

.mission-statement p:last-child {
    margin-bottom: 0;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.committee-card {
    padding: 1.25rem;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.committee-card-leadership {
    background: linear-gradient(135deg, rgba(200,169,96,0.12), rgba(200,169,96,0.04));
    border-color: rgba(200,169,96,0.25);
}

.committee-role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-dim);
    margin-bottom: 0.35rem;
}

.committee-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.committee-support {
    font-size: 0.85rem;
    color: var(--text-2);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.about-section-rtm {
    background: linear-gradient(135deg, var(--white) 0%, rgba(200,169,96,0.05) 100%);
}

.about-section-rtm p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.rtm-requirement {
    background: var(--gold-glow);
    border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rtm-contact {
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .about-page {
        padding: 5rem 0 3rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .committee-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── WhatsApp Page ─────────────────────────────────────────────── */
.whatsapp-page {
    padding: 6rem 0 5rem;
    min-height: 60vh;
    background: linear-gradient(135deg, #f5f3ef 0%, #f0ece5 100%);
}

.whatsapp-page .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
}

.whatsapp-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.whatsapp-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
}

.whatsapp-icon-channel {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.whatsapp-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.whatsapp-subtitle {
    font-size: 0.95rem;
    color: var(--text-3);
    margin-bottom: 1.5rem;
}

.whatsapp-content p {
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.whatsapp-features {
    text-align: left;
    max-width: 260px;
    margin: 0 auto 1.5rem;
    padding: 0;
    list-style: none;
}

.whatsapp-features li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--text-2);
    font-size: 0.9rem;
}

.whatsapp-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #25d366;
    font-weight: 600;
}

.whatsapp-card-channel .whatsapp-features li::before {
    color: #7c3aed;
}

.whatsapp-cta {
    margin: 1.5rem 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-channel {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-whatsapp-channel:hover {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.whatsapp-note {
    font-size: 0.8rem;
    color: var(--text-3);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .whatsapp-page .container {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-card {
        padding: 2rem 1.5rem;
    }
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(12,12,14,0.98);
        backdrop-filter: blur(20px);
        padding: 0.4rem 0;
        border-top: 1px solid rgba(255,255,255,0.04);
    }
    .nav-links.open { display: flex; }

    .nav-link {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
        border-radius: 0;
    }

    .nav-dropdown { width: 100%; text-align: center; }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
        border-radius: 0;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0.25rem 0;
        min-width: 0;
        margin-bottom: 0.25rem;
    }
    .nav-dropdown-menu::before { display: none; }

    .nav-dropdown-item {
        padding: 0.55rem 2rem;
        font-size: 0.82rem;
        color: rgba(255,255,255,0.45);
        text-align: center;
        letter-spacing: 0.03em;
    }
    .nav-dropdown-item:hover {
        color: rgba(255,255,255,0.8);
        background: none;
    }

    .btn-login, .btn-signup { margin: 0.2rem 1.5rem; text-align: center; }

    .nav-user { padding: 0.4rem 2rem; font-size: 0.78rem; }

    .hero { align-items: center; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
    .btn { width: 100%; }

    .features { padding: 4.5rem 0 5rem; }
    .feature-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

    .footer-content { flex-direction: column; gap: 1.25rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1.25rem; }

    .page-header { padding: 4.75rem 0 1.5rem; }
    .page-header-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-content { padding: 0 1.25rem; }
    .section-title { font-size: 1.65rem; }
    .auth-card { padding: 2rem 1.4rem; }
}
/* ─── Data Pages Sub Navigation ───────────────────────────────────── */
.data-subnav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 0;
    position: sticky;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    z-index: 900;
    min-height: 52px;
}

body.data-page {
    overflow-x: hidden;
}

/* Ensure consistent container padding regardless of page-specific overrides */
.data-subnav .container {
    padding: 0 1.5rem;
    max-width: 1140px;
}

.data-subnav-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.data-subnav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    flex-shrink: 0;
}

.data-subnav-brand:hover {
    color: var(--gold-dim);
}

.data-subnav-brand svg {
    stroke: var(--gold);
}

.data-subnav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.data-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.data-subnav-link:hover {
    background: var(--cream);
    color: var(--text);
}

.data-subnav-link.active {
    background: var(--gold-glow);
    color: var(--gold-dim);
}

.data-subnav-link svg {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .data-subnav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .data-subnav-links {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-subnav-link {
        white-space: nowrap;
    }
}
