/* Revanth Rehab - Adapted from KinderKraft */

:root {
    --bs-primary: #0066C3;
    /* Revanth Primary Blue */
    --bs-secondary: #6C73A8;
    /* Revanth Secondary */
    --bs-light: #F8F9FA;
    --bs-dark: #1A1A1A;
    --bs-white: #FFFFFF;
}

/* Typography Updates */
body {
    font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.display-3 {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/* Buttons */
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-primary-outline-0 {
    border: 0;
    color: var(--bs-white) !important;
    background-color: var(--bs-primary);
}

.btn-primary-outline-0:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.btn-light-outline-0 {
    border: 0;
    color: var(--bs-primary) !important;
    background-color: var(--bs-light);
}

.btn-light-outline-0:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/* Topbar */
.sticky-top {
    transition: 0.5s;
    background: var(--bs-white);
}

.nav-scrolled {
    background-color: var(--bs-white) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease-in-out;
}

.topbar {
    padding: 10px 0;
    background: var(--bs-secondary) !important;
}

/* Navbar */
.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 16px;
    transition: .5s;
    color: var(--bs-dark);
    font-weight: 600;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top.bg-white .navbar .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.dropdown-menu {
    border: 0;
    border-radius: 10px;
}

.dropdown-item:hover {
    background: #B22222;
    color: var(--bs-white);
}

/* Carousel */
.carousel-item {
    position: relative;
    min-height: 700px;
}

.carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Header Constraint */
.page-header {
    max-width: 1920px;
    margin: 0 auto 3rem auto !important;
    /* Center it and keep margin-bottom */
}

.carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
    transition: 0.3s;
}

.carousel-header:hover .carousel-control-prev,
.carousel-header:hover .carousel-control-next {
    opacity: 1;
}

.carousel-indicators li {
    background: var(--bs-primary);
    border: 0;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-caption h4 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    /* Increased size for visibility */
}

.carousel-caption h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* Services */
.services .services-item {
    transition: 0.5s;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    padding: 30px;
    border-radius: 10px;
}

.services .services-item:hover {
    background: var(--bs-primary) !important;
}

.services .services-item:hover h4,
.services .services-item:hover p,
.services .services-item:hover i {
    color: var(--bs-white) !important;
}

.services .services-item:hover .btn {
    background: var(--bs-white);
    color: var(--bs-primary) !important;
}

/* About / Video */
.video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.video .btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bs-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Appointment */
.appointment {
    background: #F7F0E9;
    background-size: cover;
    background-position: center;
}

.appointment-form,
.appointment-time {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.form-control {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--bs-white);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--bs-white);
}

.form-select option {
    color: #333;
}

/* Counter */
.counter-section .counter-item .counter-content1 {
    position: relative;
    margin-bottom: 20px;
    background: var(--bs-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.counter-section .counter-item .counter-quantity {
    background: var(--bs-primary);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--bs-white);
    font-weight: bold;
    font-size: 24px;
}

/* Gallery */
.gallery .nav-pills .nav-link {
    background: var(--bs-light);
    color: var(--bs-dark);
    border: 1px solid var(--bs-primary);
    border-radius: 30px;
    margin: 0 5px;
}

.gallery .nav-pills .nav-link.active {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.gallery-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-img img {
    transition: 0.5s;
}

.gallery-img:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 195, 0.7);
    opacity: 0;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-img:hover .gallery-overlay {
    opacity: 1;
}

/* Team */
.team-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.team-item .team-text {
    background: var(--bs-light);
    padding: 25px;
    text-align: center;
}

.team-item:hover .team-text {
    background: var(--bs-primary);
}

.team-item:hover .team-text h4,
.team-item:hover .team-text p {
    color: var(--bs-white);
}

/* Footer */
.footer {
    background: #0b3b6b;
    color: #fff;
}

.footer .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.footer h4 {
    color: var(--bs-white);
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
}

.footer a:hover {
    color: var(--bs-white);
    padding-left: 10px;
}

.footer-logo {
    max-height: 80px;
    filter: grayscale(1) invert(1) brightness(2);
    mix-blend-mode: screen;
}

/* Disable animation/padding for footer logo link */
.footer a.d-flex:hover {
    padding-left: 0 !important;
}





@media (max-width: 768px) {
    .footer-logo {
        max-height: 60px;
    }
}

/* Floating Social Sidebar */
.floating-social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-float-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: #333;
    /* Default fallback */
}

.social-float-item:hover {
    width: 60px;
    color: white;
}

.social-float-item.phone {
    background-color: #0d6efd;
    /* Bootstrap Primary Blue or custom */
}

.social-float-item.whatsapp {
    background-color: #25d366;
}

.social-float-item.facebook {
    background-color: #3b5998;
}

.social-float-item.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-float-item.youtube {
    background-color: #ff0000;
}

/* Google Reviews */
.google-review-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: 20px;
    height: 100%;
    position: relative;
    border: 1px solid #e0e0e0;
}

.google-logo-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.google-icon {
    width: 24px !important;
    height: 24px !important;
    margin-right: 10px;
    object-fit: contain;
}

.reviewer-name {
    font-weight: bold;
    color: #202124;
    margin: 0;
}

.review-time {
    font-size: 12px;
    color: #70757a;
}

.star-rating {
    color: #fbbc04;
    font-size: 14px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 14px;
    color: #4b4b4b;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    /* Limit to 4 lines */
    -webkit-box-orient: vertical;
}

/* Social Buttons */
.btn-social {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 35px;
    transition: .3s;
}

.btn-social:hover {
    color: var(--bs-white);
    border-color: var(--bs-primary);
}

/* Logo Styling */
.navbar-brand .logo-img {
    max-height: 90px;
    margin-right: 0;
}

@media (max-width: 991.98px) {
    .navbar-brand .logo-img {
        max-height: 60px;
    }
}

/* Gallery Styling */
.gallery-tab-label {
    width: 150px;

}

/* Contact Form Custom Styles */
.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.contact-form .form-control {
    border: 1px solid transparent;
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    height: 55px;
    color: #333;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: #B22222;
}

.contact-form .form-control::placeholder {
    color: #333;
    opacity: 1;
    /* Firefox */
}

.contact-form .form-select {
    border: 1px solid transparent;
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    height: 55px;
    color: #333;
}

.contact-form .form-select:focus {
    box-shadow: none;
    border-color: #B22222;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 200px;
}

.contact-form .btn-primary {
    background: #B22222;
    border-color: #B22222;
    font-weight: 700;
    color: #ffffff;
}

.contact-form .btn-primary:hover {
    background: #8B1A1A;
    border-color: #8B1A1A;
}

/* Service Detail Images */
.service-detail-img {
    object-fit: cover;
    height: 100% !important;
    width: 100% !important;
    min-height: 300px;
    /* Backup for mobile stacking */
}



/* Mobile Menu Background */
@media (max-width: 1199px) {
    .navbar-collapse {
        background-color: var(--bs-white);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        margin-top: 10px;
    }

    .navbar-collapse .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 15px;
        text-align: center;
    }
}

/* Mobile Slider Redesign */
@media (max-width: 768px) {
    .carousel-item {
        min-height: auto;
        height: auto !important;
        display: flex;
        flex-direction: column;
        background: #fff;
    }

    .carousel-item img {
        position: relative;
        height: 500px !important;
        width: 100%;
        object-fit: cover;
    }

    .carousel-item .carousel-caption {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        left: 0;
        right: 0;
        bottom: auto;
        display: block;
        background: #ffffff;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-top: -50px;
        padding: 40px 20px 20px 20px;
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
        z-index: 10;
        text-align: center;
    }

    .carousel-item .carousel-caption .p-3 {
        padding: 0 !important;
    }

    /* Force text colors for the white background */
    .carousel-caption h1 {
        font-size: 2rem;
        color: #1A1A1A !important;
        text-shadow: none !important;
    }

    .carousel-caption p {
        color: #666 !important;
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 10px !important;
    }

    .carousel-caption h4 {
        color: var(--bs-primary) !important;
        text-shadow: none !important;
    }

    .carousel-caption .btn {
        margin-bottom: 20px;
    }
}

/* Fix Footer Social Icons Hover */
/* Footer Copyright Brightening */
.footer .border-top p,
.footer .border-top a {
    color: #ffffff !important;
    /* White */
}

.footer .border-top a:hover {
    color: #ffffff !important;
    /* White Hover */
}

.footer .btn-square {
    transition: .3s;
}

.footer .btn-square:hover {
    padding-left: 0 !important;
    /* Prevent the generic footer link padding shift */
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

/* Native Brand Colors for Footer Icons */
.btn-facebook {
    background: #3b5998;
    border-color: #3b5998;
    color: white !important;
}

.btn-facebook:hover {
    background: #2d4373 !important;
    border-color: #2d4373 !important;
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border: none;
    color: white !important;
}

.btn-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    opacity: 0.9;
}

.btn-youtube {
    background: #ff0000;
    border-color: #ff0000;
    color: white !important;
}

.btn-youtube:hover {
    background: #cc0000 !important;
    border-color: #cc0000 !important;
}

.btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: white !important;
}

.btn-whatsapp:hover {
    background: #20b85c !important;
    border-color: #20b85c !important;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: #B22222;
}

.contact-form .form-control::placeholder {
    color: #333;
    opacity: 1;
    /* Firefox */
}

.contact-form .form-select {
    border: 1px solid transparent;
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    height: 55px;
    color: #333;
}

.contact-form .form-select:focus {
    box-shadow: none;
    border-color: #B22222;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 200px;
}

.contact-form .btn-primary {
    background: #B22222;
    border-color: #B22222;
    font-weight: 700;
    color: #ffffff;
}

.contact-form .btn-primary:hover {
    background: #8B1A1A;
    border-color: #8B1A1A;
}

/* Service Detail Images */
.service-detail-img {
    object-fit: cover;
    height: 100% !important;
    width: 100% !important;
    min-height: 300px;
    /* Backup for mobile stacking */
}



/* Mobile Menu Background */
@media (max-width: 1199px) {
    .navbar-collapse {
        background-color: var(--bs-white);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        margin-top: 10px;
    }

    .navbar-collapse .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 15px;
        text-align: center;
    }
}

/* Mobile Slider Redesign */
@media (max-width: 768px) {
    .carousel-item {
        min-height: auto;
        height: auto !important;
        display: flex;
        flex-direction: column;
        background: #fff;
    }

    .carousel-item img {
        position: relative;
        height: 60vh !important;
        width: 100%;
        object-fit: cover;
    }

    .carousel-item .carousel-caption {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        left: 0;
        right: 0;
        bottom: auto;
        display: block;
        background: #ffffff;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-top: -50px;
        padding: 40px 20px 20px 20px;
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
        z-index: 10;
        text-align: center;
    }

    .carousel-item .carousel-caption .p-3 {
        padding: 0 !important;
    }

    /* Force text colors for the white background */
    .carousel-caption h1 {
        font-size: 2rem;
        color: #1A1A1A !important;
        text-shadow: none !important;
    }

    .carousel-caption p {
        color: #666 !important;
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 10px !important;
    }

    .carousel-caption h4 {
        color: var(--bs-primary) !important;
        text-shadow: none !important;
    }

    .carousel-caption .btn {
        margin-bottom: 20px;
    }
}

/* Fix Footer Social Icons Hover */
.footer .btn-square {
    transition: .3s;
}

.footer .btn-square:hover {
    padding-left: 0 !important;
    /* Prevent the generic footer link padding shift */
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

/* Native Brand Colors for Footer Icons */
.btn-facebook {
    background: #3b5998;
    border-color: #3b5998;
    color: white !important;
}

.btn-facebook:hover {
    background: #2d4373 !important;
    border-color: #2d4373 !important;
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border: none;
    color: white !important;
}

.btn-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    opacity: 0.9;
}

.btn-youtube {
    background: #ff0000;
    border-color: #ff0000;
    color: white !important;
}

.btn-youtube:hover {
    background: #cc0000 !important;
    border-color: #cc0000 !important;
}

.btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: white !important;
}

.btn-whatsapp:hover {
    background: #1da851 !important;
    border-color: #1da851 !important;
}

/* Custom fix for equal height image on desktop */
@media (min-width: 768px) {
    .img-fit-md-absolute {
        position: absolute !important;
        top: 0;
        left: 0;
        height: 100% !important;
        width: 100% !important;
        min-height: 0 !important;
    }
}

/* Mobile Typography Updates */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }
}