/* в•”в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•—
   в•‘  У�Р»-Р¤Р°СЂР°Р±Рё РњРµРєС‚РµРї РњСѓР·РµР№С– вЂ” Academic Minimalist Design System  в•‘
   в•‘  Typography: Playfair Display + Crimson Text + Inter            в•‘
   в•‘  Palette: Deep Navy В· Antiqued Gold В· Warm Ivory                в•‘
   в•љв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ќ */

/* в•ђв•ђв•ђ Google Fonts Import в•ђв•ђв•ђ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* в•ђв•ђв•ђ Design Tokens в•ђв•ђв•ђ */
:root {
    /* Colors вЂ” Azret Sultan Style */
    --primary: #2C1810;
    --primary-light: #4A2C20;
    --primary-mid: #1E0F08;
    --accent: #C45D3E;
    --accent-light: #D4785E;
    --accent-muted: #A04830;
    --accent-glow: rgba(196, 93, 62, 0.15);
    --bg: #FAF6F1;
    --bg-section: #FFF9F4;
    --bg-card: #FFFFFF;
    --bg-alt: #F5EDE5;
    --bg-dark: #1E0F08;
    --text-primary: #2C1810;
    --text-body: #3D2B22;
    --text-secondary: #6B5548;
    --text-muted: #9A8A80;
    --border-gold: rgba(196, 93, 62, 0.18);
    --border-gold-strong: rgba(196, 93, 62, 0.35);
    --border-light: rgba(44, 24, 16, 0.08);

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(44, 24, 16, 0.06);
    --shadow: 0 6px 28px rgba(44, 24, 16, 0.08);
    --shadow-lg: 0 16px 48px rgba(44, 24, 16, 0.12);
    --shadow-gold: 0 8px 32px rgba(196, 93, 62, 0.18);

    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Crimson Text', 'Georgia', serif;
    --font-ui: 'Inter', 'system-ui', sans-serif;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --section-padding: 8rem 6%;
    --max-width: 1240px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4.5rem 5%;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 1.25rem;
    }
}

/* в•ђв•ђв•ђ Reset & Base в•ђв•ђв•ђ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

/* Body scroll lock when mobile menu is open */
html.menu-open,
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: var(--menu-scroll-top, 0px) !important;
    left: 0 !important;
    overscroll-behavior: none;
    touch-action: none;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.85;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

::selection {
    background: var(--accent);
    color: var(--primary);
}

/* Accessibility Focus States — Premium ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.burger:focus-visible,
.carousel-slide:focus-visible,
.art-piece:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-submit:focus-visible,
.btn-load-more:focus-visible,
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible,
.filter-btn:focus-visible,
.carousel-btn:focus-visible,
.footer-back-top:focus-visible,
.footer-social-link:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.lang-dropdown-btn:focus-visible,
.lang-btn:focus-visible,
.panorama-controls button:focus-visible,
.pagination button:focus-visible {
    outline: 2.5px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(196, 93, 62, 0.12);
}

/* ═══ Skip Navigation Link (Accessibility) ═══ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--primary);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: top 200ms ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Nav overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* в•ђв•ђв•ђ Cultural Ornamental Utilities в•ђв•ђв•ђ */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    width: 100px;
    height: 2px;
    background: var(--primary);
    border-radius: 4px;
    position: relative;
    opacity: 0.9;
}

.ornament-divider::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    transform: rotate(45deg);
    top: -5px;
    border: 2px solid var(--bg-color, #fff);
}

.ornament-divider.light {
    background: rgba(255, 255, 255, 0.7);
}

.ornament-divider.light::after {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--primary);
}

.ornament-divider .ornament-icon {
    display: none;
}

.section-ornament {
    text-align: center;
    margin-bottom: 4rem;
}

.section-ornament h2 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.section-ornament p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Cultural geometric pattern for section dividers */
.pattern-border {
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(90deg,
            var(--accent) 0px,
            var(--accent) 8px,
            transparent 8px,
            transparent 12px,
            var(--accent-light) 12px,
            var(--accent-light) 14px,
            transparent 14px,
            transparent 18px);
    opacity: 0.5;
}

/* в•ђв•ђв•ђ Scroll Animations в•ђв•ђв•ђ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ═══ NAVBAR ═══ */
.navbar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 80px;
    box-shadow: none;
    /* PERF: explicit properties instead of 'all' — prevents layout thrashing on sticky scroll */
    transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), min-height 0.5s var(--ease), border-bottom-color 0.5s var(--ease);
    border-bottom: 1px solid rgba(44, 24, 16, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(196, 93, 62, 0.15);
    min-height: 68px;
    border-bottom-color: transparent;
}

/* — Logo & Branding — */
.navbar .logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.navbar .logo a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem 0;
    text-decoration: none;
    transition: opacity 0.3s var(--ease);
}

.navbar .logo a:hover {
    opacity: 0.85;
}

.logo-img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: contain;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 10px rgba(196, 93, 62, 0.15);
    transition: all 0.4s var(--ease);
    background: #fff;
    padding: 2px;
}

.navbar.scrolled .logo-img {
    width: 40px;
    height: 40px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.logo-title {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* — Nav Center Container — */
.nav-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* — Nav Links — */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.nav-links li a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.65rem 1rem;
    /* PERF: explicit instead of 'all' */
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
    white-space: nowrap;
    position: relative;
    line-height: 1;
    border-radius: 30px;
}

.nav-links li a:hover {
    color: var(--primary);
    background: rgba(44, 24, 16, 0.05);
}

.nav-links li a.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 6px 15px rgba(44, 24, 16, 0.2);
    font-weight: 600;
}

/* — Search Button — */
.nav-search-btn {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-left: 10px;
    text-decoration: none;
    /* PERF: explicit instead of 'all' */
    transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
    display: flex;
    align-items: center;
    padding: 10px;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
}

.nav-search-btn:hover {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(196, 93, 62, 0.3);
    transform: scale(1.05) translateY(-2px);
}

/* — Language Dropdown — */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 0.25rem;
}

.lang-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    width: calc(100% + 40px);
    height: 20px;
    background: transparent;
    z-index: 1000;
}

.lang-dropdown-btn {
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(44, 24, 16, 0.1);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 120ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    min-width: auto;
    min-height: 42px;
}

.lang-current-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.lang-dropdown-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.2);
}

.lang-dropdown-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

.lang-dropdown.lang-open .lang-dropdown-btn {
    background: var(--primary-light);
    color: #fff;
    border-color: var(--primary-light);
}

.lang-dropdown-content {
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    min-width: 170px;
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.12), 0 2px 10px rgba(44, 24, 16, 0.04);
    border-radius: 16px;
    z-index: 1005;
    overflow: hidden;
    border: 1px solid rgba(44, 24, 16, 0.08);
    padding: 8px 6px;
}

@keyframes navDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-btn {
    background: transparent;
    color: var(--text-body);
    border: none;
    padding: 12px 16px;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    width: 100%;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(44, 24, 16, 0.04);
    color: var(--primary);
    font-weight: 600;
    padding-left: 20px;
}

.lang-btn.active {
    background: rgba(196, 93, 62, 0.08);
    /* highlight the active dropdown */
    color: var(--accent);
    font-weight: 600;
}

.lang-btn.active:hover {
    padding-left: 16px;
}

/* — Burger Menu — */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    border: none;
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s var(--ease);
}

.burger:hover {
    background: rgba(44, 24, 16, 0.04);
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    transition: all 0.35s var(--ease);
    border-radius: 2px;
}

.burger.active span {
    background: #FFFFFF;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══ HERO — Cinematic Museum Experience ═══ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-mid);
}

.hero-bg {
    position: absolute;
    inset: -5%;
    background-image: url('/assets/images/home/hero.jpg');
    background-size: cover;
    background-position: center 30%;
    transform-origin: center center;
    animation: heroCinematicZoom 30s linear infinite alternate;
    z-index: 0;
    filter: saturate(0.85) brightness(0.95);
}

@keyframes heroCinematicZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Multi-layer cinematic vignette overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        /* Deep vignette — pulls viewer focus to center */
        radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(20, 10, 5, 0.45) 55%, rgba(15, 8, 4, 0.92) 100%),
        /* Cinematic vertical fade — heavy at top & bottom like film framing */
        linear-gradient(180deg,
            rgba(15, 8, 4, 0.65) 0%,
            rgba(15, 8, 4, 0.15) 20%,
            transparent 40%,
            rgba(15, 8, 4, 0.35) 65%,
            rgba(15, 8, 4, 0.97) 100%),
        /* Warm amber color grade — museum warmth */
        linear-gradient(180deg, rgba(120, 60, 20, 0.08) 0%, transparent 50%, rgba(100, 50, 15, 0.12) 100%);
}

@media (max-width: 768px) {
    .hero-overlay {
        background:
            radial-gradient(circle at 50% 45%, transparent 0%, rgba(15, 8, 4, 0.55) 65%, rgba(15, 8, 4, 0.95) 100%),
            linear-gradient(180deg,
                rgba(15, 8, 4, 0.6) 0%,
                rgba(15, 8, 4, 0.2) 25%,
                rgba(15, 8, 4, 0.45) 60%,
                rgba(15, 8, 4, 0.98) 100%);
    }
}

/* Floating ambient particles */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 93, 62, 0.12), transparent 70%);
    z-index: 2;
    pointer-events: none;
    filter: blur(50px);
    mix-blend-mode: screen;
}

.hero-particle--1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: -5%;
    animation: heroFloat 18s ease-in-out infinite;
}

.hero-particle--2 {
    width: 350px;
    height: 350px;
    bottom: 15%;
    right: -3%;
    animation: heroFloat 22s ease-in-out infinite reverse;
}

.hero-particle--3 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%);
    animation: heroFloat 15s ease-in-out infinite 3s;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-15px, 25px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* Decorative border frame — subtle editorial inset */
.hero::before {
    content: '';
    position: absolute;
    inset: 2.5rem;
    border: 1px solid rgba(196, 93, 62, 0.08);
    z-index: 3;
    pointer-events: none;
    transition: inset 0.6s var(--ease), border-color 0.8s var(--ease);
}

.hero:hover::before {
    border-color: rgba(196, 93, 62, 0.18);
}

/* Bottom accent gradient line — cinematic film strip feel */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 5%, rgba(196, 93, 62, 0.6) 20%, var(--accent) 50%, rgba(196, 93, 62, 0.6) 80%, transparent 95%);
    z-index: 4;
    box-shadow: 0 0 20px rgba(196, 93, 62, 0.3), 0 0 60px rgba(196, 93, 62, 0.1);
}

/* — Hero Content — */
.hero-content {
    position: relative;
    z-index: 5;
    color: #fff;
    max-width: 920px;
    padding: 0 2rem;
    margin-top: -2vh;
}

/* Eyebrow / Subtitle */
.hero-content .hero-eyebrow {
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: heroSlideUp 1s var(--ease) 0.2s forwards;
}

/* Keep old class working too */
.hero-content .hero-subtitle {
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: heroSlideUp 1s var(--ease) 0.2s forwards;
}

/* Ornament */
.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: heroSlideUp 0.8s var(--ease) 0.4s forwards;
}

.hero-ornament::before,
.hero-ornament::after {
    content: '';
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 93, 62, 0.6));
}

.hero-ornament::after {
    background: linear-gradient(90deg, rgba(196, 93, 62, 0.6), transparent);
}

.hero-ornament .ornament-diamond {
    width: 7px;
    height: 7px;
    background: var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(196, 93, 62, 0.4);
}

/* — Main Heading — */
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.5vw, 5.8rem);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 8px 30px rgba(0, 0, 0, 0.7),
        0 20px 60px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: heroSlideUp 1.2s var(--ease) 0.5s forwards;
    color: #fff;
}

/* — Description — */
.hero-content .hero-desc {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
        color: #fff;
    margin-bottom: 3.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.85;
    opacity: 0;
    animation: heroSlideUp 1.2s var(--ease) 0.75s forwards;
}

/* — CTA Buttons Container — */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 4.25rem;
    opacity: 0;
    animation: heroSlideUp 1s var(--ease) 0.95s forwards;
}

/* Primary Hero Button */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 58px;
    background: linear-gradient(135deg, var(--accent) 0%, #A04830 60%, #8B3A22 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    transition: transform 150ms ease, box-shadow 200ms ease, border-color 200ms ease;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow:
        0 4px 15px rgba(196, 93, 62, 0.35),
        0 12px 40px rgba(196, 93, 62, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(196, 93, 62, 0.5),
        0 20px 60px rgba(196, 93, 62, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover::before {
    opacity: 1;
}

.btn-hero-primary:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

/* Secondary Hero Button (Ghost) */
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 21px 46px;
    background: rgba(20, 10, 5, 0.25);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
    border-radius: var(--radius);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-hero-secondary i {
    font-size: 0.9rem;
    transition: transform 0.4s var(--ease);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-hero-secondary:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.btn-hero-secondary:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

/* — Scroll Indicator — */
.hero-scroll-indicator {
    position: absolute;
    bottom: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    animation: heroSlideUp 0.8s var(--ease) 1.4s forwards;
    pointer-events: none;
}

.hero-scroll-indicator span {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    position: relative;
    transition: border-color 0.4s var(--ease);
}

.hero-scroll-indicator:hover span {
    border-color: rgba(196, 93, 62, 0.5);
}

.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 3px;
    /* PERF: use transform instead of 'top' — compositor-only, no layout recalc */
    animation: heroScrollDot 2.2s var(--ease) infinite;
    box-shadow: 0 0 6px rgba(196, 93, 62, 0.4);
}

@keyframes heroScrollDot {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.2;
        transform: translateX(-50%) translateY(16px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* — Hero Entrance Animation — */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy animation name kept for compatibility */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep the old btn-primary for non-hero usage */
.btn-primary {
    display: inline-block;
    padding: 18px 52px;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(196, 93, 62, 0.6);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    transition: transform 150ms ease, box-shadow 150ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease;
    z-index: -1;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 24px rgba(196, 93, 62, 0.25);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 80ms;
}

/* в•ђв•ђв•ђ SECTIONS в•ђв•ђв•ђ */
section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--bg-section);
}

/* в•ђв•ђв•ђ STATISTICS / ACHIEVEMENTS COUNTER в•ђв•ђв•ђ */
.stats-section {
    background: var(--primary);
    padding: 5.5rem 6%;
    position: relative;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stats-section::before {
    top: 0;
}

.stats-section::after {
    bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1.5rem 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
}

/* в•ђв•ђв•ђ ABOUT PREVIEW (Home) в•ђв•ђв•ђ */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-preview-img {
    position: relative;
}

.about-preview-img img {
    width: 100%;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-lg);
}

.about-preview-img::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(196, 93, 62, 0.2);
    z-index: -1;
}

.about-preview-text h3 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
}

.about-preview-text p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.9;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: transform 150ms ease, box-shadow 150ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(196, 93, 62, 0.22);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

/* ═══ CAROUSEL / SLIDER — Premium Museum Showcase ═══ */
.carousel-section {
    background: var(--primary);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(196, 93, 62, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(196, 93, 62, 0.04) 0%, transparent 50%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--accent) 40%, var(--accent) 60%, transparent 90%);
}

.carousel-section .section-ornament h2 {
    color: var(--accent);
}

.carousel-section .section-ornament p {
    color: #fff;
}

/* — Carousel Container — */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5rem;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    margin: 0;
    left: 0;
}

/* — Carousel Slide / Card — */
.carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: none;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        0 2px 12px rgba(0, 0, 0, 0.15);
    /* PERF: explicit instead of 'all' */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide:hover {
    box-shadow:
        0 16px 60px rgba(0, 0, 0, 0.35),
        0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

/* Subtle accent border on hover */
.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 4;
}

.carousel-slide:hover::after {
    border-color: rgba(196, 93, 62, 0.5);
}

.carousel-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.carousel-slide:hover img {
    transform: scale(1.06);
}

/* Caption overlay */
.carousel-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 1.8rem;
    background: linear-gradient(to top,
            rgba(30, 15, 8, 0.92) 0%,
            rgba(30, 15, 8, 0.6) 45%,
            transparent 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.carousel-slide:hover .slide-caption {
    padding-bottom: 2.2rem;
    background: linear-gradient(to top,
            rgba(30, 15, 8, 0.96) 0%,
            rgba(30, 15, 8, 0.7) 50%,
            transparent 100%);
}

/* — Navigation Buttons (SVG) — */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
    z-index: 5;
    outline: none;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 150ms ease;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(196, 93, 62, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:hover svg {
    transform: scale(1.1);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 0.75rem;
}

.carousel-btn.next {
    right: 0.75rem;
}

/* — Carousel Dots — */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2.5rem;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(196, 93, 62, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: none;
    position: relative;
}

.carousel-dot:hover {
    border-color: var(--accent);
    background: rgba(196, 93, 62, 0.2);
    transform: scale(1.15);
}

.carousel-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(196, 93, 62, 0.35);
}

/* — Responsive — */
@media (max-width: 1024px) {
    .carousel-container {
        padding: 0 4rem;
    }

    .carousel-slide img {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 4.5rem 0 3.5rem;
    }

    .carousel-container {
        padding: 0 3rem;
    }

    .carousel-slide {
        border-radius: 16px;
    }

    .carousel-slide::after {
        border-radius: 16px;
    }

    .carousel-slide img {
        height: 280px;
    }

    .carousel-slide .slide-caption {
        font-size: 1.1rem;
        padding: 2.5rem 1.5rem 1.2rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-btn.prev {
        left: 0.4rem;
    }

    .carousel-btn.next {
        right: 0.4rem;
    }

    .carousel-dots {
        margin-top: 1.8rem;
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 22px;
    }
}

/* в•ђв•ђв•ђ GALLERY GRID в•ђв•ђв•ђ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.art-piece {
    cursor: pointer;
    transition: transform var(--transition);
}

.art-piece:hover {
    transform: translateY(-4px);
}

.img-wrapper {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.art-piece:hover .img-wrapper {
    box-shadow: var(--shadow-gold);
    border-color: var(--border-gold-strong);
}

.img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease);
}

.art-piece:hover .img-wrapper img {
    transform: scale(1.04);
}

.art-category {
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.5rem;
}

.art-details h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1.3;
}

.art-details p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* в•ђв•ђв•ђ PHOTO GALLERY / MASONRY в•ђв•ђв•ђ */
.photo-gallery-section {
    padding: var(--section-padding);
    background-color: var(--bg-section);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-gold-strong);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: transform 120ms ease, box-shadow 120ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.15);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(44, 24, 16, 0.15);
}

.filter-btn:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 80ms;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.5s ease;
}

.masonry-item.hide {
    display: none !important;
}

/* Uniform sizing — no special span for nth-child */

.masonry-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 15, 8, 0.8);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.masonry-item:hover img {
    transform: scale(1.06);
    opacity: 0.7;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.masonry-item.hide {
    display: none;
}

/* в•ђв•ђв•ђ TIMELINE в•ђв•ђв•ђ */
.timeline-section {
    padding: var(--section-padding);
    background: var(--bg);
}

.timeline {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem 1rem 4rem 1rem;
    scroll-behavior: smooth;
    gap: 2rem;
    -webkit-overflow-scrolling: touch;
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.timeline::before {
    display: none;
}

.timeline-item {
    flex: 0 0 320px;
    scroll-snap-align: center;
    position: relative;
    width: auto;
    left: auto !important;
    text-align: left !important;
    padding: 0 !important;
}

.timeline-item::before {
    display: none;
}

.timeline-card {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.timeline-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
    flex: 1;
}

.timeline-img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    background-color: var(--bg-alt);
}

.timeline-card img {
    margin-top: 1.5rem;
    width: 100%;
    border-radius: 8px;
    height: 180px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        overflow-y: visible;
        overflow-x: hidden;
        scroll-snap-type: none;
        padding: 1rem 0;
    }

    .timeline-item {
        flex: auto;
        width: 100%;
    }
}

/* в•ђв•ђв•ђ VIDEO SECTION в•ђв•ђв•ђ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.video-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    cursor: pointer;
    background: var(--primary);
    transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.video-card .video-thumb {
    position: relative;
    overflow: hidden;
}

.video-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.video-card:hover img {
    transform: scale(1.04);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(196, 93, 62, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s var(--ease);
    box-shadow: 0 4px 20px rgba(196, 93, 62, 0.3);
}

.video-play-icon::after {
    content: '';
    border-left: 16px solid var(--primary);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

.video-card:hover .video-play-icon {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-info {
    padding: 1.3rem 1.2rem;
    color: #fff;
}

.video-card .video-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.video-card .video-info p {
    font-size: 0.8rem;
    color: #fff;
    font-family: var(--font-ui);
}

/* в•ђв•ђв•ђ VIDEO MODAL в•ђв•ђв•ђ */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-modal-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid var(--accent);
}

.video-modal .close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s var(--ease);
}

.video-modal .close-video:hover {
    transform: rotate(90deg);
}

/* в•ђв•ђв•ђ 3D PANORAMA в•ђв•ђв•ђ */
.panorama-viewer {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    cursor: grab;
    background: var(--primary);
}

.panorama-viewer:active {
    cursor: grabbing;
}

.panorama-image {
    height: 100%;
    position: absolute;
    top: 0;
    transition: none;
    will-change: left;
}

.panorama-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.panorama-controls button {
    background: rgba(30, 15, 8, 0.85);
    border: 1px solid rgba(196, 93, 62, 0.4);
    color: var(--accent);
    padding: 8px 18px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 120ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.panorama-controls button:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(196, 93, 62, 0.3);
}

.panorama-controls button:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 80ms;
}

.panorama-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    pointer-events: none;
    animation: panHintPulse 2.5s ease infinite;
}

@keyframes panHintPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.2;
    }
}

/* в•ђв•ђв•ђ ABOUT PAGE в•ђв•ђв•ђ */
.about-hero {
    background: var(--primary);
    padding: 5rem 5%;
    text-align: center;
    position: relative;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: 3.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.about-hero p {
    color: #fff;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.about-block.reverse {
    grid-template-columns: 1.4fr 1fr;
}

.about-block img {
    width: 100%;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
}

.about-block-text h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-block-text p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.quote-block {
    background: var(--primary);
    padding: 2.5rem 3.5rem;
    text-align: center;
    position: relative;
    margin: 2.5rem 0;
}

.quote-block::before,
.quote-block::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.quote-block::before {
    left: 0;
}

.quote-block::after {
    right: 0;
}

.quote-block blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.quote-block cite {
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* в•ђв•ђв•ђ CONTACT PAGE в•ђв•ђв•ђ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--bg-card);
    padding: 2.8rem;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

#formSuccess {
    display: none;
    color: #4ade80;
    margin-top: 1rem;
    font-weight: 500;
}

.submit-spinner {
    margin-right: 8px;
}

.contact-item img {
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item .contact-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-item div h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.contact-item div p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-muted);
    font-size: 1rem;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.contact-form {
    background: var(--bg-card);
    padding: 2.8rem;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-light);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 160px;
    height: auto;
    resize: none;
    padding: 16px 20px;
    line-height: 1.6;
    overflow-y: hidden;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 0 4px rgba(196, 93, 62, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--accent);
    border: 1px solid rgba(196, 93, 62, 0.3);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-submit:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(196, 93, 62, 0.2);
}

.btn-submit:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

.map-container {
    margin-top: 3rem;
    border: 1px solid var(--border-gold);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* в•ђв•ђв•ђ PAGE HERO (inner pages) в•ђв•ђв•ђ */
.page-hero {
    background: var(--primary);
    padding: 7rem 5%;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: 3.4rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.page-hero p {
    color: #fff;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
}

/* в•ђв•ђв•ђ LIGHTBOX в•ђв•ђв•ђ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 12, 18, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-wrapper {
    position: relative;
    text-align: center;
    width: 90%;
    max-width: 1000px;
}

.lightbox-wrapper img {
    max-width: 100%;
    max-height: 78vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(196, 93, 62, 0.3);
    margin: 0 auto;
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: #fff;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
}



.lightbox-counter {
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-top: 0.8rem;
}

/* в•ђв•ђв•ђ PREVIEW CARDS (home) в•ђв•ђв•ђ */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.preview-card img {
    width: 100% !important;
    height: 250px;
    object-fit: cover;
    background-color: #f4f4f4;
    transition: transform 0.7s var(--ease);
}

.preview-card:hover img {
    transform: scale(1.04);
}

.preview-card-body {
    padding: 1.6rem 1.5rem;
}

.preview-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.preview-card-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ═══ FOOTER — Premium Museum Footer ═══ */
.museum-footer {
    background: #110804;
    background-image:
        radial-gradient(ellipse at 10% 10%, rgba(196, 93, 62, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 90%, rgba(196, 93, 62, 0.06) 0%, transparent 60%);
    color: #fff;
    position: relative;
    border-top: 1px solid rgba(196, 93, 62, 0.2);
}

/* Subtle film-grain texture for depth */
.museum-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.museum-footer>* {
    position: relative;
    z-index: 1;
}

.museum-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-light) 50%, var(--accent) 80%, transparent);
    opacity: 0.8;
    z-index: 2;
}

/* — Footer Inner (full width) — */
.footer-inner {
    padding: 6rem 6% 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 4rem;
}

/* — Brand Column — */
.footer-brand {
    padding-right: 2.5rem;
}

.footer-brand-heading {
    margin-bottom: 1.8rem;
}

.footer-brand-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(196, 93, 62, 0.15);
}

.footer-brand-sub {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 6px;
    font-weight: 500;
}

.footer-brand-desc {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.85;
    font-family: var(--font-body);
    margin-bottom: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* — Established Credential — */
.footer-established {
    margin-top: 1.8rem;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.85;
}

/* — Social Icons — */
.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 15, 8, 0.5);
    border: 1px solid rgba(196, 93, 62, 0.2);
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 120ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-social-link:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(196, 93, 62, 0.4);
}

.footer-social-link:active {
    transform: translateY(0) scale(0.93);
    transition-duration: 80ms;
}

/* — Column Headings — */
.footer-col h3 {
    font-family: var(--font-display);
    color: #FAF6F1;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(196, 93, 62, 0.4);
}

/* — Links List — */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 2px;
}

.footer-links li a {
    display: block;
    padding: 7px 0;
    color: #fff;
    font-size: 0.88rem;
    font-family: var(--font-body);
    text-decoration: none;
    transition: color 200ms ease, padding-left 200ms ease;
    position: relative;
}

.footer-links li a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 200ms ease;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 18px;
}

.footer-links li a:hover::before {
    width: 10px;
}

/* — Contact Items — */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(196, 93, 62, 0.15) 0%, rgba(196, 93, 62, 0.05) 100%);
    border: 1px solid rgba(196, 93, 62, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.footer-contact-item:hover .footer-contact-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(196, 93, 62, 0.25);
}

.footer-contact-item span,
.footer-contact-item a {
    color: #fff;
    font-size: 0.88rem;
    font-family: var(--font-body);
    line-height: 1.65;
    text-decoration: none;
    transition: color 200ms ease;
    word-break: break-word;
    padding-top: 1px;
}

.footer-contact-item a:hover {
    color: var(--accent);
}

/* — Hours Table — */
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: #fff;
}

.footer-hours-row span:first-child {
    font-weight: 500;
    color: #fff;
}

.footer-hours-row:last-child {
    border-bottom: none;
}

.footer-hours-time {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.footer-hours-closed .footer-hours-time {
    color: var(--accent);
    font-weight: 600;
}


/* — Ornamental Divider — */
.footer-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 6%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 93, 62, 0.25), transparent);
}

.footer-ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin: 0 1rem;
    opacity: 0.5;
    box-shadow: 0 0 12px rgba(196, 93, 62, 0.4);
}

/* — Footer Bottom Bar — */
.footer-bottom {
    border-top: none;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 1.5rem;
}

.footer-bottom-inner {
    padding: 1.6rem 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.76rem;
    color: #fff;
    font-family: var(--font-ui);
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    font-size: 0.72rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 200ms ease;
    padding: 4px 0;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-dot {
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.6rem;
}

.footer-back-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(196, 93, 62, 0.1);
    border: 1px solid rgba(196, 93, 62, 0.25);
    color: var(--accent);
    text-decoration: none;
    transition: transform 150ms ease, background 200ms ease, box-shadow 150ms ease, border-color 200ms ease, color 200ms ease;
    flex-shrink: 0;
}

.footer-back-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(196, 93, 62, 0.4);
}

.footer-back-top:active {
    transform: translateY(0) scale(0.93);
    transition-duration: 80ms;
}

/* — Footer Responsive — */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 2.5rem 5% 1.5rem;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
        align-items: start;
    }

    /* 1. Brand Column - Spans full width (2 cols) */
    .footer-grid>.footer-col:nth-child(1) {
        grid-column: span 2;
        text-align: center;
    }

    .footer-brand-heading {
        justify-content: center;
        margin-bottom: 0.8rem;
    }

    .footer-brand-desc {
        max-width: 400px;
        margin: 0 auto 1rem auto;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-social {
        justify-content: center;
        gap: 12px;
    }

    .footer-established {
        margin-top: 1rem;
    }

    /* 2. Links Column - Spans full width (2 cols) */
    .footer-grid>.footer-col:nth-child(2) {
        grid-column: span 2;
        text-align: center;
    }

    .footer-grid>.footer-col:nth-child(2) h3 {
        margin-bottom: 1.2rem;
        padding-bottom: 0.5rem;
        font-size: 1.1rem;
    }

    .footer-grid>.footer-col:nth-child(2) h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links li a {
        padding: 2px 0;
        font-size: 0.88rem;
    }

    .footer-links li a::before {
        display: none;
    }

    /* 3. Contact Column - Spans 1 col (left side) */
    .footer-grid>.footer-col:nth-child(3) {
        grid-column: span 1;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer-grid>.footer-col:nth-child(3) h3 {
        margin-bottom: 1.2rem;
        padding-bottom: 0.5rem;
        font-size: 1.05rem;
        width: 100%;
    }

    .footer-grid>.footer-col:nth-child(3) h3::after {
        left: 0;
        transform: none;
    }

    .footer-contact-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        width: 100%;
    }

    .footer-contact-item {
        display: grid;
        grid-template-columns: 28px 1fr;
        gap: 12px;
        align-items: center;
        text-align: left;
    }

    .footer-contact-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        margin-top: 0;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-contact-item span,
    .footer-contact-item a {
        font-size: 0.82rem;
        line-height: 1.4;
        word-break: normal;
        overflow-wrap: break-word;
        padding-top: 0;
    }

    /* 4. Hours Column - Spans 1 col (right side) */
    .footer-grid>.footer-col:nth-child(4) {
        grid-column: span 1;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer-grid>.footer-col:nth-child(4) h3 {
        margin-bottom: 1.2rem;
        padding-bottom: 0.5rem;
        font-size: 1.05rem;
        width: 100%;
    }

    .footer-grid>.footer-col:nth-child(4) h3::after {
        left: 0;
        transform: none;
    }

    .footer-hours {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        gap: 1.2rem;
    }

    .footer-hours-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        border-bottom: none;
        gap: 4px;
        width: 100%;
    }

    .footer-hours-row span:first-child {
        font-size: 0.78rem;
    }

    .footer-hours-time {
        font-size: 0.88rem;
    }


    /* Bottom Bar */
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1.2rem 5%;
    }

    .footer-back-top {
        display: none;
    }
}

/* в•ђв•ђв•ђ LOAD MORE BUTTON в•ђв•ђв•ђ */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    padding: 13px 40px;
    background: transparent;
    border: 1px solid rgba(196, 93, 62, 0.4);
    color: var(--accent-muted);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-load-more:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 24px rgba(196, 93, 62, 0.2);
}

.btn-load-more:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

/* в•ђв•ђв•ђ RESPONSIVE в•ђв•ђв•ђ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem 5%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* carousel-slide sizing handled by main carousel CSS */

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

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

@media (max-width: 900px) {

    /* masonry grid adapts natively via minmax */
    .about-preview {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-block {
        grid-template-columns: 1fr;
    }

    .about-block.reverse {
        grid-template-columns: 1fr;
    }

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

    /* removed .timeline offsets as we now use horizontal layout natively */
}

@media (max-width: 768px) {
    .burger {
        display: flex;
        margin-left: auto;
    }

    .nav-center {
        position: fixed;
        top: 0;
        right: 0;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
        background: var(--primary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transform: translate3d(110%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.38s;
        box-shadow: -5px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-left: 1px solid rgba(196, 93, 62, 0.15);
        will-change: transform;
    }

    .nav-center.open,
    .nav-open .nav-center {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: transparent;
        padding: 0;
    }

    .nav-links li a {
        padding: 1rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.82rem;
    color: #fff;
        border-radius: 0;
    }

    .nav-links li a:hover {
        color: var(--accent);
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-links li a.active {
        color: var(--accent);
        background: rgba(196, 93, 62, 0.08);
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 2rem;
    }

    /* removed .hero-content h1 font-size adjustment */
    .hero {
        height: 100vh;
        min-height: 550px;
        background-attachment: scroll;
    }

    .hero::before {
        inset: 1rem;
        border-color: rgba(196, 93, 62, 0.06);
    }

    .hero-content {
        margin-top: 0;
        padding: 0 1.2rem;
    }

    .hero-content .hero-eyebrow,
    .hero-content .hero-subtitle {
        font-size: 0.68rem;
        letter-spacing: 5px;
        margin-bottom: 1.2rem;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 7vw, 3.2rem);
        line-height: 1.15;
        letter-spacing: 1px;
    }

    .hero-content .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2.2rem;
        line-height: 1.75;
    }

    .hero-actions {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
        margin-bottom: 3.2rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        padding: 16px 32px;
        justify-content: center;
    }

    .hero-scroll-indicator {
        bottom: 0.65rem;
    }

    .hero-particle {
        display: none;
    }

    section {
        padding: 4.5rem 5%;
    }

    .section-ornament h2 {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .carousel-slide {
        min-width: 100%;
    }

    .carousel-container {
        padding: 0 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .panorama-viewer {
        height: 300px;
    }

    .quote-block {
        padding: 2rem 1.5rem;
    }

    .quote-block blockquote {
        font-size: 1.15rem;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {

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

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

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



/* в•ђв•ђв•ђ Scrollbar Styling в•ђв•ђв•ђ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(196, 93, 62, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 93, 62, 0.5);
}

/* Duplicate body overflow-x removed — already set at line ~93 and in mobile media query */


/* в•ђв•ђв•ђ LIGHTBOX в•ђв•ђв•ђ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.8rem;
    line-height: 1;
    padding: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, background 150ms ease, box-shadow 150ms ease;
}

.lightbox-close:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(196, 93, 62, 0.35);
}

.lightbox-close:active {
    transform: scale(0.92);
    transition-duration: 80ms;
}

.lightbox-nav {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.8rem;
    line-height: 1;
    padding: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, background 150ms ease, box-shadow 150ms ease;
}

.lightbox-nav:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(196, 93, 62, 0.35);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.92);
    transition-duration: 80ms;
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-caption {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    z-index: 10000;
}

.lightbox-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    z-index: 10000;
}

/* в•ђв•ђв•ђ NEWS CARDS в•ђв•ђв•ђ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.news-card .news-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .news-body {
    padding: 1.2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.news-card .news-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.news-card .news-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

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

/* Content loaders */
#dynamic-news-grid {
    position: relative;
    min-height: 200px;
}

/* Page loader */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader,
.photo-loader,
.video-loader,
.news-loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    color: #000;
    background:
        linear-gradient(90deg, currentColor 2px, #0000 0 calc(100% - 2px), currentColor 0) center/100% 14px,
        linear-gradient(0deg, currentColor 2px, #0000 0 calc(100% - 2px), currentColor 0) center/14px 100%,
        linear-gradient(currentColor 0 0) center/100% 2px,
        linear-gradient(currentColor 0 0) center/2px 100%;
    background-repeat: no-repeat;
    animation: l6 4s infinite linear;
}

.video-loader {
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}

.loader::before,
.loader::after,
.photo-loader::before,
.photo-loader::after,
.video-loader::before,
.video-loader::after,
.news-loader::before,
.news-loader::after {
    content: "";
    grid-area: 1/1;
    background: inherit;
    transform-origin: inherit;
    animation: inherit;
}

.loader::after,
.photo-loader::after,
.video-loader::after,
.news-loader::after {
    animation-duration: 2s;
}

@keyframes l6 {
    100% {
        transform: rotate(1turn);
    }
}

/* в•ђв•ђв•ђ 404 ERROR PAGE в•ђв•ђв•ђ */
.error-page {
    min-height: 100vh;
    background: #1E0F08;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-page__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 520px;
}

/* Constrain 404 Lottie animation */
.error-page__content dotlottie-player {
    width: 280px !important;
    height: 280px !important;
    max-width: 280px;
    max-height: 280px;
}

.error-page__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0.5rem 0 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.error-page__subtitle {
    font-family: 'Inter', 'system-ui', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #9aa4b2;
    margin: 0;
    line-height: 1.7;
    max-width: 400px;
}

.error-page__btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 14px 44px;
    background: transparent;
    color: #C45D3E;
    border: 1px solid rgba(200, 169, 106, 0.45);
    text-decoration: none;
    font-family: 'Inter', 'system-ui', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.error-page__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #C45D3E;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.error-page__btn:hover {
    color: #1E0F08;
    border-color: #C45D3E;
}

.error-page__btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 600px) {
    .error-page__content dotlottie-player {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px;
        max-height: 200px;
    }

    .error-page__title {
        font-size: 1.8rem;
    }

    .error-page__subtitle {
        font-size: 0.85rem;
    }
}

/* Footer styles now handled by main footer CSS */

/* Mobile Optimizations */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    h2 {
        font-size: clamp(1.4rem, 4vw, 2.2rem);
    }

    h3 {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
    }

    h4 {
        font-size: clamp(0.9rem, 3vw, 1.15rem);
    }

    .burger {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
        touch-action: manipulation;
        border: none;
    }

    .lang-dropdown-btn {
        min-width: 48px;
        min-height: 48px;
    }

    * {
        box-sizing: border-box;
    }
}

/* в•ђв•ђв•ђ PREMIUM MUSEUM CARDS в•ђв•ђв•ђ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

a.card {
    text-decoration: none;
    display: block;
}

.card:nth-child(1) {
    transition-delay: 0.1s;
}

.card:nth-child(2) {
    transition-delay: 0.2s;
}

.card:nth-child(3) {
    transition-delay: 0.3s;
}

.card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card, #fff);
    box-shadow: var(--shadow, 0 6px 28px rgba(44, 24, 16, 0.08));
    /* PERF: explicit instead of 'all' */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 400px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card img {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    color: #fff;
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

/* Optional gold border on hover for premium feel */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.card:hover::after {
    border-color: var(--accent, #C45D3E);
}

.card-overlay h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.card-overlay p {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Book Cards Specific Styles */
.cards-grid.book-cards {
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.card.book-card {
    height: 320px;
}

.card.book-card:hover {
    transform: translateY(-8px) rotate(1deg);
    /* Subtle rotate for books */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card.book-card .card-overlay h3 {
    font-size: 1.4rem;
}

.card.book-card .card-overlay p {
    font-size: 0.85rem;
}

.book-date {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--accent, #C45D3E);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 992px) {

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

@media (max-width: 768px) {

    .cards-grid,
    .cards-grid.book-cards {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .card {
        height: 350px;
    }

    .card.book-card {
        height: 300px;
    }
}

/* NEW MOBILE MENU BACKDROP & CAROUSEL & ABOUT CARDS */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    /* PERF: explicit instead of 'all' */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Duplicate menu-open scroll lock removed — handled at line ~85 and in mobile perf block */


/* Bug 6: Clean dropdown without flicker вЂ” use display:none/flex, no conflicting rules */
/* Home carousel cards — handled by main carousel rules */
.about-block img,
.about-photo-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    display: block;
    padding: 0;
    margin: 0;
}

.about-photo-card img {
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 0.6s ease;
}

.about-photo-card:hover img {
    transform: scale(1.02);
}

.about-photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.about-photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    pointer-events: none;
    transition: border-color 0.4s ease;
    z-index: 5;
}

.about-photo-card:hover::after {
    border-color: #C45D3E;
}

.about-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2), transparent);
    color: white;
    padding: 25px 15px 15px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 2;
    margin: 0;
    transition: opacity 0.3s ease, padding 0.3s ease;
    opacity: 0.9;
}

.about-photo-card:hover .about-caption {
    opacity: 1;
    padding-bottom: 20px;
}

/* (Menu scroll fix moved above) */

/* Carousel styles now handled by main carousel rules */

/* Bug 2: Search button & lang dropdown spacing */
.nav-search-btn {
    padding: 8px;
    margin-left: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
}

.lang-dropdown {
    margin-right: 4px;
    position: relative;
    z-index: 11;
}

@media (max-width: 768px) {

    .nav-center .lang-dropdown,
    .nav-center .nav-search-btn {
        margin: 1rem 0 0 0 !important;
        align-self: flex-start;
    }

    .nav-center .lang-dropdown {
        order: 10;
    }

    .nav-center .nav-search-btn {
        order: 11;
    }

    .nav-center .nav-search-btn {
        color: #fff;
    }

    .nav-center .nav-search-btn:hover {
        color: var(--accent);
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Bug 6: Dropdown controlled by JS click via .lang-open class */
.lang-dropdown.lang-open .lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid #C45D3E;
    background: #fff;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background: #FAF6F1;
    border-color: #C45D3E;
}

.pagination button.active {
    background: #2C1810;
    color: #fff;
    border-color: #2C1810;
    font-weight: 700;
}

/* === Mobile Dropdown Fix === */
@media (max-width: 768px) {
    .lang-dropdown-content {
        position: absolute !important;
        right: auto !important;
        left: 0 !important;
        top: calc(100% + 10px) !important;
        z-index: 1005 !important;
        min-width: 140px;
    }
}

.contact-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.contact-social-links .social-icon {
    font-size: 1.5rem;
}

/* Tour Overlay & Hints */
#tour-container {
    position: relative;
}

.tour-controls-wrapper {
    text-align: center;
    margin-top: 12px;
}

.tour-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 77, 83, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
}

.tour-overlay .btn-submit {
    z-index: 2;
    width: auto;
    padding: 15px 30px;
    border-radius: 30px;
}

.tour-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #008B95, #006b73);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 139, 149, 0.25);
    transition: all 0.25s ease;
}

.tour-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 139, 149, 0.35);
}

.tour-hint {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #666;
    font-family: var(--font-body);
}

/* A11Y Tap Targets */
button,
.btn-primary,
.btn-secondary,
.lang-dropdown-btn,
.carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-links a {
        min-height: 44px;
        padding: 0.85rem 0.5rem;
        width: 100%;
    }
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    transition: top 0.2s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
    }

    .carousel-track {
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM 2025 MUSEUM DESIGN POLISH
   ═══════════════════════════════════════════════════════════ */

/* ── Navbar background (using glassmorphism from main rule) ── */

/* ── Section heading letter-spacing refinement ── */
.section-ornament h2 {
    letter-spacing: 1px;
}

/* ── Premium Button Enhancements ── */
.btn-primary {
    border-radius: var(--radius);
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    border-radius: var(--radius);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-gold);
}

.btn-submit {
    border-radius: var(--radius);
    padding: 16px;
}

.btn-submit:hover {
    box-shadow: var(--shadow-gold);
}

.btn-load-more {
    border-radius: 50px;
}

.btn-load-more:hover {
    box-shadow: var(--shadow-gold);
}

/* ── Contact & Form Card Radius ── */
.contact-info-card {
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.contact-form {
    border-radius: var(--radius-lg);
    padding: 3rem;
}

/* ── Form Input Radius ── */
.form-group input,
.form-group textarea {
    border-radius: var(--radius);
    padding: 15px 18px;
}

/* ── Map Container Radius ── */
.map-container {
    border-radius: var(--radius-lg);
}

/* ── Gallery Filter Buttons → Pill shape ── */
.filter-btn {
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
}

/* ── Social Link Circles ── */
.social-link {
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

/* ── Video Card Radius ── */
.video-card {
    border-radius: var(--radius-lg);
}

/* ── Panorama Viewer Radius ── */
.panorama-viewer {
    border-radius: var(--radius-lg);
}

/* ── Timeline Card Radius ── */
.timeline-card {
    border-radius: var(--radius-lg);
}

/* ── Quote Block Radius ── */
.quote-block {
    border-radius: var(--radius-lg);
}

/* ── News Card Radius ── */
.news-card {
    border-radius: var(--radius-lg);
}

/* ── Preview Card Radius ── */
.preview-card {
    border-radius: var(--radius-lg);
}

/* ── Masonry Item Radius ── */
.masonry-item {
    border-radius: var(--radius);
}

/* ── Card hover shadow warmup ── */
.card:hover {
    box-shadow: 0 24px 48px rgba(44, 24, 16, 0.18);
}

/* ── Carousel button radius (handled by main carousel CSS) ── */

/* ── Carousel dot shape (handled by main carousel CSS) ── */

/* ── Pagination pill style ── */
.pagination button {
    border-radius: 50%;
    width: 42px;
    height: 42px;
}

/* ── Loader background warmup ── */
#loader {
    background: #FAF6F1;
}

/* ── Improved heading spacing ── */
.section-ornament {
    margin-bottom: 4.5rem;
}

/* ── Lang dropdown radius ── */
.lang-dropdown-content {
    border-radius: 14px;
}

.lang-dropdown-btn {
    border-radius: 10px;
}

/* ── Lightbox refinement ── */
#lightbox-img {
    border-radius: var(--radius);
}

.lightbox-caption {
    border-radius: 50px;
}

/* ── Subtle body text improvements ── */
.about-preview-text p,
.about-block-text p {
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ── Better card image aspect ratio ── */
.img-wrapper {
    border-radius: var(--radius);
}

/* ── Stats divider warmth ── */
.stats-section::before,
.stats-section::after {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Footer gold line (handled by main footer CSS) ── */

/* ── Premium hover state for masonry items ── */
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ── Hero desc readability (handled by clamp in main hero rule) ── */

/* ── Contact icon radius ── */
.contact-item .contact-icon {
    border-radius: var(--radius-sm);
}

/* ── Improved art details heading ── */
.art-details h3 {
    font-size: 1.6rem;
}

/* ── Gallery grid gap ── */
.gallery-grid {
    gap: 3rem;
}

/* ── Footer heading size (handled by main footer CSS) ── */

/* ── About hero bottom border warmth ── */
.about-hero::after,
.page-hero::after {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Carousel section gold line ── */
.carousel-section::before {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── News loader update ── */
.news-loader {
    border-top-color: var(--primary);
}

/* ── Selection color for warm palette ── */
::selection {
    background: var(--accent);
    color: #fff;
}

/* ════════════ ABOUT PAGE REDESIGN ════════════ */
.ab-hero {
    position: relative;
    padding: 14rem 5% 8rem;
    background: url('https://res.cloudinary.com/dsdausei4/image/upload/v1773491157/%D1%84%D0%B0%D1%80%D0%B0%D0%B1%D0%B81_mihr2s.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 65vh;
    overflow: hidden;
    margin-top: -80px;
    /* Counteract fixed navbar */
}

.ab-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(30, 15, 8, 0.6), rgba(44, 24, 16, 0.95));
}

.ab-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: heroFadeIn 1s var(--ease) forwards;
}

.ab-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    color: #FAF6F1;
    margin-bottom: 1.25rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ab-hero-subtitle {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Timeline Layout */
.ab-timeline-section {
    padding: var(--section-padding);
    background: var(--bg);
}

.ab-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
    border-left: 2px solid rgba(196, 93, 62, 0.3);
}

.ab-timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.ab-timeline-item:last-child {
    margin-bottom: 0;
}

.ab-timeline-dot {
    position: absolute;
    left: -59px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(196, 93, 62, 0.2);
}

.ab-timeline-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.ab-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--border-gold);
}

.ab-timeline-date {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 20px;
    margin-bottom: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ab-timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.ab-timeline-content p {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
}

.ab-timeline-content p:last-child {
    margin-bottom: 0;
}

/* Quote Block */
.ab-quote-section {
    padding: 7rem 5%;
    background: var(--primary);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.ab-quote-section::before {
    content: '\201C';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 30rem;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    line-height: 1;
}

.ab-quote-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.ab-quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: #FAF6F1;
    line-height: 1.45;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

.ab-quote-author {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
}

.ab-quote-author::before {
    content: "— ";
    letter-spacing: normal;
}

/* legacy split section */
.ab-split-section {
    padding: var(--section-padding);
    background: var(--bg-section);
}

.ab-split-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ab-split-container.reverse {
    direction: rtl;
}

.ab-split-container.reverse>* {
    direction: ltr;
    /* Reset direction */
}

.ab-split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    background: var(--bg-card);
    /* Fallback */
}

.ab-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.ab-split-image:hover img {
    transform: scale(1.03);
}

.ab-split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.ab-split-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    position: relative;
    padding-bottom: 1.25rem;
}

.ab-split-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.ab-split-text p {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1.12rem;
}

.ab-split-text p:last-child {
    margin-bottom: 0;
}

/* Legacy Summary Grid */
.ab-legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: var(--max-width);
    margin: 2rem auto 0 auto;
}

/* About page: legacy section redesign (prevents horizontal overflow) */
.ab-split-container.pattern-bg {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.52) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 2.2vw, 2.2rem);
    box-shadow: var(--shadow-sm);
}

.ab-split-container.pattern-bg .ab-split-text {
    max-width: 100%;
}

.ab-split-container.pattern-bg .ab-split-text h2 {
    margin-bottom: 1.15rem;
}

.ab-split-container.pattern-bg .ab-split-text p {
    max-width: 100%;
}

.ab-split-container.pattern-bg .ab-legacy-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ab-legacy-box {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.ab-legacy-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: var(--border-gold);
}

.ab-legacy-box i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(196, 93, 62, 0.2));
}

.ab-legacy-box h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.ab-legacy-box p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .ab-split-container {
        gap: 3rem;
    }

    .ab-split-container.pattern-bg .ab-legacy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ab-split-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ab-split-image {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .ab-timeline {
        padding-left: 30px;
    }

    .ab-timeline-dot {
        left: -39px;
    }

    .ab-timeline-content {
        padding: 1.8rem;
    }

    .ab-hero-title {
        font-size: 2.6rem;
        letter-spacing: -0.01em;
    }

    .ab-timeline-content h3 {
        font-size: 1.5rem;
    }

    .ab-split-text h2 {
        font-size: 2rem;
    }

    .ab-split-container.pattern-bg {
        padding: 1.1rem;
    }

    .ab-split-container.pattern-bg .ab-split-text p {
        max-width: 100%;
    }

    .ab-split-container.pattern-bg .ab-legacy-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   MICRO-INTERACTIONS & VISUAL POLISH
   Subtle hover animations, focus states, and premium feel.
   Scoped to NOT alter any layouts — purely additive.
   ═══════════════════════════════════════════════════════════ */

/* ── Smooth global anchor underline animation ── */
a:not(.btn-primary):not(.btn-secondary):not(.btn-hero-primary):not(.btn-hero-secondary):not(.nav-links a):not(.footer-links a):not(.card):not(.footer-social-link):not(.footer-back-top):not(.footer-bottom-links a):not(.nav-search-btn) {
    transition: color 0.3s var(--ease);
}

/* ── Stat counter items — scale + glow on hover ── */
.stat-item {
    transition: transform 0.4s var(--ease);
    border-radius: var(--radius);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 25px rgba(196, 93, 62, 0.35);
    transition: text-shadow 0.4s var(--ease);
}

/* ── News card image zoom on hover ── */
.news-card .news-thumb {
    transition: transform 0.6s var(--ease);
}

.news-card:hover .news-thumb {
    transform: scale(1.04);
}

/* ── News card — subtle accent border reveal ── */
.news-card {
    border: 1px solid transparent;
}

.news-card:hover {
    border-color: var(--border-gold);
}

/* ── About preview image — gentle float ── */
.about-preview-img img {
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.about-preview-img:hover img {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(44, 24, 16, 0.15);
}

/* ── btn-secondary — subtle inner glow on hover ── */
.btn-secondary:hover {
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── btn-primary — active press feedback ── */
.btn-primary:active,
.btn-secondary:active,
.btn-hero-primary:active,
.btn-hero-secondary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* ── Timeline card — left accent border reveal ── */
.timeline-card {
    border-left: 3px solid transparent;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.timeline-card:hover {
    border-left-color: var(--accent);
}

/* ── Form inputs — warm focus ring ── */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 93, 62, 0.12);
    outline: none;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* ── Filter button — smooth active state transition ── */
.filter-btn {
    transition: all 0.3s var(--ease);
}

.filter-btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

/* ── Preview card — border accent on hover ── */
.preview-card {
    border: 1px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.preview-card:hover {
    border-color: var(--border-gold);
}

/* ── Preview card body h3 — color shift on hover ── */
.preview-card:hover .preview-card-body h3 {
    color: var(--accent);
    transition: color 0.3s var(--ease);
}

/* ── Masonry item — smoother overlay entrance ── */
/* PERF: removed backdrop-filter from masonry hover — triggers repaint per card */
.item-overlay {
    transition: opacity 0.45s var(--ease);
}

/* ── Section ornament divider — subtle width animation ── */
.ornament-divider {
    transition: width 0.6s var(--ease);
}

.section-ornament:hover .ornament-divider {
    width: 80px;
}

/* ── Ornament diamond — gentle spin on section hover ── */
.ornament-diamond {
    transition: transform 0.6s var(--ease);
}

.section-ornament:hover .ornament-diamond {
    transform: rotate(135deg);
}

/* ── Video card — hover lift + play icon scale ── */
.video-card {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ── Quote block — subtle border glow on hover ── */
.quote-block {
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.quote-block:hover {
    border-color: var(--border-gold-strong);
    box-shadow: 0 0 30px rgba(196, 93, 62, 0.08);
}

/* ── Contact info card — lift on hover ── */
.contact-info-card {
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ── Load more button — icon nudge ── */
.btn-load-more {
    transition: all 0.35s var(--ease);
}

.btn-load-more:hover {
    transform: translateY(-2px);
}

.btn-load-more:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

/* ── Scroll indicator — enhanced pulse ── */
.hero-scroll-indicator span {
    box-shadow: 0 0 8px rgba(196, 93, 62, 0.3);
}

/* ── Global keyboard focus ring (a11y) ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Page hero breadcrumb-style subtitle ── */
.page-hero p {
    transition: opacity 0.5s var(--ease);
}

/* ── Pagination button feedback ── */
.pagination button {
    transition: all 0.3s var(--ease);
}

.pagination button:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.12);
}

.pagination button:active {
    transform: translateY(0) scale(0.95);
    transition-duration: 0.1s;
}

/* ── Image lazy-load fade-in ── */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* ── Smooth scroll for the entire page ── */
html {
    scroll-behavior: smooth;
}

/* ── Guard: respect user motion preferences ── */
@media (prefers-reduced-motion: reduce) {

    /* Kill all transitions globally */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Disable scroll animations */
    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Disable hero zoom/parallax */
    .hero-bg {
        animation: none !important;
    }

    /* Disable hero entrance animation */
    .hero-content,
    .hero-eyebrow,
    .hero-content h1,
    .hero-desc,
    .hero-actions {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    /* Disable hero particles */
    .hero-particle {
        display: none !important;
    }

    /* Disable hover transforms on interactive elements */
    .stat-item:hover,
    .about-preview-img:hover img,
    .news-card:hover .news-thumb,
    .timeline-card:hover,
    .video-card:hover,
    .contact-info-card:hover,
    .preview-card:hover .preview-card-body h3,
    .section-ornament:hover .ornament-divider,
    .section-ornament:hover .ornament-diamond,
    .quote-block:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }

    /* Disable button hover scale/lift */
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-submit:hover,
    .btn-load-more:hover,
    .btn-hero-primary:hover,
    .btn-hero-secondary:hover,
    .filter-btn:hover,
    .carousel-btn:hover,
    .footer-back-top:hover,
    .footer-social-link:hover,
    .lightbox-close:hover,
    .lightbox-nav:hover,
    .panorama-controls button:hover,
    .pagination button:hover {
        transform: none !important;
    }

    /* Disable carousel image zoom on hover */
    .carousel-slide:hover img,
    .art-piece:hover .img-wrapper img,
    .masonry-item:hover img,
    .video-card:hover img,
    .preview-card:hover img {
        transform: none !important;
    }

    /* Disable hero scroll indicator bounce */
    .hero-scroll-indicator {
        animation: none !important;
    }

    .hero-scroll-dot {
        animation: none !important;
    }

    /* Keep smooth scroll disabled */
    html {
        scroll-behavior: auto;
    }

    /* Lazy-loaded images should appear immediately */
    img[loading="lazy"] {
        opacity: 1 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   FINAL MICRO-POLISH 
   ═══════════════════════════════════════════════════════════ */

/* 1. Navbar padding fix for 100% scale in Kazakh on laptops */
@media (max-width: 1300px) {
    .nav-links li a {
        padding: 0.5rem 0.6rem;
        font-size: 0.68rem;
        letter-spacing: 0.5px;
    }

    .navbar {
        padding: 0 1.5rem;
    }

    .nav-search-btn {
        margin-left: 0;
    }
}

@media (max-width: 1100px) {
    .nav-links li a {
        padding: 0.5rem 0.4rem;
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }
}

/* 2. Unified Gallery Filter Button shadows & transitions */
.filter-btn {
    transition: all 0.3s var(--ease);
}

.filter-btn.active,
.filter-btn:hover {
    box-shadow: 0 4px 15px rgba(196, 93, 62, 0.25);
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 3. Typography Readability Polish (Dense text blocks) */
p,
.about-block-text p,
.hero-desc,
.slide-caption {
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   CRITICAL MOBILE PERFORMANCE OPTIMIZATIONS (v3.0)
   Fixes: scroll lag, 60fps target, compositor-only animations
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* 1. ELIMINATE ALL backdrop-filter on mobile (main cause of scroll lag) */
    .navbar, .navbar.scrolled, .nav-overlay, .lang-dropdown-content, 
    .tour-overlay, .btn-hero-secondary, .card, .about-photo-card,
    .carousel-btn, .lightbox, .item-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Solid backgrounds instead of blur */
    .navbar {
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid rgba(44, 24, 16, 0.1);
    }
    
    .navbar.scrolled {
        background: rgba(255, 255, 255, 1) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    }
    
    .nav-overlay, .tour-overlay {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .lang-dropdown-content {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    .carousel-btn {
        background: rgba(0, 0, 0, 0.4) !important;
    }

    /* 2. SIMPLIFY box-shadow on mobile (smaller blur radius = less paint) */
    .card, .about-photo-card, .btn-hero-primary, .btn-secondary, 
    .btn-hero-secondary, .filter-btn, .carousel-btn {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 3. DISABLE heavy continuous animations */
    .hero-bg {
        animation: none !important;
        transform: scale(1.02) !important;
    }
    
    /* Disable floating particles on mobile */
    .hero-particle,
    .hero-particle--1,
    .hero-particle--2,
    .hero-particle--3 {
        display: none !important;
    }
    
    /* 4. Simplified hero overlay — single gradient instead of 3 stacked */
    .hero-overlay {
        background: linear-gradient(180deg, 
            rgba(15, 8, 4, 0.7) 0%, 
            rgba(15, 8, 4, 0.4) 40%, 
            rgba(15, 8, 4, 0.8) 100%) !important;
    }

    /* 5. Scroll optimization — CRITICAL fixes */
    html {
        scroll-behavior: auto; /* Disable smooth scroll on mobile (causes lag) */
    }
    
    html, body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: none;
        overflow-x: clip;
        max-width: 100vw;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
        touch-action: none;
    }
    
    section, .container, .cards-grid, .gallery-grid, .museum-footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    img, video, iframe {
        max-width: 100% !important;
        height: auto;
    }

    /* 6. GPU promotion for animated elements */
    .carousel-track {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
    
    .nav-overlay {
        will-change: opacity;
    }

    /* 7. touch-action optimization */
    a, button, .card, .btn-primary, .btn-hero-primary, 
    .btn-secondary, .filter-btn, .carousel-btn, .lang-dropdown-btn {
        touch-action: manipulation;
    }
    
    /* 8. Mobile menu swipe — allow both axes for native-feel gesture */
    .nav-center {
        overscroll-behavior: contain;
        touch-action: auto; /* JS handles preventDefault selectively */
        -webkit-overflow-scrolling: touch;
    }
    
    /* 9. SIMPLIFY card/image hover transitions on mobile */
    /* No hover on mobile, but transitions still cost during scroll compositing */
    .masonry-item,
    .preview-card,
    .news-card,
    .video-card,
    .timeline-card,
    .card,
    .carousel-slide,
    .ab-legacy-box,
    .ab-timeline-content,
    .contact-info-card {
        transition: none !important;
    }
    
    /* Disable image zoom transitions (no hover on touch anyway) */
    .masonry-item img,
    .preview-card img,
    .carousel-slide img,
    .card img,
    .video-card img,
    .ab-split-image img,
    .about-preview-img img,
    .img-wrapper img {
        transition: none !important;
    }
    
    /* 10. content-visibility: skip rendering of off-screen sections */
    section,
    .carousel-section,
    .stats-section,
    .photo-gallery-section,
    .museum-footer,
    .ab-quote-section,
    .ab-split-section,
    .ab-timeline-section {
        content-visibility: auto;
        contain-intrinsic-size: auto 600px;
    }
    
    /* 11. CSS containment on repeating card grids — isolates repaints */
    .masonry-item,
    .preview-card,
    .news-card,
    .card,
    .carousel-slide {
        contain: layout style paint;
    }
    
    /* Ensure minimum 44px touch targets */
    button:not(.btn-primary):not(.btn-secondary):not(.btn-submit), 
    .filter-btn, .carousel-btn, .footer-social-link, 
    .lang-btn, .pagination button, .burger {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent iOS input zoom */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* 9. Optimized fade-in animations (no blur/shadow) */
    .fade-in, .fade-in-left, .fade-in-right, .scale-in {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        will-change: opacity, transform;
    }
    
    .fade-in.visible, .scale-in.visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .fade-in-left.visible {
        transform: translate3d(0, 0, 0);
    }
    
    .fade-in-right.visible {
        transform: translate3d(0, 0, 0);
    }
    
    /* 10. GPU acceleration for cards */
    .card, .masonry-item, .carousel-slide {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
    
    /* 11. Layout shift prevention */
    .img-wrapper, .photo-card, .video-card-inner {
        min-height: 200px;
        background-color: var(--border-light, #f0ebd8);
    }
}

/* Accessibility contrast and mobile readability fixes */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.logo-subtitle {
    color: var(--primary-light);
    font-weight: 600;
}

.nav-links li a,
.nav-search-btn {
    color: var(--primary);
}

.hero-overlay {
    background:
        linear-gradient(180deg,
            rgba(15, 8, 4, 0.82) 0%,
            rgba(15, 8, 4, 0.74) 24%,
            rgba(15, 8, 4, 0.68) 50%,
            rgba(15, 8, 4, 0.78) 72%,
            rgba(15, 8, 4, 0.94) 100%),
        radial-gradient(circle at 50% 38%, rgba(15, 8, 4, 0.12) 0%, rgba(15, 8, 4, 0.58) 58%, rgba(15, 8, 4, 0.86) 100%),
        linear-gradient(180deg, rgba(120, 60, 20, 0.12) 0%, rgba(20, 10, 5, 0.04) 46%, rgba(100, 50, 15, 0.14) 100%);
}

.hero-content .hero-eyebrow,
.hero-content .hero-subtitle,
.hero-content .hero-desc {
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(15, 8, 4, 0.72);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-hero-secondary:hover {
    background: rgba(15, 8, 4, 0.88);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
}

.stat-label,
.carousel-section .section-ornament p,
.video-card .video-info h3,
.video-card .video-info p,
.about-hero p,
.page-hero p,
.ab-hero-subtitle {
    color: #fff;
}

.panorama-viewer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 8, 4, 0.38) 0%, rgba(15, 8, 4, 0.14) 40%, rgba(15, 8, 4, 0.58) 100%);
    z-index: 1;
    pointer-events: none;
}

.panorama-image {
    z-index: 0;
}

.panorama-controls {
    z-index: 5;
}

.panorama-controls button {
    color: #fff;
    background: rgba(15, 8, 4, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
}

.panorama-hint {
    color: #fff;
    background: rgba(15, 8, 4, 0.62);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    line-height: 1.4;
    max-width: calc(100% - 2rem);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    z-index: 5;
}

.ab-hero::before {
    background: linear-gradient(rgba(30, 15, 8, 0.72), rgba(44, 24, 16, 0.96));
}

.museum-footer {
    background: #111827;
    background-image:
        radial-gradient(ellipse at 10% 10%, rgba(196, 93, 62, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 90%, rgba(196, 93, 62, 0.08) 0%, transparent 60%);
}

.footer-brand-sub,
.footer-brand-desc,
.footer-established,
.footer-links li a,
.footer-contact-item span,
.footer-contact-item a,
.footer-hours-row,
.footer-hours-row span:first-child,
.footer-hours-time,
.footer-copyright,
.footer-bottom-links a,
.footer-social-link,
.footer-back-top {
    color: #fff;
}

.footer-brand-sub {
    font-weight: 600;
}

.footer-established {
    opacity: 1;
}

.footer-dot {
    color: rgba(255, 255, 255, 0.78);
}

.footer-back-top {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.footer-hours-closed .footer-hours-time {
    color: #ffe0d5;
}

@media (max-width: 768px) {
    .nav-links li a {
        padding: 1rem 0.75rem;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        color: #fff;
    }

    .nav-links li a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-links li a.active {
        color: #fff;
        background: rgba(196, 93, 62, 0.22);
    }

    .nav-center .nav-search-btn {
        color: #fff;
    }

    .hero-content .hero-desc {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-overlay {
        background: rgba(15, 8, 4, 0.88) !important;
    }
}
