/********** Template CSS **********/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-dark,
.btn.btn-outline-dark:hover {
    color: var(--bs-white);
    font-weight: 500;
}

.btn.btn-primary:hover {
    background: #ffde59;
    border-color: #ffde59;
}

.btn.btn-dark:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand img {
     height: 70px;
    width: auto;
     max-height: none !important;
    width: auto;
    object-fit: contain;

}

.navbar .navbar-nav .nav-link {
    padding: 6px 0;
    margin: 0 12px;
    color: var(--bs-secondery);
    font-size: 17px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #0d6efd;
}

.navbar .navbar-nav .dropdown-item:hover,
.navbar .navbar-nav .dropdown-item.active {
    background: #0d6efd;
}

.dropdown-item {
    padding: 1rem 1rem;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
       .navbar .navbar-brand img {
        height: 65px;
        width: auto;
    }

    .navbar {
        padding: 0 !important;
    }


    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn-light {
    font-weight: 500;
    color: var(--bs-secondery);
}

.navbar .btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (min-width: 1200px) {
    .container {
        max-width: 1215px;
    }
}


/*** Hero ***/
/* Hero Header Base Styling */
.hero-header {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease-in-out; /* Smooth slide effect */
}

/* Ensure the carousel takes full width */
.carousel-inner {
    overflow: hidden;
}

/* Optional: Style for your custom button to ensure it stands out */
.btn-primary-custom {
    background-color: var(--bs-primary); /* Update to match your theme */
    border: none;
    transition: 0.3s;
}
.btn-primary-custom:hover {
    filter: brightness(1.2);
}

/* சப்டைட்டில் கலர் */
.text-accent {
    color: #FDF0EC;
    letter-spacing: 1px;
}


.main-title {
    letter-spacing: -0.5px;
    line-height: 1.2;
}


.opacity-90 {
    opacity: 0.9;
    max-width: 650px;
}


.btn-primary-custom {
    background-color: #632E1B;
    color: #ffffff;
    border: 2px solid #632E1B;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}


.btn-whatsapp {
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.2s;
}

.btn-whatsapp:hover {
    transform: scale(1.03);
}

.btn-whatsapp .whatsapp-text {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


@media (max-width: 991.98px) {


    .main-title {
        font-size: calc(1.6rem + 2vw);
    }
}


.btn-play:hover {
    transform: scale(1.1);
    background-color: #4a2316 !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.text-dark {
    color: #000000 !important;
}

.text-primary {
    color: #0d6efd !important;
}

.btn-play:hover i {
    color: #ffffff !important;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}

.page-header {
    background: url(../img/aboutus.jpg) center right no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-secondery)
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--bs-primary);
}


/*** Appointment ***/
@media (min-width: 992px) {
    .container.appointment {
        max-width: 100% !important;
    }

    .container.appointment .appointment-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.appointment .appointment-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.appointment .appointment-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.appointment .appointment-form {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.appointment .appointment-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.appointment .appointment-form {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.appointment .appointment-text {
    background: linear-gradient(rgba(205, 95, 55, .95), rgba(205, 95, 55, .95)), url(../img/service-4.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-form {
    background: linear-gradient(rgba(72, 30, 11, .95), rgba(72, 30, 11, .95)), url(../img/service-1.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-text .h-100,
.container.appointment .appointment-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}

.service-item .service-text {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.service-item .service-img {
    transition: .5s;
}

.service-item:hover .service-img {
    transform: scale(1.2) rotate(7deg);
}



/*** Team ***/
.team {
    position: relative;
}

.team::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 110px;
    left: 0;
    bottom: 3rem;
    background: var(--bs-light);
    z-index: -1;
}

.team .team-item {
    position: relative;
    overflow: hidden;
}

.team .team-item img {
    position: relative;
    transform: scale(1.1);
    transition: .5s;
}

.team .team-item:hover img {
    margin-top: -30px;
    padding-bottom: 30px;
}

.team .team-text {
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team .team-text-overflow {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-text-overflow {
    bottom: 0;
    opacity: 1;
}



/*** Testimonial ***/
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    animation: pulse-img 5s ease-out infinite;
}

@keyframes pulse-img {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--bs-dark);
}


/*** Footer ***/
.footer {
    color: rgba(256, 256, 256, .6);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(256, 256, 256, .6);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(256, 256, 256, .6);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgb(255 4 151);
    border: 1px solid rgba(256, 256, 256, .6);
    background: #fff;
    font-size: 39px;
    border-radius: 7px;
}

.footer .btn.btn-square:hover {
    color: var(--bs-white);
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}

.footer .form-control {
    color: var(--bs-light);
    border-color: rgba(256, 256, 256, .6);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

/* Custom Theme Color Integrations */
.why-choose-section {
    background-color: #0d6efd;
    /* Premium Dark Brown color taken from your template footer/cta section */
}

.text-light-cream {
    color: #FDF8F5;
    /* Soft background off-white cream color */
}

.op-9 {
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.6;
}

.text-custom-green {
    color: #ffb4e0 !important;
    /* Vivid healthcare green matching your active badge/counters style */
}

/* Image Circular Frame with Thick White Highlight Border */
.image-circle-container {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 10px solid #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.image-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dot grid template background positioning */
.dot-pattern {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 250px;
    height: 250px;
    background-image: radial-gradient(#FDF8F5 15%, transparent 16%);
    background-size: 16px 16px;
    opacity: 0.15;
    z-index: 1;
}

/* Feature Boxes */
.feature-box {
    background: rgba(255, 255, 255, 0.04);
    /* Light translucent premium glass effect */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsiveness adjustments for smaller devices */
@media (max-width: 576px) {
    .image-circle-container {
        width: 280px;
        height: 280px;
    }
}

/* கார்டுகள் ஒரே சைஸில் இருக்க பிக்சட் உயரம் */
.gallery-img-wrap {
    position: relative;
    height: 240px;
    /* உங்களின் இமேஜ் அளவுக்கு ஏற்ப மாற்றி அமைத்துக் கொள்ளலாம் */
    width: 100%;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* மௌஸ் வைக்கும் போது இமேஜ் மட்டும் லைட்டாக ஜூம் ஆகும் */
.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.1);
}

/* பிரீமியம் பிரவுன் ஓவர்லே எஃபெக்ட் */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(74, 46, 27, 0.8), rgba(74, 46, 27, 0.95));
    /* பிரவுன் தீம் */
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.btn-square {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-green {
    color: #0d6efd !important;
}

.bg-green {
    background-color: #0d6efd !important;
}

.bg-pink {

    background-color: #116dd5 !important;
}

/* மெனு லிங்க் Hover எஃபெக்ட் */
.navbar-custom-link {
    transition: color 0.3s ease;
}

.navbar-custom-link:hover {
    color: #632E1B !important;
}

/* Appointment பட்டன் Hover எஃபெக்ட் */
.appointment-btn:hover {
    background-color: transparent !important;
    color: #632E1B !important;
    box-shadow: 0 4px 12px rgba(99, 46, 27, 0.3) !important;
}

/* Dropdown மெனுவிற்கான ஸ்டைல் */
.dropdown-item {
    transition: all 0.2s ease;
    color: #4a4a4a;
}

.dropdown-item:hover {
    background-color: #FDF0EC !important;
    color: #632E1B !important;
    padding-left: 1.25rem !important;

}

.nav-link {
    color: #0d6efd !important;
}

.btn-primary {
    color: #000;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.bg-light {
    background-color: #f5ebc2 !important;
}


/* நவீன பட்டன் டிசைன் */
.modern-accordion .accordion-button {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

/* கிளிக் செய்யும்போது (Active state) */
.modern-accordion .accordion-button:not(.collapsed) {
    background-color: #632E1B; /* உங்கள் தீம் நிறம் */
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(99, 46, 27, 0.2);
}

/* மவுஸ் மேலே வைக்கும்போது (Hover effect) */
.modern-accordion .accordion-button:hover {
    background-color: #f8f9fa;
    border-color: #632E1B;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #ffffff;
    text-align: left;
    background-color: #0d6efd;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
}

.accordion-button:not(.collapsed) {
    color: rgb(255 255 255);
    background-color: #1090e7;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

/* Carousel Transition Speed */
.carousel-item {
    transition: transform 1.2s ease-in-out; /* 1.2 நொடிகள் ஸ்லைடு ஆக எடுத்துக்கொள்ளும் */
}

/* ஸ்லைடு மாறும் போது வரும் மங்கலான விளைவு (Fade effect) */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1.2s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}
.navbar-brand{
    padding:0 !important;
    margin:0 !important;
}

.navbar{
    padding-top:0px !important;
    padding-bottom:0px !important;
}

/* Bigger desktop logo */
@media (min-width:992px){
    .navbar .navbar-brand img{
        height:110px !important;
        max-height:none !important;
    }
}