/********** Template CSS **********/
:root {
    --primary: rgb(153, 3, 3);
    --secondary: #F57E57;
    --light: #f4d3d3;
    --dark: #091E3E;
}

.bg-red {
    background-color: rgb(153, 3, 3);
}

.text-red {
    color: rgb(153, 3, 3);
}

.btn-red {
    background-color: rgb(153, 3, 3);
    color: white;
}

.bg-lightred {
    background-color: rgb(252, 222, 222);
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}




/* nav bar  */

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}


/* Logo styling */
.logo {
    max-height: 50px;
    /* Ensure it fits vertically */
    width: auto;
    /* Maintain aspect ratio */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .logo {
        max-height: 40px;
        /* Slightly smaller for compact screens */
    }
}

/* Adjustments for larger screens */
@media (min-width: 1200px) {
    .logo {
        max-height: 60px;
        /* Slightly larger for large screens */
    }
}





/* carousel start */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/Aarogyam\ home\ img.jpg) center center no-repeat;
    background-size: cover;
}

.hero-header1 {
    background: url(../img/bgtwoimg.jpg) center center no-repeat;
    background-size: cover;
}

.bg-appointment {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/colgate-maxfresh-500x500.png) center center no-repeat;
    background-size: cover;
}

.appointment-form {
    background: rgb(178, 5, 5);
}

.service-item img,
.service-item .bg-lightred,
.service-item .bg-lightred h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after,
.service-item .bg-lightred::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius: 100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-lightred::after {
    opacity: 1;
}

.service-img-container {
    height: 170px;
    /* Set medium size */
    overflow: hidden;
    /* Hide overflow for animation */
    position: relative;
    border-radius: 8px;
    /* Optional rounded corners */
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Smooth animation */
}

.service-img-container:hover .service-img {
    transform: scale(1.1);
    /* Zoom in on hover */
}

@media (max-width: 768px) {
    .service-img-container {
        height: 200px;
        /* Adjust for smaller screens */
    }
}

.service-img-container {
    height: 170px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-img-container:hover .service-img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .service-img-container {
        height: 200px;
    }
}

.bg-offer {
    background: url(../img/service2.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgb(178, 5, 5);
}

.price-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.price-carousel:hover .owl-nav {
    opacity: 1;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.bg-testimonial {
    background: url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgb(235, 169, 169);
    ;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}



.card {
    border: 1px solid #ddd;
    /* Adds a subtle border to each card */
    border-radius: 10px;
    /* Smooth edges for a modern look */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow on hover */
}


.card-header {
    background: linear-gradient(45deg, rgb(153, 3, 3), #ff6363);
    color: #fff;
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.card-body {
    padding: 20px;
}

.card-body p {
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-outline-primary {
    border-radius: 20px;
    padding: 10px 30px;
}



/*---------------------------Faq------------------------------- */
.faq .faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333333;
    /* Replace with your heading color */
}

.faq .faq-description {
    font-size: 1rem;
    color: #666666;
    /* Replace with your default color */
    margin-bottom: 2rem;
}

.faq .faq-arrow {
    color: rgb(153, 3, 3);
    /* Replace with your accent color */
}

.faq .faq-container .faq-item {
    background-color: #F9F9F9;
    /* Replace with your surface color */
    position: relative;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
    margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    margin: 0 30px 0 0;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.faq .faq-container .faq-item h3 .num {
    color: rgb(153, 3, 3);
    /* Replace with your accent color */
    padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
    color: rgb(153, 3, 3);
    /* Replace with your accent color */
}

.faq .faq-container .faq-item .faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
    margin-bottom: 0;
    overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    line-height: 0;
    transition: 0.3s;
    cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
    color: rgb(153, 3, 3);
    /* Replace with your accent color */
}

.faq .faq-container .faq-active h3 {
    color: rgb(153, 3, 3);
    /* Replace with your accent color */
}

.faq .faq-container .faq-active .faq-content {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
    padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
    transform: rotate(90deg);
    color: rgb(153, 3, 3);
    /* Replace with your accent color */
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/

.contact {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 4rem 0;
    color: #333;
}

.contact .info-box {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.contact .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact .info-item .icon-box {
    background: rgb(153, 3, 3);
    color: #ffffff;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .info-item .icon-box:hover {
    transform: rotate(15deg);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.contact .info-item .content h4 {
    font-size: 1.25rem;
    color: rgb(153, 3, 3);
    margin: 0;
}

.contact .info-item .content p {
    font-size: 0.9rem;
    color: #666;
}

.contact .contact-form {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.contact .contact-form h3 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact .contact-form .form-control {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact .contact-form .form-control:focus {
    border-color: rgb(153, 3, 3);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.contact .contact-form .btn {
    /* background: linear-gradient(135deg, #007bff, #00d4ff); */
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 1.5rem auto 0;
    text-align: center;
}


/* Responsive Adjustments */
@media (max-width: 768px) {

    .contact .info-box,
    .contact .contact-form {
        margin-bottom: 2rem;
    }

    .contact .info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact .info-item .content h4 {
        margin-bottom: 0.5rem;
    }
}


.healthcare-packages {
    display: flex;
    justify-content: center;
    /* Center the cards horizontally */
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
    /* Align text to the left within the cards */
}

.package-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: calc(30% - 20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    /* Adds space between the cards */
    text-align: left;
    /* Align text to the left */
}

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

.package-img {
    width: 80px;
    /* Set width for icon-sized image */
    height: 80px;
    /* Set height for icon-sized image */
    object-fit: contain;
    /* Ensure image doesn't stretch or distort */
    margin-bottom: 15px;
    /* Adds space between image and text */
    border-radius: 50%;
    /* Optional: makes the image round */
}

.package-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    /* Adds space between name and description */
}

.package-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    /* Adds space between description and footer */
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    /* Adds space between rate and button */
}

.package-rate {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.book-now {
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-now:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .package-card {
        width: calc(50% - 20px);
        /* Make cards take up half the space on medium screens */
    }
}

@media (max-width: 480px) {
    .package-card {
        width: 100%;
        /* Make cards take up full width on small screens */
    }
}