/********** Template CSS **********/
:root {
    --primary: #dc3545;
    --secondary: #f57e57;
    --light: #eef9ff;
    --dark: #091e3e;
}

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-doctor {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    transition: 0.5s;
    background: #305c89;
    color: white;
}

.btn-doctor:hover {
    border: 3px solid #429a3a;
    color: #dc3545;
    background: white;
}

.btn-doctor1 {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    transition: 0.5s;
    background: #305c89;
    color: white;
    border: 2px solid #dc3545;
}

.btn-doctor1:hover {
    border: 3px solid #429a3a;
    color: #dc3545;
    background: white;
}

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

.btn-primary:hover {
    background: #305c89;
    border-color: #305c89;
}

.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 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.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;
    font-weight: 600;
}

.top-shape {
    position: relative;
}

.top-shape::before,
.top-shape::after {
    content: "";
    position: absolute;
    width: 35px;
    height: 100%;
    top: 0;
    background: #dc3545;
    transform: skew(40deg);
}

.top-shape::before {
    left: -17px;
}

.top-shape::after {
    right: -17px;
    transform: skew(40deg);
}

/***Navbar Start ***/

/**** Navbar for large screen ***/
.navbar-nav .nav-link {
    font-family: "Jost", sans-serif;
    padding: 35px 0px;
    font-size: 18px;
    color: #305c89 !important;
    outline: none;
    transition: 0.5s;
    margin-right: 10px;
}
.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}
.navbar-nav .nav-link.active {
    color: #dc3545 !important;
    font-weight: 500;
    position: relative;
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px; /* Adjusts the distance of the border from the text */
    width: 40%; /* Adjust this value to change the length of the border */
    height: 3px; /* Adjust this value to change the thickness of the border */
    background-color: #305c89;
    border-radius: 0px 20px 0px 20px;
}

/**** Navbar for small screen ***/

.navbar-nav .nav-item-small {
    border-bottom: 1px solid grey;
    padding: 20px 0px;
}

.navbar-nav .nav-link-small {
    font-family: "Jost", sans-serif;
    padding-left: 35px;
    font-size: 22px;
    color: white !important;
    outline: none;
    transition: 0.5s;
}
.navbar-nav .nav-link-small:hover,
.navbar-nav .nav-link-small.active {
    color: #dc3545 !important;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/***** Logo Css****/
.logo-css {
    height: 110px;
}
@media (max-width: 800px) {
    .logo-css {
        height: 90px;
    }
}

/***Carousel***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, 0.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: #305c89;
}

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

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, 0.85), rgba(9, 30, 62, 0.85)),
        url(../img/bg-1.jpg) center center no-repeat;
    background-size: cover;
    padding: 80px;
}

@media (max-width: 579px) {
    .hero-header {
        padding: 40px;
    }
}

@media (max-width: 452px) {
    .hero-header {
        padding: 25px;
    }
}

.bg-appointment {
    background: linear-gradient(rgba(9, 30, 62, 0.7), rgba(9, 30, 62, 0.7)),
        url(../img/carousel3.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.appointment-form {
    background: rgba(48, 92, 137, 0.7);
    border-left: 3px solid #dc3545;
    border-right: 3px solid #dc3545;
    border-radius: 20px;
}

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

.service-item:hover img {
    transform: scale(1.15);
}
.service-item a {
    color: grey;
}
/****** Team Start *******/

.team-item .team-text::after,
.service-item .bg-light::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, 0.7);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

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

/***** WHY CHOOSE START******/
.team-item .choose-icon {
    height: 70px;
    width: 70px;
    background: white;
    padding: 10px;
}

.team-item .choose-icon img {
    height: 50px;
}

/********* Info Teeth Healthy *********/
.bg-offer {
    background: url(../img/bg-2.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(48, 92, 137, 0.7);
    border-left: 3px solid #dc3545;
    border-right: 3px solid #dc3545;
    border-radius: 20px !important;
}

/****** Pricing ******/
.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: 0.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: #305c89;
    border-radius: 2px;
    font-size: 22px;
    transition: 0.5s;
}

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

/**** Testimonial ****/
.bg-testimonial {
    background: url(../img/bg-3.png) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(48, 92, 137, 0.85);
}

.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: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    border: 2px solid var(--primary);
    background: white;
    color: #305c89;
}

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

/*** About Css**/

.about-image-container {
    position: relative;
    display: inline-block;
}

.about-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 30, 62, 0.7); /* Black with 50% opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.about-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #fff;
    background: #dc3545;
    height: 70px;
    transition: transform 1.5s;
    width: 70px;
    padding-left: 10px;
    border-radius: 50%; /* Optional: To make it a circular icon container */
}

.about-image-container:hover .about-icon {
    transform: scale(1.2);
}

/**** Footer Upper Social Icon*****/
.bg-social-icon {
    background: linear-gradient(
            rgba(220, 53, 69, 0.85),
            rgba(220, 53, 69, 0.85)
        ),
        url(../img/bg-4.jpg) center center no-repeat;
    background-size: cover;
}

/*** gallery Start ***/

.galleryshadow {
    position: relative;
    overflow: hidden; /* Ensure the overlay doesn't overflow outside the container */
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.galleryshadow .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 30, 62, 0.7);
    opacity: 0;
    transform: translateY(-100%); /* Start from above the container */
    transition: transform 1.5s ease, opacity 1.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Adjust the color of the icon */
}

.galleryshadow:hover .overlay {
    opacity: 1;
    transform: translateY(0); /* Slide in from top to bottom */
}

.galleryshadow img {
    display: block;
    width: 100%;
    height: 300px;
}

@media (max-width: 600px) {
    .galleryshadow img {
        height: 200px;
    }
}

/*** Gallery End ***/

/****** Faqs Start******/
.faqs-bg {
    background: linear-gradient(rgba(9, 30, 62, 0.7), rgba(9, 30, 62, 0.7)),
        url(../img/bg-4.jpg) center center no-repeat;
    background-size: cover;
    padding: 60px 0px 90px 0px;
}
/****** Faqs End******/

/****** Blog Image ******/
.blog-img {
    max-height: 400px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 10px;
    padding: 0px;
}

/***** service side bg *********/
.service-side-bg {
    background: linear-gradient(rgba(9, 30, 62, 0.7), rgba(9, 30, 62, 0.7)),
        url(../img/bg-5.png) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.service-side-bg p {
    color: white;
    font-size: 20px;
}

.service-side-bg hr {
    border: 1px solid white;
}

/*** Footer Fixed Navbar seen in small device**/
.footerfixednav {
    height: 50px !important;
    position: fixed;
    bottom: -3px;
    display: none;
    z-index: 1000;
    padding-top: 10px;
    background-color: rgba(9, 30, 62, 0.85);
    border-top: 2px solid #dc3545;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}
.footerfixednav img {
    margin-top: -3px;
}

/**** Copyright Start***/
.copyright-part {
    background: #051225;
    padding: 20px 0px;
}
/**** Copyright End***/

@media (max-width: 991px) {
    .footerfixednav {
        display: block;
    }
    .back-to-top {
        bottom: 60px;
        right: 20px;
    }
    .copyright-part {
        padding-bottom: 55px;
    }
}
/***End Fixed Footer**/

/**** Counter Start ***/
.counter1 {
    background: linear-gradient(rgba(9, 30, 62, 0.85), rgba(9, 30, 62, 0.85)),
        url(../img/counter1.jpg) center center no-repeat;
    background-size: cover;
    color: white !important;
    padding: 20px;
}
.counter2 {
    background: linear-gradient(rgba(9, 30, 62, 0.85), rgba(9, 30, 62, 0.85)),
        url(../img/counter2.jpg) center center no-repeat;
    background-size: cover;
    color: white !important;
    padding: 20px;
}
.counter3 {
    background: linear-gradient(rgba(9, 30, 62, 0.85), rgba(9, 30, 62, 0.85)),
        url(../img/counter3.jpg) center center no-repeat;
    background-size: cover;
    color: white !important;
    padding: 20px;
}
.counter4 {
    background: linear-gradient(rgba(9, 30, 62, 0.85), rgba(9, 30, 62, 0.85)),
        url(../img/counter4.jpg) center center no-repeat;
    background-size: cover;
    color: white !important;
    padding: 20px;
}
/**** Counter End ***/
