html {
    scroll-behavior: auto;
}

html,
body {
    overflow-x: hidden;
}

/* Lenis Smooth Scroll Core Styles */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}
p {
    text-align: justify;
}

/* Rich Text Editor Content Formatting (Frontend & Admin Preview) */
.prose,
.custom-editor-content {
    color: #334155;
    line-height: 1.6;
    font-size: 1rem;
}

/* Headings: Use default color ONLY if inline color is not set */
.prose h1:not([style*="color"]), .custom-editor-content h1:not([style*="color"]) { color: #1e293b; }
.prose h2:not([style*="color"]), .custom-editor-content h2:not([style*="color"]) { color: #1e293b; }
.prose h3:not([style*="color"]), .custom-editor-content h3:not([style*="color"]) { color: #1e293b; }
.prose h4:not([style*="color"]), .custom-editor-content h4:not([style*="color"]) { color: #1e293b; }
.prose h5:not([style*="color"]), .custom-editor-content h5:not([style*="color"]) { color: #1e293b; }
.prose h6:not([style*="color"]), .custom-editor-content h6:not([style*="color"]) { color: #1e293b; }

.prose h1, .custom-editor-content h1 { font-size: 2rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: 0.5rem; line-height: 1.25; }
.prose h2, .custom-editor-content h2 { font-size: 1.6rem; font-weight: 700; margin-top: 1rem; margin-bottom: 0.5rem; line-height: 1.3; }
.prose h3, .custom-editor-content h3 { font-size: 1.3rem; font-weight: 600; margin-top: 0.875rem; margin-bottom: 0.35rem; line-height: 1.35; }
.prose h4, .custom-editor-content h4 { font-size: 1.1rem; font-weight: 600; margin-top: 0.75rem; margin-bottom: 0.3rem; }
.prose h5, .custom-editor-content h5 { font-size: 1rem; font-weight: 600; margin-top: 0.5rem; margin-bottom: 0.25rem; }
.prose h6, .custom-editor-content h6 { font-size: 0.875rem; font-weight: 600; margin-top: 0.5rem; margin-bottom: 0.25rem; }

/* Paragraphs & Text */
.prose p, .custom-editor-content p {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.prose b, .prose strong, .custom-editor-content b, .custom-editor-content strong { font-weight: 700 !important; }
.prose i, .prose em, .custom-editor-content i, .custom-editor-content em { font-style: italic !important; }
.prose u, .custom-editor-content u { text-decoration: underline !important; }
.prose s, .prose strike, .custom-editor-content s, .custom-editor-content strike { text-decoration: line-through !important; }

/* Images embedded in Rich Text Editor */
.prose img, .custom-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: inline-block;
}
.prose img[style*="float: right"], .custom-editor-content img[style*="float: right"],
.prose img[align="right"], .custom-editor-content img[align="right"] {
    float: right !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}
.prose img[style*="float: left"], .custom-editor-content img[style*="float: left"],
.prose img[align="left"], .custom-editor-content img[align="left"] {
    float: left !important;
    margin-right: 1.5rem !important;
    margin-bottom: 1rem !important;
}

/* Clearfix for floated content */
.prose::after, .custom-editor-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Lists */
.prose ul, .custom-editor-content ul { list-style-type: disc !important; padding-left: 1.5rem !important; margin-top: 0.5rem !important; margin-bottom: 0.75rem !important; }
.prose ol, .custom-editor-content ol { list-style-type: decimal !important; padding-left: 1.5rem !important; margin-top: 0.5rem !important; margin-bottom: 0.75rem !important; }
.prose li, .custom-editor-content li { margin-bottom: 0.25rem !important; }

/* Blockquotes */
.prose blockquote, .custom-editor-content blockquote { border-left: 4px solid #9E0B0F !important; padding-left: 1rem !important; font-style: italic !important; color: #475569 !important; margin: 1rem 0 !important; background-color: #f8fafc !important; padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; border-radius: 0 0.375rem 0.375rem 0 !important; }

/* Tables */
.prose table, .custom-editor-content table { width: 100% !important; border-collapse: collapse !important; margin: 1rem 0 !important; }
.prose td, .prose th, .custom-editor-content td, .custom-editor-content th { border: 1px solid #cbd5e1 !important; padding: 0.5rem 0.75rem !important; }
.prose th, .custom-editor-content th { background-color: #f1f5f9 !important; font-weight: 600 !important; }
    /* Custom Styles for Animations not covered by default Tailwind */

    /* 1. Hero Slider Animations */
    .hero-slide {
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        position: absolute;
        inset: 0;
        z-index: 10;
    }

    .hero-slide.active {
        opacity: 1;
        z-index: 20;
    }

    /* Ken Burns Effect (Zoom) & Video Vibrancy Filter */
    .hero-bg-img {
        transform: scale(1);
        transition: transform 6s ease-out;
        filter: brightness(1.06) contrast(1.08) saturate(1.2); /* Boosts colors, clarity & punch */
    }

    .active .hero-bg-img {
        transform: scale(1.1);
        /* Zoom in when active */
    }

    /* Text Slide In Animation */
    .hero-content {
        opacity: 0;
        transform: translateX(-50px);
        transition: all 1s ease-out;
    }

    .active .hero-content {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.5s;
        /* Wait for bg fade */
    }

    /* 2. Vertical Marquee */
    .marquee-container {
        overflow: hidden;
        position: relative;
    }

    .marquee-content {
        display: flex;
        flex-direction: column;
        animation: scrollUp 15s linear infinite;
    }

    .marquee-container:hover .marquee-content {
        animation-play-state: paused;
    }

    @keyframes scrollUp {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(-50%);
        }

        /* Move up by half (since content is duplicated) */
    }

    /* 3. Swiper Pagination Customization */
    .swiper-pagination-bullet-active {
        background-color: #d4af37 !important;
        width: 24px !important;
        border-radius: 4px !important;
    }

    /* Hide sub-menus by default */
    .nav-item .dropdown-level-1,
    .nav-item .dropdown-level-2 {
        display: none;
        position: absolute;
        background: white;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 3px solid #FFD700;
        /* Secondary color */
    }

    /* Level 1: Khulega Main Menu ke niche */
    .nav-item:hover>.dropdown-level-1 {
        display: block;
        animation: slideIn 0.3s ease-out;
    }

    /* Level 2: Khulega Sub-menu ke right side mein */
    .nav-item-sub:hover>.dropdown-level-2 {
        display: block;
        position: absolute;
        top: 0;
        left: 100%;
        /* Bilkul bagal mein chipak kar khulega */
        animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Arrow indicator for items with children */
    .has-children::after {
        content: ' \f105';
        /* FontAwesome right arrow */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        float: right;
        font-size: 10px;
        margin-left: 10px;
        margin-top: 4px;
    }

    /* Desktop Animations */
    @keyframes fade-in {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-fade-in {
        animation: fade-in 0.2s ease-out forwards;
    }

    /* Fix body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Rotate icon when accordion is active */
    .rotate-180 {
        transform: rotate(180deg);
    }

    /* Fail-safe hidden class */

    /* Ensure the close button is clickable and on top */
    #close-mobile-menu {
        cursor: pointer;
        z-index: 210;
        position: relative;
        padding: 10px;
        /* Bada hit area */
    }

    @media (min-width: 1024px) {
        .desktop-menu {
            display: flex !important;
        }
    }

   /* Floating Buttons Container */
        .floating-buttons {
    position: fixed;
    right: 23px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
        }
        
        /* Main Button */
        .floating-main-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: linear-gradient(135deg, #1e3a8a, #38bdf8);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
            transition: all 0.3s ease;
            position: relative;
            z-index: 1001;
        }
        
        .floating-main-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
        }
        
        .floating-main-btn .icon {
            font-size: 24px;
            color: white;
            transition: transform 0.3s ease;
        }
        
        /* Tooltip */
        .tooltip {
            position: absolute;
            right: 70px;
            background-color: #1e3a8a;
            color: white;
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .tooltip::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -5px;
            transform: translateY(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent transparent #1e3a8a;
        }
        
        .floating-main-btn:hover .tooltip {
            opacity: 1;
            visibility: visible;
            right: 75px;
        }
        
        /* Action Buttons */
        .action-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            transform: translateX(20px);
        }
        
        .action-btn.show {
            opacity: 1;
            transform: translateX(0);
            visibility: visible;
        }
        
        .whatsapp-btn {
            background: linear-gradient(135deg, #25D366, #128C7E);
            animation-delay: 0.1s;
        }
        
        .call-btn {
            background: linear-gradient(135deg, #34b7f1, #0a84d8);
            animation-delay: 0.2s;
        }
        
        .inquiry-btn {
            background: linear-gradient(135deg, #d4af37, #b8941f);
            animation-delay: 0.3s;
        }
        
        .action-btn:hover {
            transform: scale(1.1);
        }
        
        .action-btn .icon {
            font-size: 20px;
            color: white;
        }
        
        /* Action Button Labels */
        .action-label {
            position: absolute;
            right: 60px;
            background-color: white;
            color: #1e3a8a;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
        }
        
        .action-label::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -5px;
            transform: translateY(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent transparent white;
        }
        
        .action-btn:hover .action-label {
            opacity: 1;
            visibility: visible;
            right: 65px;
        }
        
        /* Inquiry Form Modal */
        .inquiry-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .inquiry-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background-color: white;
            width: 90%;
            max-width: 500px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            transform: translateY(30px);
            transition: transform 0.4s ease;
        }
        
        .inquiry-modal.active .modal-content {
            transform: translateY(0);
        }
        
        .modal-header {
            background: linear-gradient(135deg, #1e3a8a, #38bdf8);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin: 0;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }
        
        .close-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .modal-body {
            padding: 25px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #374151;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
        }
        
        .submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #d4af37, #b8941f);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }
        
        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
        }
        
        /* Success Message */
        .success-message {
            background-color: #d1fae5;
            color: #065f46;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            display: none;
            align-items: center;
            gap: 10px;
        }
        
        .success-message.active {
            display: flex;
        }
        
        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .floating-buttons {
                right: 23px;
            }
            
            .floating-main-btn {
                width: 55px;
                height: 55px;
            }
            
            .action-btn {
                width: 45px;
                height: 45px;
            }
            
            .tooltip {
                display: none;
            }
            
            .action-label {
                display: none;
            }
            
            .modal-content {
                width: 95%;
            }
        }
        
        /* Demo Content */
        .content {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 20px;
            text-align: center;
        }
        
        .content h1 {
            color: #1e3a8a;
            font-size: 2.5rem;
            margin-bottom: 20px;
        }
        
        .content p {
            color: #4a5568;
            line-height: 1.6;
            font-size: 1.1rem;
            margin-bottom: 30px;
        }
        /* Add this to your CSS file */

/* Responsive Navbar Utilities */
.nav-item-link {
    white-space: nowrap;
}
     @keyframes border-glow {

         0%,
         100% {
             box-shadow: 0 0 10px #9E0B0F, inset 0 0 5px rgba(255, 215, 0, 0.2);
             border-color: #9E0B0F;
         }

         50% {
             box-shadow: 0 0 25px #9E0B0F, inset 0 0 10px rgba(255, 215, 0, 0.4);
             border-color: #9E0B0F;
         }
     }

     .animate-border-glow {
         animation: border-glow 2s infinite ease-in-out;
     }

/* Main Navbar (White Background) */
#mainNavbar {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05) !important;
}

#mainNavbar .nav-link-item {
    color: #1e293b !important;
    text-shadow: none !important;
    font-weight: 700;
    transition: color 0.2s ease;
}

#mainNavbar .nav-link-item:hover {
    color: #7B1113 !important;
}

/* Luxury Scrolled Sticky Navbar (White with Burgundy Accent) */
#mainNavbar.nav-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 2px solid #7B1113 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    animation: slideNavDown 0.3s ease-out;
}

@keyframes slideNavDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#mainNavbar.nav-scrolled .nav-link-item {
    color: #1e293b !important;
    text-shadow: none !important;
}

#mainNavbar.nav-scrolled .nav-link-item:hover {
    color: #7B1113 !important;
}

#mainNavbar.nav-scrolled .header-logo img {
    height: 64px !important;
    max-width: 440px !important;
}

@media (min-width: 1280px) {
    #mainNavbar.nav-scrolled .header-logo img {
        height: 72px !important;
        max-width: 480px !important;
    }
}

@media (max-width: 640px) {
    #mainNavbar.nav-scrolled .header-logo img {
        height: 52px !important;
        max-width: 280px !important;
    }
}

#mainNavbar.nav-scrolled .header-logo > a > div {
    padding: 0 !important;
}

/* Frontend HTML Content List Indentation Fix */
.prose ul {
    list-style-type: disc !important;
    padding-left: 1.25rem !important;
    margin-left: 0 !important;
}
.prose ol {
    list-style-type: decimal !important;
    padding-left: 1.25rem !important;
    margin-left: 0 !important;
}