@media (max-width: 1199.5px) {

    /* custom CSS */
    .card {
        padding: 2.5rem 1.875rem;
    }

    /* header */
    .header-wrapper .navbar-nav .nav-link {
        font-size: 1rem;
    }

    /* top banner */
    .banner_wrapper .animate-img .aimg1 {
        left: -3.125rem;
    }

    /* about */
    .about_wrapper .about-animate {
        left: 0.9375rem;
    }

    /* services */
    .services_wrapper .card {
        padding: 1.875rem 1.25rem;
    }
}

@media (max-width: 991px) {

    /* custom CSS */
    .wrapper {
        padding: 3.125rem 0;
    }
        
    .main-btn {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 2.8125rem;
        margin-bottom: 0.625rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5625rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.125rem;
    }

    p {
        font-size: 0.875rem;
        line-height: 1.35rem;
    }

    .card {
        padding: 1.875rem 1rem;
    }

    /* Preloader */
    #preloader {
        background-size: 15%;
    }

    /* Navbar */
    .header-scrolled {
        height: auto;
    }

    .header-wrapper .menu-navbar-nav {
        text-align: center;
    }

    .header-wrapper .nav-item .nav-link {
        margin-top: 0.9375rem;
    }

    /* banner */
    .banner_wrapper p {
        max-width: 100%;
    }

    /* about */
    .about_wrapper .about-clinic:nth-child(1),
    .about_wrapper .about-clinic:nth-child(2) {
        margin-bottom: 1.5625rem;
    }

    .about_wrapper .about-clinic:nth-child(2),
    .about_wrapper .about-clinic:nth-child(4) {
        padding-left: 2.375rem;
    }

    /* services */
    .services_wrapper .card {
        padding: 1.875rem 0.875rem;
    }
}

@media (max-width: 767px) {

    /* custom CSS */
        
    .main-btn {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    h5 {
        font-size: 1.25rem;
    }

    /* Preloader */
    #preloader {
        background-size: 17%;
    }

    /* services */
    .services_wrapper .card {
        text-align: center;
    }
}


@media (max-width: 550px) {

    /* Preloader */
    #preloader {
        background-size: 35%;
    }
}

@media (max-width: 360px) {

    /* Preloader */
    #preloader {
        background-size: 50%;
    }

    /* about */
    .about_wrapper .about-animate {
        width: 6.875rem;
    }

    .about_wrapper .card {
        padding: 1.25rem 0.3125rem;
    }

    .about_wrapper .about-clinic:nth-child(2),
    .about_wrapper .about-clinic:nth-child(4) {
        padding-left: 0.625rem;
    }

    /* services */
    .services_wrapper .icon-box {
        margin-bottom: 0.9375rem;
    }
}