/* ===== MODAL STYLES ===== */
    #hoverModal {
        display: none;
        position: fixed;
        z-index: 9999;
        background: white;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        border: 1px solid #e5e7eb;
        min-width: 300px;
        max-width: 350px;
        animation: fadeIn 0.2s ease-out;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .modal-arrow {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 16px;
        height: 16px;
        background: white;
        border-left: 1px solid #e5e7eb;
        border-top: 1px solid #e5e7eb;
    }
    .hover-modal-content { max-height: 400px; overflow-y: auto; }
    .hover-modal-content::-webkit-scrollbar { width: 4px; }
    .hover-modal-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
    .hover-modal-content::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }

    #mobileModal {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        z-index: 10000;
        background: rgba(0,0,0,0.5);
    }
    .mobile-modal-content {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        animation: slideUp 0.3s ease-out;
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .modal-tab { transition: all 0.2s ease; }
    .modal-tab.active { color: #ea580c; border-bottom: 2px solid #ea580c; }
    .modal-item { transition: all 0.2s ease; }
    .modal-item:hover { background-color: #fff7ed; border-color: #fed7aa; }

    /* ===== MARQUEE ===== */
    .marquee-container { overflow: hidden; white-space: nowrap; position: relative; }
    .marquee-content   { display: inline-block; white-space: nowrap; animation: marquee 60s linear infinite; }
    .marquee-content:hover { animation-play-state: paused; }
    @keyframes marquee {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* ===== PARTNERS MARQUEE ===== */
      /* ===== PARTNERS MARQUEE ===== */
    .partners-marquee-container { 
        overflow: hidden; 
        position: relative; 
        width: 100%;
    }
    .partners-marquee-content { 
        display: flex; 
        animation: partnersMarquee 60s linear infinite; 
        width: max-content;
    }
   
    @keyframes partnersMarquee {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-25%); }
    }

    /* ===== FIX 1: HERO WRAPPER =====
       Original used h-full which collapses to 0 when no parent has an explicit height.
       Replaced with an explicit min-height via this class — the background image is now visible. */
    .hero-wrapper {
        min-height: 540px;
    }
    @media (max-width: 640px) {
        .hero-wrapper { min-height: 480px; }
    }
    @media (min-width: 768px) {
        .hero-wrapper { min-height: 560px; }
    }
    @media (min-width: 1280px) {
        .hero-wrapper { min-height: 640px; }
    }
    @media (max-width: 768px) and (orientation: landscape) {
        .hero-wrapper { min-height: 360px; }
    }

    /* ===== FIX 3: TESTIMONIALS TRACK =====
       No CSS animation — the RAF loop in JS drives transform directly.
       transition is toggled by JS only during button-click jumps. */
    #carouselTrack {
        display: flex;
        gap: 1.5rem;
        will-change: transform;
    }

    /* ===== TESTIMONIAL NAV BUTTONS ===== */
    #testimonialPrevBtn,
    #testimonialNextBtn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        width: 44px; height: 44px;
        border-radius: 50%;
        background: black;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid #e5e7eb;
    }
    #testimonialPrevBtn { left: 0; }
    #testimonialNextBtn { right: 0; }
    #testimonialPrevBtn:active,
    #testimonialNextBtn:active { transform: translateY(-50%) scale(0.95); }
    #testimonialPrevBtn i,
    #testimonialNextBtn i { font-size: 16px; color: white; }

    /* ===== SCROLLBAR HIDE ===== */
    .scrollbar-hide::-webkit-scrollbar,
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .scrollbar-hide, .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    /* ===== MOBILE SLIDER ===== */
    .mobile-slider-container { position: relative; overflow: hidden; }
    .mobile-slider { display: flex; transition: transform 0.5s ease-in-out; }
    .mobile-slider > div { min-width: 100%; box-sizing: border-box; }

    /* ===== DESKTOP SLIDERS ===== */
    .career-slider, .exam-slider, .admission-slider { display: flex; transition: transform 0.3s ease-in-out; }
    .career-slider > div, .exam-slider > div, .admission-slider > div { min-width: 100%; }

    /* ===== SLIDER ARROWS (MOBILE) ===== */
    .slider-arrow {
        position: absolute;
        top: 41%; transform: translateY(-50%);
        width: 44px; height: 44px;
        border-radius: 50%;
        background: rgba(0,0,0,0.85);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; z-index: 10;
        transition: all 0.25s ease;
    }
    .slider-arrow i { color: white; font-size: 16px; }
    .slider-arrow:hover  { background: #2563eb; transform: translateY(-50%) scale(1.08); }
    .slider-arrow:active { transform: translateY(-50%) scale(0.95); }

    /* ===== SLIDER ARROWS (DESKTOP) ===== */
    .slider-arrow-desktop {
        position: absolute;
        top: 50%; transform: translateY(-50%);
        width: 38px; height: 38px;
        border-radius: 50%;
        background: rgba(0,0,0,0.85);
        color: white;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        cursor: pointer; z-index: 10;
        transition: all 0.25s ease;
    }
    .slider-arrow-desktop i { font-size: 14px; }
    .slider-arrow-desktop:hover  { background: #2563eb; transform: translateY(-50%) scale(1.1); }
    .slider-arrow-desktop:active { transform: translateY(-50%) scale(0.95); }

    /* ===== VIDEO ===== */
    .videos-carousel-container { position: relative; }
    .video-container { position: relative; background: #000; }

    /* ===== MISC ===== */
    img { max-height: 250px; object-fit: contain; }
    .res button { width: 100%; text-align: center; }
    .whitespace-nowrap { white-space: nowrap; font-size: 0.99rem; }
    .hero-description { font-size: 1.128rem; }

    /* ===== GRADIENT OVERLAYS (testimonials) ===== */
    .gradient-overlay-left, .gradient-overlay-right {
        position: absolute; top: 0; bottom: 0; width: 60px; z-index: 10; pointer-events: none;
    }
    .gradient-overlay-left  { left: 0;  background: linear-gradient(to right, #f9fafb, transparent); }
    .gradient-overlay-right { right: 0; background: linear-gradient(to left,  #f9fafb, transparent); }

    /* ===== HERO ANIMATIONS ===== */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
    .animation-delay-200 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
    .animation-delay-400 { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }

    /* ===== TRANSITIONS ===== */
    a, button, input, select, .flex-shrink-0 .bg-white {
        transition-property: color, background-color, border-color, opacity, box-shadow, transform;
        transition-timing-function: cubic-bezier(0.4,0,0.2,1);
        transition-duration: 150ms;
    }
    .flex-shrink-0 .bg-white:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    /* ===== RESPONSIVE ===== */
      @media (max-width: 768px) {
        #hoverModal { display: none !important; }
        .marquee-content { animation: marquee 20s linear infinite; }
        
        /* Partners slow scroll on all devices */
        .partners-marquee-content { 
            animation: partnersMarquee 50s linear infinite; 
        }
        
        .gradient-overlay-left, .gradient-overlay-right { width: 40px; }
        .videos-carousel-container { padding: 0 15px; }
        .video-container { height: 350px !important; }
        #testimonialPrevBtn, #testimonialNextBtn { width: 38px; height: 38px; }
        #testimonialPrevBtn i, #testimonialNextBtn i { font-size: 14px; }
        img { max-height: 200px; margin: 0 auto; }
        .bg-cover { background-position: center top; }
    }
    @media (max-width: 640px) {
        .gradient-overlay-left, .gradient-overlay-right { width: 30px; }
        .video-container { height: 280px !important; }
        #testimonialPrevBtn { left: 5px; }
        #testimonialNextBtn { right: 5px; }
        .slider-arrow { width: 38px; height: 38px; }
        .slider-arrow i { font-size: 14px; }
        .whitespace-nowrap { white-space: normal; font-size: 0.675rem; }
        .res button { font-size: 0.85rem; padding: 0.5rem 1rem; }
        .hero-description { font-size: 0.875rem; line-height: 1.5; padding: 0 1rem; }
        .category-button { font-size: 0.75rem; padding: 0.5rem 0.75rem; min-width: 85px; }
    }
    @media (max-width: 380px) {
        .res button { font-size: 0.85rem; padding: 0.5rem 1rem; }
    }
    @media (min-width: 640px) {
        .res button { width: auto; min-width: 200px; }
    }
    @media (min-width: 641px) and (max-width: 768px) {
        .hero-description { font-size: 1rem; }
    }
    @media (min-width: 1024px) {
        .video-container { height: 500px; }
    }
    @media (hover: none) and (pointer: coarse) {
        .video-play-btn .relative { width: 70px !important; height: 70px !important; }
        .video-play-btn svg { width: 30px !important; height: 30px !important; }
    }