.bg-video-wrap {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    background-color: #000 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero-video-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.video-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

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

/* Targets video, img, and iframes to guarantee fullscreen stretch */
.video-slide video,
.video-slide img,
.video-slide iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    /* Force Viewport Width */
    height: 100vh !important;
    /* Force Viewport Height */
    object-fit: cover !important;
    transform: scale(1.05);
    transition: transform 10s linear;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

.video-slide.active video,
.video-slide.active img,
.video-slide.active iframe {
    transform: scale(1);
}

/* Overlay & Glassmorphism */
.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%) !important;
    z-index: 3 !important;
    pointer-events: none;
}

.hero-content-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 4 !important;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpFade 1.5s ease 0.5s forwards;
    width: 100%;
}

/* Typography & Buttons */
.theme-gold {
    color: #d4af37 !important;
}

.tracking-widest {
    letter-spacing: 4px !important;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    line-height: 1.1 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-gold {
    background: linear-gradient(45deg, #d4af37, #f3e5ab) !important;
    color: #000 !important;
    border: none !important;
}

.btn-gold:hover {
    background: linear-gradient(45deg, #f3e5ab, #d4af37) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
    transform: translateY(-2px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Controls */
.glass-control {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
    width: 50px !important;
    height: 50px !important;
    cursor: pointer;
}

.glass-control:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.1);
}

.hero-dots .dot {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    margin: 0 8px !important;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-block !important;
}

.hero-dots .dot.active {
    background: #d4af37 !important;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Animations */
@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ... (existing styles) ... */
.flex-row-reverse .editorial-content {
    padding-left: 0;
    padding-right: 3rem;
}

@media (max-width: 991px) {
    .flex-row-reverse .editorial-content {
        padding-right: 0;
    }
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

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

.animate-course {
    animation: fadeUpIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.course-art-wrapper {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-course:hover .course-art-wrapper {
    transform: translateY(-8px) scale(1.02);
}

.editorial-content {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-course:hover .editorial-content {
    transform: translateX(10px);
}

.flex-row-reverse.animate-course:hover .editorial-content {
    transform: translateX(-10px);
}

/* --- Signature Menus Section Styles --- */
.signature-menus-section {
    background-color: transparent;
    padding: 80px 0;
    position: relative;
}

/* Top Floral Pattern Background */
.signature-menus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("../images/floral-border.png");
    background-repeat: repeat-x;
    background-size: auto 100px;
    opacity: 0.9;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* Bottom Floral Pattern Background (Flipped) */
.signature-menus-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("../images/floral-border.png");
    background-repeat: repeat-x;
    background-size: auto 100px;
    opacity: 0.9;
    transform: scaleY(-1);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.signature-menus-section .auto-container {
    position: relative;
    z-index: 1;
}

.luxury-nav-tabs {
    border-bottom: 2px solid #e0d5c1;
    justify-content: center;
    margin-bottom: 4rem;
    border-top: none;
    border-left: none;
    border-right: none;
}

.luxury-nav-tabs .nav-item {
    margin-bottom: -2px;
}

.luxury-nav-tabs .nav-item .nav-link {
    font-family: var(--font-family-Philosopher, 'Philosopher', serif);
    color: #666;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    padding: 12px 25px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.luxury-nav-tabs .nav-item .nav-link:hover {
    color: #c49a45;
}

.luxury-nav-tabs .nav-item .nav-link.active {
    color: #8b0000;
    font-weight: bold;
    background: transparent;
    border: none;
}

.luxury-nav-tabs .nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #8b0000;
}

/* ----- VARIANT 3.1: Enhanced Double-Arch Jharokha Style ----- */
.menu-item-card {
    background: linear-gradient(180deg, #ffffff 0%, #fef8f0 100%);
    border: 1px solid #eaddc7;
    /* Pronounced Arch Shape */
    border-radius: 100px 100px 10px 10px;
    padding: 50px 20px 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Inner Jharokha Frame (Perfectly Traces the Arch) */
.menu-item-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border: 1px solid rgba(196, 154, 69, 0.3);
    /* Subtle Gold */
    border-radius: 92px 92px 6px 6px;
    /* Inner Arch matches outer arch */
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

/* Deep Red bottom accent reveal on hover */
.menu-item-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #8b0000;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

/* Hover effect on Card */
.menu-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.05), 0 5px 15px rgba(196, 154, 69, 0.08);
    border-color: #c49a45;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
}

/* Inner frame gets solid and shrinks slightly on hover */
.menu-item-card:hover::before {
    border-color: rgba(196, 154, 69, 1);
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;
}

.menu-item-card:hover::after {
    transform: scaleX(1);
}

/* Orange Flower Icon */
.card-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Float the icon up and add Golden Glow on hover */
.menu-item-card:hover .card-icon {
    transform: translateY(-6px) scale(1.1);
    opacity: 1;
    /* This gives the flower a glowing 'halo' effect */
    filter: drop-shadow(0 0 12px rgba(196, 154, 69, 0.7));
}

/* Card Title */
.menu-item-card h4 {
    font-family: var(--font-family-Philosopher, 'Philosopher', serif);
    font-size: 1.15rem;
    color: #2c2c2c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu-item-card:hover h4 {
    color: #8b0000;
    /* Deep Red */
}

/* Delicate dot separator */
.card-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #c49a45;
    margin: 15px auto;
    transition: all 0.4s ease;
}

.menu-item-card:hover .card-separator {
    transform: scale(1.5);
    background-color: #8b0000;
}

/* Card Subtitle */
.menu-card-subtitle {
    font-size: 0.75rem;
    color: #9c9180;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    transition: color 0.3s ease;
    margin-top: auto;
    font-weight: 500;
}

.menu-item-card:hover .menu-card-subtitle {
    color: #c49a45;
    /* Turns gold on hover */
}

/* Responsive Overrides for Signature Menus Section */
.signature-menus-section {
    padding: 100px 0;
    overflow: hidden;
}

/* Mobile App-like Scrollable Tabs */
.luxury-nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(196, 154, 69, 0.3);
    /* Subtle gold line */
    justify-content: flex-start;
}

/* Center tabs on larger screens */
@media (min-width: 768px) {
    .luxury-nav-tabs {
        justify-content: center;
    }
}

/* Hide Scrollbar for a cleaner look */
.luxury-nav-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.luxury-nav-tabs {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.luxury-nav-tabs .nav-item {
    white-space: nowrap;
}

.luxury-nav-tabs .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.luxury-nav-tabs .nav-link.active {
    color: #c49a45;
    /* Gold active state */
    border-bottom: 2px solid #c49a45;
    background: transparent;
}

/* Responsive Menu Cards */
.menu-item-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
    border: 1px solid #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-item-card:hover {
    transform: translateY(-5px) !important;
    /* Force override for animation */
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.15);
    border-color: rgba(255, 105, 180, 0.5);
}

.menu-item-card .card-icon {
    max-width: 45px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .card-icon {
    transform: scale(1.1);
}

.menu-item-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
}

.card-separator {
    width: 40px;
    height: 2px;
    background: #c49a45;
    margin: 0 auto 10px auto;
}

.menu-card-subtitle {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Adjustments for extra small devices (Mobile) */
@media (max-width: 575px) {
    .signature-menus-section {
        padding: 100px 0;
    }

    .title-box.centered h2 {
        font-size: 1.8rem;
    }

    .menu-item-card {
        padding: 20px 10px;
    }

    .menu-item-card h4 {
        font-size: 1.05rem;
    }

    .luxury-nav-tabs .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .bg-video-wrap {
        aspect-ratio: 4 / 3 !important; /* Slightly taller landscape for small phones */
    }
}

@media (max-width: 1024px) {
    .bg-video-wrap {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9 !important;
        margin-top:65px !important;
    }
    
    .video-slide video,
    .video-slide img,
    .video-slide iframe {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* ── Per-Slide Text Overlay & Animations ── */
.hero-video-slider {
    z-index: 4 !important; /* Elevate slider above the old global overlay */
}

.hero-overlay {
    display: none !important; /* Hide old global overlay to use the new per-slide overlay */
}

/* Move the dark gradient overlay inside the slide so the text sits on top of it */
.video-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    pointer-events: none;
}

.slide-content-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important; /* Places the text above the dark gradient overlay */
    pointer-events: none;
}

.slide-content-wrapper > * {
    pointer-events: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

/* ── 3D Z-Axis "Fly-In" Reveal Animation ── */
.slide-up-anim {
    opacity: 0;
    transform: scale(1.4); /* Starts larger, appearing closer to the user */
    filter: blur(4px); /* Adds a slight camera-focus effect as it flies in */
}

/* Trigger animation ONLY when the specific slide becomes active */
.video-slide.active .slide-up-anim {
    /* Smooth, decelerating curve so it lands softly on the page */
    animation: heroFlyIn 1.2s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes heroFlyIn {
    0% {
        opacity: 0;
        transform: scale(1.4);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

/* ── Mobile & Tablet Text Overlay Adjustments ── */
@media (max-width: 1024px) {
    .slide-content-wrapper .hero-desc {
        display: none !important;
    }

    .slide-content-wrapper .hero-title {
        font-size: clamp(1.4rem, 4vw, 2.5rem) !important;
        margin-bottom: 10px !important;
        line-height: 1.1 !important;
    }

    .slide-content-wrapper .hero-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
        letter-spacing: 2px !important;
    }

    .slide-content-wrapper .btn-gold {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
    }
    
    /* On smaller screens, reduce the initial scale slightly so it doesn't overflow bounds */
    @keyframes heroFlyIn {
        0% {
            opacity: 0;
            transform: scale(1.2);
            filter: blur(4px);
        }
        100% {
            opacity: 1;
            transform: scale(1);
            filter: blur(0px);
        }
    }
}

/* ── Extra Small Mobile Adjustments ── */
@media (max-width: 576px) {
    .slide-content-wrapper .hero-title {
        font-size: 1.25rem !important;
        margin-bottom: 6px !important;
    }
    
    .slide-content-wrapper .hero-subtitle {
        font-size: 0.65rem !important;
        margin-bottom: 4px !important;
    }
    
    .slide-content-wrapper .btn-gold {
        padding: 6px 12px !important;
        font-size: 0.65rem !important;
    }
}

.container h2, .container-fluid h2{
    text-transform: uppercase;
}

/* ── Section Floral Isolation Double Borders ── */
.floral-band-wrapper {
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    position: relative;
    z-index: 5;
}

/* Forces the track to scroll horizontally, cropping cleanly at the screen edge */
.floral-section-divider {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    overflow: hidden;
    white-space: nowrap;
}

.floral-section-divider.maroon-band { background-color: #8b0000; }
.floral-section-divider.blue-band { background-color: #273868; }

/* Sets the precise gaps on either side of the green SVG motif */
.floral-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 30px; 
    padding-right: 30px; 
}

/* Sizing constraints to keep it identical to the image */
.f-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.f-leaf {
    width: 18px;
    height: 18px;
}

@media (max-width:767px){
    .editorial-course-section{
        margin-top:1rem;
    }
}


/* --- Freebie Popup Modal Styles (Based on Login Theme) --- */
            #freebieModal .modal-content {
                background-color: #4D5A3A; /* Panel Green */
                color: #f4f4f4;
                border: none;
                border-radius: 4px;
                box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
                padding: 40px 30px;
                position: relative;
            }
            #freebieModal .corner {
                position: absolute;
                width: 50px;
                height: 50px;
                border: 8px solid #d4af37;
            }
            #freebieModal .corner-tl { top: 0px; left: 0px; border-right: none; border-bottom: none; }
            #freebieModal .corner-tr { top: 0px; right: 0px; border-left: none; border-bottom: none; }
            #freebieModal .corner-bl { bottom: 0px; left: 0px; border-right: none; border-top: none; }
            #freebieModal .corner-br { bottom: 0px; right: 0px; border-left: none; border-top: none; }
            
            #freebieModal .close-modal-btn {
                position: absolute;
                top: 15px;
                right: 15px;
                color: #d4af37;
                font-size: 1.5rem;
                background: transparent;
                border: none;
                cursor: pointer;
                z-index: 10;
                transition: transform 0.3s;
            }
            #freebieModal .close-modal-btn:hover { transform: scale(1.2); }

            #freebieModal .modal-subtitle {
                font-size: 0.7rem;
                letter-spacing: 2px;
                color: #d4af37;
                text-transform: uppercase;
                margin-bottom: 15px;
            }
            #freebieModal .modal-title {
                font-family: var(--font-family-Philosopher, 'Philosopher', serif);
                font-size: 2rem;
                line-height: 1.2;
                margin-bottom: 25px;
                color: #fff;
            }
            
            #freebieModal .custom-input {
                background: transparent !important;
                border: none;
                border-bottom: 1px solid #2a4a41;
                border-radius: 0;
                color: #f4f4f4 !important;
                padding: 10px 0;
                font-size: 0.95rem;
                box-shadow: none !important;
                transition: all 0.3s;
            }
            #freebieModal .custom-input::placeholder {
                color: #849b94;
                font-style: italic;
                font-family: 'Philosopher', sans-serif;
            }
            #freebieModal .custom-input:focus { border-bottom-color: #d4af37; }
            
            #freebieModal .btn-gold {
                background-color: #d4af37;
                color: #0a1f1a;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: 2px;
                border-radius: 0;
                padding: 14px 20px;
                font-size: 0.9rem;
                border: none;
                width: 100%;
                transition: all 0.3s;
            }
            #freebieModal .btn-gold:hover {
                background-color: #e8c85c;
                transform: translateY(-2px);
                box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
            }
            #freebieModal .spam-notice {
                font-size: 0.75rem;
                color: #849b94;
                margin-top: 15px;
                display: block;
            }
            .freebie-error {
                color: #ff6b6b;
                font-size: 0.8rem;
                margin-top: 5px;
                display: none;
            }