/* ============================================
   COMPREHENSIVE MOBILE ENHANCEMENTS
   ============================================ */

/* Mobile-specific improvements for better UX */
@media (max-width: 768px) {

    /* ===== GENERAL SECTION IMPROVEMENTS ===== */
    /* Exclude partners section explicitly */
    section:not(.partners) {
        padding: 3rem 1.5rem !important;
        text-align: center !important;
        /* Ensure content is centered */
    }

    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
        /* Ensure header text is centered */
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .section-header p {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
        line-height: 1.7;
        max-width: 100%;
    }

    /* ===== HERO SECTION FIX ===== */
    /* Unified hero sections to start below fixed navbar */
    .hero,
    .ac-hero,
    .fan-hero,
    .smart-tv-hero,
    .stb-hero,
    .about-hero,
    .contact-hero,
    .products-hero,
    .service-hero,
    .blog-hero,
    .events-hero {
        padding: 0 !important;
        padding-top: var(--navbar-height, 80px) !important;
        /* Base navbar clearance */
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        /* Block layout for natural flow */
        position: relative !important;
        background: linear-gradient(135deg, #f8faff 0%, #edf6ff 100%) !important;
        overflow: visible !important;
    }

    /* Unified hero wrapper/content containers */
    .hero-wrapper,
    .ac-hero-content,
    .hero-content-wrapper-new,
    .tv-hero-content,
    .hero-content-wrapper-t4h,
    .about-hero-content,
    .contact-hero-content,
    .service-hero-content,
    .products-hero-content,
    .blog-hero-content,
    .events-hero-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 2.5rem 1.5rem !important;
        /* Slightly reduced padding */
        gap: 1.25rem !important;
        /* Reduced gap for compact feel */
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Sub-containers alignment */
    .hero-content,
    .hero-title-centered,
    .hero-two-column,
    .hero-bottom-section,
    .hero-image-column,
    .hero-text-column,
    .hero-left-remotes,
    .hero-right-details,
    .hero-right-column,
    .hero-headline-top,
    .events-hero-media,
    .events-hero-actions {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        /* Increased from 0.75rem to prevent overlap */
    }

    /* Ensure images in hero are well-behaved */
    .hero-mobile-image,
    .hero-image-container-t4h img,
    .hero-image-container-new img {
        max-width: 280px !important;
        height: auto !important;
        margin: 0.75rem auto !important;
        display: block !important;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    }

    /* Targeted zoom for Hero images (Fan & Power Supply) to fill white space */
    .remote-image-new,
    .remote-image-t4h {
        max-width: 380px !important;
        width: 100% !important;
        height: auto !important;
        margin: 1.5rem auto !important;
        /* Positive margin for spacing */
        display: block !important;
        filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
        transform: scale(1.15) !important;
        /* More conservative zoom */
        z-index: 5 !important;
    }

    /* Force Badge Visibility */
    .hero-badge {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 0.25rem !important;
        z-index: 100 !important;
        position: relative !important;
        color: var(--primary-color) !important;
        font-weight: 700 !important;
    }

    /* Heading consistency */
    .hero-content h1,
    .ac-hero-content h1,
    .tv-hero-content h1,
    .about-hero-content h1,
    .contact-hero-content h1,
    .service-hero-content h1,
    .blog-hero-content h1,
    .events-hero-content h1,
    .hero-headline-centered,
    .hero-headline-t4h {
        font-size: clamp(1.8rem, 8vw, 2.3rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
    }

    /* Paragraph consistency */
    .hero-content p,
    .ac-hero-content p,
    .tv-hero-content p,
    .about-hero-content p,
    .contact-hero-content p,
    .service-hero-content p,
    .blog-hero-content p,
    .events-hero-content p,
    .hero-description-new,
    .hero-description-t4h,
    .hero-subheadline-t4h {
        font-size: 0.9rem !important;
        max-width: 95% !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        line-height: 1.6 !important;
        color: #4a4a4a !important;
    }

    .hero-buttons,
    .events-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-stats {
        justify-content: center !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .slide {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .slide-image {
        margin-bottom: 1.5rem !important;
    }

    /* Scroll Animations for Mobile */
    .animate-on-scroll {
        opacity: 0 !important;
        /* Force hidden initially */
        transform: translateY(50px);
        /* Larger movement for visibility */
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        will-change: opacity, transform;
    }

    .animate-on-scroll.animate {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* ===== MOBILE MENU FIXES ===== */
    .dropdown.active .dropbtn i,
    .dropdown.dropdown-open .dropbtn i {
        transform: rotate(180deg) !important;
    }

    /* ===== PREMIUM MOBILE MENU UPGRADE ===== */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: var(--navbar-height, 80px) !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - var(--navbar-height, 80px)) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        padding: 1rem 0 150px 0 !important;
        overflow-y: auto !important;
        z-index: 999 !important;

        /* Modern Entrance Animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    /* Premium Menu Items */
    .nav-links>a,
    .nav-links .dropdown .dropbtn {
        font-size: 1.15rem !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        padding: 1.25rem 2rem !important;
        margin: 0 !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure dropdown button aligns properly */
    .nav-links .dropdown .dropbtn {
        justify-content: space-between !important;
        text-align: left !important;
    }
    
    /* Ensure regular links align properly */
    .nav-links>a {
        justify-content: flex-start !important;
    }

    /* Active Highlight */
    .nav-links>a.active {
        color: var(--primary-color) !important;
        background: rgba(59, 130, 246, 0.03) !important;
    }

    /* Remove the desktop underline effect on mobile */
    .nav-links a::after {
        display: none !important;
    }

    /* Dropdown Reset */
    .nav-links .dropdown {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }
    
    /* Ensure menu items maintain their padding (override any conflicting styles) */
    .nav-links>a,
    .nav-links .dropdown .dropbtn {
        padding: 1.25rem 2rem !important;
    }

    /* Dropdown Arrow */
    .nav-links .dropbtn {
        justify-content: space-between !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        font-family: inherit !important;
        font-size: inherit !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-links .dropbtn i {
        font-size: 0.9rem !important;
        color: #888 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* Submenu Styling */
    .dropdown-content {
        background: #f3f6fa !important;
        /* Subtle contrast */
        border-left: none !important;
        padding: 0.5rem 0 !important;
    }

    .dropdown-content a {
        padding: 1rem 2rem 1rem 3rem !important;
        /* Deep indentation */
        font-size: 1rem !important;
        color: #4a5568 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.02) !important;
    }

    .dropdown-content a:last-child {
        border-bottom: none !important;
    }

    /* Icons in submenu */
    .dropdown-icon {
        width: 24px !important;
        height: 24px !important;
        background: transparent !important;
        color: var(--primary-color) !important;
        margin-right: 12px !important;
        font-size: 1.1rem !important;
    }


    /* ===== PRODUCTS SECTION ===== */
    .products {
        padding: 3rem 1rem !important;
    }

    .product-container {
        max-width: 100%;
        padding: 0;
    }

    .product-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 0 0.5rem !important;
        overflow-x: visible !important;
    }

    .product-card {
        width: 100% !important;
        max-width: 450px !important;
        margin: 0 auto !important;
        min-width: auto !important;
        flex: none !important;
        text-align: center !important;
        /* Center card content */
    }

    .product-image {
        height: 280px;
        border-radius: 12px;
        overflow: hidden;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        /* Prevent cropping */
        background: linear-gradient(135deg, #99a4be 0%, #eef1f5 100%) !important;
        /* Gradient background for consistent look */
        padding: 10px;
        /* Internal padding */
    }

    .product-info {
        padding: 1.5rem 1rem;
        text-align: center !important;
        /* Ensure text is centered */
    }

    .product-info h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .product-info p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .product-info .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Hide navigation arrows on mobile */
    .product-nav {
        display: none !important;
    }

    /* ===== ABOUT SECTION ===== */
    .about {
        padding: 3rem 1.5rem !important;
    }

    .about-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    .about-image {
        order: 1;
        margin-bottom: 0;
        max-width: 100%;
    }

    .about-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .about-content {
        order: 2;
        text-align: center;
        padding: 0;
    }

    .about-content h2 {
        font-size: 1.875rem;
        margin-bottom: 1.25rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        text-align: justify !important;
        /* Justify text as requested */
    }

    .stats {
        display: flex;
        justify-content: center;
        gap: 2.5rem;
        flex-wrap: wrap;
        margin: 2rem 0;
    }

    .stat {
        text-align: center;
        min-width: 100px;
    }

    .stat h3 {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }

    .stat p {
        font-size: 0.9rem;
    }

    .about-content .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* ===== PARTNERS SECTION ===== */
    .partners {
        padding: 3rem 1rem !important;
    }

    .logos-marquee {
        padding: 0;
    }

    .client-logo {
        height: 40px !important;
        /* Reduced height to smaller mobile size */
        width: auto !important;
        max-width: 100px !important;
        /* Cap width tighter */
        margin: 0 1rem !important;
        /* Slightly reduced spacing for better density */
        flex-shrink: 0 !important;
        object-fit: contain !important;
        display: block !important;
        transform: translateZ(0);
    }

    /* Force featured logos to behave EXACTLY the same */
    .client-logo.featured {
        height: 40px !important;
        width: auto !important;
        max-width: 100px !important;
        margin: 0 1rem !important;
    }

    .clients-grid {
        gap: 0 !important;
        justify-content: flex-start !important;
        width: max-content !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        align-items: center !important;
        /* Vertically center logos */
    }

    .logo-animate,
    .logo-animate-alt {
        width: max-content !important;
        gap: 0 !important;
        /* Ensure animation runs */
        will-change: transform;
    }

    /* ===== EMS SECTION ===== */
    .ems-services {
        padding: 3rem 1.5rem !important;
    }

    .ems-capability {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    .capability-content {
        order: 2;
        text-align: center;
        padding: 0;
    }

    .capability-content h3 {
        font-size: 1.625rem;
        margin-bottom: 1.25rem;
    }

    .capability-content ul {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .capability-content ul li {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }

    .capability-content .btn {
        width: 100%;
        max-width: 300px;
    }

    .capability-image {
        order: 1;
    }

    .image-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .grid-item {
        height: 220px !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ===== MOULDING SECTION ===== */
    .moulding-services {
        padding: 3rem 1.5rem !important;
    }

    .moulding-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    .moulding-content {
        order: 2;
        text-align: center;
        padding: 0;
    }

    .moulding-content h3 {
        font-size: 1.625rem;
        margin-bottom: 1.25rem;
    }

    .moulding-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .moulding-content ul {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .moulding-content ul li {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }

    .moulding-content .btn {
        width: 100%;
        max-width: 300px;
    }

    .moulding-video {
        order: 1;
    }

    .video-container {
        height: 250px !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .video-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ===== FEATURES SECTION ===== */
    .features {
        padding: 3rem 1.5rem !important;
    }

    .features-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 450px;
        margin: 0 auto;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* ===== CUSTOM SOLUTIONS SECTION ===== */
    .custom-solutions {
        padding: 3rem 1.5rem !important;
    }

    .solutions-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 450px;
        margin: 0 auto;
    }

    .solution-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .solution-icon {
        margin: 0 auto 1.25rem;
    }

    .solution-card h3 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .solution-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* ===== CTA SECTION ===== */
    .cta {
        padding: 3.5rem 1.5rem !important;
    }

    .cta-content {
        text-align: center;
        padding: 0 0.5rem;
    }

    .cta-content h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }

    .cta-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .btn.glow {
        width: 100%;
        max-width: 320px;
        padding: 1.125rem 2rem;
        font-size: 1rem;
    }

    /* ===== TYPOGRAPHY ENHANCEMENTS ===== */
    h1 {
        font-size: clamp(1.875rem, 5.5vw, 2.75rem) !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: clamp(1.625rem, 4.5vw, 2.25rem) !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: clamp(1.375rem, 3.5vw, 1.875rem) !important;
        line-height: 1.4 !important;
    }

    h4 {
        font-size: clamp(1.125rem, 3vw, 1.5rem) !important;
    }

    p,
    li {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem) !important;
        line-height: 1.7 !important;
    }

    /* ===== BUTTON ENHANCEMENTS ===== */
    .btn {
        font-size: 0.95rem !important;
        padding: 0.875rem 1.75rem !important;
        border-radius: 50px !important;
        min-height: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .btn.primary,
    .btn.outline {
        width: auto;
        min-width: 160px;
    }

    /* ===== IMAGE OPTIMIZATIONS ===== */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* ===== SPACING UTILITIES ===== */
    .container,
    .section-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* ===== PREVENT HORIZONTAL SCROLL ===== */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }

    /* Prevent images from causing overflow, but don't restrict everything blindly */
    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    section:not(.partners) {
        padding: 2.5rem 1rem !important;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.625rem;
    }

    .product-card,
    .feature-card,
    .solution-card {
        max-width: 100% !important;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .btn.glow {
        max-width: 280px;
        padding: 1rem 1.5rem;
    }
}

/* Utility class to stop scrolling */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* =========================================
   EMS MOBILE OVERLAP — HARD OVERRIDE FIX
   ========================================= */
@media (max-width: 768px) {

  /* Kill ALL transforms from all files */
  .ems-services *,
  .ems-capability *,
  .image-grid *,
  .grid-item,
  .grid-item img {
    transform: none !important;
  }

  /* Force clean stacking */
  .image-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: auto !important;
  }

  /* Let content decide height */
  .grid-item {
    height: auto !important;
    min-height: 200px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .grid-item img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Safety spacing */
  .grid-item:not(:last-child) {
    margin-bottom: 0 !important;
  }
}

/* =========================================
   MOBILE HERO – ELEGANT BACKGROUND
   Home page only
   ========================================= */
@media (max-width: 768px) {

  /* Base hero background */
  .hero {
    position: relative !important;
    background:
      radial-gradient(
        120% 60% at 50% 0%,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(59, 130, 246, 0.04) 35%,
        transparent 60%
      ),
      linear-gradient(
        180deg,
        #f8fbff 0%,
        #eef4ff 45%,
        #ffffff 100%
      ) !important;
    overflow: hidden !important;
  }

  /* Soft glass layer */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.65),
        rgba(255, 255, 255, 0.35)
      );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 0;
  }

  /* Decorative accent blobs */
  .hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(
      circle,
      rgba(59, 130, 246, 0.18),
      rgba(59, 130, 246, 0) 70%
    );
    top: -160px;
    right: -140px;
    z-index: 0;
  }

  /* Keep content above background layers */
  .hero-wrapper,
  .hero-content,
  .hero-slider {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Improve text contrast slightly */
  .hero-content h1 {
    color: #0f172a !important;
  }

  .hero-content p {
    color: #475569 !important;
  }

  .hero-badge {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    backdrop-filter: blur(6px);
  }
}

/* ================================
   MOBILE HERO BACKGROUND FIX
   ================================ */
@media (max-width: 768px) {

  .hero {
    position: relative !important;
    min-height: calc(100vh - var(--navbar-height)) !important;
    background: linear-gradient(
      180deg,
      #eef5ff 0%,
      #f8fbff 40%,
      #ffffff 100%
    ) !important;
    overflow: hidden !important;
  }

  /* Soft premium glow layer */
  .hero::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(
      circle,
      rgba(59, 130, 246, 0.18) 0%,
      rgba(59, 130, 246, 0.08) 35%,
      rgba(59, 130, 246, 0) 70%
    );
    z-index: 0;
    pointer-events: none;
  }

  .hero-wrapper {
    position: relative !important;
    z-index: 2 !important;
  }

  .hero-content {
    background: transparent !important;
  }
}

/* ============================= */
/* Mobile Navbar – Products Submenu */
/* ============================= */
@media (max-width: 768px) {

  .dropdown-content {
    background: #f8fafc;
    padding: 12px;
    border-radius: 14px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    transition: all 0.25s ease;
  }

  .dropdown-content a:last-child {
    margin-bottom: 0;
  }

  .dropdown-content a i {
    font-size: 16px;
    color: #2563eb;
    min-width: 20px;
    text-align: center;
  }

  /* Hover / Tap feedback */
  .dropdown-content a:active {
    transform: scale(0.98);
  }

 /* ACTIVE submenu item – refined */
  .dropdown-content a.active {
    background: #eef4ff; /* soft blue surface */
    color: #1e40af;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
    position: relative;
    font-weight: 600;
  }

  /* Left accent indicator */
  .dropdown-content a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    border-radius: 4px;
  }

  .dropdown-content a.active i {
    color: #2563eb;
  }
}

@media (max-width: 768px) {
  .video-caption {
    display: none !important;
  }

  .video-caption:hover {
    display: block !important;
  }

  .video-container:hover video,
.video-container:hover img {
    transform: scale(0.85);    /* 🔑 controlled zoom */
}
}
