body {
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(239, 246, 255, 1) 25%, 
        rgba(248, 249, 250, 1) 50%, 
        rgba(254, 249, 195, 0.3) 75%, 
        rgba(248, 249, 250, 1) 100%);
}

    
img {
  loading: lazy;
  decoding: async;
}


#services-grid img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  background: #f3f4f6;
}

   
.modal-open {
    overflow: hidden !important;
   
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}


@media (max-width: 768px) {
   
    .fixed.inset-0.bg-black.bg-opacity-50 {
        padding: 0.5rem !important;
    }
    
    
    .bg-white.rounded-xl.max-w-2xl {
        max-width: 100% !important;
        max-height: 95vh !important;
        margin: 0 !important;
        border-radius: 1rem !important;
    }
    

   
    .overflow-y-auto.max-h-calc90vh-80px {
        max-height: calc(95vh - 140px) !important;
    }
    
    
    .sticky.top-0.bg-white.p-6 {
        padding: 1rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
    }
    

    .p-6 {
        padding: 1rem !important;
    }
    
   
    .flex.flex-col.sm\:flex-row.gap-3 {
        gap: 0.75rem !important;
    }
    
    
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    
    .grid.grid-cols-1.md\:grid-cols-2.gap-3 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* WhatsApp CTA Shine Effect */
@keyframes shine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.animate-shine {
  animation: shine 2.8s ease-in-out infinite;
}


    #services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
  
    .hero-form-container {
        flex-direction: column !important;
        border-radius: 1rem !important;
        padding: 0.5rem !important;
    }
    
    .hero-form-container .form-field {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding: 1rem !important;
        width: 100% !important;
    }
    
    .hero-form-container .form-field:last-of-type {
        border-bottom: none !important;
    }
    
    .hero-form-container .submit-button-wrapper {
        width: 100% !important;
        padding: 0.5rem !important;
    }
    

    .whatsapp-quote-button {
        min-height: 48px !important;
        padding: 0.75rem 1rem !important;
    }
}


.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}


.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 50 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.modal-backdrop::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

        body {
            font-family: 'Inter', sans-serif;
            background-color: #F8F9FA;
            color: #1A202C;
        }

        .hero-bg {
            background-color: #3b82f6;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
                linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
            background-size: 25px 25px, 25px 25px, cover;
            overflow: hidden;
            /* To contain decorative elements */
        }

        .btn-primary {
            background-color: #2563EB;
            color: white;
            transition: background-color 0.3s;
        }

        .btn-primary:hover {
            background-color: #1D4ED8;
        }

        .btn-secondary {
            background-color: #E0E7FF;
            color: #3730A3;
            transition: background-color 0.3s;
        }

        .btn-secondary:hover {
            background-color: #C7D2FE;
        }

        .card {
            background: white;
            border-radius: 1rem;
            border: 1px solid #E5E7EB;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
        }

        .faq-item .faq-answer {
            display: none;
            transition: max-height 0.3s ease-in-out;
            max-height: 0;
            overflow: hidden;
        }

        .faq-item.active .faq-answer {
            display: block;
            max-height: 1000px;
        }

        /* Carousel Styles */
        #hero-carousel-viewport {
            perspective: 1000px;
        }

        #hero-carousel-track {
            display: flex;
            transform-style: preserve-3d;
            transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        }

        #hero-carousel-track.no-transition {
            transition: none;
        }

   
        .hero-carousel-card-wrapper {
            flex: 0 0 100%;
            /* Mobile first: 1 card */
            padding: 0 10px;
            box-sizing: border-box;
        }

        @media (min-width: 1024px) {
            .hero-carousel-card-wrapper {
                flex: 0 0 calc(100% / 3);
                /* Desktop: 3 cards */
            }
        }

       
        .hero-carousel-card.is-center {
            transform: scale(1.05) !important;
            opacity: 1 !important;
            z-index: 10 !important;
            border-color: #3b82f6 !important;
            /* Highlight border */
            border: 2.5px solid #3b82f6 !important;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
        }

      
        .hero-carousel-card {
            border: 2px solid transparent;
            transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s, border-color 0.5s, opacity 0.5s;
        }

        .hero-carousel-card {
            width: 320px;
            height: auto;
            margin: 0 auto;
            transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s;
            backface-visibility: hidden;
        }

        @media (max-width: 1023px) {
            .hero-carousel-card {
                width: 280px;
            }

            #hero-carousel-container {
                height: auto;
                padding: 0 2.5rem;
                /* Space for arrows */
            }

            #carousel-prev {
                left: 0;
            }

            #carousel-next {
                right: 0;
            }
        }

        @media (min-width: 1024px) {
            .hero-carousel-card {
                width: 300px;
            }
        }

    
        .hero-select {
            -webkit-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238B5CF6'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0rem center;
            background-size: 1.5em 1.5em;
            padding-right: 2rem;
            font-weight: 500;
        }


        @media (max-width: 1024px) {
            .hero-form-container {
                flex-direction: column;
                border-radius: 1.5rem !important;
            }

            .hero-form-container form {
                flex-direction: column;
                width: 100%;
                gap: 0;
            }

            .hero-form-container .form-field {
                border-right: none !important;
                border-bottom: 1px solid #e5e7eb;
                width: 100%;
                padding: 0.75rem 1rem !important;
            }

            .hero-form-container .form-field:last-of-type {
                border-bottom: none;
            }

            .hero-form-container .submit-button-wrapper {
                width: 100%;
                padding: 0.5rem;
            }
        }

       @media (max-width: 1023px) {
    .hero-carousel-card {
        width: 280px;
    }

    #hero-carousel-container {
        height: auto;
        padding: 0 2.5rem;
    }
    

    #carousel-prev {
        left: 0;
    }

    #carousel-next {
        right: 0;
    }
}


@media (max-width: 768px) {
    #hero-carousel-container {
        padding: 0 clamp(1rem, 4vw, 2.5rem) !important;
        position: relative;
    }
    
    #carousel-prev,
    #carousel-next {
        display: none !important;
        visibility: hidden !important;
    }
    
   
    #hero-carousel-container::after {
        content: "← Swipe to see more services →";
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        color: #000000;
        text-align: center;
        opacity: 1;
        animation: swipe-hint 1s ease-in-out infinite;
        width: 100%;
    }
}


     
        @keyframes whatsapp-pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }

            100% {
                box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
                transform: scale(1);
            }
        }
        
        .whatsapp-quote-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            color: white;
            font-weight: 600;
            font-size: 0.875rem;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
            animation: whatsapp-pulse 2.5s infinite;
        }

        .whatsapp-quote-button:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
            animation-play-state: paused;
        }
        
        .whatsapp-float-enhanced {
            animation: whatsapp-pulse 3s infinite;
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
        }

        .whatsapp-float-enhanced:hover {
            background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
            box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
            animation-play-state: paused;
        }

        @media (max-width: 768px) {
            .whatsapp-float-enhanced {
                padding: 1rem;
            }

            .whatsapp-float-enhanced svg {
                width: 2rem;
                height: 2rem;
            }
        }


        .send-button-enhanced {
            position: relative;
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        }

        .send-button-enhanced:hover {
            background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
        }

        .send-button-enhanced::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: linear-gradient(135deg, #25D366, #128C7E);
            animation: send-pulse 2s infinite;
            opacity: 0;
        }

        @keyframes send-pulse {
            0% {
                transform: scale(1);
                opacity: 0.3;
            }

            100% {
                transform: scale(1.4);
                opacity: 0;
            }
        }

       
        .contact-sidebar-collapsed {
            transform: translateX(-2.5rem);
        }

        .contact-sidebar-open {
            transform: translateX(0%);
        }

        @media (max-width: 767px) {
            .contact-sidebar-auto-hide {
                transform: translateX(-3rem);
            }

            .contact-sidebar-auto-hide.open {
                transform: translateX(0%);
            }
        }

     
        .clients-section-two {
            background: #f8f9fa;
        }

        .auto-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .sponsors-outer {
            position: relative;
        }

        .sponsors-carousel-two {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slide-item {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 15px;
        }

        .image-box {
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image-box img {
            max-height: 60px;
            width: auto;
            opacity: 1;
            transition: transform 0.3s ease, opacity 0.3s ease;
            filter: none;
            transform: scale(1);
        }

        .image-box img:hover {
            opacity: 1;
            filter: none;
            transform: scale(1.7);
        }

        .slide-item {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 15px;
            overflow: visible;
        }

        .image-box {
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        .contact-sidebar-collapsed {
            transform: translateX(-2.5rem);
        }

        .contact-sidebar-open {
            transform: translateX(0);
        }
        #services-grid img[alt="Medical Translation Services"]{
    object-fit:contain!important;      
    height:11rem!important;           
    background:#f9fafb;
  }
   