/* Professional Navigation with Depth and Style */
:root {
  --tanzania-green: #00A651;
  --tanzania-gold: #FFC107;
  --tanzania-blue: #00B7EB;
  --disability-purple: #D1C4E9;
  --disability-blue: #90CAF9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.6; color: #333; overflow-x: hidden; }

/* PROFESSIONAL NAVIGATION BUTTONS */
.nav-btn {
  position: relative;
  padding: 10px 18px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  min-width: 115px;
  justify-content: center;
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--tanzania-green) 0%, #008a44 100%);
  color: white;
  border-color: var(--tanzania-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 166, 81, 0.3);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--tanzania-green) 0%, #008a44 100%);
  color: white;
  border-color: var(--tanzania-green);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--tanzania-gold);
  border-radius: 2px 2px 0 0;
}

.nav-btn i { font-size: 13px; opacity: 0.9; }

/* Mobile Navigation - ENHANCED */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

#mobile-menu.show {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
}

.nav-link-mobile {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #333;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  background: white;
  border-radius: 6px;
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

.nav-link-mobile:hover {
  background: linear-gradient(90deg, rgba(0, 166, 81, 0.1) 0%, transparent 100%);
  border-left-color: var(--tanzania-green);
  color: var(--tanzania-green);
  transform: translateX(4px);
}

.nav-link-mobile.active {
  background: linear-gradient(90deg, rgba(0, 166, 81, 0.15) 0%, rgba(0, 166, 81, 0.05) 100%);
  border-left-color: var(--tanzania-green);
  color: var(--tanzania-green);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 166, 81, 0.2);
}

.nav-link-mobile i { 
  width: 28px; 
  text-align: center;
  font-size: 16px;
}

/* Mobile Menu Toggle Button */
#mobile-menu-toggle {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Overlay for mobile menu (optional) */
@media (max-width: 1023px) {
  body.menu-open {
    overflow: hidden;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../media/images/hero.JPG') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

.stylish-subtitle {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: #ffffff;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card h3 { font-size: 1.2rem; margin: 12px 0 8px; padding: 0 16px; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.product-card p { font-size: 0.9rem; color: #666; padding: 0 16px; flex-grow: 1; line-height: 1.5; }

.card-buttons {
  padding: 16px;
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card-buttons button {
  flex: 1;
  padding: 10px 0;
  font-size: 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.buy-now {
  background: linear-gradient(135deg, var(--tanzania-green) 0%, #008a44 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 166, 81, 0.3);
}

.buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 166, 81, 0.4);
}

/* Filter Buttons */
.filter-btn {
  background: #fff;
  border: 2px solid #dee2e6;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  border-radius: 8px;
  color: #495057;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--tanzania-green) 0%, #008a44 100%);
  color: #fff;
  border-color: var(--tanzania-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.3);
}

/* Popups */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4f4f4, #e9e9e9);
  color: #333;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: linear-gradient(135deg, #e9e9e9, #dcdcdc);
  transform: scale(1.1) rotate(90deg);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.spotlight-overlay.active { display: flex; }
.spotlight-overlay img { max-width: 90%; max-height: 85vh; border-radius: 12px; }

.gallery-nav-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 50%;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Donation */
.donation-amount-btn {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  cursor: pointer;
}

.donation-amount-btn:hover, .donation-amount-btn.selected {
  background: var(--tanzania-green);
  color: white;
  border-color: var(--tanzania-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.3);
}

/* Divider */
.divider-shadow {
  height: 4px;
  background: linear-gradient(to right, transparent, #bbb, transparent);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--tanzania-green); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #008a44; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2.5rem; }
  .stylish-subtitle { font-size: 2rem; }
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .gallery-item { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto !important; }
}


/* ============================================
   CUSTOM: 3 COLUMN PRODUCT GRID
   ============================================ */

#products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    #products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    #products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    #products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   MORE INFO BUTTON - FORCED VISIBLE BORDER
   ============================================ */

.more-info-btn {
    /* Layout & Sizing */
    padding: 10px 20px !important;
    min-height: 44px !important;
    
    /* Colors - FORCED visible border */
    background: white !important;
    color: #0080ff !important;
    border: 1px solid #0080ff !important;  /* ← ALWAYS VISIBLE */
    
    /* Typography */
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    
    /* Visual Polish */
    border-radius: 6px !important;
    cursor: pointer !important;
    
    /* Smooth Transitions */
    transition: all 0.3s ease !important;
    
    /* Flex for centering */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    
    /* Subtle shadow for depth */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.more-info-btn:hover {
    background: var(--tanzania-blue, #0080ff) !important;
    color: white !important;
    border: 2px solid var(--tanzania-blue, #0080ff) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 128, 255, 0.4) !important;
}

.more-info-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 128, 255, 0.3) !important;
    border: 2px solid var(--tanzania-blue, #0080ff) !important;
}


























/* ============================================
   EMERGENCY FIX - BUY POPUP BUTTONS
   ============================================ */

#buy-popup button,
.buy-popup button,
div[id*="buy"] button,
div[class*="buy"] button {
    padding: 14px 24px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-height: 48px !important;
    min-width: 120px !important;
}

/* First button (WhatsApp) */
#buy-popup button:first-of-type {
    background: #25D366 !important;
    color: white !important;
}

/* Second button (Email) */
#buy-popup button:nth-of-type(2) {
    background: #0080ff !important;
    color: white !important;
}

/* Third button (Call) */
#buy-popup button:nth-of-type(3) {
    background: #FFC107 !important;
    color: #333 !important;
}

/* Hover effects */
#buy-popup button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}







/* ============================================================================
   MOBILE NAVIGATION FIXES
   ============================================================================ */

/* HIDE Top Contact Bar Completely on Mobile */
@media (max-width: 768px) {
    .fixed.top-0.bg-black {
        display: none !important;
    }
    
    /* Move navigation to top of screen */
    nav.fixed {
        top: 0 !important;
    }
    
    /* Adjust main content padding */
    main {
        padding-top: 70px !important;
    }
}

/* Desktop - Normal spacing */
@media (min-width: 769px) {
    main {
        padding-top: 120px !important;
    }
}

/* Logo Responsive Sizing */
nav img[alt*="Logo"] {
    max-height: 60px !important;
}

@media (max-width: 768px) {
    nav img[alt*="Logo"] {
        max-height: 45px !important;
    }
}

@media (max-width: 480px) {
    nav img[alt*="Logo"] {
        max-height: 38px !important;
    }
}

/* Mobile Menu - Slide from Right */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: white !important;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2) !important;
    transition: right 0.3s ease !important;
    z-index: 9999 !important; /* Higher than overlay */
    overflow-y: auto !important;
    padding-top: 20px !important;
    margin: 0 !important;
    display: block !important;
}

#mobile-menu.show {
    right: 0 !important;
}

/* Mobile Menu Links - Touch Friendly */
#mobile-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 16px 24px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 16px !important;
    min-height: 56px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    z-index: 10002 !important;
}

#mobile-menu a:active {
    background: rgba(0, 166, 81, 0.1) !important;
}

#mobile-menu a.active {
    background: rgba(0, 166, 81, 0.05) !important;
    color: #00A651 !important;
    border-left: 4px solid #00A651 !important;
    padding-left: 20px !important;
}

#mobile-menu a i {
    width: 24px !important;
    margin-right: 12px !important;
    font-size: 18px !important;
}

/* Mobile Menu Overlay - FIXED */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 280px; /* Don't cover menu area */
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Don't block clicks */
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}

/* Prevent Body Scroll When Menu Open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Hamburger Button - Touch Friendly */
#mobile-menu-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
}

#mobile-menu-toggle:active {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

/* Donate Button - Responsive */
@media (max-width: 640px) {
    a[href="donate.html"] {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    a[href="donate.html"] {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}

/* Fix Navigation Spacing on Mobile */
@media (max-width: 640px) {
    nav .px-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    nav .py-3 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* Ensure No Horizontal Scroll */
body {
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0080ff, #0066cc);
    color: white;
    border: none;
    border-radius: 8%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.6);
    background: linear-gradient(135deg, #008a44, #00A651);
}

#back-to-top:active {
    transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Ensure button doesn't overlap footer */
@media (max-height: 600px) {
    #back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* ============================================================================
   ENHANCED HERO INFO CARDS
   ============================================================================ */

/* Card hover effects */
.hero-section .bg-white {
    transition: all 0.3s ease;
}

.hero-section .bg-white:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Icon animations */
.hero-section .bg-tanzania-green,
.hero-section .bg-tanzania-gold,
.hero-section .bg-tanzania-blue {
    transition: all 0.3s ease;
}

.hero-section .bg-white:hover .bg-tanzania-green,
.hero-section .bg-white:hover .bg-tanzania-gold,
.hero-section .bg-white:hover .bg-tanzania-blue {
    transform: rotate(360deg) scale(1.1);
}

/* Button animations */
.hero-section a[href*="shop"],
.hero-section a[href*="donate"] {
    transition: all 0.3s ease;
}

/* Responsive adjustments for cards */
@media (max-width: 768px) {
    .hero-section .grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section .bg-white {
        padding: 20px;
    }
}

/* Trust indicators responsive */
@media (max-width: 640px) {
    .hero-section .flex-wrap {
        flex-direction: column;
        gap: 12px;
    }
}


/* ============================================================================
   COMPACT HERO INFO CARDS
   ============================================================================ */

/* Ensure hero fits exactly one screen */
.hero-section.h-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Compact card animations */
.hero-section .bg-white {
    transition: all 0.3s ease;
}

.hero-section .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Icon pulse on hover */
.hero-section .bg-white:hover .rounded-full {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive: Stack cards on mobile */
@media (max-width: 640px) {
    .hero-section .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-section .bg-white {
        padding: 16px;
    }
    
    /* Adjust hero height on mobile to prevent cutoff */
    .hero-section.h-screen {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px 0;
    }
}

/* Tablet: 2 columns */
@media (min-width: 641px) and (max-width: 1023px) {
    .hero-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Trust indicators compact spacing */
.hero-section .flex-wrap {
    font-size: 12px;
}

@media (max-width: 640px) {
    .hero-section .flex-wrap {
        font-size: 11px;
        gap: 8px;
    }
}


/* ============================================================================
   HERO SLIDER STYLES WITH NAVIGATION & DYNAMIC HEIGHT
   ============================================================================ */

/* ============================================================================
   HERO HEIGHT COMPENSATION - CORRECTED
   ============================================================================ */

/* Desktop/Laptop (≥1024px) */
@media (min-width: 1024px) {
    .hero-dynamic-height {
        height: calc(100vh - 110px) !important;
        min-height: calc(100vh - 110px) !important;
        margin-top: 110px !important;  /* ONLY margin-top, NO padding-top */
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-dynamic-height {
        height: calc(100vh - 100px) !important;
        min-height: calc(100vh - 100px) !important;
        margin-top: 100px !important;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .hero-dynamic-height {
        height: calc(100vh - 70px) !important;
        min-height: calc(100vh - 70px) !important;
        margin-top: 70px !important;
    }
}

/* Remove any conflicting styles */
.hero-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure hero slider fills the compensated space */
.hero-dynamic-height .hero-slider {
    height: 100%;
    margin-top: 0;
}

/* ============================================================================
   HERO SLIDER CORE STYLES
   ============================================================================ */

/* IMPORTANT: Keep old hero background as fallback until JS loads */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../media/hero/hero1.JPG') center/cover no-repeat !important;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

/* Hide slides that should be skipped (if video fails) */
.hero-slide.skip {
    display: none !important;
}

/* ============================================================================
   VIDEO SLIDE STYLES
   ============================================================================ */

/* Video slide container */
.video-slide {
    position: relative;
    overflow: hidden;
}

/* Video element styling */
.video-slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Dark overlay for video (same as images) */
.video-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

/* ============================================================================
   NAVIGATION CONTROLS
   ============================================================================ */

/* Navigation Arrows */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
}

.hero-section:hover .hero-nav-btn {
    opacity: 1;
    visibility: visible;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev-btn {
    left: 30px;
}

.hero-next-btn {
    right: 30px;
}

/* Slide Indicators */
.hero-indicators {
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-indicator.active {
    background: #FCD116;
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* Slide Counter (if uncommented later) */
.hero-counter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .hero-nav-btn {
        display: none !important; /* Hide arrows on mobile */
    }
    
    .hero-indicators {
        bottom: 20px;
    }
    
    .hero-counter {
        bottom: 20px;
        right: 20px;
        font-size: 12px;
    }
}

/* Fix for any content overflow in stats cards */
.hero-dynamic-height .grid {
    max-height: 100%;
}

/* Ensure content stays above slider */
.hero-section .z-10 {
    z-index: 10;
}

.hero-section .z-20 {
    z-index: 20;
}

.hero-section .z-30 {
    z-index: 30;
}

/* ============================================================================
   CONTENT LAYOUT ENHANCEMENTS
   ============================================================================ */

/* Make sure content is properly centered */
.hero-dynamic-height > .relative.z-20 {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fix for dark overlay positioning */
.hero-section > .absolute.inset-0.bg-black {
    z-index: 10;
}

/* Ensure content has proper spacing on mobile */
@media (max-width: 767px) {
    .hero-dynamic-height .text-center {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .hero-dynamic-height .grid {
        margin-top: 20px !important;
        gap: 15px !important;
    }
}