:root {
    --charcoal: #0f0f0f;
    --off-white: #f8f6f3;

    --dark-charcoal: #1a1a1a;
    --dark-charcoal-light: #1f1f1f;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* FONT VARIABLES */
    --bs-font-serif: 'Cinzel', serif;
    --bs-font-sans-serif: 'Montserrat', sans-serif;

    /* FINAL PALETTE FOR REVOLUTION/REMEMBRANCE */
    --dignified-crimson: #E40613; /* Primary accent: Sacrifice, Resolve, Buttons (SOLID) */
    --revolutionary-steel: #36454F; /* Secondary accent: Resilience, Borders, Lines */
    --subtle-silver: #B0C4DE; /* Light accent: TEXT COLOR ON DARK BACKGROUNDS */
}

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

body {
    font-family: var(--bs-font-sans-serif);
    color: var(--charcoal);
    background-color: var(--off-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-font-serif);
    font-weight: 700;
}

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

/* -----------------------------------
   1. ENHANCED NAVIGATION
----------------------------------- */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgb(255 255 255 / 7%);
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.98);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--bs-font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    /* FIX: Solid Color for Brand Text */
    color: var(--dignified-crimson);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    color: var(--off-white) !important;
    font-weight: 500;
    margin: 0 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--dignified-crimson) !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    /* FIX: Solid Crimson Underline */
    background: var(--dignified-crimson);
    transition: width 0.3s ease;
}

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

/* Enhanced Dropdown */
.navbar-nav .dropdown-menu {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    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(--off-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: var(--dignified-crimson);
    color: var(--charcoal) !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(0, 0, 0, 0.5);
    /* 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-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

/* Primary Button: Crimson background */
.btn-crimson {
    background: var(--dignified-crimson);
    color: var(--off-white);
    box-shadow: 0 10px 30px rgba(169, 28, 62, 0.3);
}

.btn-crimson:hover {
    transform: translateY(-5px);
    background: var(--revolutionary-steel);
    box-shadow: 0 20px 40px rgba(169, 28, 62, 0.5);
}

/* Secondary Button: Steel Outline */
.btn-outline-steel {
    background: transparent;
    border: 2px solid var(--revolutionary-steel);
    color: var(--subtle-silver);
    backdrop-filter: blur(10px);
}

.btn-outline-steel:hover {
    background: var(--revolutionary-steel);
    color: var(--off-white);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(54, 69, 79, 0.3);
}

/* --- 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 {
    /* Pulse color */
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(169, 28, 62, 0.7);
    }
    50% {
        box-shadow: 0 0 0 30px 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(0, 0, 0, 0.2);
}

.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(--charcoal);
    color: var(--off-white);
    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(169, 28, 62, 0.1) 0%, transparent 50%);
}

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

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

.about-content h2 {
    color: var(--dignified-crimson);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: #d4d4d4;
}

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

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    /* FIX: Solid Color for Text */
    color: var(--dignified-crimson);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #999;
    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(0, 0, 0, 0.08);
    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(0, 0, 0, 0.15);
}

.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: var(--charcoal);
    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(169, 28, 62, 0.1) 0%, transparent 50%);
}

.gallery-section .section-title {
    color: var(--dignified-crimson);
}

.gallery-section .section-subtitle {
    color: #999;
}

.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.5);
    border-radius: 50%;
    padding: 0.75rem;
    opacity: 1;
    z-index: 10;
}

/* -----------------------------------
   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%;
    /* FIX: Solid Crimson Background */
    background: var(--dignified-crimson);
    border: none;
    font-size: 3rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    animation: pulse 2s infinite;
}

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

/* -----------------------------------
   10. MODERN FOOTER
----------------------------------- */
.footer {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-charcoal) 100%);
    color: var(--off-white);
    padding: 5rem 0 2rem;
    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(--dignified-crimson);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

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

.footer-links a {
    color: #ccc;
    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(--dignified-crimson);
}

.footer-links a:hover {
    color: var(--dignified-crimson);
    padding-left: 1rem;
}

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

.footer-info p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

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

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

.social-icons a:hover {
    background: var(--dignified-crimson);
    color: var(--charcoal);
    box-shadow: 0 10px 20px rgba(169, 28, 62, 0.3);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #777;
}

.footer-bottom a {
    color: var(--dignified-crimson) !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: 1fr;
    }

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

/* 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: 3px;
    background: var(--dignified-crimson);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px; /* Center the 3px line more precisely */
    z-index: 1;
}

/* Container around content */
.timeline-item {
    padding: 10px 40px; /* Keep padding */
    position: relative;
    width: 50%; /* Content takes half the width */
    z-index: 2;
}

/* The circles on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--dark-charcoal);
    border: 3px solid var(--dignified-crimson);
    top: 15px;
    border-radius: 50%;
    z-index: 3;
}

/* 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: -14px; /* 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: -12px; /* 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;
    }
    .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(--off-white) transparent transparent;
        left: -15px;
    }
    .timeline-item.left .timeline-content::before {
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--off-white) transparent transparent;
        left: -15px;
    }
}
/* -----------------------------------
   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;
}
