/* HEROIC FONT IMPORTS + BENGALI SUPPORT */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700;900&family=Montserrat:wght@400;500;600;700;800;900&family=Playfair+Display:wght@400;700;900&family=Noto+Sans+Bengali:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* SWAPPED COLOR THEME: BLACK → RED, RED → WHITE */
    --primary-red: #DC143C; /* Where black was, now red */
    --crimson-dark: #8B0000; /* Darker red for depth */
    --crimson-light: #FF6B6B; /* Lighter red for accents */
    
    --pure-white: #FFFFFF; /* Where red was, now white */
    --off-white: #FAFAFA; /* Light background */
    --cream-white: #F8F8F8; /* Subtle white variation */
    
    /* SUPPORT COLORS */
    --charcoal: #2C3E50; /* Main text should be dark for readability */
    --text-dark: #2C3E50; /* Readable dark text for content */
    --text-light: #34495E; /* Lighter readable text */
    --off-white: var(--pure-white); /* Background now white */
    --dark-charcoal: var(--crimson-dark);
    --dark-charcoal-light: var(--crimson-light);
    
    /* GLASS EFFECTS WITH NEW COLORS */
    --glass-bg: rgba(220, 20, 60, 0.1);
    --glass-border: rgba(220, 20, 60, 0.2);
    
    /* TIMELINE COLORS */
    --antique-bronze: #CD7F32;

    /* HEROIC FONT VARIABLES */
    --font-heroic: 'Cinzel Decorative', 'Cinzel', serif;
    --font-display: 'Playfair Display', 'Cinzel', serif;
    --font-elegant: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-bengali: 'Noto Sans Bengali', 'SolaimanLipi', 'Kalpurush', Arial, sans-serif;
    --bs-font-serif: var(--font-heroic);
    --bs-font-sans-serif: var(--font-body);

    /* SWAPPED PALETTE */
    --dignified-crimson: var(--primary-red); /* Timeline elements use red */
    --revolutionary-steel: var(--off-white); /* Secondary elements white */
    --subtle-silver: var(--cream-white); /* Light accents white */
    
    /* BUTTON COLOR SYSTEM */
    --btn-primary-bg: var(--primary-red);
    --btn-primary-text: var(--pure-white);
    --btn-secondary-bg: var(--pure-white);
    --btn-secondary-text: var(--primary-red);
    --btn-outline-border: var(--primary-red);
    --btn-hover-bg: var(--crimson-dark);
    
    /* ANIMATION VARIABLES */
    --transition-heroic: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-heroic); /* Use heroic font for ALL text */
    color: var(--primary-red);
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--off-white) 100%);
    overflow-x: hidden;
    scroll-behavior: smooth;
    animation: pageLoadAnimation 1s ease-out;
    font-weight: 600;
    letter-spacing: 1px;
}

/* HEROIC HEADING SYSTEM */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heroic);
    font-weight: 700;
    color: var(--primary-red);
    text-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
    letter-spacing: 1.5px;
    transition: var(--transition-heroic);
    animation: heroicEntrance 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
}

h2 {
    font-family: var(--font-heroic);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
}

.serif-text {
    font-family: var(--font-elegant);
}

.heroic-text {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-red);
    text-shadow: 0 3px 12px rgba(220, 20, 60, 0.4);
    animation: heroicGlow 3s ease-in-out infinite;
}

/* Apply heroic fonts to ALL text elements */
p, span, div, a, li, td, th, label, input, textarea, select {
    font-family: var(--font-heroic) !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
}

/* Special text styling */
.body-text, .content-text {
    font-family: var(--font-heroic) !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    letter-spacing: 1px !important;
}

/* Navigation and button text */
.nav-link {
    font-family: var(--font-heroic) !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--pure-white) !important;
}

/* Navbar improvements */
.navbar {
    background: var(--primary-red) !important;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3) !important;
}

.navbar-brand {
    color: var(--pure-white) !important;
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
}

.navbar-nav .nav-link {
    color: var(--pure-white) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--cream-white) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.navbar-toggler {
    border-color: var(--pure-white) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Card and content text */
.card-text, .description, .content {
    font-family: var(--font-heroic) !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
}

/* Card styling improvements */
.card {
    border: 1px solid rgba(220, 20, 60, 0.1) !important;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.1) !important;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15) !important;
    transform: translateY(-2px) !important;
}

.card-title {
    color: var(--primary-red) !important;
    font-family: var(--font-heroic) !important;
    font-weight: 700 !important;
}

.card-body {
    color: var(--text-dark) !important;
}

/* Text color fixes */
.text-muted {
    color: var(--text-light) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

/* Heading colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-red) !important;
}

/* Paragraph text */
p {
    color: var(--text-dark) !important;
}

/* Ensure all buttons have proper contrast */
.btn-light, .btn-white {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

.btn-outline-light {
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
    background-color: rgba(220, 20, 60, 0.1) !important;
}

.btn-outline-light:hover {
    background-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

/* Fix any remaining white text on white background */
.text-white {
    color: var(--primary-red) !important;
}

.bg-white .text-white {
    color: var(--primary-red) !important;
}

/* BENGALI FONT SUPPORT */
*[lang="bn"], 
.bengali-text, 
.story-title, 
.story-content, 
.content-body,
*:contains('আ'), *:contains('ই'), *:contains('এ'), *:contains('ও'), *:contains('ব'), *:contains('ক'), *:contains('ত'), *:contains('ন'), *:contains('দ'), *:contains('র') {
    font-family: var(--font-bengali) !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

/* Bengali headers */
h1.bengali-text, h2.bengali-text, h3.bengali-text, h4.bengali-text, h5.bengali-text, h6.bengali-text {
    font-family: var(--font-bengali) !important;
    font-weight: 700 !important;
    color: var(--primary-red) !important;
}

/* Story content specific */
.story-title {
    font-family: var(--font-bengali) !important;
    color: var(--primary-red) !important;
    font-weight: 700 !important;
}

.story-content, .content-body {
    font-family: var(--font-bengali) !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
}

/* Modal and button fixes */
.btn-close {
    background: var(--primary-red) !important;
    color: var(--pure-white) !important;
    border: 2px solid var(--pure-white) !important;
    opacity: 1 !important;
}

.modal-header .btn-close {
    background: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

/* COMPREHENSIVE BUTTON SYSTEM */
.btn {
    font-family: var(--font-heroic) !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

/* Primary buttons - Red background, white text */
.btn-primary, .btn-crimson, .btn-danger {
    background-color: var(--btn-primary-bg) !important;
    border-color: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
}

.btn-primary:hover, .btn-crimson:hover, .btn-danger:hover {
    background-color: var(--btn-hover-bg) !important;
    border-color: var(--btn-hover-bg) !important;
    color: var(--btn-primary-text) !important;
    transform: translateY(-2px) !important;
}

/* Outline buttons - Red border, red text */
.btn-outline-primary, .btn-outline-danger, .btn-outline-crimson {
    background-color: transparent !important;
    border-color: var(--btn-outline-border) !important;
    color: var(--btn-outline-border) !important;
}

.btn-outline-primary:hover, .btn-outline-danger:hover, .btn-outline-crimson:hover {
    background-color: var(--btn-primary-bg) !important;
    border-color: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
}

/* Secondary buttons - White background, red text */
.btn-secondary, .btn-light {
    background-color: var(--btn-secondary-bg) !important;
    border-color: var(--btn-outline-border) !important;
    color: var(--btn-secondary-text) !important;
}

.btn-secondary:hover, .btn-light:hover {
    background-color: var(--btn-primary-bg) !important;
    border-color: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
}

/* Success and info buttons to match theme */
.btn-success, .btn-info {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

/* Fix any white buttons */
.btn-white {
    background-color: var(--pure-white) !important;
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
}

.btn-white:hover {
    background-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

/* PREMIUM HEROIC ANIMATIONS */
@keyframes pageLoadAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroicEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        text-shadow: none;
    }
    60% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
    }
}

@keyframes heroicGlow {
    0%, 100% {
        text-shadow: 0 3px 12px rgba(220, 20, 60, 0.4);
    }
    50% {
        text-shadow: 0 6px 24px rgba(220, 20, 60, 0.8), 0 0 40px rgba(220, 20, 60, 0.3);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes premiumHover {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-8px) scale(1.05);
    }
}

/* ANIMATION UTILITY CLASSES */
.animate-slide-left {
    animation: slideInLeft 1s var(--transition-smooth);
}

.animate-slide-right {
    animation: slideInRight 1s var(--transition-smooth);
}

.animate-scale-bounce {
    animation: scaleInBounce 1.2s var(--transition-heroic);
}

.animate-float {
    animation: floatAnimation 3s ease-in-out infinite;
}

.hover-premium {
    transition: var(--transition-heroic);
    cursor: pointer;
}

.hover-premium:hover {
    animation: premiumHover 0.6s var(--transition-heroic) forwards;
}

/* -----------------------------------
   1. ENHANCED NAVIGATION
----------------------------------- */
.navbar {
    background: rgba(220, 20, 60, 0.95); /* Red background instead of black */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--pure-white); /* White border instead of red */
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(220, 20, 60, 0.98); /* Red background */
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3); /* Red shadow */
    animation: slideInLeft 0.5s ease;
}

.navbar-brand {
    font-family: var(--font-heroic) !important;
    font-size: 2rem;
    font-weight: 900;
    color: var(--pure-white) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-heroic);
}

.navbar-brand:hover {
    color: var(--cream-white) !important;
    transform: scale(1.05);
    text-shadow: 0 4px 16px rgba(255, 255, 255, 0.5);
}

.navbar-nav .nav-link {
    color: var(--pure-white) !important;
    font-family: var(--font-heroic) !important;
    font-weight: 700 !important;
    margin: 0 1.2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--pure-white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--cream-white) !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

/* Enhanced Dropdown */
.navbar-nav .dropdown-menu {
    background: rgba(220, 20, 60, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: dropdownFade 0.3s ease;
}

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

.navbar-nav .dropdown-item {
    color: var(--pure-white) !important;
    font-family: var(--font-heroic) !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--cream-white) !important;
    transform: translateX(5px);
}

.navbar-nav .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Dropdown toggle with chevron */
.navbar-nav .dropdown-toggle::after {
    display: none;
}

.dropdown-chevron {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-chevron {
    transform: rotate(180deg);
}

/* -----------------------------------
   2. ENHANCED HERO SECTION
----------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 177.77777778vh;
    height: 56.25vw;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(15, 15, 15, 0.85) 0%,
    rgba(26, 26, 26, 0.75) 50%,
    rgba(15, 15, 15, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--off-white);
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(220, 20, 60, 0.3);
    /* FIX: Solid white/off-white text */
    color: var(--off-white);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--subtle-silver);
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

.btn-premium {
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: var(--transition-heroic);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: scaleInBounce 1s var(--transition-heroic);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

/* Primary Button: High contrast design */
.btn-crimson {
    background: var(--primary-red) !important; /* Red background for visibility */
    color: var(--pure-white) !important; /* White text for contrast */
    border: 3px solid var(--pure-white);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.5);
    text-shadow: 0 1px 3px rgba(220, 20, 60, 0.2);
    font-family: var(--font-heroic); /* Heroic font */
    font-weight: 700;
}

.btn-crimson:hover {
    transform: translateY(-8px) scale(1.05);
    background: var(--crimson-dark) !important;
    color: var(--pure-white) !important;
    box-shadow: 0 20px 50px rgba(220, 20, 60, 0.8);
    border-color: var(--pure-white);
    animation: floatAnimation 0.6s ease;
}

/* Secondary Button: High contrast outline */
.btn-outline-steel {
    background: rgba(220, 20, 60, 0.1) !important; /* Subtle red background */
    border: 3px solid var(--pure-white) !important;
    color: var(--pure-white) !important;
    backdrop-filter: blur(15px);
    text-shadow: 0 2px 4px rgba(220, 20, 60, 0.3);
    font-family: var(--font-heroic); /* Heroic font */
    font-weight: 700;
}

.btn-outline-steel:hover {
    background: var(--pure-white) !important;
    color: var(--primary-red) !important;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.8);
    border-color: var(--primary-red) !important;
    text-shadow: none;
    animation: floatAnimation 0.6s ease;
}

/* --- Temporary/Legacy Button Overrides --- */
.btn-gold {
    background: var(--dignified-crimson);
    color: var(--charcoal);
    box-shadow: 0 10px 30px rgba(169, 28, 62, 0.3);
}
.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--dignified-crimson);
    color: var(--dignified-crimson);
    backdrop-filter: blur(10px);
}


.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--dignified-crimson);
    font-size: 2rem;
}

/* -----------------------------------
   3. MODERN ANIMATIONS
----------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(169, 28, 62, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(169, 28, 62, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(169, 28, 62, 0);
    }
}

/* -----------------------------------
   4. ENHANCED SECTIONS & TITLES
----------------------------------- */
.section-padding {
    padding: 8rem 0;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    /* FIX: Solid Crimson Accent Line */
    background: var(--dignified-crimson);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* -----------------------------------
   5. MODERN EXHIBITIONS
----------------------------------- */
.exhibition-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 500px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: var(--off-white);
}

.exhibition-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 60px rgba(220, 20, 60, 0.12);
}

.exhibition-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.exhibition-card:hover .exhibition-image {
    transform: scale(1.1);
}

.exhibition-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, transparent 100%);
    padding: 3rem 2rem;
    color: var(--off-white);
    transition: all 0.5s ease;
}

.exhibition-card:hover .exhibition-overlay {
    background: linear-gradient(to top, rgba(15, 15, 15, 0.98) 20%, rgba(15, 15, 15, 0.7) 100%);
}

.exhibition-overlay h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dignified-crimson);
}

.exhibition-overlay p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.view-details {
    color: var(--dignified-crimson);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-details::after {
    content: '→';
    margin-left: 10px;
    transition: margin-left 0.3s ease;
}

.view-details:hover::after {
    margin-left: 20px;
}

/* -----------------------------------
   6. ENHANCED ABOUT MUSEUM
----------------------------------- */
.about-section {
    background: var(--pure-white);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(220, 20, 60, 0.03) 0%, transparent 50%);
}

.about-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.2);
    transition: transform 0.4s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-content h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
    font-weight: 700;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about-content .serif-text {
    font-weight: 400;
    color: var(--text-light) !important;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%);
    border-radius: 15px;
    border: 1px solid var(--primary-red);
    transition: all 0.4s ease;
    color: var(--pure-white);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.3);
    background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--primary-red) 100%);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pure-white);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -----------------------------------
   7. MODERN EVENTS
----------------------------------- */
.events-section {
    background: var(--off-white);
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

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

.event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-content {
    padding: 2rem;
}

.event-date {
    display: inline-block;
    /* FIX: Solid Color for Date Background */
    background: var(--dignified-crimson);
    color: var(--charcoal);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

.event-content h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.event-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* -----------------------------------
   8. ENHANCED GALLERY & LIGHTBOX
----------------------------------- */
.gallery-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.gallery-section .section-title {
    color: var(--pure-white);
    font-weight: 700;
}

.gallery-section .section-subtitle {
    color: var(--cream-white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(169, 28, 62, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

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

.gallery-overlay i {
    font-size: 3rem;
    color: var(--charcoal);
}

/* Modern Modal */
.modal-content {
    background: none;
    border: none;
    border-radius: 0;
}

.modal-body {
    padding: 0;
    position: relative;
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50%;
    padding: 0.75rem;
    opacity: 1 !important;
    z-index: 1050;
    width: 44px;
    height: 44px;
    border: 2px solid var(--pure-white) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------
   9. ENHANCED VIRTUAL TOUR
----------------------------------- */
.virtual-tour-section {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--charcoal) 100%);
    padding: 8rem 0;
    text-align: center;
    color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.virtual-tour-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(169, 28, 62, 0.1) 0%, transparent 70%);
}

.virtual-tour-section h2 {
    color: var(--dignified-crimson);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.virtual-tour-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.play-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--dignified-crimson);
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(169, 28, 62, 0.6);
    background: rgba(169, 28, 62, 0.9);
}

.play-button i {
    margin-left: 6px;
    line-height: 1;
}

/* -----------------------------------
   10. MODERN FOOTER
----------------------------------- */
.footer {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%);
    color: var(--pure-white);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(169, 28, 62, 0.1) 0%, transparent 50%);
}

.footer h4 {
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--cream-white);
}

.footer-links a:hover {
    color: var(--cream-white);
    padding-left: 1rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-info p {
    color: var(--pure-white);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    border: 2px solid var(--pure-white);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.social-icons a:hover {
    background: var(--pure-white);
    color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: var(--cream-white);
}

.footer-bottom a {
    color: var(--pure-white) !important;
    text-decoration: underline !important;
}

.footer-bottom a:hover {
    color: var(--cream-white) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
}

/* -----------------------------------
   11. RESPONSIVE DESIGN
----------------------------------- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .exhibition-card {
        height: 400px;
    }

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

    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }

    /* Modal fixes for mobile */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .btn-close {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 1051 !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(220, 20, 60, 0.95) !important;
        border: 2px solid var(--pure-white) !important;
        border-radius: 50% !important;
        font-size: 18px !important;
        color: var(--pure-white) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .modal-content {
        border: none;
        border-radius: 15px;
        overflow: hidden;
    }

    .modal-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-body {
        padding: 0;
    }

    /* Mobile close button specific styles */
    .btn-close-mobile {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        outline: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.2s ease !important;
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 1055 !important;
        width: 48px !important;
        height: 48px !important;
        background: rgba(220, 20, 60, 0.95) !important;
        color: white !important;
        border: 3px solid white !important;
        border-radius: 50% !important;
        font-size: 24px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .btn-close-mobile:hover,
    .btn-close-mobile:focus,
    .btn-close-mobile:active {
        background: rgba(220, 20, 60, 1) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
    }

    /* Ensure close buttons work in all orientations */
    @media screen and (orientation: landscape) {
        .btn-close-mobile {
            top: 10px !important;
            right: 10px !important;
            width: 44px !important;
            height: 44px !important;
            font-size: 20px !important;
        }
    }

    /* Safe area adjustments for devices with notches */
    .btn-close-mobile {
        top: max(15px, env(safe-area-inset-top)) !important;
        right: max(15px, env(safe-area-inset-right)) !important;
    }

    /* Header close button positioning for desktop */
    .modal-header .btn-close {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }

    /* Ensure modal is properly sized on mobile */
    .modal-lg {
        max-width: calc(100vw - 2rem) !important;
    }

    /* Make video responsive on mobile */
    .ratio {
        width: 100% !important;
    }

    .ratio iframe {
        width: 100% !important;
        height: 100% !important;
    }

    /* Image navigation arrows for mobile */
    #prevImage, #nextImage {
        transition: all 0.3s ease !important;
        backdrop-filter: blur(5px) !important;
    }

    #prevImage:hover, #nextImage:hover {
        background: rgba(220, 20, 60, 0.9) !important;
        transform: scale(1.1) !important;
        border-color: white !important;
    }

    #imageCounter {
        backdrop-filter: blur(5px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--dignified-crimson), var(--subtle-silver));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--subtle-silver), var(--dignified-crimson));
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--dignified-crimson);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* -----------------------------------
   12. BOOKING PAGE
----------------------------------- */
.booking-section {
    padding-top: 10rem; /* Space for fixed navbar */
    padding-bottom: 5rem;
    background-color: var(--off-white);
}

.booking-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 10%;
}

.step-item {
    text-align: center;
    position: relative;
    flex-grow: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    transition: background 0.3s ease;
}

.step-item.active .step-number {
    background: var(--dignified-crimson);
}

.step-item.completed .step-number {
    background: var(--charcoal);
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ccc;
    z-index: -1;
}

.step-item.active:not(:last-child)::after,
.step-item.completed:not(:last-child)::after {
    background: var(--charcoal);
}

.step-item-label {
    font-size: 0.9rem;
    color: #666;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--dignified-crimson);
    box-shadow: 0 0 0 0.25rem rgba(169, 28, 62, 0.25);
}

/* Cart Summary */
.cart-summary {
    background: var(--dark-charcoal);
    color: var(--off-white);
    padding: 2rem;
    border-radius: 15px;
    /* position: sticky;*/
    top: 100px;
}

.cart-summary h4 {
    color: var(--dignified-crimson);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item-list {
    list-style: none;
    padding: 0;
}

.cart-item-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.cart-total {
    border-top: 1px solid var(--dignified-crimson);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.cart-total h5 {
    font-size: 1.7rem;
    color: var(--subtle-silver);
}
/* -----------------------------------
   13. CHRONOLOGY TIMELINE (FIXED)
----------------------------------- */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* The actual timeline (vertical line) */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-red);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px; /* Center the 4px line more precisely */
    z-index: 1;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
}

/* Container around content */
.timeline-item {
    padding: 15px 40px; /* Improved padding */
    position: relative;
    width: 50%; /* Content takes half the width */
    z-index: 2;
    margin-bottom: 2rem; /* Add spacing between items */
}

/* Timeline content styling */
.timeline-content {
    background: var(--pure-white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
}

/* Timeline item hover effect */
.timeline-item:hover::after {
    transform: scale(1.2);
    background: var(--primary-red);
    border-color: var(--pure-white);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
}

/* The circles on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--pure-white);
    border: 4px solid var(--primary-red);
    top: 15px;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 12px rgba(220, 20, 60, 0.4);
    transition: all 0.3s ease;
}

/* Positioning the left and right items */

.timeline-item.left {
    left: 0;
    /* FIX: Push content further right to clear the center line */
    padding-right: 60px; /* Increased right padding to prevent overlap */
}
/* Position the circle for the left item */
.timeline-item.left::after {
    right: -16px; /* Move the circle slightly left to sit on the line */
}


.timeline-item.right {
    left: 50%;
    /* FIX: Push content further left to clear the center line */
    padding-left: 60px; /* Increased left padding to prevent overlap */
}
/* Position the circle for the right item */
.timeline-item.right::after {
    left: -16px; /* Move the circle slightly right to sit on the line */
}

/* Arrow facing right (for left-aligned content) */
.timeline-item.left .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: -15px; /* Arrow sits slightly outside the box */
    /* **FIX: Set border color to off-white** */
    border: medium solid var(--off-white);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--off-white);
}

/* Arrow facing left (for right-aligned content) */
.timeline-item.right .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: -15px; /* Arrow sits slightly outside the box */
    /* **FIX: Set border color to off-white** */
    border: medium solid var(--off-white);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--off-white) transparent transparent;
}

.timeline-content {
    /* **FIX: Ensure background color is light** */
    background-color: var(--off-white);
    padding: 20px 30px;
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    /* Full width on smaller screens, move line to the left */
    .timeline-container::after {
        left: 31px;
        width: 4px;
        background: var(--primary-red);
        box-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 18px;
        margin-left: 0;
    }
    .timeline-item.right {
        left: 0%;
    }
    /* Remove the right-side arrow styles, use the left-side arrow */
    .timeline-item.right .timeline-content::before {
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--pure-white) transparent transparent;
        left: -15px;
    }
    .timeline-item.left .timeline-content::before {
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--pure-white) transparent transparent;
        left: -15px;
    }
    
    /* Mobile timeline content adjustments */
    .timeline-content {
        margin-bottom: 1rem;
    }
    
    .timeline-content .btn {
        padding: 0.1rem 0.25rem;
        font-size: 0.55rem;
        margin: 0.05rem;
        line-height: 1.1;
    }
}
/* -----------------------------------
   14. DOCUMENTARY PAGE STYLES
----------------------------------- */

/* Custom button styles for the new theme */
.btn-premium {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Primary Button: Crimson background (for main actions/links) */
.btn-crimson {
    background: var(--dignified-crimson);
    color: var(--off-white) !important;
    border: 2px solid var(--dignified-crimson);
}
.btn-crimson:hover {
    background: var(--revolutionary-steel);
    border-color: var(--revolutionary-steel);
    transform: translateY(-2px);
}

/* Secondary Button: Steel Outline (for secondary links/archival details) */
.btn-outline-steel {
    background: transparent;
    border: 2px solid var(--revolutionary-steel);
    color: var(--subtle-silver) !important; /* Ensure visibility on dark background */
}
.btn-outline-steel:hover {
    background: var(--revolutionary-steel);
    color: var(--off-white) !important;
    transform: translateY(-2px);
}

/* Custom styling for the content box background on the page */
.documentary-content-box {
    background-color: var(--dark-charcoal);
    height: 100%;
    border-radius: 15px;
    border: 1px solid var(--revolutionary-steel);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* **FIX: Ensure list items and text inside the content box are light** */
.documentary-content-box p.lead,
.documentary-content-box ul li {
    color: var(--subtle-silver) !important;
}
.documentary-content-box ul li i {
    color: var(--dignified-crimson); /* Color for list icons */
}

/* -----------------------------------
   16. HOVER DROPDOWN ENHANCEMENT (Desktop Only)
----------------------------------- */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
}
.navbar-nav .dropdown-toggle .dropdown-chevron {
    transition: transform 0.3s ease-in-out; /* Ensures smooth animation */
    display: inline-block; /* Essential for transform to work correctly */
}

/* Styles applied when the parent navigation item (.nav-item) is hovered */
.navbar-nav .nav-item.dropdown:hover .dropdown-toggle .dropdown-chevron {
    transform: rotate(180deg);
}

/* -----------------------------------
   16. ARCHIVAL HUB & MARTYR HALL
----------------------------------- */

/* Styling for the Human Cost section (Hall of Martyrs) */
.martyr-hall-section {
    background-color: var(--off-white);
    padding: 6rem 0;
}

.tribute-card {
    background-color: white;
    border: 1px solid var(--subtle-silver);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tribute-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(169, 28, 62, 0.1);
}

.tribute-icon {
    font-size: 2.5rem;
    color: var(--dignified-crimson);
    margin-bottom: 1rem;
}

.tribute-card h4 {
    color: var(--revolutionary-steel);
    font-size: 1.5rem;
}

/* Styling for the Accountability Section */
.accountability-section {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--charcoal) 100%);
    color: var(--subtle-silver);
    padding: 6rem 0;
}

.justice-update-card {
    background-color: var(--dark-charcoal);
    border: 2px solid var(--dignified-crimson);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.justice-update-card h4 {
    color: var(--dignified-crimson);
}

.justice-update-card .fas {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--subtle-silver);
}

/* Style for the Chronology Hub Button */
.btn-steel-outline {
    background: transparent;
    border: 2px solid var(--revolutionary-steel);
    color: var(--revolutionary-steel);
}
.btn-steel-outline:hover {
    background: var(--revolutionary-steel);
    color: var(--off-white);
}

/* -----------------------------------
   18. FINAL HERO ALIGNMENT FIX
----------------------------------- */

.hero-section {
    /* Step 1: Ensure the section uses the full width for positioning */
    align-items: flex-start; /* This is often the default, but explicitly setting ensures top alignment if needed */
    justify-content: flex-start;
}

.hero-content {
    /* Step 2: Override center positioning logic on large screens */
    position: absolute; /* Allows precise positioning relative to the section */
    top: 50%; /* Start vertical positioning roughly in the middle */
    left: 10%; /* Push the content block to the left (adjust percentage as needed) */
    transform: translateY(-50%); /* Centers the content vertically relative to its own height */

    /* Ensure the content aligns internally to the left */
    text-align: left !important;

    /* Remove original max-width that might limit left-side space, then reset if needed */
    max-width: 600px; /* Adjust max-width to keep lines readable */

    /* Ensure buttons align left inside this container */
    padding: 0; /* Remove internal padding that may push content */
}

.hero-content h1,
.hero-content p {
    text-align: left !important;
}

.hero-buttons {
    /* Final check to ensure the buttons start from the left */
    justify-content: flex-start !important;
}
.form-select {
    padding: 0.75rem 1rem;
}

/* -----------------------------------
   18. FORM AND DROPDOWN CONSISTENCY FIXES
----------------------------------- */

/* 1. Universal Input Height Consistency */
/* Standard input elements usually have padding of 0.75rem. This ensures dropdowns match. */
.navbar-nav .dropdown-item {
    /* Padding set to match the standard vertical padding of .form-control (0.75rem) */
    padding: 0.75rem 1.5rem !important;
    /* Optionally set font size if needed for height alignment: */
    font-size: 1rem;
}

/* 2. Placeholder Text Visibility Fix (Dark Background Inputs) */
/* Targets inputs used within the dark-themed areas (like Profile, Contact, Archives) */
.form-control::placeholder {
    /* Ensure placeholder is visible by setting color to a light, subtle variable */
    color: var(--subtle-silver) !important;
    opacity: 0.6; /* Optional: Slightly dim the text */
}

/* Specific fix for inputs styled with dark background in the HTML */
input[style*="background: var(--dark-charcoal)"]::placeholder,
textarea[style*="background: var(--dark-charcoal)"]::placeholder {
    color: var(--subtle-silver) !important;
    opacity: 0.8;
}

/* Ensure the disabled input placeholder in the profile section is still visible */
input[disabled][style*="background: var(--revolutionary-steel)"]::placeholder {
    color: var(--off-white) !important;
    opacity: 0.7;
}
/* -----------------------------------
   22. FONT SWITCH: BENGALI (BN)
----------------------------------- */

/* Base font for all elements when Bengali is active */
.lang-bn body {
    /* Use Baloo Da 2 as the primary Bengali font */
    font-family: 'Baloo Da 2', 'Montserrat', sans-serif !important;
}

/* Ensure all headings and specialized text use the new Bengali font */
.lang-bn h1,
.lang-bn h2,
.lang-bn h3,
.lang-bn h4,
.lang-bn .serif-text {
    /* Set a strong weight for Bengali headings */
    font-family: 'Baloo Da 2', 'Cinzel', serif !important;
    font-weight: 600 !important; /* Baloo Da 2's bold weight */
}
/* Ensure mobile retains readability by centering */
@media (max-width: 768px) {
    .hero-content {
        position: relative; /* Revert to flow layout */
        top: 125px;
        left: auto;
        transform: none;
        text-align: center !important; /* Re-center text on mobile */
        padding: 0 15px;
    }
    .hero-buttons {
        justify-content: center !important;
    }
}
@media all and (min-width: 992px) {
    /* Target only large screens and above (desktop view) */

    /* 1. Show the menu when the parent list item is hovered */
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Keep the menu flush with the navbar */
    }

    /* 2. Prevent the menu from closing immediately on hover */
    .navbar-nav .nav-item.dropdown .dropdown-menu {
        display: none;
        position: absolute;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* 3. Add fade-in effect on hover */
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
    }

    /* 4. Disable the default Bootstrap caret rotation on hover (optional but cleaner) */
    .navbar-nav .dropdown-toggle::after {
        display: inline-block;
    }
}


/* -----------------------------------
   23. OVERSIZED LOGO FIX (For Professional Look)
----------------------------------- */

/* 1. Define the maximum desired height for the logo (e.g., 65px)
      and ensure the brand container can hold it. */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    height: 65px; /* The height of the largest logo state */
    display: flex; /* Helps vertically center the logo */
    align-items: center;
}

/* 2. Style the actual logo image */
.navbar-brand .logo {
    /* Set the maximum size */
    height: 65px; /* Large default height */
    width: auto;
    transition: all 0.4s ease;
}

/* 3. Reduce the logo size when the navbar is scrolled/shrunk */
.navbar.scrolled .navbar-brand .logo {
    height: 75px;
    /* Padding is reduced by the .navbar.scrolled rule, making it appear to shrink into the smaller space */
}

/* 4. Increase the logo size only when the navbar is NOT scrolled */
/* This ensures the logo visually breaks the padding on the fixed top bar */
.navbar:not(.scrolled) .navbar-brand .logo {
    /* Optional: Slightly larger than the navbar-brand height to visually pop out */
    height: 100px;
}


/* 5. FIX: Ensure the navbar height accommodates the large logo when NOT scrolled
   This prevents the logo from pushing the content below the navbar too early. */
.navbar:not(.scrolled) {
    /* Increase the padding to visually account for the logo size */
    padding: 1.2rem 0;
}
/* -----------------------------------
   19. NESTED DROPDOWN FIX (MULTI-LEVEL HOVER)
----------------------------------- */

@media all and (min-width: 992px) {
    /* Step 1: Force the nested menu to the side */
    .dropdown-menu .dropend .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 0;
        margin-top: -1px;
        display: none;
        transition: opacity 0.3s ease;
    }

    /* Step 2: Show the nested menu on hover of the parent list item */
    .dropdown-menu .dropend:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Step 3: Rotate the caret/icon 90 degrees when the nested menu is open */
    .dropdown-menu .dropend:hover > .dropdown-item.dropdown-toggle::after {
        transform: rotate(90deg) !important;
    }

    /* Step 4: Ensure the nested dropdown toggle gets its own arrow */
    .dropdown-menu .dropend > .dropdown-toggle::after {
        /* This is the default Bootstrap caret styling for dropend */
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
        vertical-align: middle;
        margin-left: .5rem;
    }

    /* Ensure the top-level Chronology chevron keeps its 180deg hover logic */
    .navbar-nav .nav-item.dropdown:hover .dropdown-toggle .dropdown-chevron {
        transform: rotate(180deg);
    }
}/* -----------------------------------
   24. FINAL NESTED MENU HOVER LOGIC FIX
----------------------------------- */

@media all and (min-width: 992px) {

    /* 1. Reset: Prevent the entire menu structure from opening by default */
    /* This overrides the previous blanket rule on the top-level <li> */
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block; /* We still need the top level (Chronology menu) to display */
    }

    /* 2. CRITICAL FIX: Ensure nested menus start hidden and open ONLY on specific hover */
    .dropdown-menu .dropend > .dropdown-menu {
        /* Keep all nested menus hidden until their parent is explicitly hovered */
        display: none;
        opacity: 0;
        visibility: hidden;

        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 0;
        margin-top: -1px;
        transition: opacity 0.3s ease;
    }

    /* 3. The Activation Rule: Only open the inner menu when the parent list item is hovered */
    .dropdown-menu .dropend:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* 4. Icon Rotation for Nested Menu */
    .dropdown-menu .dropend:hover > .dropdown-item.dropdown-toggle::after {
        transform: rotate(90deg); /* Rotates the caret on hover */
    }
}/* -----------------------------------
   25. FIX NESTED CHEVRON APPEARANCE AND ROTATION
----------------------------------- */

@media all and (min-width: 992px) {
    /* 1. Position the nested chevron (using fas icon) */
    .dropdown-menu .dropend > .dropdown-item i.dropdown-chevron {
        /* Move the icon to the far right edge of the link item */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg); /* Initial state */
        transition: transform 0.3s ease-in-out;
    }

    /* 2. Rotate the chevron on hover of the nested item */
    .dropdown-menu .dropend:hover > .dropdown-item i.dropdown-chevron {
        transform: translateY(-50%) rotate(90deg); /* Rotate 90 degrees to point right */
    }

    /* 3. Ensure the base Bootstrap caret is completely hidden, even on nested items */
    .dropdown-menu .dropend > .dropdown-toggle::after {
        display: none !important;
    }

}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 41px !important;
    }
}
/* -----------------------------------
   26. NESTED INDICATOR ICON
----------------------------------- */

/* Base style for the nested chevron icon */
.nested-chevron {
    position: absolute;
    right: 15px; /* Position far right */
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 0.7em; /* Make it smaller than the main chevron */
    color: var(--subtle-silver); /* Greyed out color */
    transition: transform 0.3s ease-in-out, color 0.3s ease;
}

/* Rotate and highlight the icon when the parent menu item is hovered */
.dropdown-menu .dropend:hover > .dropdown-item .nested-chevron {
    transform: translateY(-50%) rotate(90deg); /* Rotate 90 degrees to point down/right */
    color: var(--dignified-crimson); /* Highlight the icon */
}

/* Hide the default Bootstrap caret on nested links */
.dropdown-menu .dropend .dropdown-toggle::after {
    display: none !important;
}


/* -----------------------------------
   26. NESTED INDICATOR ICON
----------------------------------- */

/* Base style for the nested chevron icon */
.nested-chevron {
    position: absolute;
    right: 15px; /* Position far right */
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 0.7em; /* Make it smaller than the main chevron */
    color: var(--subtle-silver); /* Greyed out color */
    transition: transform 0.3s ease-in-out, color 0.3s ease;
}

/* Rotate and highlight the icon when the parent menu item is hovered */
.dropdown-menu .dropend:hover > .dropdown-item .nested-chevron {
    transform: translateY(-50%) rotate(90deg); /* Rotate 90 degrees to point down/right */
    color: var(--dignified-crimson); /* Highlight the icon */
}

/* Hide the default Bootstrap caret on nested links */
.dropdown-menu .dropend .dropdown-toggle::after {
    display: none !important;
}

/* ========================================
   COMPREHENSIVE COLOR SYSTEM FIXES
   ======================================== */

/* Button system - comprehensive fix */
.btn {
    font-family: var(--font-heroic) !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}

.btn-primary, .btn-danger, .btn-crimson {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

.btn-primary:hover, .btn-danger:hover, .btn-crimson:hover {
    background: var(--crimson-dark) !important;
    border-color: var(--crimson-dark) !important;
    color: var(--pure-white) !important;
}

.btn-outline-primary, .btn-outline-danger, .btn-outline-crimson,
.btn-outline-steel {
    background: rgba(220, 20, 60, 0.1) !important;
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
}

.btn-outline-primary:hover, .btn-outline-danger:hover, 
.btn-outline-crimson:hover, .btn-outline-steel:hover {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

/* Text color hierarchy */
body {
    color: var(--text-dark) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-red) !important;
}

p, li, span, div:not(.btn):not(.badge):not(.navbar) {
    color: var(--text-dark) !important;
}

/* Navigation system */
.navbar {
    background: var(--primary-red) !important;
}

.navbar-brand, .nav-link {
    color: var(--pure-white) !important;
}

/* Modal system */
.modal-header {
    background: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

.btn-close {
    background: var(--primary-red) !important;
    color: var(--pure-white) !important;
    opacity: 1 !important;
}

/* ========================================
   FINAL COMPREHENSIVE COLOR OVERRIDES
   ======================================== */

/* Override any remaining problematic colors */
*[style*="color: #999"],
*[style*="color: #333"],
*[style*="color: #666"],
*[style*="color: #ccc"],
*[style*="color: black"] {
    color: var(--text-light) !important;
}

*[style*="background: black"],
*[style*="background-color: black"],
*[style*="background: #000"] {
    background: var(--primary-red) !important;
}

/* Ensure all badges use theme colors */
.badge.bg-success,
.badge.bg-primary {
    background-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

.badge.bg-danger {
    background-color: var(--crimson-dark) !important;
    color: var(--pure-white) !important;
}

/* Force proper contrast on all buttons */
.btn:not(.btn-close):not([style*="background"]) {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

.btn.btn-outline-*:not([style*="background"]) {
    background: rgba(220, 20, 60, 0.1) !important;
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
}

/* Ensure proper text visibility */
.text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Fix any remaining dark backgrounds */
.bg-dark {
    background-color: var(--primary-red) !important;
}

/* Professional shadow system */
.shadow {
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.08) !important;
}

/* Ensure dropdown menus match theme */
.dropdown-menu {
    border-color: var(--primary-red) !important;
}

.dropdown-item:hover {
    background-color: rgba(220, 20, 60, 0.1) !important;
    color: var(--primary-red) !important;
}

/* Perfect focus states */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 20, 60, 0.25) !important;
}

/* Ensure all hover effects are consistent */
*:hover {
    transition: all 0.3s ease !important;
}

/* Final accessibility check - ensure no white-on-white */
.bg-white * {
    color: var(--text-dark) !important;
}

.bg-white .btn {
    color: var(--pure-white) !important;
}

.bg-white h1, .bg-white h2, .bg-white h3, 
.bg-white h4, .bg-white h5, .bg-white h6 {
    color: var(--primary-red) !important;
}

/* ========================================
   FOOTER COMPREHENSIVE COLOR FIXES
   ======================================== */

/* Ensure ALL footer text is white */
.footer * {
    color: var(--pure-white) !important;
}

.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
    color: var(--pure-white) !important;
    font-weight: 700 !important;
}

.footer p, .footer span, .footer li, .footer a {
    color: var(--pure-white) !important;
}

/* Footer links hover effects */
.footer a:hover {
    color: var(--cream-white) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
}

/* All footer icons must be white */
.footer i {
    color: var(--pure-white) !important;
}

.footer .fas, .footer .far, .footer .fab {
    color: var(--pure-white) !important;
}

/* Social icons specific styling */
.footer .social-icons a {
    border-color: var(--pure-white) !important;
    color: var(--pure-white) !important;
}

.footer .social-icons a:hover {
    background-color: var(--pure-white) !important;
    color: var(--primary-red) !important;
}

.footer .social-icons i {
    color: inherit !important;
}

/* Footer info paragraphs */
.footer .footer-info {
    color: var(--pure-white) !important;
}

.footer .footer-info * {
    color: var(--pure-white) !important;
}

/* Copyright section */
.footer .footer-bottom {
    color: var(--cream-white) !important;
}

.footer .footer-bottom * {
    color: var(--pure-white) !important;
}

/* Ensure background gradient is proper red */
.footer {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%) !important;
}

/* ========================================
   SECTION BACKGROUND FIXES
   ======================================== */

/* GALLERY SECTION - Red Background, White Text */
#gallery, .gallery-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%) !important;
    color: var(--pure-white) !important;
}

.gallery-section * {
    color: var(--pure-white) !important;
}

.gallery-section h1, .gallery-section h2, .gallery-section h3, 
.gallery-section h4, .gallery-section h5, .gallery-section h6 {
    color: var(--pure-white) !important;
    font-weight: 700 !important;
}

.gallery-section .section-title {
    color: var(--pure-white) !important;
}

.gallery-section .section-subtitle {
    color: var(--cream-white) !important;
}

/* Gallery tabs on red background */
.gallery-section .gallery-tabs {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.gallery-section .gallery-tab {
    color: var(--pure-white) !important;
}

.gallery-section .gallery-tab.active {
    background: var(--pure-white) !important;
    color: var(--primary-red) !important;
}

.gallery-section .gallery-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--pure-white) !important;
}

/* ABOUT SECTION - White Background, Red Text */
#about, .about-section {
    background: var(--pure-white) !important;
    color: var(--text-dark) !important;
}

.about-section * {
    color: var(--primary-red) !important;
}

.about-section h1, .about-section h2, .about-section h3, 
.about-section h4, .about-section h5, .about-section h6 {
    color: var(--primary-red) !important;
    font-weight: 700 !important;
}

.about-section .section-title {
    color: var(--primary-red) !important;
}

.about-section .section-subtitle {
    color: var(--primary-red) !important;
}

.about-section p {
    color: var(--primary-red) !important;
}

/* Buttons in both sections */
.gallery-section .btn {
    background: var(--pure-white) !important;
    border-color: var(--pure-white) !important;
    color: var(--primary-red) !important;
}

.gallery-section .btn:hover {
    background: var(--cream-white) !important;
    border-color: var(--cream-white) !important;
    color: var(--primary-red) !important;
}

.about-section .btn {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--pure-white) !important;
}

.about-section .btn:hover {
    background: var(--crimson-dark) !important;
    border-color: var(--crimson-dark) !important;
    color: var(--pure-white) !important;
}

/* ========================================
   ABOUT SECTION COMPREHENSIVE FIXES
   ======================================== */

/* Ensure ALL about section text is red */
.about-section, .about-section * {
    color: var(--primary-red) !important;
}

.about-section h1, .about-section h2, .about-section h3,
.about-section h4, .about-section h5, .about-section h6 {
    color: var(--primary-red) !important;
    font-weight: 700 !important;
}

.about-section p, .about-section span, .about-section div {
    color: var(--primary-red) !important;
}

.about-section .section-title {
    color: var(--primary-red) !important;
    font-weight: 700 !important;
}

.about-section .section-subtitle {
    color: var(--primary-red) !important;
}

/* Stat items - red background with white text */
.about-section .stat-item {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%) !important;
    color: var(--pure-white) !important;
    border: 1px solid var(--primary-red) !important;
}

.about-section .stat-item * {
    color: var(--pure-white) !important;
}

.about-section .stat-item:hover {
    background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--primary-red) 100%) !important;
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.3) !important;
}

.about-section .stat-number {
    color: var(--pure-white) !important;
    font-weight: 800 !important;
}

.about-section .stat-label {
    color: var(--pure-white) !important;
}

/* Stat item links should maintain white text */
.about-section a.stat-item {
    color: var(--pure-white) !important;
    text-decoration: none !important;
}

.about-section a.stat-item:hover {
    color: var(--pure-white) !important;
}

.about-section a.stat-item * {
    color: var(--pure-white) !important;
}

/* ========================================
   ABOUT SECTION MUSEUM ENHANCEMENTS
   ======================================== */

/* Enhanced typography hierarchy */
.about-section .section-title {
    font-size: 2.2rem !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    display: inline-block !important;
}

.about-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--crimson-dark));
    border-radius: 2px;
}

/* Enhanced paragraph styling */
.about-section p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.2rem !important;
    font-family: var(--font-heroic) !important;
    font-weight: 400 !important;
    text-align: justify !important;
    letter-spacing: 0.3px !important;
}

/* Enhanced image with museum-worthy effects */
.about-section .about-image {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.2) !important;
    transition: all 0.5s ease !important;
}

.about-section .about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.about-section .about-image:hover::before {
    opacity: 1;
}

.about-section .about-image:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(220, 20, 60, 0.3) !important;
}

/* Museum frame effect */
.about-section .about-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.about-section .about-image:hover::after {
    opacity: 1;
}

/* Enhanced stats container */
.about-section .stats-container {
    gap: 1rem !important;
    margin-top: 2rem !important;
}

/* Animated counter effect */
.about-section .stat-number {
    font-size: 2.2rem !important;
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    background: linear-gradient(45deg, var(--pure-white), var(--cream-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem !important;
    display: block !important;
    position: relative !important;
}

/* Pulse animation for numbers */
@keyframes statPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.about-section .stat-item:hover .stat-number {
    animation: statPulse 1.5s ease-in-out infinite;
}

/* Enhanced stat labels */
.about-section .stat-label {
    font-size: 0.95rem !important;
    font-family: var(--font-heroic) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Stat box premium styling */
.about-section .stat-item {
    border-radius: 15px !important;
    padding: 1.8rem 1.2rem !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.about-section .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.about-section .stat-item:hover::before {
    left: 100%;
}

/* Museum-style content wrapper */
.about-section .about-content {
    position: relative !important;
    padding: 1.2rem !important;
}

/* Cultural accent elements */
.about-section .about-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 8rem;
    font-family: var(--font-display);
    color: rgba(220, 20, 60, 0.1);
    line-height: 1;
    z-index: 0;
}

/* Responsive improvements */
@media (max-width: 992px) {
    .about-section .section-title {
        font-size: 1.9rem !important;
        text-align: center !important;
    }
    
    .about-section .about-content {
        text-align: center !important;
        padding: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .about-section .stats-container {
        grid-template-columns: 1fr !important;
        max-width: 400px !important;
        margin: 2rem auto !important;
    }
}

@media (max-width: 768px) {
    .about-section .section-title {
        font-size: 1.6rem !important;
    }
    
    .about-section p {
        font-size: 0.95rem !important;
    }
    
    .about-section .stat-number {
        font-size: 1.8rem !important;
    }
}

/* Scroll-triggered animations */
.about-section .stat-item {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.about-section .stat-item.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Featured quote styling */
.about-section .featured-quote {
    font-size: 1.2rem !important;
    font-style: italic !important;
    font-weight: 600 !important;
    color: var(--primary-red) !important;
    background: rgba(220, 20, 60, 0.05) !important;
    padding: 1.2rem !important;
    border-left: 4px solid var(--primary-red) !important;
    border-radius: 0 12px 12px 0 !important;
    margin: 1.2rem 0 !important;
    position: relative !important;
}

.about-section .featured-quote::before {
    content: '\201C';
    font-size: 3rem;
    position: absolute;
    top: 10px;
    left: 15px;
    color: var(--primary-red);
    opacity: 0.3;
}

/* ========================================
   ABOUT SECTION COMPACT SPACING
   ======================================== */

/* Reduce overall about section vertical spacing */
.about-section {
    padding: 3rem 0 !important;
}

.about-section .container {
    padding: 0 1rem !important;
}

.about-section .row {
    margin-bottom: 1.5rem !important;
}

.about-section .col-md-6, .about-section .col-lg-6 {
    margin-bottom: 1rem !important;
}

/* Reduce title bottom margin */
.about-section .section-title {
    margin-bottom: 0.8rem !important;
}

/* Reduce paragraph margins */
.about-section p {
    margin-bottom: 1rem !important;
}

/* Compact image spacing */
.about-section .about-image {
    margin-bottom: 1rem !important;
}

/* Mobile spacing adjustments */
@media (max-width: 768px) {
    .about-section {
        padding: 2rem 0 !important;
    }
    
    .about-section .stats-container {
        margin-top: 1.5rem !important;
    }
    
    .about-section .stat-item {
        padding: 1.2rem 1rem !important;
    }
}

/* ========================================
   FOOTER COMPACT SPACING FIXES
   ======================================== */

/* Reduce footer column spacing */
.footer .col-lg-4, .footer .col-lg-2, .footer .col-lg-3, .footer .col-md-6 {
    margin-bottom: 1.5rem !important;
}

/* Reduce footer heading margins */
.footer h4 {
    margin-bottom: 1rem !important;
}

/* Reduce footer info paragraphs spacing */
.footer .footer-info {
    margin-bottom: 0.8rem !important;
}

/* Reduce footer links spacing */
.footer .footer-links li {
    margin-bottom: 0.3rem !important;
}

/* Reduce social icons container spacing */
.footer .social-icons {
    margin-top: 1.2rem !important;
}

/* Mobile footer spacing adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem !important;
    }
    
    .footer-bottom {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
    }
    
    .footer .col-lg-4, .footer .col-lg-2, .footer .col-lg-3, .footer .col-md-6 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 2.5rem 0 1.2rem !important;
    }
}

/* ========================================
   EXHIBITIONS SECTION COMPREHENSIVE FIXES
   ======================================== */

/* Reduce section padding for more compact layout */
#exhibitions.section-padding {
    padding: 4rem 0 !important;
}

/* Fix section title colors and spacing */
#exhibitions .section-title {
    color: var(--primary-red) !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
}

#exhibitions .section-subtitle {
    color: var(--primary-red) !important;
    font-size: 1.1rem !important;
    margin-bottom: 2.5rem !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Enhanced exhibition cards with professional museum design */
#exhibitions .exhibition-card {
    height: 450px !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    background: var(--pure-white) !important;
}

#exhibitions .exhibition-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(220, 20, 60, 0.2) !important;
}

/* Professional overlay design */
#exhibitions .exhibition-overlay {
    background: linear-gradient(to top, 
        rgba(220, 20, 60, 0.95) 0%, 
        rgba(220, 20, 60, 0.8) 30%,
        rgba(220, 20, 60, 0.6) 60%,
        transparent 100%) !important;
    padding: 2rem 1.5rem !important;
}

#exhibitions .exhibition-card:hover .exhibition-overlay {
    background: linear-gradient(to top, 
        rgba(220, 20, 60, 0.98) 0%, 
        rgba(220, 20, 60, 0.85) 40%,
        rgba(220, 20, 60, 0.7) 70%,
        transparent 100%) !important;
}

/* Fix overlay text colors */
#exhibitions .exhibition-overlay h3 {
    color: var(--pure-white) !important;
    font-size: 1.6rem !important;
    margin-bottom: 0.8rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

#exhibitions .exhibition-overlay p {
    color: var(--cream-white) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Professional view details button */
#exhibitions .view-details {
    color: var(--pure-white) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    display: inline-block !important;
    backdrop-filter: blur(5px) !important;
}

#exhibitions .view-details:hover {
    color: var(--primary-red) !important;
    background: var(--pure-white) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3) !important;
}

#exhibitions .view-details::after {
    content: ' →' !important;
    transition: all 0.3s ease !important;
}

#exhibitions .view-details:hover::after {
    transform: translateX(3px) !important;
}

/* Add museum-style image effects */
#exhibitions .exhibition-image {
    transition: all 0.6s ease !important;
    filter: brightness(1) contrast(1.05) !important;
}

#exhibitions .exhibition-card:hover .exhibition-image {
    transform: scale(1.08) !important;
    filter: brightness(1.1) contrast(1.1) !important;
}

/* Add subtle border accent */
#exhibitions .exhibition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--crimson-dark));
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#exhibitions .exhibition-card:hover::before {
    opacity: 1;
}

/* Preserve Bootstrap grid system for 2x2 formation */
#exhibitions .row {
    margin-bottom: 0 !important;
}

#exhibitions .col-lg-6 {
    margin-bottom: 1.5rem !important;
}

/* Professional container spacing */
#exhibitions .container {
    max-width: 1200px !important;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    #exhibitions.section-padding {
        padding: 3rem 0 !important;
    }
    
    #exhibitions .section-title {
        font-size: 2rem !important;
    }
    
    #exhibitions .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    #exhibitions .exhibition-card {
        height: 350px !important;
        margin-bottom: 1.5rem !important;
    }
    
    #exhibitions .exhibition-overlay {
        padding: 1.5rem 1rem !important;
    }
    
    #exhibitions .exhibition-overlay h3 {
        font-size: 1.3rem !important;
    }
    
    #exhibitions .exhibition-overlay p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 992px) {
    #exhibitions .section-title {
        font-size: 2.2rem !important;
    }
    
    #exhibitions .exhibition-card {
        height: 400px !important;
    }
}

/* Add loading animation */
#exhibitions .exhibition-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation delays for cards */
#exhibitions .col-lg-6:nth-child(1) .exhibition-card { animation-delay: 0.1s; }
#exhibitions .col-lg-6:nth-child(2) .exhibition-card { animation-delay: 0.2s; }
#exhibitions .col-lg-6:nth-child(3) .exhibition-card { animation-delay: 0.3s; }
#exhibitions .col-lg-6:nth-child(4) .exhibition-card { animation-delay: 0.4s; }

/* ========================================
   VIRTUAL TOUR SECTION COMPREHENSIVE FIXES
   ======================================== */

/* Override and enhance virtual tour section */
.virtual-tour-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%) !important;
    padding: 4rem 0 !important;
    text-align: center !important;
    color: var(--pure-white) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Enhanced background overlay for visual depth */
.virtual-tour-section::before {
    background: radial-gradient(circle at 50% 50%, rgba(220, 20, 60, 0.08) 0%, rgba(220, 20, 60, 0.02) 70%, transparent 100%) !important;
}

/* Fix headphone icon */
.virtual-tour-section .fas.fa-headphones {
    color: var(--pure-white) !important;
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

/* Professional title styling */
.virtual-tour-section h2 {
    color: var(--pure-white) !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    font-family: var(--font-display) !important;
}

/* Enhanced description text */
.virtual-tour-section p {
    font-size: 1.1rem !important;
    margin-bottom: 2.5rem !important;
    color: var(--cream-white) !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.6 !important;
}

/* Professional play button design */
.virtual-tour-section .play-button {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary-red), var(--crimson-dark)) !important;
    border: 3px solid var(--pure-white) !important;
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.3) !important;
    font-size: 2.5rem !important;
    color: var(--pure-white) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    animation: none !important;
}

/* Enhanced hover effects */
.virtual-tour-section .play-button:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 25px 50px rgba(220, 20, 60, 0.4) !important;
    background: linear-gradient(135deg, var(--crimson-dark), var(--primary-red)) !important;
}

/* Play icon positioning */
.virtual-tour-section .play-button i {
    margin-left: 4px !important;
    line-height: 1 !important;
    font-size: 2.2rem !important;
}

/* Fix bottom description text */
.virtual-tour-section p:last-child {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem !important;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    font-style: italic !important;
}

/* Add subtle pulse animation */
.virtual-tour-section .play-button {
    position: relative !important;
}

.virtual-tour-section .play-button::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid var(--pure-white);
    opacity: 0;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Container and content improvements */
.virtual-tour-section .container {
    max-width: 800px !important;
}

/* Add decorative elements */
.virtual-tour-section [data-aos="fade-up"] {
    position: relative !important;
}

.virtual-tour-section [data-aos="fade-up"]::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .virtual-tour-section {
        padding: 3rem 0 !important;
    }
    
    .virtual-tour-section h2 {
        font-size: 2rem !important;
    }
    
    .virtual-tour-section p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .virtual-tour-section .play-button {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    .virtual-tour-section .play-button i {
        font-size: 1.8rem !important;
    }
    
    .virtual-tour-section .fas.fa-headphones {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 992px) {
    .virtual-tour-section h2 {
        font-size: 2.2rem !important;
    }
    
    .virtual-tour-section .play-button {
        width: 90px !important;
        height: 90px !important;
        font-size: 2.2rem !important;
    }
}

/* Professional spacing between sections */
.virtual-tour-section + section,
section + .virtual-tour-section {
    margin-top: 0 !important;
}

/* ========================================
   HERO SECTION COMPREHENSIVE FIXES
   ======================================== */

/* Enhanced hero content styling */
.hero-content {
    text-align: left !important;
    max-width: 750px !important;
    padding: 0 1rem !important;
}

/* Professional hero title */
.hero-content h1 {
    color: var(--pure-white) !important;
    font-size: clamp(3.5rem, 8vw, 5.5rem) !important;
    font-weight: 800 !important;
    font-family: var(--font-display) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    letter-spacing: -1px !important;
}

/* Enhanced hero description */
.hero-content p {
    color: var(--cream-white) !important;
    font-size: clamp(1.2rem, 3vw, 1.7rem) !important;
    font-weight: 500 !important;
    font-family: var(--font-heroic) !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7) !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
}

/* Professional hero buttons container */
.hero-buttons {
    justify-content: flex-start !important;
    gap: 1rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* Enhanced Visit Us button */
.hero-content .btn-outline-steel {
    color: var(--pure-white) !important;
    border: 2px solid var(--pure-white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
}

.hero-content .btn-outline-steel:hover {
    color: var(--primary-red) !important;
    background: var(--pure-white) !important;
    border-color: var(--pure-white) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
}

/* Enhanced Buy Ticket button */
.hero-content .btn-crimson {
    background: linear-gradient(135deg, var(--primary-red), var(--crimson-dark)) !important;
    border: 2px solid var(--primary-red) !important;
    color: var(--pure-white) !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4) !important;
}

.hero-content .btn-crimson:hover {
    background: linear-gradient(135deg, var(--crimson-dark), var(--primary-red)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.6) !important;
}

/* Add elegant text animations */
.hero-content h1 {
    animation: slideInLeft 1s ease-out;
}

.hero-content p {
    animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: slideInUp 1s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .hero-content {
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 1.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content p {
        font-size: 1.2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-buttons {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .hero-content .btn-outline-steel,
    .hero-content .btn-crimson {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 250px !important;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4.5rem !important;
    }
    
    .hero-content p {
        font-size: 1.5rem !important;
    }
}

/* Enhanced hero overlay for better text contrast */
.hero-section .hero-overlay {
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(220, 20, 60, 0.6) 30%,
        rgba(139, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.8) 100%
    ) !important;
}

/* Add subtle glow effect to hero content */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle at 30% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    position: relative !important;
}

/* ========================================
   NAVBAR COMPREHENSIVE FIXES
   ======================================== */

/* Enhanced navbar styling */
.navbar-top {
    padding: 1rem 0 !important;
    background: rgba(220, 20, 60, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

/* Scrolled navbar state */
.navbar.scrolled {
    padding: 0.5rem 0 !important;
    background: rgba(220, 20, 60, 0.98) !important;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3) !important;
}

/* Logo styling */
.navbar-brand .logo {
    height: 50px !important;
    transition: all 0.3s ease !important;
}

.navbar.scrolled .navbar-brand .logo {
    height: 40px !important;
}

/* Nav links enhancement */
.navbar-nav .nav-link {
    color: var(--pure-white) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.navbar-nav .nav-link:hover {
    color: var(--pure-white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--pure-white) !important;
}

/* Dropdown toggle styling */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-chevron {
    font-size: 0.7rem !important;
    margin-left: 0.5rem !important;
    transition: transform 0.3s ease !important;
}

.dropdown:hover .dropdown-chevron {
    transform: rotate(180deg) !important;
}

/* Enhanced dropdown menu */
.dropdown-menu {
    background: rgba(220, 20, 60, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
}

/* Dropdown items */
.dropdown-item {
    color: var(--pure-white) !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    padding: 0.7rem 1.2rem !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--pure-white) !important;
    transform: translateX(5px) !important;
}

/* Dropdown divider */
.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 0.5rem 1rem !important;
}

/* Mobile toggle button */
.navbar-toggler {
    border: 2px solid var(--pure-white) !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.6rem !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile dropdown improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(220, 20, 60, 0.98) !important;
        margin-top: 1rem !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }
    
    .navbar-nav {
        text-align: center !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.2rem 0 !important;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0.5rem 0 !important;
    }
    
    .dropdown-item {
        padding: 0.6rem 1rem !important;
        text-align: center !important;
    }
    
    .dropdown-item:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.2) !important;
    }
}

/* Enhanced container */
.navbar .container {
    max-width: 1200px !important;
}

/* Fix dropdown positioning and hover behavior */
.dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(5px) !important;
    transition: all 0.2s ease !important;
    margin-top: 0 !important;
    top: 100% !important;
    left: 0 !important;
    position: absolute !important;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Professional hover effects */
.nav-item.dropdown:hover .nav-link {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Add subtle animation to navbar */
.navbar-top {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced brand hover effect */
.navbar-brand {
    transition: all 0.3s ease !important;
}

.navbar-brand:hover .logo {
    filter: brightness(1.1) !important;
    transform: scale(1.02) !important;
}

/* ========================================
   DROPDOWN NAVIGATION FIXES
   ======================================== */

/* Ensure dropdown stays open when hovering menu items */
.nav-item.dropdown {
    position: relative !important;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Add hover bridge to prevent menu closing */
.nav-item.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 1000;
}

/* Improve dropdown menu positioning */
.dropdown-menu {
    min-width: 220px !important;
    z-index: 1001 !important;
    border-top: 3px solid var(--pure-white) !important;
}

/* Better hover states for dropdown items */
.dropdown-item {
    position: relative !important;
    overflow: hidden !important;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.dropdown-item:hover::before {
    left: 0;
}

/* Prevent menu closing when moving mouse between items */
.dropdown-menu {
    padding: 0.8rem 0 !important;
}

.dropdown-item {
    margin: 0 0.5rem !important;
    border-radius: 6px !important;
    position: relative !important;
}

/* Mobile dropdown fixes */
@media (max-width: 991px) {
    .nav-item.dropdown::before {
        display: none !important;
    }
    
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

/* Dropdown toggle positioning (removed conflicting styles) */
.nav-item.dropdown .dropdown-toggle {
    position: relative !important;
}

/* ========================================
   WHITE UNDERLINE POSITION FIX
   ======================================== */

/* Override all previous dropdown toggle styles */
.navbar-nav .nav-item.dropdown .dropdown-toggle::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 0.5rem !important;
    transform: none !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--pure-white) !important;
    transition: width 0.3s ease !important;
}

.navbar-nav .nav-item.dropdown:hover .dropdown-toggle::after {
    width: calc(100% - 1rem) !important;
}

/* Additional specificity for navbar */
.navbar-top .navbar-nav .nav-item.dropdown .dropdown-toggle::after {
    left: 0.5rem !important;
    transform: none !important;
}

.navbar-top .navbar-nav .nav-item.dropdown:hover .dropdown-toggle::after {
    width: calc(100% - 1rem) !important;
    left: 0.5rem !important;
    transform: none !important;
}

/* ========================================
   TOP BAR COMPREHENSIVE FIXES
   ======================================== */

/* Enhanced top bar styling */
.top-bar {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--crimson-dark) 100%) !important;
    color: var(--pure-white) !important;
    padding: 0.7rem 0 !important;
    position: fixed !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3) !important;
    z-index: 1050 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Container styling */
.top-bar .container {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

/* Opening hours styling */
.top-bar .opening-hours {
    color: var(--pure-white) !important;
    display: flex !important;
    align-items: center !important;
}

.top-bar .opening-hours i {
    color: var(--pure-white) !important;
    font-size: 1rem !important;
}

.top-bar .opening-hours b {
    color: var(--pure-white) !important;
    font-family: var(--font-body) !important;
}

/* Language switch enhancements */
.top-bar .language-switch {
    display: flex !important;
    align-items: center !important;
}

/* Language links styling */
.top-bar .language-switch a {
    color: var(--pure-white) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Active language (EN) */
.top-bar .language-switch a:first-child {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--pure-white) !important;
    font-weight: 700 !important;
}

/* Inactive language (BN) */
.top-bar .language-switch a:last-child {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
}

/* Hover effects */
.top-bar .language-switch a:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: var(--pure-white) !important;
    transform: translateY(-1px) !important;
}

/* Language separator */
.top-bar .language-switch .mx-1 {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 300 !important;
    font-size: 0.9rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.4rem 0 !important;
        font-size: 0.7rem !important;
    }
    
    .top-bar .container {
        font-size: 0.7rem !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .top-bar .opening-hours {
        font-size: 0.55rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60% !important;
        flex: 1 !important;
    }
    
    .top-bar .opening-hours i {
        font-size: 0.5rem !important;
        margin-right: 0.1rem !important;
    }
    
    .top-bar .opening-hours b {
        font-size: 0.55rem !important;
    }
    
    .top-bar .language-switch {
        font-size: 0.65rem !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    
    .top-bar .language-switch a {
        padding: 0.15rem 0.3rem !important;
        font-size: 0.65rem !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }
    
    .top-bar .language-switch a.fw-bold {
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 3px !important;
        color: #ffffff !important;
    }
    
    .top-bar .language-switch .mx-1 {
        font-size: 0.6rem !important;
        margin: 0 0.2rem !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .top-bar {
        padding: 0.3rem 0 !important;
        font-size: 0.6rem !important;
    }
    
    .top-bar .opening-hours {
        font-size: 0.6rem !important;
    }
    
    .top-bar .opening-hours b {
        display: none !important;
    }
    
    .top-bar .language-switch a {
        padding: 0.15rem 0.3rem !important;
        font-size: 0.65rem !important;
    }
}

/* Ensure top bar is always visible */
.top-bar.d-md-block {
    display: block !important;
}

/* Adjust main navbar position to account for top bar */
.navbar-top {
    top: 44px !important;
}

@media (max-width: 768px) {
    .navbar-top {
        top: 36px !important;
    }
}

/* Add subtle animation */
.top-bar {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional text styling */
.top-bar .opening-hours,
.top-bar .language-switch {
    font-family: var(--font-heroic) !important;
}

/* ========================================
   TOP BAR OPENING HOURS TEXT FIXES
   ======================================== */

/* Fix all opening hours text to be white */
.top-bar .opening-hours,
.top-bar .opening-hours *,
.top-bar .opening-hours b,
.top-bar .opening-hours span {
    color: var(--pure-white) !important;
}

/* Enhanced "Open:" text styling */
.top-bar .opening-hours b {
    color: var(--pure-white) !important;
    font-family: var(--font-heroic) !important;
    font-weight: 700 !important;
    margin-right: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Opening hours time text styling */
.top-bar .opening-hours {
    font-weight: 500 !important;
    font-family: var(--font-heroic) !important;
}

/* Ensure no black text in opening hours */
.top-bar .opening-hours > * {
    color: var(--pure-white) !important;
}

/* Override any inherited black text */
.top-bar * {
    color: var(--pure-white) !important;
}

/* Clock icon enhancement */
.top-bar .opening-hours .uil-clock-three {
    color: var(--cream-white) !important;
    font-size: 1.1rem !important;
    margin-right: 0.5rem !important;
}

/* Better spacing and layout */
.top-bar .opening-hours {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

/* ========================================
   FORCE ALL TOP BAR TEXT TO WHITE
   ======================================== */

/* Strongest possible override for all top bar text */
.top-bar,
.top-bar div,
.top-bar .opening-hours,
.top-bar .container,
.top-bar .d-flex {
    color: var(--pure-white) !important;
}

/* Target any text node directly */
.top-bar * {
    color: var(--pure-white) !important;
}

/* Override Bootstrap classes that might be causing black text */
.top-bar .d-flex,
.top-bar .justify-content-between,
.top-bar .align-items-center {
    color: var(--pure-white) !important;
}

/* Force inheritance */
.top-bar .opening-hours {
    color: var(--pure-white) !important;
}

/* Universal top bar text override */
.top-bar {
    color: var(--pure-white) !important;
}

.top-bar .opening-hours {
    color: var(--pure-white) !important;
}

/* Prevent any Bootstrap or other framework interference */
.top-bar .opening-hours,
.top-bar .opening-hours::before,
.top-bar .opening-hours::after {
    color: var(--pure-white) !important;
}

/* Most specific override possible */
div.top-bar div.container div.opening-hours {
    color: var(--pure-white) !important;
}

/* Text content override */
.top-bar .opening-hours {
    color: var(--pure-white) !important;
    background: transparent !important;
}

/* ========================================
EXHIBITIONS SECTION BACKGROUND ANIMATION
======================================== */

/* Exhibitions section with animated background */
#exhibitions {
    position: relative;
    overflow: hidden;
}

/* Animated background overlay */
#exhibitions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-image: url('http://127.0.0.1:8000/assets/frontend/images/chronology/july-architecture/monument_design.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: -1;
    animation: subtleFloat 20s ease-in-out infinite;
    filter: grayscale(0.3) blur(1px);
}

/* Subtle floating animation */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateX(-10px) translateY(-5px) scale(1);
    }
    25% {
        transform: translateX(5px) translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateX(10px) translateY(5px) scale(1.01);
    }
    75% {
        transform: translateX(-5px) translateY(10px) scale(1.02);
    }
}

/* Enhanced gradient overlay for better text readability */
#exhibitions::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.95) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure content appears above background */
#exhibitions .container {
    position: relative;
    z-index: 1;
}

/* Add subtle parallax effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    #exhibitions::before {
        animation: subtleFloat 20s ease-in-out infinite,
                   parallaxMove 30s linear infinite;
    }
}

@keyframes parallaxMove {
    0% {
        background-position: center top;
    }
    50% {
        background-position: center center;
    }
    100% {
        background-position: center top;
    }
}

/* Enhanced exhibition cards with subtle glow effect */
#exhibitions .exhibition-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#exhibitions .exhibition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #exhibitions::before {
        animation-duration: 25s;
        opacity: 0.05;
    }
}


/* ========================================
EXHIBITIONS CARD STYLES (Fix for Background Animation)
======================================== */

/* Base exhibition card styles */
.exhibition-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 400px;
}

.exhibition-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Always visible overlay */
.exhibition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: all 0.3s ease;
}

.exhibition-overlay h3 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.exhibition-overlay p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.view-details {
    margin-top: 0.5rem;
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-details:hover {
    color: #ffffff;
    transform: translateX(5px);
}

/* Enhanced hover effects for cards */
.exhibition-card:hover .exhibition-image {
    transform: scale(1.05);
}

.exhibition-card:hover .exhibition-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* Responsive adjustments for cards */
@media (max-width: 768px) {
    .exhibition-card {
        height: 350px;
    }
    
    .exhibition-overlay {
        padding: 1.5rem;
    }
    
    .exhibition-overlay h3 {
        font-size: 1.5rem;
    }
    
    .exhibition-overlay p {
        font-size: 0.95rem;
    }
}


/* ========================================
LOGO VISIBILITY FIX FOR RED NAVBAR
======================================== */

/* Enhanced logo visibility with background and shadow effects */
.navbar-brand .logo {
    /* Add a subtle background to separate logo from red navbar */
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    
    /* Add shadow effects for better visibility */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    
    /* Enhance contrast */
    filter: brightness(1.1) contrast(1.1) !important;
    
    /* Smooth transitions */
    transition: all 0.3s ease !important;
}

/* Hover effect for logo */
.navbar-brand:hover .logo {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.2) !important;
    filter: brightness(1.2) contrast(1.2) !important;
    transform: scale(1.02) !important;
}

/* Alternative approach - add a white glow around the logo */
.navbar-brand .logo {
    /* White outline glow effect */
    filter: 
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.2)) !important;
}

/* For scrolled state, make logo even more prominent */
.navbar.scrolled .navbar-brand .logo {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Mobile navbar logo visibility */
@media (max-width: 991px) {
    .navbar-brand .logo {
        background: rgba(255, 255, 255, 0.08) !important;
        padding: 3px 6px !important;
    }
}

/* Alternative solution - if the above doesn't work well, we can add a dark background */
.navbar-brand {
    position: relative !important;
}

.navbar-brand::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% + 10px) !important;
    height: calc(100% + 10px) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.navbar-brand:hover::before {
    opacity: 1 !important;
}


/* ========================================
ENHANCED LOGO VISIBILITY & SIZE BOOST
======================================== */

/* Override previous logo styles with stronger visibility */
.navbar-brand .logo {
    /* Increased size */
    height: 75px !important;
    width: auto !important;
    
    /* Stronger background for better separation */
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 6px 12px !important;
    
    /* Multiple strong shadow effects */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    
    /* Enhanced visibility filters */
    filter: 
        brightness(1.3) 
        contrast(1.3) 
        drop-shadow(0 0 3px rgba(255, 255, 255, 1))
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 9px rgba(255, 255, 255, 0.5)) !important;
    
    /* Smooth animations */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    
    /* Ensure it stands out */
    position: relative !important;
    z-index: 10 !important;
}

/* Enhanced hover effects */
.navbar-brand:hover .logo {
    /* Slight size increase on hover */
    transform: scale(1.05) !important;
    height: 78px !important;
    
    /* Stronger glow on hover */
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    
    /* Intense glow effect */
    filter: 
        brightness(1.4) 
        contrast(1.4) 
        drop-shadow(0 0 5px rgba(255, 255, 255, 1))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
        drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)) !important;
}

/* Scrolled navbar state - keep logo prominent */
.navbar.scrolled .navbar-brand .logo {
    height: 65px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
}

/* Pulsing glow animation for extra attention */
.navbar-brand .logo {
    animation: logoGlow 3s ease-in-out infinite alternate !important;
}

@keyframes logoGlow {
    0% {
        filter: 
            brightness(1.3) 
            contrast(1.3) 
            drop-shadow(0 0 3px rgba(255, 255, 255, 1))
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 9px rgba(255, 255, 255, 0.5));
    }
    100% {
        filter: 
            brightness(1.4) 
            contrast(1.4) 
            drop-shadow(0 0 5px rgba(255, 255, 255, 1))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    }
}

/* Ensure navbar can accommodate larger logo */
.navbar-brand {
    height: 85px !important;
    display: flex !important;
    align-items: center !important;
    padding: 5px 0 !important;
}

/* Adjust navbar padding for larger logo */
.navbar:not(.scrolled) {
    padding: 1.5rem 0 !important;
}

.navbar.scrolled {
    padding: 1rem 0 !important;
}

/* Mobile responsiveness */
@media (max-width: 991px) {
    .navbar-brand .logo {
        height: 65px !important;
        padding: 4px 8px !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }
    
    .navbar-brand:hover .logo {
        height: 68px !important;
    }
    
    .navbar-brand {
        height: 75px !important;
    }
}

/* Extra visibility backdrop */
.navbar-brand::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% + 20px) !important;
    height: calc(100% + 20px) !important;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    ) !important;
    border-radius: 20px !important;
    z-index: -1 !important;
}


/* ========================================
LOGO FIX - DARK BACKGROUND FOR WHITE VISIBILITY
======================================== */

/* Override previous styles with dark background for white logo visibility */
.navbar-brand .logo {
    /* Keep the larger size */
    height: 75px !important;
    width: auto !important;
    
    /* Dark background to show white portions */
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    padding: 6px 12px !important;
    
    /* Dark shadow with white border */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    
    /* Remove white glow, add subtle enhancement */
    filter: 
        brightness(1.1) 
        contrast(1.2) 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    
    /* Smooth animations */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    
    /* Ensure it stands out */
    position: relative !important;
    z-index: 10 !important;
}

/* Enhanced hover effects with dark theme */
.navbar-brand:hover .logo {
    /* Slight size increase on hover */
    transform: scale(1.05) !important;
    height: 78px !important;
    
    /* Darker background on hover for better contrast */
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.15) !important;
    
    /* Enhanced but subtle filter */
    filter: 
        brightness(1.15) 
        contrast(1.3) 
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) !important;
}

/* Scrolled navbar state */
.navbar.scrolled .navbar-brand .logo {
    height: 65px !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
}

/* Remove the white glow animation, replace with subtle dark theme animation */
.navbar-brand .logo {
    animation: logoEnhance 3s ease-in-out infinite alternate !important;
}

@keyframes logoEnhance {
    0% {
        background: rgba(0, 0, 0, 0.3);
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            0 0 0 2px rgba(255, 255, 255, 0.2);
    }
    100% {
        background: rgba(0, 0, 0, 0.35);
        box-shadow: 
            0 5px 18px rgba(0, 0, 0, 0.6),
            0 0 0 2px rgba(255, 255, 255, 0.25);
    }
}

/* Mobile responsiveness */
@media (max-width: 991px) {
    .navbar-brand .logo {
        height: 65px !important;
        padding: 4px 8px !important;
        background: rgba(0, 0, 0, 0.25) !important;
    }
    
    .navbar-brand:hover .logo {
        height: 68px !important;
        background: rgba(0, 0, 0, 0.35) !important;
    }
}

/* Dark backdrop instead of white */
.navbar-brand::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100% + 20px) !important;
    height: calc(100% + 20px) !important;
    background: radial-gradient(
        circle,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        transparent 100%
    ) !important;
    border-radius: 20px !important;
    z-index: -1 !important;
}


/* ========================================
COMPREHENSIVE MODERN DESIGN SYSTEM
FOR ALL MUSEUM PAGES
======================================== */

/* Modern Design Variables */
:root {
    /* Modern Color Palette */
    --modern-primary: #dc143c;
    --modern-secondary: #2c3e50;
    --modern-accent: #e74c3c;
    --modern-success: #27ae60;
    --modern-warning: #f39c12;
    --modern-info: #3498db;
    --modern-dark: #1a1a1a;
    --modern-light: #f8f9fa;
    --modern-white: #ffffff;
    --modern-gray-100: #f7f7f7;
    --modern-gray-200: #eeeeee;
    --modern-gray-300: #dddddd;
    --modern-gray-400: #cccccc;
    --modern-gray-500: #999999;
    --modern-gray-600: #666666;
    --modern-gray-700: #444444;
    --modern-gray-800: #2d2d2d;
    --modern-gray-900: #1a1a1a;
    
    /* Modern Typography */
    --modern-font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --modern-font-heading: 'Poppins', 'Inter', sans-serif;
    --modern-font-display: 'Playfair Display', serif;
    
    /* Modern Spacing */
    --modern-spacing-xs: 0.25rem;
    --modern-spacing-sm: 0.5rem;
    --modern-spacing-md: 1rem;
    --modern-spacing-lg: 1.5rem;
    --modern-spacing-xl: 2rem;
    --modern-spacing-2xl: 3rem;
    --modern-spacing-3xl: 4rem;
    
    /* Modern Border Radius */
    --modern-radius-sm: 0.375rem;
    --modern-radius-md: 0.5rem;
    --modern-radius-lg: 0.75rem;
    --modern-radius-xl: 1rem;
    --modern-radius-2xl: 1.5rem;
    
    /* Modern Shadows */
    --modern-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --modern-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --modern-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --modern-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Modern Transitions */
    --modern-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --modern-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --modern-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
MODERN BUTTON SYSTEM
======================================== */

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--modern-spacing-sm);
    padding: var(--modern-spacing-md) var(--modern-spacing-lg);
    font-family: var(--modern-font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--modern-radius-lg);
    cursor: pointer;
    transition: all var(--modern-transition-base);
    user-select: none;
    white-space: nowrap;
}

/* Primary Button */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--modern-primary) 0%, var(--modern-accent) 100%);
    color: var(--modern-white);
    box-shadow: var(--modern-shadow-md);
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, #b91130 0%, #c0392b 100%);
    box-shadow: var(--modern-shadow-lg);
    transform: translateY(-2px);
    color: var(--modern-white);
}

/* Secondary Button */
.btn-modern-secondary {
    background: var(--modern-white);
    color: var(--modern-primary);
    border-color: var(--modern-primary);
    box-shadow: var(--modern-shadow-sm);
}

.btn-modern-secondary:hover {
    background: var(--modern-primary);
    color: var(--modern-white);
    box-shadow: var(--modern-shadow-md);
    transform: translateY(-1px);
}

/* Outline Button */
.btn-modern-outline {
    background: transparent;
    color: var(--modern-primary);
    border-color: var(--modern-primary);
}

.btn-modern-outline:hover {
    background: var(--modern-primary);
    color: var(--modern-white);
    transform: translateY(-1px);
}

/* Ghost Button */
.btn-modern-ghost {
    background: transparent;
    color: var(--modern-gray-600);
    border-color: transparent;
}

.btn-modern-ghost:hover {
    background: var(--modern-gray-100);
    color: var(--modern-gray-800);
}

/* Button Sizes */
.btn-modern-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    border-radius: 0.2rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    white-space: nowrap;
    line-height: 1.2;
}

/* Timeline specific button styling */
.timeline-content .btn {
    padding: 0.15rem 0.35rem;
    font-size: 0.6rem;
    border-radius: 0.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1.2;
    margin: 0.1rem 0.05rem;
}

.timeline-content .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Ensure buttons stay on one line */
.timeline-content .d-flex {
    flex-wrap: nowrap;
    gap: 0.15rem;
    align-items: center;
}

.timeline-content .gap-2 {
    gap: 0.15rem !important;
}

/* Improved buttons for archive links */
.timeline-content .btn-outline-dark,
.timeline-content .btn-sm {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.375rem !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    border-width: 1px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.timeline-content .btn i {
    font-size: 0.65rem;
    margin-right: 0.25rem;
}

/* Mobile-friendly button sizes */
@media (max-width: 768px) {
    .timeline-content .btn-outline-dark,
    .timeline-content .btn-sm {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .timeline-content .btn i {
        font-size: 0.7rem;
        margin-right: 0.3rem;
    }
    
    .timeline-content .d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

.btn-modern-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.btn-modern-md {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.btn-modern-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* ========================================
MODERN CARD SYSTEM
======================================== */

.card-modern {
    background: var(--modern-white);
    border-radius: var(--modern-radius-xl);
    box-shadow: var(--modern-shadow-md);
    overflow: hidden;
    transition: all var(--modern-transition-base);
    border: 1px solid var(--modern-gray-200);
}

.card-modern:hover {
    box-shadow: var(--modern-shadow-xl);
    transform: translateY(-4px);
    border-color: var(--modern-primary);
}

.card-modern-header {
    padding: var(--modern-spacing-lg);
    border-bottom: 1px solid var(--modern-gray-200);
}

.card-modern-body {
    padding: var(--modern-spacing-lg);
}

.card-modern-footer {
    padding: var(--modern-spacing-lg);
    border-top: 1px solid var(--modern-gray-200);
    background: var(--modern-gray-50);
}

/* ========================================
MODERN TYPOGRAPHY SYSTEM
======================================== */

.text-modern-h1 {
    font-family: var(--modern-font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--modern-gray-900);
    margin-bottom: var(--modern-spacing-lg);
}

.text-modern-h2 {
    font-family: var(--modern-font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--modern-gray-900);
    margin-bottom: var(--modern-spacing-md);
}

.text-modern-h3 {
    font-family: var(--modern-font-heading);
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--modern-gray-800);
    margin-bottom: var(--modern-spacing-md);
}

.text-modern-h4 {
    font-family: var(--modern-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--modern-gray-800);
    margin-bottom: var(--modern-spacing-sm);
}

.text-modern-body {
    font-family: var(--modern-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--modern-gray-700);
    margin-bottom: var(--modern-spacing-md);
}

.text-modern-small {
    font-family: var(--modern-font-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--modern-gray-600);
}

.text-modern-accent {
    color: var(--modern-primary);
    font-weight: 600;
}

/* ========================================
MODERN FORM SYSTEM
======================================== */

.form-modern-group {
    margin-bottom: var(--modern-spacing-lg);
}

.form-modern-label {
    display: block;
    font-family: var(--modern-font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--modern-gray-700);
    margin-bottom: var(--modern-spacing-sm);
}

.form-modern-input {
    width: 100%;
    padding: var(--modern-spacing-md);
    font-family: var(--modern-font-primary);
    font-size: 1rem;
    color: var(--modern-gray-900);
    background: var(--modern-white);
    border: 2px solid var(--modern-gray-300);
    border-radius: var(--modern-radius-lg);
    transition: all var(--modern-transition-base);
}

.form-modern-input:focus {
    outline: none;
    border-color: var(--modern-primary);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-modern-input::placeholder {
    color: var(--modern-gray-500);
}

/* ========================================
MODERN LAYOUT SYSTEM
======================================== */

.container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--modern-spacing-lg);
}

.section-modern {
    padding: var(--modern-spacing-3xl) 0;
}

.grid-modern {
    display: grid;
    gap: var(--modern-spacing-xl);
}

.grid-modern-2 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

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

.grid-modern-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========================================
MODERN PAGE-SPECIFIC STYLES
======================================== */

/* Chronology Pages */
.chronology-modern-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: var(--modern-spacing-2xl) 0;
}

.chronology-modern-header {
    text-align: center;
    margin-bottom: var(--modern-spacing-3xl);
}

.chronology-modern-content {
    background: var(--modern-white);
    border-radius: var(--modern-radius-2xl);
    padding: var(--modern-spacing-2xl);
    box-shadow: var(--modern-shadow-xl);
    margin-bottom: var(--modern-spacing-xl);
}

/* Archives Pages */
.archives-modern-page {
    background: var(--modern-white);
    min-height: 100vh;
}

.archives-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--modern-spacing-xl);
    padding: var(--modern-spacing-xl) 0;
}

.archives-modern-item {
    background: var(--modern-white);
    border-radius: var(--modern-radius-xl);
    overflow: hidden;
    box-shadow: var(--modern-shadow-md);
    transition: all var(--modern-transition-base);
}

.archives-modern-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--modern-shadow-xl);
}

/* Contact Page */
.contact-modern-page {
    background: linear-gradient(135deg, #dc143c 0%, #e74c3c 100%);
    min-height: 100vh;
    padding: var(--modern-spacing-3xl) 0;
}

.contact-modern-form {
    background: var(--modern-white);
    border-radius: var(--modern-radius-2xl);
    padding: var(--modern-spacing-2xl);
    box-shadow: var(--modern-shadow-xl);
}

/* Coming Soon Page */
.coming-soon-modern {
    background: linear-gradient(135deg, var(--modern-dark) 0%, var(--modern-gray-800) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--modern-white);
}

/* ========================================
MODERN RESPONSIVE SYSTEM
======================================== */

/* Mobile First Approach */
@media (max-width: 640px) {
    .text-modern-h1 { font-size: 2rem; }
    .text-modern-h2 { font-size: 1.75rem; }
    .text-modern-h3 { font-size: 1.5rem; }
    
    .container-modern {
        padding: 0 var(--modern-spacing-md);
    }
    
    .section-modern {
        padding: var(--modern-spacing-xl) 0;
    }
}

@media (max-width: 768px) {
    .grid-modern {
        gap: var(--modern-spacing-lg);
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
MODERN ANIMATION SYSTEM
======================================== */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ========================================
MODERN UTILITY CLASSES
======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--modern-spacing-xs); }
.mb-2 { margin-bottom: var(--modern-spacing-sm); }
.mb-3 { margin-bottom: var(--modern-spacing-md); }
.mb-4 { margin-bottom: var(--modern-spacing-lg); }
.mb-5 { margin-bottom: var(--modern-spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--modern-spacing-xs); }
.mt-2 { margin-top: var(--modern-spacing-sm); }
.mt-3 { margin-top: var(--modern-spacing-md); }
.mt-4 { margin-top: var(--modern-spacing-lg); }
.mt-5 { margin-top: var(--modern-spacing-xl); }

