/* CSS Variables */
:root {
    --primary-color: #E54E6F;
    --secondary-color: #FAA9BD;
    --light-pink: #FBF0F4;
    --accent-color: #EB93A6;
    --dark-text: #333;
    --light-text: #666;
    --white: #fff;
    --shadow: 0 5px 15px rgba(229, 78, 111, 0.1);
    --border-radius: 10px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

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

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-pink);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Add safe top spacing for all pages except Home (hero already padded) */
body:not(.is-home) .navbar + * { margin-top: 72px; }
@media (max-width: 768px) { body:not(.is-home) .navbar + * { margin-top: 52px; } }
@media (max-width: 480px) { body:not(.is-home) .navbar + * { margin-top: 44px; } }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.nav-logo:hover {
    text-decoration: none;
    transform: scale(1.05);
    background: rgba(229, 78, 111, 0.1);
    box-shadow: 0 4px 15px rgba(229, 78, 111, 0.2);
}

.nav-logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-logo:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(229, 78, 111, 0.3);
}

.nav-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav-logo:hover span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
/* Hero slider */
.hero { 
    position: relative; 
    background: linear-gradient(135deg, rgba(229, 78, 111, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%), url('Hero.jpg') center center/cover no-repeat;
}
.hero-swiper { width: 100%; }
.slide-inner { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:68px 42px 36px; min-height: 80vh; }
.slide-content { 
    flex:1; 
    max-width:650px; 
    padding: 30px; 
}
.slide-title { 
    font-size: 4rem; 
    color: var(--white); 
    margin-bottom: 15px; 
    line-height: 1.1; 
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
    letter-spacing: 1px;
}
.slide-sub { 
    font-size: 1.8rem; 
    color: var(--white); 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 1px 1px 3px rgba(0,0,0,0.6);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.slide-highlights { 
    margin: 0 0 30px 0; 
    color: var(--white); 
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 1px 1px 3px rgba(0,0,0,0.6);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
}

.slide-highlights li {
    margin-bottom: 8px;
    padding-left: 0;
    list-style: none;
}

.slide-highlights li::before {
    content: '•';
    color: var(--white);
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.slide-image { flex:1; display:flex; justify-content:flex-end; align-items:flex-end; }
.slide-image img { max-width:520px; width:100%; height:auto; object-fit:contain; filter: drop-shadow(0 25px 35px rgba(0,0,0,0.15)); }
.hero .swiper-button-prev.hero-prev, .hero .swiper-button-next.hero-next,
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px !important;
    height: 56px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: transparent;
    color: #2f3e4e; /* dark blue-grey */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    box-shadow: none;
    z-index: 5;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    /* Hide built-in text like 'prev'/'next' from Swiper without affecting pseudos */
    font-size: 0;
}

/* Circular outline ring behind the arrow */
.hero .swiper-button-prev.hero-prev::before, .hero .swiper-button-next.hero-next::before,
.hero-prev::before, .hero-next::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
    box-sizing: border-box;
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero .swiper-button-prev.hero-prev::after, .hero .swiper-button-next.hero-next::after,
.hero-prev::after, .hero-next::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    color: var(--primary-color);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.hero .swiper-button-prev.hero-prev::after, .hero-prev::after { content: "\f060" !important; }
.hero .swiper-button-next.hero-next::after, .hero-next::after { content: "\f061" !important; }
.hero-prev::after { content: "\f060"; } /* fa-arrow-left */
.hero-next::after { content: "\f061"; } /* fa-arrow-right */
.hero-prev:hover, .hero-next:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 16px 34px rgba(0,0,0,0.16); }
.hero-prev:focus-visible, .hero-next:focus-visible { outline: 3px solid rgba(229,78,111,0.5); outline-offset: 2px; }

@media (max-width: 768px) {
    .hero-prev, .hero-next { width: 46px; height: 46px; }
    .hero-prev::after, .hero-next::after { font-size: 18px; }
}
.hero-pagination .swiper-pagination-bullet { background: rgba(229,78,111,0.4); opacity:1; }
.hero-pagination .swiper-pagination-bullet-active { background: var(--primary-color); }
@media(max-width: 992px){ 
    .slide-inner{ 
        flex-direction:column; 
        text-align:center; 
        padding:64px 24px 32px; 
    } 
    .slide-image{ 
        justify-content:center; 
    } 
    .slide-title{ 
        font-size: 3rem; 
    }
    .slide-sub {
        font-size: 1.5rem;
    }
    .slide-content {
        padding: 20px;
        margin-bottom: 20px;
    }
}
@media (max-width: 576px) { 
    .slide-inner { 
        padding: 48px 16px 22px; 
        gap: 16px; 
    } 
    .slide-image img { 
        max-width: 90vw; 
    }
    .slide-content {
        padding: 15px;
        margin-bottom: 15px;
    }
    .slide-title {
        font-size: 2.2rem;
    }
    .slide-sub {
        font-size: 1.3rem;
    }
    .slide-highlights {
        font-size: 1rem;
    }
}

/* Tweak second slide image size and add right spacing on large screens */
@media (min-width: 992px) {
  .hero-swiper .swiper-slide:nth-child(2) .slide-image img { max-width: 440px; margin-right: 24px; }
}
@media (min-width: 1200px) {
  .hero-swiper .swiper-slide:nth-child(2) .slide-image img { max-width: 460px; margin-right: 32px; }
}
@media (max-width: 576px) {
  .hero-swiper .swiper-slide:nth-child(2) .slide-image img { max-width: 78vw; }
}

/* Desktop: make hero cover the full viewport height and add a bit more top padding */
@media (min-width: 992px) {
  .hero { min-height: calc(100vh - 70px); }
  .hero-swiper, .hero-swiper .swiper-wrapper, .hero-swiper .swiper-slide { min-height: calc(100vh - 70px); }
  .slide-inner { min-height: calc(100vh - 70px); padding-top: 92px; padding-left: 110px; }
}

/* Mobile: place nav arrows below the image/content and keep pagination below them */
@media (max-width: 768px) {
  /* Force mobile positioning (override Swiper defaults) */
  .hero .swiper-button-prev.hero-prev,
  .hero .swiper-button-next.hero-next,
  .hero-prev, .hero-next {
    display: none !important; /* hide arrows on mobile; swipe still works */
  }
}

/* Entrance animations per element */
.swiper-slide { will-change: transform; }
.swiper-slide .slide-title,
.swiper-slide .slide-sub,
.swiper-slide .slide-highlights { opacity: 0; transform: translate3d(-20px,0,0); }
.swiper-slide .hero-buttons { opacity: 0; transform: translate3d(0,24px,0); }
.swiper-slide .slide-image { opacity: 0; transform: translate3d(0,36px,0); }
/* Order: image first (slower), then buttons, then text */
.swiper-slide-active .slide-image { opacity:1; transform: translate3d(0,0,0); transition: transform 900ms ease-in-out, opacity 800ms ease-in-out; transition-delay: 50ms; }
.swiper-slide-active .hero-buttons { opacity:1; transform: translate3d(0,0,0); transition: transform 800ms ease-in-out, opacity 700ms ease-in-out; transition-delay: 650ms; }
.swiper-slide-active .slide-title { opacity:1; transform: translate3d(0,0,0); transition: opacity 300ms ease-in-out; transition-delay: 1100ms; }
.swiper-slide-active .slide-sub { opacity:1; transform: translate3d(0,0,0); transition: transform 700ms ease-in-out, opacity 600ms ease-in-out; transition-delay: 1300ms; }
.swiper-slide-active .slide-highlights { opacity:1; transform: translate3d(0,0,0); transition: transform 700ms ease-in-out, opacity 600ms ease-in-out; transition-delay: 1450ms; }

/* Fade-out for outgoing slide */
.swiper-slide.slide-exit .slide-title,
.swiper-slide.slide-exit .slide-sub,
.swiper-slide.slide-exit .slide-highlights,
.swiper-slide.slide-exit .hero-buttons,
.swiper-slide.slide-exit .slide-image {
    opacity: 0;
    transform: translate3d(0,10px,0);
    transition: opacity 550ms ease-in, transform 550ms ease-in;
}

/* Pre-exit: fade out image slightly before slide change */
.swiper-slide .slide-image.pre-exit {
    opacity: 0;
    transform: translate3d(0,12px,0);
    transition: opacity 700ms ease, transform 700ms ease;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 30px;
}

.hero-doctors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.doctor-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 78, 111, 0.2);
    border-color: var(--primary-color);
}

.doctor-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(229, 78, 111, 0.3);
}

.doctor-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.doctor-card p {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #d13d5a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #f095a8;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 65%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
    .about {
        padding: 60px 0;
        background: #e8f4f8;
    }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.clinic-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Services Section */
    .services {
        padding: 40px 0;
        background: var(--light-pink);
    }

.services-grid {
    display: grid;
    gap: 40px;
}

.service-category {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.service-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    padding: 20px;
    background: var(--light-pink);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-item p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Service Sections with Background Images */
.service-section {
    position: relative;
    margin-bottom: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-section:last-child {
    margin-bottom: 0;
}

/* Cardiology Section Background */
.cardiology-section {
    background: url('Cardialogist.jpg') center center/cover no-repeat;
    min-height: 400px;
}

/* Pediatrics Section Background */
.pediatrics-section {
    background: url('Pediatrician.jpg') center center/cover no-repeat;
    min-height: 500px;
}

/* Background Overlay */
.service-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 78, 111, 0.65) 0%, rgba(250, 169, 189, 0.7) 100%);
    z-index: 1;
}

/* Service Content */
.service-content {
    position: relative;
    z-index: 2;
    padding: 50px 40px;
    color: var(--white);
}

.service-content h3 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-content h3 i {
    margin-right: 15px;
    color: var(--white);
}

/* Service List Styling */
.service-content .service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Responsive Design for Service Sections */
@media (max-width: 768px) {
    .service-content {
        padding: 40px 25px;
    }
    
    .service-content h3 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .service-content .service-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .service-content .service-item {
        padding: 20px;
    }
    
    .service-content .service-item i {
        font-size: 2rem;
    }
    
    .service-content .service-item h4 {
        font-size: 1.1rem;
    }
    
    .cardiology-section,
    .pediatrics-section {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: 30px 20px;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .service-content .service-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-content .service-item {
        padding: 18px;
    }
    
    .service-content .service-item i {
        font-size: 1.8rem;
    }
    
    .service-content .service-item h4 {
        font-size: 1rem;
    }
    
    .cardiology-section,
    .pediatrics-section {
        min-height: 300px;
    }
}

.service-content .service-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-content .service-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-content .service-item i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
    display: block;
}

.service-content .service-item h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-content .service-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Doctors Section */
    .doctors {
        padding: 80px 0;
        background: #ec5c7b;
        color: var(--white);
    }

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.doctors .section-title {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.doctor-profile {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--primary-color);
    position: relative;
}

.doctor-profile:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(229, 78, 111, 0.3);
    border-color: var(--primary-color);
}

.doctor-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-profile:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 25px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-pink) 100%);
    border-top: 2px solid var(--primary-color);
}

.doctor-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.specialization {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.qualifications, .expertise {
    margin-bottom: 20px;
}

.qualifications h4, .expertise h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.qualifications ul, .expertise ul {
    list-style: none;
    padding-left: 0;
}

.qualifications li, .expertise li {
    padding: 5px 0;
    color: var(--light-text);
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.qualifications li::before, .expertise li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.contact-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-pink);
}

.contact-info p {
    color: var(--light-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Gallery Section */
    .gallery {
        padding: 40px 0;
        background: var(--light-pink);
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Testimonials Section */
    .testimonials {
        padding: 80px 0;
        background: #f0f8ff;
    }

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

.testimonials .section-title {
    color: var(--primary-color);
}

.testimonial {
    background: var(--light-pink);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Blog Section */
    .blog {
        padding: 40px 0;
        background: var(--light-pink);
    }

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

.blog-post {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(229, 78, 111, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--light-text);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
}

.blog-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-excerpt {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.blog-excerpt p {
    margin-bottom: 0;
    font-style: italic;
    color: #666;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.read-more:hover {
    color: #d13d5a;
    transform: translateX(5px);
}

.read-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

/* Blog Modal */
.blog-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.blog-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-blog-modal {
    color: var(--light-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-blog-modal:hover,
.close-blog-modal:focus {
    color: var(--primary-color);
}

#blog-modal-body {
    padding: 40px;
}

.blog-modal-header {
    margin-bottom: 30px;
}

.blog-modal-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.blog-modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-modal-meta i {
    color: var(--primary-color);
}

.blog-modal-image {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-modal-content-text {
    line-height: 1.8;
    color: var(--light-text);
}

.blog-modal-content-text h3 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.blog-modal-content-text p {
    margin-bottom: 15px;
}

.blog-modal-content-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.blog-modal-content-text li {
    margin-bottom: 8px;
}

/* Blog Modal Responsive */
@media (max-width: 768px) {
    .blog-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    #blog-modal-body {
        padding: 25px;
    }
    
    .blog-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .blog-modal-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-modal-image img {
        height: 200px;
    }
    
    .blog-modal-content-text h3 {
        font-size: 1.2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .blog-modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    #blog-modal-body {
        padding: 20px;
    }
    
    .blog-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .blog-modal-image img {
        height: 150px;
    }
}

/* FAQ styles removed */

/* Contact Section */
    .contact {
        padding: 40px 0;
        background: var(--light-pink);
    }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--light-text);
    line-height: 1.6;
}

.social-links h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
}

.social-icons a i {
    font-size: 18px;
    color: var(--white);
    line-height: 1;
}

.social-icons a:hover {
    background: #d13d5a;
    transform: translateY(-2px);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-pink);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}



/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

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

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(229, 78, 111, 0.3);
}

.footer-logo h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--accent-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #d13d5a;
    transform: translateY(-2px) scale(1.03);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 15px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px;
        min-height: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-doctors {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .doctor-card {
        padding: 20px;
    }

    .doctor-card img {
        width: 80px;
        height: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    .hero-image img {
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .clinic-info {
        gap: 15px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

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

    .doctor-profile {
        margin: 0 auto;
        max-width: 100%;
    }

    .doctor-image {
        height: 200px;
    }

    .doctor-info {
        padding: 20px;
    }

    .doctor-info h3 {
        font-size: 1.5rem;
    }

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

    .contact-info {
        gap: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-form {
        padding: 25px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-category {
        padding: 25px;
    }

    .service-category h3 {
        text-align: center;
        flex-direction: column;
        gap: 8px;
        font-size: 1.3rem;
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-item {
        padding: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        height: 180px;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial {
        padding: 25px;
    }

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

    .blog-post {
        margin: 0 auto;
        max-width: 100%;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 15px 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-doctors {
        gap: 12px;
        margin-bottom: 25px;
    }

    .doctor-card {
        padding: 15px;
    }

    .doctor-card img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .doctor-card h3 {
        font-size: 1.1rem;
    }

    .doctor-card p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 200px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .service-category h3 {
        text-align: center;
        flex-direction: column;
        gap: 6px;
        font-size: 1.1rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .doctor-info h3 {
        font-size: 1.4rem;
    }

    .doctor-info {
        padding: 15px;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form h3 {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item img {
        height: 160px;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-logo span {
        font-size: 1rem;
    }

    .nav-logo img {
        width: 35px;
        height: 35px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 86px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 1100;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}

/* Ensure floating button stays above scroll-to-top */
#scroll-to-top {
    z-index: 1090;
}

/* Contact links: match surrounding text, underline on hover */
a[href^="tel:"],
a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: 76px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* FAQ Section Styles */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.faq .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 78, 111, 0.15);
    border-color: var(--secondary-color);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: all 0.3s ease;
    position: relative;
    color: var(--white);
    user-select: none;
}

.faq-question:hover,
.faq-question:focus {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(229, 78, 111, 0.3);
    outline: none;
}

.faq-question:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--white);
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--white);
    padding: 0 30px;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px 30px 20px 30px;
    opacity: 1;
}



.faq-answer p {
    margin: 0;
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1rem;
}

/* FAQ Animation for new items */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .faq-question {
        padding: 20px 25px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 12px 25px 18px 25px;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 50px 0;
    }
    
    .faq .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 18px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 10px;
    }
    
    .faq-item.active .faq-answer {
        padding: 10px 20px 15px 20px;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}