   :root {
     --brand: #004aad;
     --accent: #1fb6ff;
     --muted: #6c757d;
   }

   /* Image optimization for better quality */
   .organogram-image {
     image-rendering: -webkit-optimize-contrast;
     image-rendering: crisp-edges;
     image-rendering: pixelated;
     image-rendering: auto;
   }

   /* Smooth transitions for organogram images */
   .organogram-image-link {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
   }

   .organogram-image-link:hover .organogram-image {
     transform: scale(1.05);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
   }


   body {
     margin: 0;
     background-color: #f9f9f9;
     max-width: 100%;
  overflow-x: hidden;
   }


   .banner {
     background-color: #2e2e81;
     color: white;
     padding: 10px 0;
   }

   .full-width-banner {
     width: 100%;
     background-color: #2e2e81;
     color: white;
     padding: 10px 0;
     box-sizing: border-box;
   }

   footer {
     background: #2A266E;
     color: white;
     padding-top: 50px;
     padding-bottom: 50px;
   }

   .subfooter {
     background: #1F1C5C;
     color: white;
     padding: 10px 0;
   }

   footer .top a {
     padding: 10px;
     transition: transform 0.35s ease, color 0.35s ease;
   }

  footer .top .fa-linkedin:hover {
  color: #0a66c2; /* LinkedIn brand color */
  transform: scale(1.4);
}

footer .top .fa-facebook:hover {
  color: #1877f2; /* Facebook brand color */
  transform: scale(1.4);
}

footer .top .fa-youtube:hover {
  color: #cd201f; /* YouTube brand color - already exists */
  transform: scale(1.4);
}

   .card-scroll-wrapper {
     display: flex;
     overflow-x: auto;
     gap: 1rem;
     padding: 1rem;
     scroll-snap-type: x mandatory;
   }

   .card-scroll-wrapper::-webkit-scrollbar {
     display: none;
     /* optional: hide scrollbar */
   }

   .card-scroll-wrapper .card {
     flex: 0 0 calc((100% / 3) - 1rem);
     scroll-snap-align: start;
     min-width: 18rem;
   }

   .card-img-top {
     height: 200px;
     object-fit: cover;
     width: 100%;
   }

   .organogram-img {
     height: 180px;
     /* try 160px or 150px if you want tighter */
     object-fit: cover;
   }

   .socials {
     color: white;
     font-size: 20px;
   }

   footer a {
     color: white;
   }

   .custom-btn {
     background-color: #2e2e81;
     color: #fff;
     border: none;
     padding: 0.4rem 1.5rem;
     font-weight: 600;
     border-radius: 0.5rem;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     transition: all 0.3s ease;
     letter-spacing: 0.5px;
     text-decoration: none;
   }

   .custom-btn:hover {
     background-color: #23236a;
     transform: translateY(-2px);
     color: #fff;
     box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
   }


   /* ---------- HEADER NAVBAR visuals ---------- */
.navbar-nav .nav-link {
  padding: 0.4rem 0.6rem !important;
}

/* Make navbar links bold and blue on hover */
.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
  color: #004aad !important;
  /* your brand blue */
  font-weight: 700;
  /* bold text */
  transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Optional: make the active page link stay blue */
.navbar .nav-link.active {
  color: #23236a !important;
  font-weight: 700;
}

.navbar-brand {
  font-size: 1.1rem;
  padding: 0.3rem 0;
}

.dropdown-menu {
  font-size: 0.8rem;
}

.form-control-sm {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.775rem;
}

/* ---------- DESKTOP VIEW: TEXT ONLY NAVIGATION ---------- */

/* Hide icons in desktop view */
@media (min-width: 992px) {
  /* Hide all icons in nav links */
  .navbar-nav .nav-link i,
  .navbar-nav .dropdown-menu i {
    display: none !important;
  }
  
  /* Ensure dropdown items show text properly */
  .dropdown-item i {
    display: none !important;
  }
  
  /* Center align text */
  .navbar-nav .nav-link span {
    display: inline !important;
  }
  
  /* Adjust padding for text-only links */
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
}

/* ---------- MOBILE VIEW: SHOW ICONS IN HAMBURGER MENU ---------- */

/* Show icons in mobile hamburger menu */
@media (max-width: 991px) {
  .navbar-nav .nav-link i {
    display: inline-block !important;
    margin-right: 8px;
  }
  
  /* Show icons in dropdown items */
  .dropdown-item i {
    display: inline-block !important;
    margin-right: 8px;
  }
}

@media (max-width: 1400px) {
  .navbar-nav {
    font-size: 0.8rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.3rem 0.5rem !important;
  }
}

@media (max-width: 1200px) {
  .navbar-nav {
    font-size: 0.75rem !important;
  }
}

/*============================MOBILE VIEW HAMBURGER NAVIGATION STYLES STYLES========================================*/

/* Mobile Navigation Container */
.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* Mobile Icons Navigation */
.mobile-icons-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    max-width: 280px;
    margin-right: 15px;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-icon-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-icon-link i {
    font-size: 18px;
}

/* Active state for mobile icons */
.nav-icon-link.active {
    color: #0d6efd;
    background-color: #e7f1ff;
}

/* Mobile Right Elements */
.mobile-right-elements {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.admin-link:hover {
    background-color: #e9ecef;
    color: #495057 !important;
}

/* Facebook-style Oval Menu Items */
@media (max-width: 991px) {
    #navbarSupportedContent .navbar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 15px;
    }
    
    #navbarSupportedContent .nav-item {
        flex: 0 0 auto;
    }
    
    #navbarSupportedContent .nav-link {
        background-color: #e9ecef;
        border-radius: 50px;
        padding: 8px 16px;
        margin: 2px;
        border: none;
        color: #495057;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    #navbarSupportedContent .nav-link:hover {
        background-color: #0d6efd;
        color: white;
        transform: translateY(-1px);
    }
    
    #navbarSupportedContent .nav-link i {
        margin-right: 6px;
    }
    
    /* Dropdown styles for mobile */
    #navbarSupportedContent .dropdown-menu {
        border-radius: 12px;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 8px;
    }
    
    #navbarSupportedContent .dropdown-item {
        border-radius: 8px;
        margin: 2px 4px;
        padding: 8px 12px;
    }
    
    #navbarSupportedContent .dropdown-item:hover {
        background-color: #0d6efd;
        color: white;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 992px) {
    .mobile-nav-container {
        display: none !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .mobile-icons-nav {
        max-width: 240px;
        gap: 4px;
    }
    
    .nav-icon-link {
        width: 40px;
        height: 40px;
    }
    
    .nav-icon-link i {
        font-size: 16px;
    }
    
    .mobile-right-elements {
        gap: 8px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

/* Very small devices */
@media (max-width: 400px) {
    .mobile-icons-nav {
        max-width: 220px;
    }
    
    .nav-icon-link {
        width: 36px;
        height: 36px;
    }
    
    .nav-icon-link i {
        font-size: 14px;
    }
    
    .mobile-right-elements img {
        width: 24px;
        height: 24px;
    }
    
    .admin-link {
        width: 32px;
        height: 32px;
    }
}


/*============================SEARCH FUNCTION WORKING STYLES=======================================================*/

/* Search Highlight Styles */
.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.search-highlight-active {
    background-color: #ffc107 !important;
    color: #000 !important;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.5);
    transform: scale(1.05);
    z-index: 100;
    position: relative;
}

.search-highlight-pulse {
    animation: searchPulse 2s ease-in-out;
}

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

/* Search Navigation */
.search-navigation {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1060;
    min-width: 300px;
}

.search-nav-content {
    padding: 12px 16px;
}

.search-nav-info {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.search-nav-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-nav-buttons .btn {
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* Search Toast Messages */
.search-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1060;
    max-width: 300px;
}

.search-toast-success {
    border-left: 4px solid #198754;
}

.search-toast-warning {
    border-left: 4px solid #ffc107;
}

.search-toast-error {
    border-left: 4px solid #dc3545;
}

.search-toast-info {
    border-left: 4px solid #0dcaf0;
}

.search-toast-content {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-left: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-navigation {
        top: 60px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .search-nav-buttons {
        justify-content: center;
    }
    
    .search-toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}










   /* -=========================================================================================================================== */

   /* ---------- INDEX HOME PAGE1 visuals ---------- */

  /* ---------- INDEX HOME PAGE1 visuals ---------- */

/* ---------- SLIDERS AND NEWS ROTATOR ---------- */
.hero {
    background: linear-gradient(120deg, rgba(0, 74, 173, 0.07), rgba(31, 182, 255, 0.03));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.hero .card-glow {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(3, 32, 89, 0.06);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    color: white;
    box-shadow: 0 6px 18px rgba(3, 32, 89, 0.08);
}

.service-card {
    border-radius: 12px;
    transition: transform .28s ease, box-shadow .28s ease;
    max-width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(3, 32, 89, 0.12);
}

.watermark-note {
    font-size: .9rem;
    color: var(--muted);
}

.testimonial-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* Solution 1: Centered content with reduced width */
.testimonial {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Solution 2: Buttons outside container */
.carousel-control-prev.external {
    left: -60px;
}

.carousel-control-next.external {
    right: -60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial {
        max-width: 90%;
        padding: 1rem;
    }
    
    .carousel-control-prev.external {
        left: -40px;
    }
    
    .carousel-control-next.external {
        right: -40px;
    }
}



/*================================================================*/

/* Floating logo (behind buttons) */
.prime-logo {
    position: absolute;
    top: 35px;
    /* push down slightly from top */
    left: 35px;
    /* position near the left edge */
    z-index: 2;
    /* above slide backgrounds but below nav buttons */
    pointer-events: none;
    /* so it doesn't block clicking the Swiper arrows */
}

.prime-logo img {
    width: 200px;
    /* adjust as needed */
    height: auto;
    opacity: 0.95;
    border: 2px solid #ffffff99;
}



/* ===== Prime Slider Styles ===== */
.prime-slider {
    width: 100%;
    height: 70vh;
    /* Full-height hero */
    position: relative;
    overflow: hidden;
    /* border: 4px solid #2A266E; */
    /* border-radius: 12px; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* soft drop shadow */
    box-sizing: border-box;
    max-width: 100%;
}

/* Swiper container now fills entire height */
.prime-slider .swiper {
    width: 100%;
    height: 70vh;
    /* Full-height hero */
    max-width: 100%;
}

/* Each slide fully covers the slider area */
.prime-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    height: 70vh;
    /* Full-height hero */
    overflow: hidden;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark fallback background to prevent text visibility */
}

/* Background image with parallax depth */
.prime-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    /* Full-height hero */
    object-fit: cover;
    transition: transform 1.5s ease-out;
    z-index: 0;
    max-width: 100%;
    /* Skeleton loading effect */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
}

/* Remove skeleton animation once image loads */
.prime-slider .slide-bg.loaded {
    animation: none;
    background: none;
}

/* Skeleton loading animation */
@keyframes loadingSkeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Dark overlay on images for text contrast - ENHANCED for better coverage */
.prime-slider .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Darker overlay for better text protection */
    z-index: 1;
    transition: background 0.3s ease;
}

/* Lighter overlay for active slide when image is loaded */
.prime-slider .swiper-slide.swiper-slide-active::before {
    background: rgba(0, 0, 0, 0.45);
}

/* Centered overlay content - HIDDEN BY DEFAULT */
.slide-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    visibility: hidden;
    /* Prevent interaction when hidden */
}

/* Show overlay only when slide is active AND image is loaded */
.prime-slider .swiper-slide.swiper-slide-active.image-loaded .slide-overlay,
.prime-slider .swiper-slide.image-loaded .slide-overlay {
    opacity: 1;
    visibility: visible;
}

/* Ensure non-active slides never show overlay */
.prime-slider .swiper-slide:not(.swiper-slide-active) .slide-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Loading state - extra dark overlay */
.primeSwiper.loading .swiper-slide::before {
    background: rgba(0, 0, 0, 0.75);
    /* Darker during loading */
}

.primeSwiper.loading .slide-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Smooth transition between slides */
.swiper-slide {
    transition: opacity 0.4s ease;
}

/* ==== NEWS ROTATOR (Dynamic) ==== */
.news-rotator {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 10px;
    max-width: 100%;
}

/* Fixed height container for consistent layout */
.news-image-container {
    height: 300px;
    /* Fixed height */
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    background: #f8f9fa;
    /* Fallback background */
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This ensures images fill the container without distortion */
    object-position: center;
    /* Centers the image */
    transition: transform 0.4s ease;
    display: block;
}

.news-image:hover {
    transform: scale(1.03);
}

.news-title {
    margin-top: 2px;
    /* Reduced from 15px */
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
    padding: 0 10px;
    min-height: 40px;
    /* Reduced from 48px */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    /* Better text wrapping */
}

.news-title:hover {
    color: var(--brand);
}

/* Ensure carousel items have consistent height */
.carousel-item {
    height: auto;
    min-height: 380px;
    /* Reduced from 400px (300px image + 80px for title and spacing) */
}

.carousel-inner {
    height: auto;
}

/* Carousel buttons - UPDATED to use theme colors */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--brand, #004aad) !important;
    border-radius: 50%;
    padding: 15px;
    background-size: 50% 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--accent, #1fb6ff) !important;
    opacity: 1;
    transform: scale(1.1);
}

/* Carousel indicator positioning */
.carousel-indicators {
    bottom: -40px;
    /* Reduced from -50px */
    margin-bottom: 0;
}

/* Read more hover effect - reduced margin */
.read-more-hover {
    margin-top: 12px;
    /* Reduced from 20px */
    padding: 8px 0;
    /* Added some padding */
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand, #004aad), var(--accent, #1fb6ff));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 4px rgba(0, 74, 173, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-image-container {
        height: 250px;
        /* Slightly smaller on tablets */
    }
    
    .carousel-item {
        min-height: 330px;
        /* Reduced from 350px */
    }
    
    .news-title {
        margin-top: 6px;
        min-height: 36px;
    }
    
    .read-more-hover {
        margin-top: 10px;
    }
    
    /* Adjust button size on tablet */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 12px;
        background-size: 45% 45%;
    }
}

@media (max-width: 576px) {
    .news-image-container {
        height: 200px;
        /* Smaller on mobile */
    }
    
    .carousel-item {
        min-height: 280px;
        /* Reduced from 300px */
    }
    
    .news-title {
        margin-top: 5px;
        min-height: 32px;
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .read-more-hover {
        margin-top: 8px;
    }
    
    .carousel-indicators {
        bottom: -35px;
    }
    
    /* Adjust button size on mobile */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 10px;
        background-size: 40% 40%;
    }
}

/* Optional: If you want even tighter spacing */
.news-rotator.compact .news-title {
    margin-top: 5px;
    min-height: 35px;
}

.news-rotator.compact .read-more-hover {
    margin-top: 8px;
}

.news-rotator.compact .carousel-item {
    min-height: 360px;
}

/* Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    transition: all 0.3s ease;
    z-index: 3;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.25);
    color: #ffc107;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #ffc107;
    opacity: 1;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .prime-slider {
        height: 80vh;
    }

    .prime-logo img {
        width: 80px;
    }

    .slide-overlay h1 {
        font-size: 1.75rem;
    }
}

/* Counter animation */
.counter {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004aad;
}


.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col, [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* FIX: Protect navbar logo from max-width rules */
.navbar-brand img {
    max-width: none !important;
    /* Prevent max-width from affecting navbar logo */
    height: 40px !important;
    /* Maintain fixed height */
    width: auto !important;
    /* Allow natural width */
}

/* Apply max-width only to content images, not UI elements */
.prime-slider img,
.news-rotator img,
.service-card img,
.testimonial img,
.hero img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prime-slider {
        height: 80vh;
        max-width: 100%;
    }

    .prime-slider .swiper,
    .prime-slider .swiper-slide,
    .prime-slider .slide-bg {
        height: 80vh;
        max-width: 100%;
    }

    .prime-logo {
        top: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
    }

    .prime-logo img {
        width: 120px;
    }

    .slide-overlay {
        padding: 1rem;
        width: 95%;
    }

    .slide-overlay h1 {
        font-size: 1.75rem;
    }

    .slide-overlay .lead {
        font-size: 1rem;
    }

    .hero {
        padding: 40px 0;
    }

    .news-rotator img {
        max-height: 220px;
    }

    .news-rotator {
        margin-top: 20px;
    }

    /* Fix for mobile layout */
    .hero .row {
        flex-direction: column;
    }

    .hero .col-lg-7,
    .hero .col-lg-5 {
        width: 100%;
        max-width: 100%;
    }

    /* Center align counters on mobile */
    .hero .d-flex.gap-4 {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .prime-slider {
        height: 60vh;
    }

    .prime-slider .swiper,
    .prime-slider .swiper-slide,
    .prime-slider .slide-bg {
        height: 60vh;
    }

    .slide-overlay h1 {
        font-size: 1.5rem;
    }

    .slide-overlay .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .prime-logo img {
        width: 100px;
    }

    .hero .d-flex.gap-2 {
        flex-direction: column;
        gap: 10px !important;
    }

    .hero .d-flex.gap-2 .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Additional overflow prevention */
section {
    max-width: 100%;
    overflow: hidden;
}

/* Fix for zoom responsiveness */
@media (max-width: 1200px) {
    .prime-slider {
        height: 65vh;
    }
    
    .prime-slider .swiper,
    .prime-slider .swiper-slide,
    .prime-slider .slide-bg {
        height: 65vh;
    }
}

@media (max-width: 992px) {
    .prime-slider {
        height: 60vh;
    }
    
    .prime-slider .swiper,
    .prime-slider .swiper-slide,
    .prime-slider .slide-bg {
        height: 60vh;
    }
}

/* =================================================== */
/* INDEX PAGE SPECIFIC STYLES ONLY (Home Page)        */
/* These styles only apply to the index/home page     */
/* =================================================== */

/* Add a specific class to body on index.php */
.index-page .counter {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #004aad, #1fb6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.index-page .counter::after {
    content: '+';
    position: absolute;
    right: -20px;
    top: 0;
    font-size: 1.5rem;
    color: #004aad;
    font-weight: 700;
}

/* ENHANCED NEWS ROTATOR (Index Page Only) */
.index-page .news-rotator {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 20px;
    max-width: 100%;
    border: 1px solid rgba(0, 74, 173, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-page .news-rotator:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 74, 173, 0.15);
}

.index-page .news-image-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    background: #f8f9fa;
}

.index-page .news-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.index-page .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.index-page .news-image:hover {
    transform: scale(1.05);
}

.index-page .news-title {
    margin-top: 15px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.3s ease;
    padding: 0 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.index-page .news-title:hover {
    color: var(--brand);
}

.index-page .carousel-item {
    height: auto;
    min-height: 320px;
}

.index-page .carousel-inner {
    height: auto;
}

/* INDEX PAGE Carousel buttons - UPDATED to use theme colors */
.index-page .carousel-control-prev-icon,
.index-page .carousel-control-next-icon {
    background-color: var(--brand, #004aad) !important;
    border-radius: 50%;
    padding: 15px;
    background-size: 50% 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.index-page .carousel-control-prev-icon:hover,
.index-page .carousel-control-next-icon:hover {
    background-color: var(--accent, #1fb6ff) !important;
    opacity: 1;
    transform: scale(1.1);
}

.index-page .carousel-indicators {
    bottom: -35px;
    margin-bottom: 0;
}

.index-page .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 74, 173, 0.3);
    border: none;
    margin: 0 3px;
}

.index-page .carousel-indicators button.active {
    background-color: var(--brand);
}

/* Responsive adjustments for index page carousel buttons */
@media (max-width: 768px) {
    .index-page .carousel-control-prev-icon,
    .index-page .carousel-control-next-icon {
        padding: 12px;
        background-size: 45% 45%;
    }
}

@media (max-width: 576px) {
    .index-page .carousel-control-prev-icon,
    .index-page .carousel-control-next-icon {
        padding: 10px;
        background-size: 40% 40%;
    }
}

/* ENHANCED HERO SECTION (Index Only) */
.index-page .hero {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.05) 0%, rgba(31, 182, 255, 0.02) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.index-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: 100% auto;
    z-index: 0;
}

.index-page .hero > .container {
    position: relative;
    z-index: 1;
}

/* ENHANCED SERVICE CARDS (Index Only) */
.index-page .service-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 74, 173, 0.08);
    background: white;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 100%;
}

.index-page .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #004aad 0%, #1a5fba 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.index-page .service-card:hover::before {
    transform: scaleX(1);
}

.index-page .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 74, 173, 0.15) !important;
    border-color: rgba(0, 74, 173, 0.2);
}

.index-page .feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #004aad, #1a5fba);
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.15);
    flex-shrink: 0;
}

/* TRUST INDICATORS SECTION (Index Only) */
.index-page .bg-light.trust-indicators {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

/* PROFESSIONAL BADGES (Index Only) */
.index-page .badge.bg-primary-subtle {
    background-color: rgba(0, 74, 173, 0.1) !important;
    color: #004aad !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
}

/* ENHANCED BUTTONS (Index Only) */
.index-page .btn-primary {
    background: linear-gradient(135deg, #004aad 0%, #1a5fba 100%);
    border: none;
    font-weight: 500;
    letter-spacing: 0.25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.index-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 74, 173, 0.3);
    background: linear-gradient(135deg, #003a8c 0%, #1654a3 100%);
}

.index-page .btn-outline-primary {
    border: 2px solid #004aad;
    color: #004aad;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.index-page .btn-outline-primary:hover {
    background: #004aad;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 74, 173, 0.2);
}

/* ENHANCED TESTIMONIALS (Index Only) */
.index-page .testimonial {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid rgba(0, 74, 173, 0.1);
}

.index-page .testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 4rem;
    color: rgba(0, 74, 173, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ENHANCED PRICING SECTION (Index Only) */
.index-page .pricing-section {
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
}

.index-page .parallax-background {
    opacity: 0.7;
}

/* CTA SECTION (Index Only) */
.index-page .bg-primary.cta-section {
    background: linear-gradient(135deg, #004aad 0%, #1a5fba 100%) !important;
    position: relative;
    overflow: hidden;
}

.index-page .bg-primary.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%2300387a"/></svg>') no-repeat top;
    background-size: 100% auto;
    opacity: 0.1;
}

/* PROFESSIONAL SHADOWS (Index Only) */
.index-page .shadow-sm {
    box-shadow: 0 2px 12px rgba(0, 74, 173, 0.08) !important;
}

.index-page .shadow {
    box-shadow: 0 5px 20px rgba(0, 74, 173, 0.12) !important;
}

.index-page .shadow-lg {
    box-shadow: 0 10px 35px rgba(0, 74, 173, 0.15) !important;
}

/* ENHANCED TYPOGRAPHY (Index Only) */
.index-page h1, 
.index-page h2, 
.index-page h3, 
.index-page h4, 
.index-page h5, 
.index-page h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

.index-page .lead {
    font-weight: 400;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* PARTNERS SECTION (Index Only) */
.index-page .bg-white.partners-section {
    background: white !important;
}

/* Responsive adjustments for index page only */
@media (max-width: 768px) {
    .index-page .counter {
        font-size: 2rem;
    }
    
    .index-page .counter::after {
        font-size: 1.25rem;
        right: -15px;
    }
    
    .index-page .hero::before {
        background-size: 200% auto;
    }
    
    .index-page .news-image-container {
        height: 180px;
    }
    
    .index-page .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .index-page .counter {
        font-size: 1.75rem;
    }
    
    .index-page .news-image-container {
        height: 160px;
    }
}

/* ANIMATIONS FOR INDEX PAGE ONLY */
.index-page [data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* SCROLL PROGRESS INDICATOR (Index Only) */
.index-page .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #004aad, #1a5fba);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* New professional sections for index page only */
.index-page .trust-indicator-item {
    transition: transform 0.3s ease;
}

.index-page .trust-indicator-item:hover {
    transform: translateY(-5px);
}

.index-page .partner-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.index-page .partner-item:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 74, 173, 0.1);
    transform: translateY(-5px);
}

/* ------------------------------------ STARTER PLANS SECTION--------  --------------------------------------------- */


/* Parallax Pricing Section */
.pricing-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    text-align: center;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 170%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
        url('../images/fleet.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

.sky-background {
    display: none;
}

/* For all text in pricing section */
.pricing-section h3,
.pricing-section .lead,
.pricing-section .text-muted {
    color: white !important;
}

/* Adjust shadow intensity based on text size */
.pricing-section h3 {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.pricing-section .lead {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.pricing-section .text-muted.small {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

/* Floating Vehicle Styles - Adjusted positioning */
.floating-vehicle-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-vehicle {
    width: auto;
    height: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.85;
    transform: translateY(30px) scale(0.9);
}

.vehicle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: -1;
}

/* Individual vehicle positioning */
.vehicle-1 {
    transform: translateY(30px) scale(0.9) rotateY(10deg);
}

.vehicle-2 {
    transform: translateY(30px) scale(0.9) rotateY(-5deg);
    height: 95%;
    max-height: 110px;
}

.vehicle-3 {
    transform: translateY(30px) scale(0.9) rotateY(-10deg);
    height: 90%;
    max-height: 105px;
}

/* Card adjustments for better spacing */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 60px;
    margin-bottom: 20px;
}

/* Increased padding-top for card body to push content down */
.card-body.pt-10 {
    padding-top: 4rem !important;
}

/* Zoom Animation on Scroll */
.pricing-card.in-view .floating-vehicle {
    transform: translateY(0) scale(1.05);
    opacity: 0.95;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7));
}

.pricing-card.in-view .vehicle-glow {
    opacity: 0.5;
}

.pricing-card.in-view .vehicle-1 {
    transform: translateY(0) scale(1.05) rotateY(10deg);
}

.pricing-card.in-view .vehicle-2 {
    transform: translateY(0) scale(1.08) rotateY(-5deg);
}

.pricing-card.in-view .vehicle-3 {
    transform: translateY(0) scale(1.05) rotateY(-10deg);
}

/* Card Hover Effects */
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card:hover .floating-vehicle {
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.9));
}

.pricing-card:hover .vehicle-glow {
    opacity: 0.6;
    width: 120px;
    height: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-vehicle-container {
        top: -35px;
        width: 150px;
        height: 85px;
    }
    
    .floating-vehicle {
        max-height: 85px;
    }
    
    .pricing-card {
        margin-top: 50px;
    }
    
    .card-body.pt-10 {
        padding-top: 3.5rem !important;
    }
}

@media (max-width: 576px) {
    .floating-vehicle-container {
        top: -30px;
        width: 130px;
        height: 70px;
    }
    
    .floating-vehicle {
        max-height: 70px;
    }
    
    .pricing-card {
        margin-top: 45px;
        margin-bottom: 15px;
    }
    
    .card-body.pt-10 {
        padding-top: 3rem !important;
    }
}



/* ---------- FOOTER WHATSAPP WIDGET --------------------------------------------------------------------------------- */


/* WhatsApp Widget Styles */
.whatsapp-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  z-index: 1000;
}

.whatsapp-btn {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn .btn {
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.email-widget {
  position: fixed;
  bottom: 170px;
  right: 25px;
  z-index: 1001;
}

.email-btn {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.email-btn:hover {
  transform: scale(1.1);
}

.email-btn .btn {
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

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

.whatsapp-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.whatsapp-chat-window.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: #25d366;
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-info {
  flex: 1;
}

.chat-info h6 {
  margin: 0;
  font-weight: 600;
}

.chat-info small {
  opacity: 0.9;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f0f0f0;
  transition: all 0.3s ease;
}

.message {
  margin-bottom: 15px;
  display: flex;
}

.message.received {
  justify-content: flex-start;
}

.message.sent {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  position: relative;
}

.message.received .message-bubble {
  background: white;
  border-bottom-left-radius: 5px;
}

.message.sent .message-bubble {
  background: #dcf8c6;
  border-bottom-right-radius: 5px;
}

.message-bubble small {
  display: block;
  font-size: 10px;
  color: #999;
  margin-top: 5px;
  text-align: right;
}

.chat-input-container {
  padding: 15px;
  border-top: 1px solid #eee;
  background: white;
  transition: all 0.3s ease;
}

.quick-replies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.quick-replies-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.toggle-quick-replies {
  background: none;
  border: none;
  color: #25d366;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.toggle-quick-replies:hover {
  background: #f0f0f0;
}

/* Fix for quick replies scrolling */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

/* Custom scrollbar for quick replies */
.quick-replies::-webkit-scrollbar {
  width: 6px;
}

.quick-replies::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.quick-replies::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.quick-replies::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ensure collapsed state still works */
.quick-replies.collapsed {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
}

/* Adjust quick reply button sizing for better scrolling */
.quick-reply-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 15px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1 0 calc(50% - 5px);
  min-width: calc(50% - 5px);
  max-width: calc(50% - 5px);
  text-align: center;
  margin-bottom: 5px;
  box-sizing: border-box;
}

.quick-reply-btn:hover {
  background: #e9ecef;
  border-color: #25d366;
}

.input-group {
  margin-bottom: 10px;
}

.chat-options {
  text-align: center;
}

/* Action buttons for smart replies */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.btn-action {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-action:hover {
  background: #128C7E;
  transform: translateY(-1px);
}

.message-bubble a {
  color: #25D366 !important;
  text-decoration: underline !important;
  font-weight: 600;
}

.message-bubble a:hover {
  color: #128C7E !important;
}

/* Expanded chat mode */
.whatsapp-chat-window.quick-replies-collapsed .chat-messages {
  flex: 1;
}

.whatsapp-chat-window.quick-replies-collapsed .chat-input-container {
  padding-top: 10px;
}

/* Add smooth scrolling behavior */
.chat-messages, .quick-replies {
  scroll-behavior: smooth;
}

/* ===== MOBILE VIEW: REORDER WIDGETS ===== */
/* On mobile devices, stack widgets in this order (from bottom to top):
   1. WhatsApp (bottom - higher position like original)
   2. Email (above WhatsApp)
   3. Quote Modal (above Email)
*/
@media (max-width: 768px) {
  /* WhatsApp - higher position like original (was 100px on desktop, now 80px on mobile) */
  .whatsapp-widget {
    bottom: 80px !important;
    right: 15px !important;
    z-index: 1000 !important;
  }
  
  /* Email - above WhatsApp (70px gap) */
  .email-widget {
    bottom: calc(80px + 70px) !important;
    right: 15px !important;
    z-index: 1001 !important;
  }
  
  /* Quote Modal - above Email (30px gap above Email) */
  .floating-cta {
    bottom: calc(80px + 70px + 40px) !important;
    right: 15px !important;
    z-index: 1002 !important;
  }
  
  /* Adjust WhatsApp chat window for mobile */
  .whatsapp-chat-window {
    width: 90vw;
    max-width: 300px;
    height: 450px;
    right: 0;
    left: auto;
    bottom: 70px;
  }
  
  .quick-replies {
    max-height: 150px;
  }
  
  .quick-reply-btn {
    flex: 1 0 100%;
    min-width: 100%;
    max-width: 100%;
    font-size: 11px;
    padding: 6px 10px;
  }
  
  /* Very small devices - maintain same 70px gaps with higher WhatsApp position */
  @media (max-width: 480px) {
    .whatsapp-widget {
      bottom: 75px !important;
    }
    
    .whatsapp-btn .btn {
      width: 56px !important;
      height: 56px !important;
    }
    
    .email-widget {
      bottom: calc(75px + 65px) !important;
    }
    
    .email-btn .btn {
      width: 56px !important;
      height: 56px !important;
    }
    
    .floating-cta {
      bottom: calc(75px + 65px + 65px) !important;
    }
    
    .floating-cta .btn {
      width: 56px !important;
      height: 56px !important;
    }
  }
  
  @media (max-width: 350px) {
    .whatsapp-widget {
      bottom: 70px !important;
    }
    
    .whatsapp-btn .btn {
      width: 56px !important;
      height: 56px !important;
    }
    
    .email-widget {
      bottom: calc(70px + 60px) !important;
    }
    
    .email-btn .btn {
      width: 56px !important;
      height: 56px !important;
    }
    
    .floating-cta {
      bottom: calc(70px + 60px + 60px) !important;
    }
    
    .floating-cta .btn {
      width: 56px !important;
      height: 56px !important;
    }
    
    .whatsapp-chat-window {
      width: 95vw;
      right: 2.5vw;
    }
  }
}

/* Adjust floating CTA position - Desktop default */
.social a {
  color: #cfe6ff;
  margin-right: .6rem;
}

.cta-gradient {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: white;
  border: none;
  border-radius: 10px;
  padding: .7rem 1.25rem;
}

.floating-cta {
  position: fixed !important;
  right: 25px !important;
  bottom: 240px !important;
  z-index: 1002 !important;
}

.floating-cta .btn {
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nav-brand {
  font-weight: 700;
  color: var(--brand);
}

.counter {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.6rem;
}

/* ===== PASSENGER LIABILITY STYLES ===== */
/* Fix for passenger liability input width on desktop */
#passengerLiabilityContainer .d-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#passengerLiabilityContainer .btn-outline-secondary {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

#numberOfSeats {
    width: 80px !important;
    min-width: 80px;
    max-width: 100px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    display: inline-block !important;
}

#numberOfSeats::-webkit-outer-spin-button,
#numberOfSeats::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ensure the passenger liability container is visible and properly aligned */
#passengerLiabilityContainer {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #0d6efd;
}

/* For mobile screens */
@media (max-width: 768px) {
    #passengerLiabilityContainer .d-flex {
        flex-wrap: wrap;
    }
    
    #numberOfSeats {
        width: 70px !important;
        min-width: 70px;
    }
}

/* ===== QUOTATION FORM MODAL STYLES ========================================================================== */
/* Style for the modal quote form */
.modal-quote-form {
  max-height: 70vh;
  overflow-y: auto;
  padding: 10px;
}

.modal-quote-form .form-group {
  margin-bottom: 1rem;
}

.modal-quote-form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Form section grid layout */
.modal-quote-form .form-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .modal-quote-form .form-section {
    grid-template-columns: 1fr;
  }
}

/* Vehicle field styling */
.modal-quote-form .vehicle-field-group {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.modal-quote-form .vehicle-field-group h6 {
  color: var(--brand);
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

/* Card header styling in modal */
.modal-quote-form .card-header {
  font-weight: 600;
}

/* Input group styling */
.modal-quote-form .d-flex.gap-3 {
  gap: 1rem !important;
}

/* Quotation summary styling */
.modal-quote-form .card .card-header.bg-success {
  background: linear-gradient(135deg, var(--success), #1e7e34) !important;
}

/* ===== MODAL LAYOUT AND BEHAVIOR ===== */
/* Ensure the floating CTA stays on top */
.floating-cta {
  z-index: 1100;
}

/* Modal should appear above the floating CTA */
.modal {
  z-index: 1200;
}

/* ===== FIXES FOR MODAL ARIA ISSUES ===== */
.modal {
  /* Fix for aria-hidden warning */
  aria-hidden: false !important;
}

.modal.fade {
  /* Ensure proper focus management */
  transition: opacity 0.15s linear;
}

.modal-backdrop {
  z-index: 1040;
}

.modal-content {
  /* Ensure focus is properly contained within modal */
  outline: none;
}

.modal .btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: none;
}

/* Focus styles for form elements in modal */
.modal-quote-form input:focus,
.modal-quote-form select:focus,
.modal-quote-form textarea:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  border-color: #80bdff;
  outline: 0;
}

/* Loading state for modal content */
.modal-quote-form .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Success/error message styling */
.modal-quote-form .alert {
  margin-bottom: 1rem;
}

/* Ensure modal displays correctly */
.modal.show {
  display: block !important;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade .modal-dialog {
  transform: none;
}

/* Fix any potential overlay issues */
.modal-backdrop.show {
  opacity: 0.5;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .modal-quote-form {
    max-height: 60vh;
    padding: 5px;
  }
  
  /* Override any conflicting floating-cta styles in modal media query */
  .floating-cta {
    right: 15px !important;
    bottom: 205px !important;
  }
  
  .floating-cta .btn {
    padding: 0.6rem !important;
    width: 56px !important;
    height: 56px !important;
  }
  
  /* Adjust modal dialog for mobile */
  .modal-dialog.modal-lg {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
}

/* Animation for modal appearance */
.modal.fade .modal-dialog {
  transform: translate(0, -50px);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

/* Ensure modal is properly centered */
.modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .modal-dialog {
    min-height: calc(100% - 3.5rem);
  }
}

/* Custom scrollbar for modal form */
.modal-quote-form::-webkit-scrollbar {
  width: 6px;
}

.modal-quote-form::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-quote-form::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.modal-quote-form::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Button styling within modal */
.modal-quote-form .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
}

.modal-quote-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Input number styling */
.modal-quote-form input[type="number"] {
  text-align: center;
}

/* Readonly input styling */
.modal-quote-form input[readonly] {
  background-color: #e9ecef;
  font-weight: 600;
  color: #495057;
}

/* Comprehensive fields container */
#compFields .card {
  border: 2px solid var(--secondary);
}

/* Vehicle count controls */
.modal-quote-form .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-quote-form .btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
}

/* Add these to your existing style.css file */

/* Modal form container styling */
#quoteFormContainer {
  max-height: 70vh;
  overflow-y: auto;
}

/* Modal form styling */
#quoteFormContainer .form-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  #quoteFormContainer .form-section {
    grid-template-columns: 1fr;
  }
}

/* Compact styling for modal form */
#quoteFormContainer .card {
  margin-bottom: 10px;
}

#quoteFormContainer .card-body {
  padding: 1rem;
}

#quoteFormContainer .card-header {
  padding: 0.75rem 1rem;
}

/* Adjust hCaptcha for modal */
#quoteFormContainer .h-captcha {
  transform: scale(0.9);
  transform-origin: left center;
}

/* Vehicle count input fix */
#vehicleCount::-webkit-outer-spin-button,
#vehicleCount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#vehicleCount {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Prevent button click stacking */
.btn:disabled {
  pointer-events: none;
}

/* Modal loading spinner */
#quoteFormContainer .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* hCaptcha Pre-loading Styles */
.h-captcha-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    font-size: 0.9rem;
}

#hcaptchaContainer {
    transition: min-height 0.3s ease;
}

/* Modal hCaptcha adjustments */
.modal-quote-form #hcaptchaContainer {
    min-height: 65px;
}

.modal-quote-form .h-captcha {
    transform: scale(0.85);
    transform-origin: left center;
}

/* Ensure hCaptcha is visible during loading */
.h-captcha iframe {
    min-height: 65px;
}

/* Loading state for hCaptcha */
.h-captcha-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success state for hCaptcha */
.h-captcha-success {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

/* FIX: Passenger liability number input width on desktop */
#numberOfSeats {
    width: 80px !important;
    min-width: 80px;
    max-width: 100px;
    text-align: center;
    display: inline-block !important;
}

/* Ensure the passenger liability container is properly styled */
#passengerLiabilityContainer .d-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#passengerLiabilityContainer .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* -=========================================================================================================================== */

    /* ---------- ABOUT US PAGE ORGANOGRAM LIGHTBOX MODAL STYLES ------------------------------------------------------------------- */


/* Lightbox Modal Styles */
#lightboxModal .modal-content {
  background: transparent;
  box-shadow: none;
}

#lightboxModal .modal-dialog {
  max-width: 90%;
}

#lightboxModal .btn-close {
  opacity: 0.8;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

#lightboxModal .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Navigation buttons */
#lightboxModal .btn-outline-light {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.8;
}

#lightboxModal .btn-outline-light:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1);
}

/* Text at bottom */
#lightboxName {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

#lightboxPosition {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

/* Organogram image hover effects */
.organogram-image {
  transition: all 0.3s ease;
  cursor: pointer;
}

.organogram-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 74, 173, 0.2) !important;
}

/* Ensure modal is responsive */
@media (max-width: 768px) {
  #lightboxModal .modal-dialog {
    margin: 0.5rem;
    max-width: 95%;
  }
  
  #lightboxModal .btn-outline-light {
    width: 50px;
    height: 50px;
    padding: 0.8rem !important;
  }
  
  #lightboxModal .btn-close {
    width: 30px;
    height: 30px;
    margin: 1rem !important;
  }
  
  #lightboxName {
    font-size: 1.5rem !important;
  }
  
  #lightboxPosition {
    font-size: 1rem !important;
  }
}






   /* ---------- PRODUCTS PAGE2 visuals ----------------------------------------------------------------------------------------- */

/* ---------- PRODUCTS PAGE visuals ----------------------------------------------------------------------------------------- */

/* Full-width slider for overview page - MATCHING INDEX PAGE */
.products-slider {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    margin-bottom: 3rem; /* Increased bottom margin */
}

.products-slider .swiper {
    width: 100%;
    height: 70vh;
    max-width: 100%;
}

.products-slider .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    overflow: hidden;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark fallback background to prevent text visibility */
}

.products-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    object-fit: cover;
    transition: transform 1.5s ease-out;
    z-index: 0;
    max-width: 100%;
    /* Skeleton loading effect */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
}

/* Remove skeleton animation once image loads */
.products-slider .slide-bg.loaded {
    animation: none;
    background: none;
}

/* Products slider dark overlay - ENHANCED for better coverage */
.products-slider .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Darker overlay for better text protection */
    z-index: 1;
    transition: background 0.3s ease;
}

/* Lighter overlay for active slide when image is loaded */
.products-slider .swiper-slide.swiper-slide-active::before {
    background: rgba(0, 0, 0, 0.45);
}

/* Products slider overlay content - HIDDEN BY DEFAULT */
.products-slider .slide-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    visibility: hidden;
    /* Prevent interaction when hidden */
}

/* Show overlay only when slide is active AND image is loaded */
.products-slider .swiper-slide.swiper-slide-active.image-loaded .slide-overlay,
.products-slider .swiper-slide.image-loaded .slide-overlay {
    opacity: 1;
    visibility: visible;
}

/* Ensure non-active slides never show overlay */
.products-slider .swiper-slide:not(.swiper-slide-active) .slide-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Products slider loading state - extra dark overlay */
.productsSwiper.loading .swiper-slide::before {
    background: rgba(0, 0, 0, 0.75);
    /* Darker during loading */
}

.productsSwiper.loading .slide-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Skeleton loading animation */
@keyframes loadingSkeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Detail Page - Full width like index page */
.parallax-header-detail {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    margin-bottom: 3rem;
}

.parallax-header-full {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.parallax-bg-full {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 150%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.4s ease-out;
}

.parallax-overlay-full {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, .35));
}

/* HEADER NAV - Updated for both overview and detail */
.header-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.header-nav button {
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, transform .12s ease;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.header-nav button:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.04);
}

.header-nav.left {
    left: 18px;
}

.header-nav.right {
    right: 18px;
}

/* Swiper Pagination for overview slider */
.products-slider .swiper-pagination {
    z-index: 3;
}

.products-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
    width: 12px;
    height: 12px;
}

.products-slider .swiper-pagination-bullet-active {
    background: #ffc107;
    opacity: 1;
}

/* Insurance Cards */
.insurance-card {
    transition: transform .25s;
    overflow: hidden;
    border-radius: .6rem;
}

.insurance-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .5s;
}

.insurance-card:hover {
    transform: translateY(-6px);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: .6rem;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .25s;
}

.card-img-wrapper:hover img {
    transform: scale(1.12);
}

.card-img-wrapper:hover .thumb-overlay {
    opacity: 1;
}

/* MINI CAROUSEL */
.mini-carousel-container {
    background: #000;
    padding: 1.6rem 0;
    border-radius: .75rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mini-viewport {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
}

.mini-viewport:active {
    cursor: grabbing;
}

.mini-viewport.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.mini-viewport.dragging .mini-item {
    pointer-events: none;
}

.mini-viewport::-webkit-scrollbar {
    height: 6px;
}

.mini-viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.mini-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mini-viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.mini-track {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 0 40px;
    flex-shrink: 0;
    min-width: max-content;
}

.mini-track,
.mini-item,
.mini-caption {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.mini-item {
    flex: 0 0 150px;
    height: 150px;
    text-align: center;
    transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease;
    position: relative;
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.mini-item img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
    border-radius: .4rem;
}

.mini-caption {
    margin-top: .35rem;
    font-size: .92rem;
    padding: 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hover-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .18s;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
    z-index: 2;
}

/* Two-step tap selection styles */
.mini-item.tap-selected {
    border: 3px solid #0d6efd !important;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.6) !important;
    transform: scale(1.05) !important;
    z-index: 10 !important;
}

.mini-item.tap-selected .hover-prompt {
    opacity: 1 !important;
    background: rgba(13, 110, 253, 0.7) !important;
}

.mini-item.tap-selected .hover-prompt::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(13, 110, 253, 0.7);
}

/* Desktop hover behavior remains the same */
@media (hover: hover) and (pointer: fine) {
    .mini-item:hover .hover-prompt {
        opacity: 1;
        background: rgba(0, 0, 0, .5);
    }
}

/* Mobile touch feedback */
.mini-item:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.mini-item:hover {
    transform: translateY(-5px);
}

.active-mini {
    border: 3px solid #0d6efd !important;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.8) !important;
    transform: scale(1.08) !important;
    z-index: 10 !important;
}

.mini-item.center.active-mini {
    transform: scale(1.1) !important;
    z-index: 10 !important;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4) !important;
}

/* CENTER CONTROLS */
.carousel-controls {
    text-align: center;
    margin-top: 1.5rem;
}

.center-controls {
    justify-content: center;
    align-items: center;
}

/* CATEGORY FILTER BUTTONS */
.btn-outline-primary.active {
    background: linear-gradient(135deg, #004aad 0%, #1a5fba 100%);
    color: white;
    border-color: #004aad;
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.2);
}

/* PRODUCT BADGES */
.badge.bg-primary-subtle {
    background-color: rgba(0, 74, 173, 0.1) !important;
    color: #004aad !important;
    font-weight: 500;
}

.badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    font-weight: 500;
}

/* Fix for detail page content */
#detailContent {
    opacity: 0;
    animation: fadeInContent 0.5s ease forwards;
    animation-delay: 0.3s;
    transition: opacity 0.3s ease;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active drag state */
.mini-viewport.dragging {
    cursor: grabbing !important;
}

/* RESPONSIVE */
@media (max-width:768px) {
    .products-slider,
    .parallax-header-detail {
        height: 60vh;
    }
    
    .products-slider .swiper,
    .products-slider .swiper-slide,
    .products-slider .slide-bg {
        height: 60vh;
    }
    
    .parallax-header-full {
        height: 60vh;
    }
    
    .header-nav button {
        width: 38px;
        height: 38px;
    }

    .mini-item {
        flex: 0 0 120px;
        height: 130px;
    }

    .mini-item img {
        height: 80px;
    }
    
    .products-slider .slide-overlay h1 {
        font-size: 1.75rem;
    }
    
    .products-slider .slide-overlay .lead {
        font-size: 1rem;
    }
    
    .mini-track {
        padding: 0 20px;
        gap: 12px;
    }
    
    /* Hide scrollbar on mobile for cleaner look */
    .mini-viewport::-webkit-scrollbar {
        display: none;
    }
    
    .mini-viewport {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}

@media (max-width:576px) {
    .products-slider,
    .parallax-header-detail {
        height: 50vh;
    }
    
    .products-slider .swiper,
    .products-slider .swiper-slide,
    .products-slider .slide-bg {
        height: 50vh;
    }
    
    .parallax-header-full {
        height: 50vh;
    }
    
    .mini-item {
        flex: 0 0 100px;
        height: 120px;
    }

    .mini-item img {
        height: 70px;
    }
    
    .products-slider .slide-overlay h1 {
        font-size: 1.5rem;
    }
    
    .products-slider .slide-overlay .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .mini-track {
        padding: 0 15px;
        gap: 10px;
    }
}

   

   
   /* -=========================================================================================================================== */

   /* QUOTATION PAGE3  */


@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

#loadingSpinner:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

#statusAlert:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

.vehicle-comprehensive-field {
  border-left: 3px solid #0d6efd;
  padding-left: 15px;
  margin-bottom: 15px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .form-section {
    grid-template-columns: 1fr;
  }
}



   /* -=========================================================================================================================== */

   /* GALLERY PAGE6  */

.album-item {
  cursor: pointer;
  transition: transform .3s ease;
}

.album-item:hover {
  transform: scale(1.05);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 74, 173, 0.6);
  opacity: 0;
  transition: opacity .3s ease;
}

.album-item:hover .album-overlay {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.d-none {
  display: none !important;
}

.lightbox:not(.d-none) {
  display: flex !important;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.lightbox-container {
  position: relative;
  z-index: 2;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-news {
  flex: 1;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.lightbox-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.image-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  max-height: 60vh;
  margin-bottom: 20px;
  overflow: hidden;
}

.main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  opacity: 0.7;
  z-index: 10;
}

.nav-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.lightbox-info {
  padding: 15px 0;
  text-align: center;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.album-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #fff;
}

.image-caption {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 15px;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.counter {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

.thumb-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 20px 0;
  overflow-x: auto;
  justify-content: center;
}

.thumb-strip img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumb-strip img:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.thumb-strip img.active {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Scrollbar styling for thumbnails */
.thumb-strip::-webkit-scrollbar {
  height: 6px;
}

.thumb-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.thumb-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-container {
    width: 98%;
    max-height: 95vh;
  }
  
  .image-container {
    min-height: 300px;
    max-height: 50vh;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  
  .album-title {
    font-size: 1.2rem;
  }
  
  .thumb-strip img {
    width: 60px;
    height: 60px;
  }
}

@media (max-height: 700px) {
  .lightbox-container {
    max-height: 98vh;
  }
  
  .image-container {
    max-height: 50vh;
  }
  
  .thumb-strip {
    padding: 10px 0;
  }
}

/* ======================================================================= */
/* NEWS DETAIL PAGE IMAGE STYLING */
/* ======================================================================= */

/* Featured image container in news detail */
.news-featured-image-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.news-featured-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-featured-image-container:hover .image-overlay {
  opacity: 1;
}

.news-featured-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Better responsive handling for featured images */
@media (min-width: 992px) {
  .news-featured-image {
    max-height: 600px;
    object-fit: contain;
  }
}

@media (max-width: 991px) {
  .news-featured-image {
    max-height: 400px;
    object-fit: cover;
  }
}

@media (max-width: 576px) {
  .news-featured-image {
    max-height: 300px;
    object-fit: cover;
  }
}

/* Image overlay with zoom icon */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.news-featured-image-container:hover .zoom-icon {
  transform: scale(1.1);
  background: white;
}

/* Image caption */
.image-caption-text {
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
}

/* Image lightbox specific for news detail */
.news-image-lightbox {
  z-index: 10000;
}

.news-image-lightbox .lightbox-container {
  max-width: 90%;
  max-height: 85vh;
}

.news-image-lightbox .image-container {
  min-height: 300px;
  max-height: 70vh;
  margin-bottom: 10px;
}

.news-image-lightbox .lightbox-info {
  padding: 10px 0;
  border-bottom: none;
}

.news-image-lightbox .image-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: white;
}

.news-image-lightbox .image-description {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0;
}

/* Make the image in lightbox fully visible */
.news-image-lightbox .main-img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 70vh;
  object-fit: contain;
}

/* Optional: Add subtle animation to lightbox open */
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.news-image-lightbox:not(.d-none) .lightbox-container {
  animation: lightboxFadeIn 0.3s ease-out;
}

/* For articles with multiple images (like album previews) */
.album-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.album-preview-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.album-preview-image:hover {
  transform: scale(1.05);
  border-color: #007bff;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Video thumbnail styling */
.video-thumbnail-container {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-thumbnail-container:hover .video-overlay {
  opacity: 1;
}

.video-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

/* Mobile optimizations for news detail */
@media (max-width: 768px) {
  .news-featured-image-container {
    cursor: default;
  }
  
  .image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
  }
  
  .zoom-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .news-image-lightbox .lightbox-container {
    width: 98%;
    max-height: 95vh;
  }
  
  .news-image-lightbox .image-container {
    min-height: 250px;
    max-height: 60vh;
  }
}

/* ======================================================================= */
/* CONTACT PAGE */
/* ======================================================================= */
#contactForm .form-label.required::after {
  content: " *";
  color: #dc3545;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-alert {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.location-buttons .btn {
  transition: all 0.3s ease;
  border-radius: 30px;
  padding: 8px 20px;
}

.location-buttons .btn:hover {
  transform: translateY(-2px);
}

.location-buttons .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.location-buttons .btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

#location-map {
  transition: opacity 0.3s ease;
}

#current-location-label {
  font-size: 0.85rem;
}

html {
  scroll-behavior: smooth;
}

a[href="#contactFormSection"] {
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}
