/*index page media query */
/* General Reset for Mobile */
* {
    box-sizing: border-box;
}

/* Media Query for Small Screens (Phones, <= 576px) */
@media (max-width: 576px) {
    /* Header Carousel */
    .header-carousel .carousel-caption {
        padding: 10px;
        text-align: center;
    }
    .header-carousel .carousel-caption h4 {
        font-size: 1.5rem; /* Reduce heading size */
        margin-bottom: 10px;
    }
    .header-carousel .carousel-caption p {
        font-size: 0.9rem; /* Smaller paragraph text */
        margin-bottom: 15px;
    }
    .header-carousel .carousel-caption h2 {
        font-size: 1.2rem; /* Smaller "Follow Us" text */
    }
    .header-carousel .btn-md-square {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
    .header-carousel .row {
        flex-direction: column; /* Stack carousel content vertically */
    }
    .header-carousel .col-xl-7,
    .header-carousel .col-xl-5 {
        width: 100%;
    }
    .header-carousel-item img {
        height: 50vh; /* Adjust image height for mobile */
        object-fit: cover;
    }

    /* About Section */
    .about .row {
        flex-direction: column; /* Stack columns vertically */
    }
    .about .col-xl-7,
    .about .col-xl-5 {
        width: 100%;
    }
    .about h3 {
        font-size: 1.8rem; /* Smaller heading */
        margin-bottom: 15px;
    }
    .about p {
        font-size: 0.9rem; /* Smaller paragraph text */
    }
    .about img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    .about .bg-primary img[style*="position: absolute"] {
        width: 100px;
        height: 100px;
        top: -10px;
        right: -10px;
    }

    /* Why Choose Us Section */
    .feature .text-center h1 {
        font-size: 2rem; /* Smaller heading */
    }
    .feature .text-center p {
        font-size: 0.9rem; /* Smaller paragraph text */
    }
    .feature .container {
        padding: 15px; /* Reduce padding */
    }

    /* Category Section */
    .feature .row {
        flex-direction: column; /* Stack category items vertically */
    }
    .feature .col-md-6,
    .feature .col-lg-6,
    .feature .col-xl-3 {
        width: 100%;
        margin-bottom: 20px;
    }
    .feature-item {
        padding: 15px; /* Reduce padding */
    }
    .feature-item h4 {
        font-size: 1.2rem; /* Smaller category title */
    }
    .feature-item .feature-icon img {
        width: 50px;
        height: 50px;
    }

    /* Suppository Section */
    .faq-section .row {
        flex-direction: column; /* Stack accordion and image vertically */
    }
    .faq-section .col-lg-6 {
        width: 100%;
    }
    .faq-section h3 {
        font-size: 1.8rem; /* Smaller heading */
    }
    .faq-section p {
        font-size: 0.9rem; /* Smaller paragraph text */
    }
    .faq-section .accordion {
        padding: 15px; /* Reduce padding */
    }
    .faq-section .accordion-button {
        font-size: 0.9rem; /* Smaller accordion title */
        padding: 10px;
    }
    .faq-section .accordion-body {
        font-size: 0.85rem; /* Smaller accordion content */
    }
    .faq-section .bg-primary img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    /* General Adjustments */
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    h1.display-5 {
        font-size: 2rem; /* Adjust large headings */
    }
}

/* Media Query for Medium Screens (Tablets, 577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    /* Header Carousel */
    .header-carousel .carousel-caption h4 {
        font-size: 1.8rem;
    }
    .header-carousel .carousel-caption p {
        font-size: 1rem;
    }
    .header-carousel .carousel-caption h2 {
        font-size: 1.4rem;
    }
    .header-carousel .btn-md-square {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    .header-carousel-item img {
        height: 60vh;
    }

    /* About Section */
    .about h3 {
        font-size: 2.2rem;
    }
    .about p {
        font-size: 1rem;
    }
    .about .bg-primary img[style*="position: absolute"] {
        width: 120px;
        height: 120px;
    }

    /* Why Choose Us Section */
    .feature .text-center h1 {
        font-size: 2.5rem;
    }
    .feature .text-center p {
        font-size: 1rem;
    }

    /* Category Section */
    .feature .col-xl-3 {
        width: 50%; /* Two columns on tablets */
    }
    .feature-item h4 {
        font-size: 1.4rem;
    }
    .feature-item .feature-icon img {
        width: 60px;
        height: 60px;
    }

    /* Suppository Section */
    .faq-section h3 {
        font-size: 2.2rem;
    }
    .faq-section p {
        font-size: 1rem;
    }
    .faq-section .accordion-button {
        font-size: 1rem;
    }
    .faq-section .accordion-body {
        font-size: 0.9rem;
    }
}

/* service css */
/* Image Slider CSS */
.image-slider {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.image-slider .slides {
    display: flex;
    width: 540px; /* 180 * 3 images */
    animation: slide 7s infinite linear;
}

.image-slider img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes slide {
    0%   { transform: translateX(0); }
    33%  { transform: translateX(-180px); }
    66%  { transform: translateX(-360px); }
    100% { transform: translateX(0); }
}
.image-slider {
    width: 220px;          /* FIXED WIDTH */
    height: 220px;         /* FIXED HEIGHT */
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    background: #fff;
    flex-shrink: 0;
}

.image-slider .slides {
    display: flex;
    animation: slide 7s infinite linear;
}

.image-slider img {
    width: 220px;          
    height: 220px;        
    object-fit: contain;   
    padding: 10px;         
    background: #fff;
}

@keyframes slide {
    0%   { transform: translateX(0); }
    33%  { transform: translateX(-220px); }
    66%  { transform: translateX(-440px); }
    100% { transform: translateX(0); }
}

