/* 
   ====================================================
   ALL DENT CARE - DENTAL CLINIC
   Main Stylesheet
   ====================================================
*/

/* --- 1. Variables & Base Setup --- */
:root {
    /* Color Palette */
    --primary-blue: #1b4b8a;
    --primary-blue-dark: #123360;
    --primary-blue-light: #e8eff7;

    --accent-red: #e63946;
    --accent-red-dark: #c42733;
    --accent-red-light: #fcebeb;

    --text-main: #2b2d42;
    --text-muted: #6c757d;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e9ecef;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 10px rgba(27, 75, 138, 0.05);
    --shadow-md: 0 10px 30px rgba(27, 75, 138, 0.08);
    --shadow-lg: 0 20px 40px rgba(27, 75, 138, 0.12);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Border Radius */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 50px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-accent {
    color: var(--accent-red);
}

.text-white {
    color: var(--bg-white) !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* --- Section Headers --- */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 75, 138, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* --- Placeholders & Aspect Ratios --- */
.image-placeholder {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-heading);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.image-placeholder i {
    font-size: 3rem;
    color: #ced4da;
    margin-bottom: 10px;
}

.aspect-hero {
    aspect-ratio: 800 / 866;
}

.aspect-about {
    aspect-ratio: 800 / 743;
}

.aspect-doctor {
    aspect-ratio: 3 / 4;
}

.aspect-map {
    aspect-ratio: 16 / 9;
}

/* Real images will use this later */
.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- 2. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .header-container {
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions-mobile {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
}


/* --- 3. Hero Section --- */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    overflow: hidden;
    background-color: var(--bg-white);
}

.hero-bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(27, 75, 138, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-blue-dark);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-area {
    position: relative;
}

.hero-image-area::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}


/* --- 4. About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-image-area {
    position: relative;
    height: 100%;
}

.about-image-area img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-features {
    margin-top: 2.5rem;
    display: grid;
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.875rem;
}


/* --- 5. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: transparent;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}


/* --- 6. Main Dentist Section --- */
.doctor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.doctor-name {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.doctor-qualifications {
    font-size: 1.125rem;
    color: var(--accent-red);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.doctor-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.doctor-social-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.doctor-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: var(--accent-red);
    color: var(--bg-white);
    border-radius: 14px;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.doctor-social-icon:hover {
    background-color: var(--bg-white);
    color: var(--accent-red);
    transform: translateY(-4px);
}

.doctor-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.doctor-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.doctor-highlights i {
    color: var(--accent-red);
    font-size: 1.25rem;
}


/* --- 6. Gallery Section --- */
.gallery {
    padding: 80px 0;
    overflow: hidden;
    background-color: var(--bg-white);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-header-left {
    max-width: 600px;
}

.gallery-header-left .section-title {
    color: #1e3a8a;
    /* deep blue */
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin: 0;
}

.gallery-header-left .section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 0;
}

.gallery-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn-pill.btn-red {
    border-radius: 50px;
    background-color: #ef4444;
    /* matching the red in the image */
    color: white;
    padding: 12px 24px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-bottom: 20px;
    display: inline-block;
}

.btn-pill.btn-red:hover {
    background-color: #dc2626;
    color: white;
}

.gallery-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #6b7280;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.gallery-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .gallery-carousel-wrapper {
        padding-left: 0;
    }
}

.gallery-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 20px;
    padding-right: 24px;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.gallery-card {
    position: relative;
    flex: 0 0 calc(25% - 15px);
    /* Show 4 visible */
    min-width: 250px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-white);
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    background: transparent;
}

.gallery-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}


.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-header-right {
        align-items: flex-start;
        flex-direction: row-reverse;
        justify-content: space-between;
        width: 100%;
    }

    .btn-pill.btn-red {
        margin-bottom: 0;
    }

    .gallery-card {
        flex: 0 0 calc(33.333% - 13.33px);
    }
}

@media (max-width: 768px) {
    .gallery-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .gallery-card {
        flex: 0 0 calc(85% - 10px);
    }
}

/* --- 7. Why Choose Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.special-focus-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.special-focus-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 100%;
    /* Ensure it stretches */
}

.special-focus-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.special-focus-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.focus-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.focus-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}



.focus-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.focus-icon-circle {
    width: 48px;
    height: 48px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.focus-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.focus-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

@media (max-width: 940px) {
    .special-focus-layout {
        grid-template-columns: 1fr;
    }

    .special-focus-image {
        min-height: 400px;
        order: 1;
    }

    .special-focus-cards {
        order: 2;
    }
}

.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-box-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-box-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* --- Special Services Section --- */
.special-services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ss-image-group {
    position: relative;
    padding-left: 60px;
    padding-bottom: 60px;
    margin-right: 20px;
}

.ss-img-primary {
    width: 90%;
    margin-left: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
}

.ss-img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    border-radius: var(--radius-lg);
    border: 10px solid var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.ss-stat-badge {
    position: absolute;
    bottom: 20px;
    left: -10px;
    background-color: var(--bg-white);
    color: var(--bg-white);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--bg-white);
    z-index: 2;
}

.ss-stat-logo {
    width: 65%;
    height: auto;
    object-fit: contain;
}

.ss-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.ss-stat-text {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.ss-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ss-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ss-feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ss-feature-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.ss-feature-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 940px) {
    .special-services-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .special-services-right {
        order: 1;
    }

    .special-services-left {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .special-services-right .section-title,
    .special-services-right .section-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .ss-image-group {
        max-width: 500px;
        margin-top: 0;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-bottom: 20px;
        width: 100%;
    }

    .ss-stat-badge {
        width: 110px;
        height: 110px;
        bottom: 0;
        left: 0;
    }

    .ss-stat-number {
        font-size: 1.25rem;
    }
}


/* --- 8. Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--primary-blue-light);
    line-height: 1;
    opacity: 0.5;
}

.stars {
    color: #ffb703;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.patient-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.patient-details h5 {
    margin-bottom: 2px;
    font-size: 1.125rem;
}

.patient-details span {
    color: var(--text-muted);
    font-size: 0.875rem;
}


/* --- 9. Contact Section --- */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.contact-branch-box {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

@media (max-width: 940px) {
    .contact-branch-box {
        grid-template-columns: 1fr;
    }
    .contact-branch-info {
        text-align: center;
        align-items: center;
    }
}

.contact-branch-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue-light);
}

.contact-branch-info {
    display: flex;
    flex-direction: column;
}

.branch-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h5 {
    margin-bottom: 4px;
    font-size: 1.125rem;
}

.info-text p {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.info-text a {
    text-decoration: none;
    display: block;
}

.info-text a:hover p {
    color: var(--primary-blue);
    text-decoration: underline;
}


/* Branch Phone Link */
.branch-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.branch-phone:hover {
    color: var(--accent-red);
}
/* --- Panel of Doctors Section --- */
.panel-doctors {
    background-color: var(--bg-light);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.panel-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.blob-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--bg-white);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transition: all 0.5s ease;
}

.panel-card:hover .blob-avatar {
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}

.blob-avatar.color-1 { background-color: var(--primary-blue); }
.blob-avatar.color-2 { background-color: var(--accent-red); }
.blob-avatar.color-3 { background-color: var(--primary-blue-dark); }
.blob-avatar.color-4 { background-color: var(--accent-red-dark); }

.panel-name {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.panel-qual {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.panel-role {
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 500;
    line-height: 1.4;
}

/* --- Meet Our Team Section --- */
.team-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: 0 0 calc(25% - 15px); /* 4 visible cards */
    min-width: 250px;
    scroll-snap-align: start;
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 20px 0;
    text-align: left;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.team-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.linkedin-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.linkedin-icon:hover {
    color: #0A66C2;
}




/* --- 10. Footer --- */
.footer {
    background-color: var(--primary-blue-dark);
    color: var(--bg-white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.social-links a:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    margin-right: 8px;
    font-size: 1.2rem;
    color: var(--accent-red);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.footer-contact i {
    color: var(--accent-red);
    font-size: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}


/* --- 11. Animations (Reveal on Scroll) --- */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(40px);
}

.fade-right {
    transform: translateX(-40px);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}


/* --- 12. Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        gap: 40px;
    }

    .about-container,
    .doctor-container {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section,
    .gallery,
    .financial-cta {
        padding: 30px 0;
    }

    .footer {
        padding-top: 45px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-desc {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-content .section-desc {
        text-align: center !important;
    }

    .about-features {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 940px) {
    /* Center align all headers, tags, and descriptions on responsive view */
    .section-tag {
        display: block !important;
        width: max-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section-title,
    .section-desc,
    .doctor-name,
    .doctor-qualifications {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transition: 0.4s ease-in-out;
        box-shadow: var(--shadow-lg);
    }

    .navbar.active {
        left: 0;
    }

    .header.scrolled .navbar {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 24px;
        margin-bottom: 40px;
    }

    .nav-link {
        font-size: 1.25rem;
        display: block;
        width: 100%;
    }

    .nav-actions-mobile {
        display: block;
        width: 100%;
    }

    .nav-actions-mobile .btn {
        width: 100%;
    }
}

@media (max-width: 1000px) {

    .gallery-header {
        margin-bottom: 20px !important;
    }

    .gallery-nav {
        display: none !important;
    }

    .hero-container,
    .about-container,
    .doctor-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image-area,
    .about-image-area,
    .doctor-image-area {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }


    .hero-desc {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-image-area {
        order: 1;
        height: auto;
    }

    .about-image-area img {
        position: relative;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .about-features .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* max-width: 350px; */
        margin: 0 auto;
        width: 100%;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 30px;
        text-align: center;
    }

    #about {
        padding-top: 30px;
    }

    #services {
        padding-bottom: 30px;
    }

    #special-focus {
        padding-top: 30px;
    }

    .special-focus-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

 .special-focus-cards .focus-card {
    width: 100%;
    text-align: center;
    padding: 5% 0%; /* 5% left and right margin */
}

    .special-focus-cards .focus-card-header {
        flex-direction: column;
        justify-content: center;
    }

    .special-focus-cards .focus-list {
        display: inline-block;
        text-align: left;
    }

    .special-services-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ss-image-group {
        max-width: 500px;
        margin: 0 auto 20px;
        padding-bottom: 20px;
    }

    .features-grid,
    .services-grid {
        gap: 20px;
    }

    .doctor-image-area {
        order: -1;
    }

    .doctor-content {
        text-align: center;
    }

    .doctor-content .doctor-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: justify;
    }

    .doctor-highlights {
        grid-template-columns: 1fr;
        display: grid;
        width: fit-content;
        margin: 0 auto 1.5rem auto;
        text-align: left;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        padding: 40px 24px;
        text-align: center;
    }

    .contact-info .section-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-desc {
        max-width: 100%;
    }
}

/* --- 8. Financial CTA Section --- */
.financial-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 100px 0;
    overflow: hidden;
}

.financial-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* EMI Card Mockup */
.financial-cta-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.emi-card-mockup {
    background-color: var(--bg-white);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.1);
    position: relative;
    border: 1px solid var(--border-light);
    animation: float-center 5s ease-in-out infinite;
}

.emi-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.emi-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0891b2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.emi-header-text {
    display: flex;
    flex-direction: column;
}

.emi-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.emi-header-text h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.emi-card-body {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.emi-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.emi-stat {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.stat-value.text-primary {
    color: var(--primary-blue);
}

.emi-progress-container {
    width: 100%;
}

.emi-progress-labels {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.progress-percentage {
    color: var(--primary-blue);
    font-weight: 700;
}

.emi-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.emi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, #0891b2 100%);
    border-radius: 4px;
}

.emi-progress-amounts {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.emi-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5px;
}

.partner-icons {
    display: flex;
    gap: 10px;
}

.partner-icon {
    width: 35px;
    height: 35px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
}

.footer-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #10b981;
}

@keyframes float-center {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.financial-cta-content .section-title {
    color: var(--primary-blue);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
}

@media (max-width: 1000px) {
    .financial-cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .financial-cta-content {
        margin-bottom: 0;
    }

    .financial-cta-content .section-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .emi-card-mockup {
        margin: 0 auto;
    }

    .emi-stat {
        text-align: center;
    }
}

/* --- Floating WhatsApp Button & Popup --- */
.floating-whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-whatsapp {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    /* WhatsApp brand color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp-container:hover .floating-whatsapp {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    pointer-events: none;
}

/* WhatsApp Options Popup */
.whatsapp-options {
    position: absolute;
    bottom: 75px;
    right: 0;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border: 1px solid var(--border-color);
}

.floating-whatsapp-container:hover .whatsapp-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.whatsapp-option i {
    color: #25d366;
    font-size: 1.2rem;
}

.whatsapp-option:hover {
    background-color: var(--bg-light);
    color: #25d366;
}

@media (max-width: 768px) {
    .floating-whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Dimmed background */
}

.lightbox-content-wrapper {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    /* Prevents stretching/cropping */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-red);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2rem;
        padding: 8px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (min-width: 770px) {
    .gallery-header-left .section-tag {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .gallery-header-left .section-title,
    .gallery-header-left .section-desc {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}