@media (max-width: 768px) {
    .pre-header{
        display: none;
    }
    .pre-header .heading {
        font-size: 0.8rem;
    }

    .nav-link {
        margin: 10px 0;
    }
 /* Disable hover on mobile */
 .nav-item.dropdown:hover .dropdown-menu {
    /* display: none; */
}
    /* banner section */
    .banner-section {
        padding: 60px 0;
    }

    .banner-section h1 {
        font-size: 2rem;
    }

    .banner-section p {
        font-size: 1rem;
    }

    /* carousel section */
    .carousel-caption h1 {
        font-size: 28px;
        font-weight: 600;
        line-height: 100%;
    }
    .carousel-caption p {
        font-size: 22px;
        margin: 15px 0;
        font-weight: 400;
        font-family: Qwigley;
        color: #000000;
      }
      .carousel-caption .btn {
        margin-right: 10px;
      }
     
      .carousel-caption{
        padding: 10px 10px;
        bottom: 0px;
        width: 100%;
        left: 0px;
        right: 0px;
        top:25%
      
      }
      .carousel-item img{
        height: 500px;
        object-fit: cover;
      }

    .book-appointment-btn {
        margin: 10px 0;
    }

    /* services section */
    .services-section {
        padding: 40px 0;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* about section */
    .about-section {
        padding: 40px 0;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-section h4 {
        font-size: 1.3rem;
    }

    .about-section p,
    .about-section ul li {
        font-size: 1rem;
    }

    .about-section img {
        max-height: 300px;
        margin-bottom: 20px;
    }

    /* doctor team section */
    .doctor-team-section {
        padding: 40px 0;
    }

    .doctor-team-carousel .card-img-top {
        height: 149px;
    }

    .doctor-team-carousel .card-title {
        font-size: 1.3rem;
    }

    .doctor-team-carousel .card-subtitle,
    .doctor-team-carousel .card-text {
        font-size: 0.9rem;
    }

    .doctor-team-carousel .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* counter section */
    .counter-section {
        padding: 40px 0;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 1rem;
    }

    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* appointment section */
    .book-appointment-section {
        padding: 40px 0;
    }

    .book-appointment-section h2 {
        font-size: 2rem;
    }

    .book-appointment-section p {
        font-size: 1rem;
    }

    .book-appointment-section img {
        max-height: 300px;
        margin-bottom: 20px;
    }
    /* why choose us section */
    .why-choose-us-section {
        padding: 40px 0;
    }

    .reason-title {
        font-size: 1.3rem;
    }

    .reason-text {
        font-size: 0.9rem;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* pricing section */
    .pricing-section {
        padding: 40px 0;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-body ul li {
        font-size: 0.9rem;
    }

    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* faq section */
    .faq-section {
        padding: 40px 0;
    }

    .accordion-button {
        font-size: 1.1rem;
    }

    .accordion-body {
        font-size: 0.9rem;
    }
    /* location section */
    .location-section {
        padding: 40px 0;
    }

    .location-section h2 {
        font-size: 2rem;
    }

    .location-section h4 {
        font-size: 1.3rem;
    }

    .location-section ul li {
        font-size: 1rem;
    }

    .location-section img {
        max-height: 300px;
        margin-bottom: 20px;
    }
/* testimonial section */
.testimonial-section {
    padding: 40px 0;
}

.testimonial-text {
    font-size: 0.9rem;
}

.testimonial-name {
    font-size: 1.1rem;
}

.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* blog section */

.blog-section {
    padding: 40px 0;
}

.blog-title {
    font-size: 1.3rem;
}

.blog-text {
    font-size: 0.9rem;
}

.col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
}


/* contact us section */
.contact-us-section {
    padding: 40px 0;
}

.contact-us-section h2 {
    font-size: 2rem;
}

.contact-us-section h4 {
    font-size: 1.3rem;
}

.contact-us-section ul li {
    font-size: 1rem;
}

.contact-us-section img {
    max-height: 300px;
    margin-bottom: 20px;
}
/* footer section */
.footer-section {
    padding: 40px 0 0;
}

.footer-section p {
    font-size: 0.9rem;
}
}


@media (min-width: 769px) and (max-width: 992px) {
    /* services section */
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* doctor team section */
    .doctor-team-carousel .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;

    }
    /* counter section */
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* why choose us section */
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* pricing section */
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
} 



/* service details page */
@media (max-width: 768px) {
    .service-details-section {
padding: 40px 0;
}

.feature-title, .testimonial-name {
font-size: 1.3rem;
}

.feature-text, .testimonial-text {
font-size: 0.9rem;
}
}
/* error page */
@media (max-width: 768px) {
    .error-section {
        padding: 50px 0;
    }

    .error-section h1 {
        font-size: 2.5rem;
    }

    .error-section p {
        font-size: 1rem;
    }

    .error-section img {
        max-width: 200px;
    }
}


/* blog details page */

@media (max-width: 768px) {
    .blog-container {
        padding: 40px 0;
    }

    .sidebar, .blog-detail-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .blog-detail-section h1 {
        font-size: 2rem;
    }

    .blog-detail-section p {
        font-size: 1rem;
    }

    .sidebar ul li {
        flex-direction: column;
        text-align: center;
    }

    .sidebar ul li img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .comment-section .comment {
        border-left: none;
        border-top: 4px solid var(--accent-purple);
    }
}
/* team page */
@media (max-width: 768px) {
    .team-container {
        padding: 40px 0;
    }

    .team-section {
        padding: 15px;
    }

    .team-section h1 {
        font-size: 2rem;
    }

    .team-card img {
        width: 150px;
        height: 150px;
    }
}


/* team details page */
@media (max-width: 768px) {
    .team-detail-container {
        padding: 40px 0;
    }

    .team-detail-section {
        padding: 15px;
    }

    .team-detail-section h1 {
        font-size: 2rem;
    }

    .team-detail-section .image-col img {
        width: 200px;
        height: 200px;
    }

    .team-detail-section .info-col {
        padding-left: 0;
        margin-top: 20px;
    }

    .team-detail-section .personal-details p,
    .team-detail-section .info-col p,
    .team-detail-section .info-col ul li {
        font-size: 1rem;
    }
}

/* coming soon page */
   @media (max-width: 768px) {
    .coming-soon-container {
        padding: 40px 0;
    }

    .coming-soon-section h1 {
        font-size: 2rem;
    }

    .coming-soon-section .countdown {
        font-size: 1.2rem;
    }

    .coming-soon-section .subscribe-form input,
    .coming-soon-section .subscribe-form button {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 5px;
    }
}