/* =============================================
   THE HERITAGE MODERNIST — Design System CSS
   Based on DESIGN.md + Google Stitch Reference
   ============================================= */

/* ---- DESIGN TOKENS ---- */
:root {
    /* Core Palette */
    --primary: #002046;
    --primary-container: #1b365d;
    --on-primary: #ffffff;
    --on-primary-container: #87a0cd;
    --primary-fixed-dim: #aec7f7;

    --secondary: #7a5649;
    --secondary-container: #fdcdbc;
    --on-secondary: #ffffff;

    --surface: #fcf9f4;
    --surface-container-low: #f6f3ee;
    --surface-container: #f0ede8;
    --surface-container-high: #ebe8e3;
    --surface-container-highest: #e5e2dd;
    --surface-bright: #fcf9f4;

    --on-surface: #1c1c19;
    --on-surface-variant: #44474e;
    --outline: #74777f;
    --outline-variant: #c4c6cf;

    --error: #ba1a1a;
    --accent-gold: #d4a373;

    /* Typography */
    --font-headline: 'Noto Serif', Georgia, serif;
    --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

    /* Elevation - Ambient Shadows */
    --shadow-sm: 0 4px 12px rgba(28, 28, 25, 0.04);
    --shadow-md: 0 8px 24px rgba(28, 28, 25, 0.06);
    --shadow-lg: 0 12px 32px rgba(28, 28, 25, 0.06);
    --shadow-xl: 0 20px 40px rgba(28, 28, 25, 0.08);
    --shadow-hero: 0 30px 60px rgba(0, 32, 70, 0.15);

    /* Roundedness */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

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

    /* Legacy compatibility */
    --primary-blue: var(--primary);
    --primary-brown: var(--secondary);
    --bg-light: var(--surface);
    --white: #ffffff;
    --black: var(--on-surface);
    --text-dark: var(--on-surface);
    --text-muted: var(--on-surface-variant);
    --border-color: var(--outline-variant);
    --glass-border: rgba(196, 198, 207, 0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

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

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, .brand-font {
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

/* Display */
.display-lg {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Headlines */
.headline-md {
    font-family: var(--font-headline);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
}

/* Body */
.body-lg {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--on-surface-variant);
}

/* Label */
.label-md {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--secondary);
}

/* =============================================
             GLASSMORPHISM NAVIGATION
   ============================================= */
header.site-header {
    background: rgba(252, 249, 244, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none; /* No-Line Rule */
    transition: var(--transition);
}

header.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}
.main-nav > li { position: relative; }

.main-nav a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--surface-container-low);
}

.mobile-toggle {
    display: none !important;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ---- Dropdown ---- */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(252, 249, 244, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    padding: 0.75rem;
    z-index: 100;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(196, 198, 207, 0.15); /* Ghost Border */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    padding: 0.65rem 1rem;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    border-radius: var(--radius-sm);
    letter-spacing: 0;
    color: var(--on-surface-variant);
}

.dropdown-menu li a:hover {
    background: var(--surface-container-high);
    color: var(--primary);
}

/* =============================================
                    BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    letter-spacing: 0.3px;
    min-height: 48px; /* Accessibility: min 48px target */
}

/* Primary Button - Gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    box-shadow: 0 4px 16px rgba(0, 32, 70, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 32, 70, 0.3);
}

/* Secondary Button */
.btn-secondary {
    background: var(--surface-container-highest);
    color: var(--primary);
}
.btn-secondary:hover {
    background: var(--surface-container-high);
    transform: translateY(-1px);
}

/* Accent Button */
.btn-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, #8b6355 100%);
    color: var(--on-secondary);
    box-shadow: 0 4px 16px rgba(122, 86, 73, 0.2);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 86, 73, 0.3);
}

/* Outline Modern Button */
.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.btn-outline-modern:hover {
    background: var(--secondary);
    color: var(--on-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 86, 73, 0.25);
}

/* Slider Buttons */
.btn-slider {
    background: var(--surface);
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 1rem 2.5rem;
    min-height: 54px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.btn-slider:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.btn-slider-outline {
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-md);
    padding: 1rem 2.5rem;
    font-weight: 600;
    min-height: 54px;
}
.btn-slider-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* =============================================
                HERO SLIDER
   ============================================= */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 870px;
    overflow: hidden;
    background: var(--primary);
}

.slider-track { position: relative; height: 100%; }

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 32, 70, 0.7) 0%,
        rgba(0, 32, 70, 0.3) 50%,
        transparent 100%
    );
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: white;
    max-width: 650px;
}

.slide-content .badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.slide-content h1 {
    color: white;
    font-family: var(--font-headline);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.slide-content p {
    max-width: 550px;
    opacity: 0.9;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.slide-content .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.slider-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.05);
}
.slider-prev { left: 2rem; }
.slider-next { right: 2rem; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active, .slider-dot:hover {
    background: var(--on-primary);
    transform: scale(1.4);
}

/* =============================================
             INFO CARDS (Services)
   ============================================= */
.section-cards {
    padding: 3rem 0 4rem;
    background: transparent;
    position: relative;
    z-index: 10;
}

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

.info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: none; /* No-Line Rule */
}

.info-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.info-card:hover::before { transform: scaleX(1); }

.info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--surface-container-low);
}

.info-card h3 {
    font-family: var(--font-headline);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.info-card p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =============================================
            ANNOUNCEMENTS MARQUEE
   ============================================= */
.announcements-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    padding: 0;
    position: relative;
    z-index: 5;
}

.announcements-wrapper {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.announcements-label {
    background: var(--secondary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 200px;
    justify-content: center;
    font-family: var(--font-body);
}
.announcements-label i { font-size: 1.1rem; }

.announcements-ticker {
    flex: 1;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-track {
    display: flex;
    gap: 0;
    animation: tickerScroll 35s linear infinite;
    white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    padding: 0 1rem;
    flex-shrink: 0;
}

.ticker-date {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ticker-text {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.ticker-separator {
    color: rgba(255,255,255,0.2);
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
             SECTION HEADERS
   ============================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    line-height: 1.2;
}

.text-accent { color: var(--secondary); }

/* =============================================
              NEWS SECTION
   ============================================= */
.news-section {
    padding: 6rem 0;
    background: var(--surface-container-low); /* Tonal transition */
}

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

/* Ledger Card - News */
.news-card-modern {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    border: none; /* No-Line Rule */
}
.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: var(--surface-container-low);
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card-modern:hover .news-card-image img {
    transform: scale(1.06);
}

.news-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-container-low) 0%, var(--surface-container-high) 100%);
}
.news-card-placeholder i {
    font-size: 3.5rem;
    color: var(--outline-variant);
    opacity: 0.5;
}

.news-card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
}

.news-card-body {
    padding: 2rem;
}
.news-card-body h3 {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    height: 3.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--primary);
}
.news-card-body p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    border-bottom: 2px solid var(--primary-fixed-dim);
    padding-bottom: 2px;
}
.news-read-more:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    gap: 0.7rem;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--surface-container-low);
    border-radius: var(--radius-lg);
}
.news-empty i {
    font-size: 3rem;
    color: var(--outline-variant);
    margin-bottom: 1rem;
    display: block;
}

/* =============================================
            GALLERY SECTION
   ============================================= */
.gallery-section {
    padding: 6rem 0;
    background: var(--surface);
}

/* Photo/Video Switch */
.gallery-switch-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.gallery-switch {
    display: flex;
    position: relative;
    background: var(--surface-container-low);
    border-radius: var(--radius-full);
    padding: 4px;
    min-width: 320px;
    border: none; /* No-Line Rule */
}

.gallery-switch-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-full);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}
.gallery-switch-btn.active {
    color: white;
}

.switch-indicator {
    position: absolute;
    top: 4px;
    left: 0;
    width: 50%;
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    border-radius: var(--radius-full);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--surface-container-low);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 32, 70, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
    color: white;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { font-size: 2rem; margin-bottom: 0.5rem; }
.gallery-item-overlay span { font-size: 0.85rem; font-weight: 600; }

.gallery-video-overlay {
    justify-content: center;
    background: rgba(0, 32, 70, 0.55);
    opacity: 1;
}
.gallery-video-overlay i { font-size: 3.5rem; margin-bottom: 0; }

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface-container-low) 0%, var(--surface-container-high) 100%);
    gap: 0.8rem;
    border: none;
}
.gallery-placeholder i {
    font-size: 2.5rem;
    color: var(--outline-variant);
    opacity: 0.5;
}
.gallery-placeholder span {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    font-weight: 600;
}

/* =============================================
          COMMENTS CAROUSEL
   ============================================= */
.comments-section {
    padding: 6rem 0;
    background: var(--surface-container-low);
}

.comments-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.comments-carousel {
    position: relative;
    min-height: 320px;
}

.comment-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    text-align: center;
    border: none; /* No-Line Rule */
}
.comment-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
}

.comment-quote-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 2rem;
}

.comment-text {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--on-surface);
    font-style: italic;
    margin-bottom: 2rem;
}

.comment-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--secondary), var(--accent-gold));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-headline);
}

.comment-author h4 {
    font-family: var(--font-headline);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}
.comment-author span {
    font-size: 0.8rem;
    color: var(--on-surface-variant);
}

.comment-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--surface);
    border: 1px solid rgba(196, 198, 207, 0.15); /* Ghost Border */
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.comment-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}
.comment-prev { left: -60px; }
.comment-next { right: -60px; }

.comments-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.comment-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--outline-variant);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.comment-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* =============================================
               MANAGEMENT SECTION
   ============================================= */
.management-section {
    padding: 6rem 0;
    background: var(--surface-container-low);
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.mgmt-card {
    background: var(--surface);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none; /* No-Line Rule */
}
.mgmt-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.mgmt-card img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--surface-container-high);
}
.mgmt-card h3 {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}
.mgmt-card p {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

/* =============================================
               NEWSLETTER / CTA
   ============================================= */
.newsletter-section {
    padding: 6rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    border-radius: var(--radius-xl);
    padding: 5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: rgba(122, 86, 73, 0.1);
    border-radius: var(--radius-full);
}

.newsletter-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
}

.newsletter-card h2 {
    font-family: var(--font-headline);
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.newsletter-card p {
    color: var(--on-primary-container);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--white);
    color: var(--on-surface);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px var(--secondary);
}

.newsletter-form button {
    background: var(--secondary);
    color: var(--on-secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 48px;
}

.newsletter-form button:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(122, 86, 73, 0.3);
}

/* =============================================
                ANIMATIONS
   ============================================= */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
            HERO SECTION (fallback)
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: white;
    padding: 7rem 0;
    text-align: center;
    position: relative;
}
.hero-section h1 { color: white; font-size: 3.5rem; margin-bottom: 1.5rem; }

/* =============================================
            PAGE CONTENT
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
}

.page-hero h1 {
    font-family: var(--font-headline);
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero .breadcrumb {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.75;
}

.page-content {
    padding: 4rem 0;
    background: var(--surface);
}

.page-content .container {
    max-width: 900px;
}

.page-content h2 {
    font-family: var(--font-headline);
    color: var(--primary);
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    font-size: 1.8rem;
}

.page-content p {
    color: var(--on-surface-variant);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.page-content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

/* =============================================
       ADMIN DASHBOARD STYLES
   ============================================= */
.admin-body { display: flex; min-height: 100vh; background: var(--surface-container-low); }
.admin-sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    padding: 2rem;
    flex-shrink: 0;
}
.admin-content { flex-grow: 1; padding: 2.5rem; }
.admin-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: none;
}
.admin-nav { list-style: none; margin-top: 2rem; }
.admin-nav li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}
.admin-nav li a:hover, .admin-nav li a.active { background: rgba(255,255,255,0.1); color: white; }

/* =============================================
                FOOTER
   ============================================= */
footer.site-footer,
footer {
    background: var(--on-surface);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 2rem;
    border-top: none; /* No-Line Rule */
}

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

.footer-title {
    font-family: var(--font-headline);
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

footer h3, footer .logo {
    font-family: var(--font-headline);
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

footer h4 {
    font-family: var(--font-headline);
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}
footer a:hover {
    color: var(--accent-gold);
}

footer .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}
footer .social-icons a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* =============================================
              MANAGEMENT SECTION
   ============================================= */
.management-section {
    padding: var(--space-3xl) 0;
    background: var(--surface);
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.mgmt-card {
    background: var(--surface-container-low);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    border: 1px solid transparent;
}

.mgmt-card:hover {
    background: var(--surface-container);
    border-color: rgba(196, 198, 207, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.mgmt-card img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    background: var(--surface-container-highest);
}

.mgmt-card h3 {
    font-family: var(--font-headline);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mgmt-card p {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
               CONTACT FORM
   ============================================= */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-bottom: 2px solid rgba(196, 198, 207, 0.15); /* Ghost Border on bottom only */
    background: var(--surface-container-low);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--on-surface);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-bottom-color: var(--primary);
    background: var(--surface-container);
}

.contact-form label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* =============================================
             RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1100px) {
    .container { padding: 0 1.5rem; }
    .comment-prev { left: -20px; }
    .comment-next { right: -20px; }
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slider { height: 550px; min-height: 400px; }
    .slide-content h1 { font-size: 2.4rem; }
    .slide-content p { font-size: 1rem; }
    .slider-btn { width: 44px; height: 44px; }
    .slider-prev { left: 1rem; }
    .slider-next { right: 1rem; }
    .nav-wrapper { padding: 0; }

    /* Mobile Menu Button */
    .mobile-toggle {
        display: flex !important;
        z-index: 1100;
        width: 48px;
        height: 48px;
        background: var(--surface-container-low);
        border: 1px solid rgba(196, 198, 207, 0.15);
        border-radius: var(--radius-sm);
        color: var(--primary);
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }
    .mobile-toggle:active { transform: scale(0.95); }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        padding: 90px 1.5rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 32, 70, 0.1);
        z-index: 1050;
        overflow-y: auto;
        display: flex !important;
    }
    .main-nav.active { right: 0 !important; }
    .main-nav li { width: 100%; }
    .main-nav a {
        font-size: 0.95rem;
        width: 100%;
        display: block;
        padding: 1rem 0.75rem;
        color: var(--on-surface);
        border-radius: var(--radius-sm);
    }
    .main-nav a:hover {
        background: var(--surface-container-low);
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        padding: 0 0 0 1rem;
        border: none;
        display: none !important;
        background: var(--surface-container-low);
        border-radius: var(--radius-sm);
        backdrop-filter: none;
    }
    .dropdown.active .dropdown-menu { display: block !important; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
    .section-title { font-size: 2rem; }

    .announcements-wrapper { flex-direction: column; }
    .announcements-label { padding: 0.8rem; min-width: auto; }

    .comment-prev { left: 0; }
    .comment-next { right: 0; }
    .comment-nav { width: 40px; height: 40px; }

    .section-cards { padding: 2.5rem 0; }
    .section-cards .container { top: 0 !important; }
    .announcements-section { margin-top: 0; }

    .newsletter-card { padding: 3rem 2rem; }
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-actions .btn-primary { display: none !important; }
    .nav-wrapper { height: 76px; }
    .logo-title { font-size: 1.1rem; }
    .hero-slider { height: 450px; min-height: 350px; }
    .slide-content h1 { font-size: 1.8rem; }
    .gallery-switch { min-width: 100%; }
    .gallery-grid { grid-template-columns: 1fr; }

    .mgmt-card { padding: 2rem 1rem; }
    .mgmt-card img { width: 100px; height: 100px; }
}

/* =============================================
           UTILITY CLASSES
   ============================================= */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.bg-surface { background: var(--surface); }
.bg-surface-low { background: var(--surface-container-low); }

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-container-low); }
::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--outline); }

/* Selection */
::selection {
    background: var(--primary);
    color: var(--on-primary);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ======== ETKİNLİKLER (EVENTS) - Vertical List ======== */
.events-section {
    padding: var(--space-3xl) 0;
    background: var(--surface);
}

.events-vertical-list {
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.event-row-card {
    display: flex;
    background: var(--surface-container-low);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.event-row-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 198, 207, 0.15);
    box-shadow: var(--shadow-lg);
    background: var(--surface-container);
}

.event-row-card.is-past {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.event-row-image {
    width: 200px;
    min-width: 200px;
    height: auto;
    background: var(--surface-container-highest);
    position: relative;
    overflow: hidden;
}

.event-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--outline-variant);
    background: var(--surface-container-highest);
}

.event-row-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-row-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-row-date {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-row-location {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-row-content h3 {
    font-family: var(--font-headline);
    color: var(--on-surface);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.event-row-content p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.6;
}

.event-row-action {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px dashed var(--outline-variant);
    min-width: 151px;
}

.event-status {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary);
    color: var(--on-primary);
    white-space: nowrap;
}

.event-row-card.is-past .event-status {
    background: var(--outline-variant);
    color: var(--on-surface-variant);
}

@media (max-width: 992px) {
    .event-row-card {
        flex-direction: column;
    }
    .event-row-image {
        width: 100%;
        height: 200px;
    }
    .event-row-action {
        border-left: none;
        border-top: 1px dashed var(--outline-variant);
        padding: 1.5rem;
        justify-content: flex-start;
    }
}
