/* assets/css/style.css */

/* Define Logo Colors as Variables */
:root {
    --primary-color: #2A3256; /* Dark Navy Blue */
    --secondary-color: #41B2C4; /* Teal/Light Blue */
    --success-color: #8CB54B; /* Green */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --slider-transition: cubic-bezier(0.7, 0, 0.3, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Top Contact Bar */
.top-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
}
.top-header a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}
.top-header a:hover {
    color: var(--secondary-color);
}

/* Main Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 5px 0;
}
.navbar-brand img {
    max-height: 65px; /* Adjust this based on your logo image size */
}
.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    margin: 0 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Appointment Button */
.btn-appointment {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}
.btn-appointment:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .btn-appointment {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
}
/* ================================================================
   FINAL STABLE HERO SLIDER - PIXEL PERFECT
   ================================================================ */

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background-color: #222;
}

.slide-item {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Background Overlay - Optimized for visibility */
.slide-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.slide-content-wrapper { 
    position: relative; 
    z-index: 20; 
    color: #fff; 
}

/* ==========================================
   FIXED HERO GRID ITEM (LAYOUT 2)
   ========================================== */

.hero-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.hero-grid-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
        flex-direction: column;
}

.grid-img-box {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
}

.grid-img-box img {
    width: 100%;
    height: 100%;
    border-radius:15px;
    object-fit: cover; /* Ensures image fits perfectly */
}

.grid-text-box span {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Hover Effect */
.hero-grid-item:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

/* ==========================================
   NAVIGATION (ARROWS & DOTS) - 100% VISIBLE
   ========================================== */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: #ffffff !important; /* Solid White */
    color: var(--primary-color) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100; /* Highest Z-index */
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 20px;
}

.slider-arrow:hover {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

.prev-arrow { left: 25px; }
.next-arrow { right: 25px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255,255,255,0.4);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--secondary-color);
    width: 40px;
    border-radius: 10px;
    border-color: var(--secondary-color);
}

/* Right Image Styling */
.right-image-box img {
    max-height: 450px;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
/* ================================================================
   HERO SLIDER MOBILE RESPONSIVE
   ================================================================ */

@media (max-width: 991px) {
    .hero-slider-container {
        height: auto; /* Height auto taaki content ke hisaab se bade */
        min-height: 550px;
    }
    .slide-item {
        padding: 80px 0; /* Top/Bottom padding for mobile spacing */
    }
    .slide-title {
        font-size: 2.2rem !important; /* Chhota Title */
        line-height: 1.2;
    }
    .slide-subtitle {
        font-size: 1rem !important;
    }
    .right-image-box {
        display: none; /* Mobile par side image hide karna best hai space ke liye */
    }
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .prev-arrow { left: 10px; }
    .next-arrow { right: 10px; }
}

@media (max-width: 768px) {
    .hero-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .grid-img-box {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    .grid-text-box span {
        font-size: 1rem;
    }
    .slide-item {
        text-align: center; /* Mobile par center text zyada acha lagta hai */
    }
    .slide-item .d-flex {
        justify-content: center; /* Buttons center me */
    }
    .slide-item::before {
        /* Mobile par dark overlay thoda zyada taaki text clear dikhe */
        background: rgba(0, 0, 0, 0.7); 
    }
    .navbar {
    padding: 0px 0;
}
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.8rem !important;
    }
    .btn-lg {
        padding: 10px 20px !important;
        font-size: 16px !important;
        width: 100%; /* Mobile par full width buttons easy click ke liye */
    }
    .slider-dots {
        bottom: 15px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
    .dot.active {
        width: 25px;
    }
}
/*serves*/

/* ================================================================
   PREMIUM MEDICAL SERVICE CARDS
   ================================================================ */

.services-section {
    position: relative;
    padding: 80px 0;
}

.service-card {
    background: #fff;
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

/* Image Container with Zoom Effect */
.service-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 230px;
}

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

/* Hover Effects */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(42, 50, 86, 0.12) !important;
}

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

/* Accent Line under image */
.service-img-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--secondary-color);
    transition: width 0.4s ease;
    z-index: 2;
}

.service-card:hover .service-img-wrapper::after {
    width: 100%;
}

/* Card Body Styling */
.service-card .card-body {
    padding: 30px 25px !important;
}

.service-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.service-card:hover h4 {
    color: var(--secondary-color);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Modern Pill Button */
.btn-read-more {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-read-more:hover {
    background-color: var(--secondary-color);
    color: #fff !important;
    box-shadow: 0 8px 15px rgba(65, 178, 196, 0.3);
    transform: scale(1.05);
}

.btn-read-more i {
    transition: transform 0.3s;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* --- About Section Premium Enhancements --- */
.text-navy { color: var(--primary-color); }
.ls-2 { letter-spacing: 2px; }

.about-img-container {
    position: relative;
    padding-right: 25px;
    padding-bottom: 25px;
}

.main-about-img {
    border: 8px solid #f8f9fa;
    transition: 0.4s;
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 8px solid #fff;
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Custom List Style */
.check-icon {
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Counter Wrapper (Floating Glass Effect) --- */
.counter-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1f3c 100%);
    border-radius: 30px;
    margin-top: -30px; /* Floating over the about section */
    position: relative;
    z-index: 50;
    padding: 0px 10px;
}

.counter-box {
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.border-end-light { border-right: 1px solid rgba(255,255,255,0.1); }
.border-end-light:last-child { border-right: none; }

.counter-icon-wrap {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: 0.4s;
}

.counter-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.counter-label {
    color: #b0b4c1;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 5px;
}

.counter-box:hover .counter-icon-wrap {
    transform: scale(1.2) translateY(-5px);
    color: #fff;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .counter-wrapper { margin-top: 30px; border-radius: 20px; }
    .border-end-light { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .border-end-light:nth-child(even) { border-right: none; }
    .counter-number { font-size: 2rem; }
}

 /* Doctor Card Styling */
.doctor-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: 0.4s;
}

.doctor-img-wrap {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.doctor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* Social Icons Overlay on Hover */
.doctor-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(42, 50, 86, 0.9);
    display: flex;
    justify-content: center;
    padding: 15px 0;
    transition: 0.4s;
    opacity: 0;
}

.doctor-card:hover .doctor-social { bottom: 0; opacity: 1; }
.doctor-card:hover img { transform: scale(1.1); }

.doctor-social a {
    color: #fff;
    margin: 0 15px;
    font-size: 18px;
    transition: 0.3s;
}
.doctor-social a:hover { color: var(--secondary-color); transform: translateY(-3px); }

.doctor-info {
    padding: 20px;
    text-align: center;
    background: #fff;
}
.doctor-info h5 { color: var(--primary-color); font-weight: 700; margin-bottom: 5px; }
.doctor-info span { color: var(--secondary-color); font-weight: 600; font-size: 0.9rem; }

/* Testimonial Section */
.testimonial-slider-container {
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    min-width: 100%; /* Single slide on mobile */
    padding: 0 15px;
}

@media (min-width: 992px) {
    .testimonial-item { min-width: 33.33%; } /* 3 slides on desktop */
}

.testi-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.quote-icon {
    font-size: 30px;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.patient-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.bg-navy { background-color: #1a1f3c; }
.text-teal { color: #41b2c4; }
.btn-teal { background-color: #41b2c4; color: #fff; border: none; transition: 0.3s; }
.btn-teal:hover { background-color: #3596a5; color: #fff; }

.footer-section { font-size: 0.95rem; }
.text-light-muted { color: #b0b4c1; }

.border-bottom-teal { border-bottom: 2px solid #41b2c4; width: fit-content; }

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b0b4c1; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #41b2c4; padding-left: 5px; }

.footer-social a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}
.footer-social a:hover { background: #41b2c4; transform: translateY(-3px); }

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    border-radius: 50%;
    width: 45px;
    height: 45px;
}
.page-header {
    background-blend-mode: multiply;
    padding: 80px 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
}
.text-teal { color: var(--secondary-color); }

/* Contact Page Specific */
.border-top-teal { border-top: 5px solid var(--secondary-color) !important; }
.bg-light-teal { background-color: rgba(65, 178, 196, 0.1); }
.map-section iframe { width: 100% !important; height: 100% !important; border: 0; filter: grayscale(20%); transition: 0.3s; }
.map-section iframe:hover { filter: grayscale(0%); }

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; /* Left side corner */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        left: 20px;
    }
}

/* ==========================================
   GALLERY PREMIUM STYLING
   ========================================== */
.gallery-item {
    cursor: pointer;
    border: 5px solid #fff;
    transition: all 0.4s ease;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(42, 50, 86, 0.85); /* Navy transparent */
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.gallery-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}