@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #d4af37;
    --secondary-hover: #b8941f;
    --background: #f8fafc;
    --surface: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    --border: rgba(0, 0, 0, 0.07);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
    --navy-gradient: linear-gradient(135deg, #0f172a 0%, #1a3050 100%);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.13);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.16);
    --shadow-gold: 0 4px 20px rgba(212,175,55,0.28);

    --nav-height: 68px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

img { max-width: 100%; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Brand / Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Playfair Display', serif;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-brand:hover {
    color: var(--secondary);
}

.nav-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.nav-brand-text {
    letter-spacing: -0.01em;
}

/* Links container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links > a:hover,
.nav-links > .dropdown > a:hover {
    color: var(--secondary);
    background: rgba(212, 175, 55, 0.09);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hamburger:hover { background: rgba(0,0,0,0.05); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    cursor: pointer;
    user-select: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--surface);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    z-index: 1001;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border);
}

.dropdown.open > .dropdown-content {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.dropdown-content a {
    display: block;
    padding: 0.625rem 1rem;
    margin: 0;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.09);
    color: var(--secondary);
}

.dropdown-content.dropdown-grid { width: 320px; }

.dropdown.open > .dropdown-content.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.dropdown-content.dropdown-grid a { text-align: center; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

main {
    padding: 2.5rem 0;
    min-width: 0;
}

.sidebar { padding: 2.5rem 0; }

/* ============================================================
   HERO
   ============================================================ */
header.hero {
    background: var(--navy-gradient);
    color: var(--text-light);
    padding: 5rem 2rem 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Dot pattern overlay */
header.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(212,175,55,0.15) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

/* Gold bottom line */
header.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

header.hero > * { position: relative; z-index: 1; }

header.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

header.hero #today-date,
header.hero .hero-subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: 0.5rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
}

header.hero .hero-hint {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-date-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
    text-decoration: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--primary);
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212,175,55,0.45);
    color: var(--primary);
    text-decoration: none;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
}
.btn-outline:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Legacy button (load more) */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2.25rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
}
.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-light);
    color: white;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { margin-bottom: 4rem; }

section h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--primary);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 3px;
}

.section-center h2::after { left: 50%; transform: translateX(-50%); }
.section-center h2 { text-align: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold-gradient);
    transition: width 0.35s ease;
    border-radius: 0 3px 0 0;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.25);
}

.card:hover::after { width: 100%; }

.card .year {
    display: inline-block;
    font-weight: 700;
    color: #9a7d18;
    font-size: 0.75rem;
    padding: 0.2rem 0.75rem;
    background: rgba(212, 175, 55, 0.13);
    border-radius: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1.3;
}

.card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 0;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

/* Featured Card */
.featured-card {
    padding: 2.5rem;
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.04) 0%, var(--card-bg) 60%);
}

.featured-card:hover {
    border-left-color: var(--secondary);
    transform: translateY(-4px);
}

/* Highlight Cards (index page highlights) */
.highlight-card {
    background: var(--card-bg);
    border-top: 3px solid var(--secondary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.highlight-card::after { display: none; }
.highlight-card:hover { border-top-color: var(--secondary); }

.card-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.card-tag-gold {
    background: rgba(212, 175, 55, 0.13);
    color: #9a7d18;
}

.card-tag-blue {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

/* ============================================================
   EVENT GRID (Article Pages)
   ============================================================ */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.event-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.25);
}

.event-card h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.625rem;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.event-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */
main p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

main a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

main a:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

main h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary);
}

main h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

main ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

main li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-size: 0.975rem;
    line-height: 1.7;
}

main li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

main li strong { color: var(--primary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section.card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    padding-bottom: 0.625rem;
    border-bottom: 2px solid rgba(212,175,55,0.25);
}

.sidebar-link-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.sidebar-link-list li {
    border: none !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.sidebar-link-list li::before { display: none !important; }

.sidebar-link-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    color: var(--text-main) !important;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.sidebar-link-list a::before {
    content: '›';
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-link-list a:hover {
    color: var(--secondary) !important;
    padding-left: 0.375rem;
}

.sidebar-view-all {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-view-all:hover { color: var(--secondary-hover); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.feature-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 0.875rem;
    display: block;
    line-height: 1;
}

.feature-item h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-item {
    background: var(--navy-gradient);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--secondary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.78rem;
    opacity: 0.75;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text-main);
    transition: var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.submit-btn {
    background: var(--navy-gradient);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info-box {
    background: var(--navy-gradient);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-md);
}

.contact-info-box h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-family: 'Playfair Display', serif;
}

.contact-info-box p {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info-box a {
    color: var(--secondary) !important;
    text-decoration: none;
    font-weight: 600;
}

.contact-info-box a:hover { text-decoration: underline; }

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    opacity: 0.9;
}

/* ============================================================
   AD CONTAINERS
   ============================================================ */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    min-height: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar .ad-container { margin: 1rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--primary);
    color: #94a3b8;
    margin-top: 5rem;
}

/* Keep old class visible for backward compat (hidden via display:none if inner used) */
.footer-links {
    display: none;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 4rem;
    align-items: start;
}

.footer-brand .footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.875rem;
    display: block;
}

.footer-brand > p {
    font-size: 0.875rem;
    line-height: 1.75;
    max-width: 280px;
    color: #94a3b8;
    margin: 0;
}

.footer-divider {
    width: 40px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 3px;
    margin: 1rem 0;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.footer-col a:hover { color: var(--secondary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.83rem;
    color: #475569;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
    font-size: 1.35rem;
    text-decoration: none;
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: #1e293b;
    box-shadow: var(--shadow-xl);
    color: var(--secondary);
    text-decoration: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar { display: none; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 2rem 2rem;
    }

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

    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    header.hero {
        padding: 3.5rem 1.5rem 4.5rem;
        cursor: default;
    }

    .hamburger { display: flex; }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 0.75rem 1rem 1rem;
        display: none;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .nav-links.mobile-open { display: flex; }

    nav a { padding: 0.75rem 1rem; }

    .dropdown { display: block; }

    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.03);
        border-radius: var(--radius-sm);
        margin: 0.25rem 0;
        padding: 0.25rem 0.5rem;
        top: auto;
        left: auto;
        animation: none !important;
    }

    .dropdown.open > .dropdown-content,
    .dropdown.open > .dropdown-content.dropdown-grid {
        display: block !important;
        animation: none !important;
    }

    .dropdown-content.dropdown-grid {
        width: auto;
    }

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

    section h2 { font-size: 1.75rem; }
    .card-grid  { grid-template-columns: 1fr; }
    .event-grid { grid-template-columns: 1fr; }

    .footer-nav { grid-template-columns: 1fr 1fr; }

    .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
    .nav-inner { padding: 0 1rem; }
    .page-wrapper { padding: 0 1rem; }

    .footer-nav { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }

    .hero-date-nav { flex-direction: column; align-items: center; }
}
