 html,
    body {
        overflow-x: hidden;
    }

    /* 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) */
    .hero-bg-img {
        transform: scale(1);
        transition: transform 6s ease-out;
    }

    .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 */

/* For medium screens (1024px - 1535px) */
@media (min-width: 1024px) and (max-width: 1535px) {
    .container {
        max-width: 100% !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .lg\:flex.hidden {
        /* Reduce spacing between menu items */
        gap: 0.25rem !important;
    }
    
    .lg\:flex.hidden li {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .lg\:flex.hidden li a span {
        font-size: 11px !important;
        letter-spacing: 0.05em !important;
    }
    
    /* Make dropdowns smaller for medium screens */
    .relative.group ul {
        width: 48px !important;
        min-width: 220px !important;
    }
    
    /* Adjust logo and school name for medium screens */
    .flex.items-center.gap-0 img {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .leading-tight span:first-child {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    .leading-tight span:last-child {
        font-size: 0.75rem !important;
        line-height: 1 !important;
    }
    
    /* Reduce navbar height for medium screens */
    .h-28 {
        height: 5rem !important;
    }
}
     @keyframes border-glow {

         0%,
         100% {
             box-shadow: 0 0 10px rgba(212, 175, 55, 0.5), inset 0 0 5px rgba(212, 175, 55, 0.2);
             border-color: rgba(212, 175, 55, 0.6);
         }

         50% {
             box-shadow: 0 0 25px rgba(212, 175, 55, 0.9), inset 0 0 10px rgba(212, 175, 55, 0.4);
             border-color: rgba(212, 175, 55, 1);
         }
     }

     .animate-border-glow {
         animation: border-glow 2s infinite ease-in-out;
     }