@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

/* Service Detail Page */
.page-breadcrumb {
    padding-top: calc(var(--nav-h) + 12px);
    padding-bottom: 12px;
    background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, rgba(14,165,233,0.06) 100%);
    border-bottom: 1px solid #eef2f7;
}
.page-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-breadcrumb .crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
}
.page-breadcrumb .crumb:hover { color: #2563eb; }
.page-breadcrumb .crumb-sep { color: #9aa4af; }
.page-breadcrumb .crumb-current { color: #1f2937; font-weight: 700; }

.service-detail { background: #f8fafc; }
.service-detail .section-title { margin-top: 0.5rem; }
.service-detail .articles-grid { max-width: 920px; margin: 0 auto; }
.service-detail .article-card { padding: 1.5rem 1.5rem 1.25rem; }
.service-detail .article-excerpt { color: #495866; }
.service-detail .article-card .btn { white-space: nowrap; }
.service-detail .article-card .btn + .btn { margin-left: .5rem; }


html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.responsive-media,
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Emergency Hotline Button */
.emergency-hotline {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
}

.emergency-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.emergency-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animated phone icon on the right */
.emergency-btn .call-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    animation: phone-ring 1.25s infinite;
}

.emergency-btn .call-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    animation: ripple 1.8s infinite ease-out;
}

@keyframes phone-ring {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes ripple {
    0% { transform: scale(0.6); opacity: 0.8; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { opacity: 0; }
}

/* Hero slogan animations */
@keyframes heroSloganIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroShine {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .emergency-btn, .emergency-btn .call-icon, .emergency-btn .call-icon::after,
    .hero-slogan, .hero-slogan span { 
        animation: none !important; 
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A90E2;
}

.nav-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4A90E2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4A90E2;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
:root {
  --nav-h: 96px;
  --hero-extra-top: 16px; /* small extra gap under navbar */
}

@media (max-width: 768px) {
  :root {
    --nav-h: 80px;
    --hero-extra-top: 12px;
  }
}

.hero {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4A90E2 0%, #50C878 100%);
    color: white;
    padding-top: calc(var(--nav-h) + var(--hero-extra-top));
}
.hero, section { scroll-margin-top: var(--nav-h); }

.hero-container {
    max-width: 1200px;
    margin-left: 300px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        padding-left: 48px;
        padding-right: 20px;
    }
}

.hero-title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #FFD700;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.slogan-strip {
    position: relative;
    padding: 0 0 30px;
    margin-top: -40px;
    z-index: 2;
}

.slogan-box {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 12px 30px rgba(var(--brand-primary-rgb), 0.25);
    text-align: center;
}

.slogan-text {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
}

.btn-primary:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4A90E2;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.btn-outline:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

.btn-emergency {
    background: #e74c3c;
    color: white;
    animation: pulse 2s infinite;
}

.btn-emergency:hover {
    background: #c0392b;
    transform: translateY(-2px);
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-avatar {
    width: clamp(160px, 40vw, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Hero image + slogan side-by-side */
.hero-portrait-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr; /* equal columns */
    align-items: center;
    gap: 1.25rem;
}

/* Make both children fill their half */
.hero-portrait-wrap > * {
    width: 100%;
}

.hero-slogan-wrap {
    max-width: 100%;
}

.hero-slogan {
    color: #fff;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(1.6rem, 2vw + 1rem, 2.8rem);
    letter-spacing: 0.2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    animation: heroSloganIn 800ms ease-out both;
}

.hero-slogan span {
    font-weight: 800;
    color: transparent;
    background: linear-gradient(90deg, var(--brand-accent), #ffffff, var(--brand-secondary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: heroShine 4s linear infinite;
}

/* Wider screens: two-column hero + refined spacing */
@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr; /* stack hero-content then hero-image */
        gap: 2.5rem;
    }
    .hero-image {
        justify-self: start; /* align with hero-content */
        align-self: start; /* place directly below */
        margin-top: 2.5rem; /* more spacing below hero-content */
    }
    /* Extra spacing between photo and slogan on desktop */
    .hero-slogan-wrap {
        margin-left: 0; /* equal columns, no extra shift */
        max-width: 100%;
    }
    .hero-portrait-wrap {
        gap: 3.5rem; /* more space between photo and slogan */
    }
    /* Center the circular photo within its half for balance */
    .hero-portrait-wrap .doctor-avatar {
        justify-self: center;
    }
    .hero-slogan {
        font-size: clamp(1.8rem, 1.2vw + 1.4rem, 3rem);
    }
}

/* Mobile: stack photo above slogan, center text */
@media (max-width: 768px) {
    .hero-portrait-wrap {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center; /* center children horizontally */
    }
    .hero-slogan-wrap {
        max-width: 100%;
        margin-left: 0; /* reset spacing when stacked */
    }
    /* Ensure the circular photo container is centered */
    .doctor-avatar {
        margin: 0 auto;
    }
    /* Remove large desktop offset on small screens so content centers */
    .hero-container {
        margin-left: 0;
    }
    .hero-slogan {
        font-size: 1.2rem;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

/* Reduce the top spacing immediately after the hero to avoid a large gap */
.hero + section {
    padding-top: 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

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

/* About Section */
.about {
    /* Soft indigo→cyan tint for elegant backdrop */
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(14, 165, 233, 0.06) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #334155; /* slate-700 for readability */
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.about-credentials {
    margin-top: 2rem;
}

.about-credentials h3 {
    font-size: 1.3rem;
    color: #0f172a; /* very dark slate for headings */
    margin-bottom: 1rem;
}

.about-credentials ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.about-credentials li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e6effa; /* lighter divider on tinted bg */
    color: #475569; /* slate-600 */
}

/* Strong, elegant title color just for About */
.about .section-title {
    color: #0f172a;
}

.download-cv {
    margin-top: 1rem;
}

.about-avatar {
    width: clamp(160px, 50vw, 250px);
    height: auto;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #4A90E2, #50C878);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Gallery Section */
.gallery {
    background: white;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-nav-btn {
    padding: 10px 20px;
    border: 2px solid #4A90E2;
    background: transparent;
    color: #4A90E2;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gallery-nav-btn.active,
.gallery-nav-btn:hover {
    background: #4A90E2;
    color: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: white;
}

/* Treatment Gallery: horizontal 188x188 slider */
.treatment-slider {
    position: relative;
    margin-top: 1.5rem;
}

.treatment-track {
    display: flex !important; /* override .gallery-grid grid */
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 2.5rem; /* room for side controls */
}

.treatment-track::-webkit-scrollbar {
    height: 8px;
}

.treatment-track::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.treatment-track .gallery-item {
    flex: 0 0 188px;
    width: 188px;
    height: 188px;
    scroll-snap-align: start;
    border-radius: 12px;
}

.treatment-track .gallery-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ts-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 2;
    opacity: 0.9;
}

.ts-control.prev { left: 0.5rem; }
.ts-control.next { right: 0.5rem; }

@media (max-width: 480px) {
    .treatment-track {
        gap: 0.75rem;
        padding: 0.5rem 2rem;
    }
    .treatment-track .gallery-item {
        flex-basis: 160px; /* slightly smaller on very small screens */
        width: 160px;
        height: 160px;
    }
}

/* Videos Section */
.videos {
    background: #f8f9fa;
}

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

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(74, 144, 226, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 2rem;
    color: white;
    margin-left: 5px;
}

.video-card:hover .play-button {
    background: rgba(74, 144, 226, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #2c3e50;
}

.video-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* Articles Section */
.articles {
    background: #ffffff;
    padding: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.article-header {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.article-header h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 0;
}

.article-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: #8e9aa6;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.article-meta i {
    color: var(--brand-primary);
    margin-right: 0.35rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    color: var(--brand-secondary);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;              /* enable vertical layout */
    flex-direction: column;     /* stack contents */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A90E2, #50C878);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Space the call-to-action button in service cards */
.service-card .btn {
    margin-top: auto;           /* push to bottom */
    align-self: flex-start;     /* align to left within cross-axis */
    margin-left: 0;             /* no right push */
    margin-right: auto;         /* anchor to left */
}

/* Link-style Learn More inside service cards (no border) */


.service-card .btn.btn-outline {
    border: none;
    background: transparent;
    padding: 0;                 /* remove pill spacing */
    border-radius: 0;
    color: var(--brand-primary, #6366f1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card .btn.btn-outline::after {
    content: '...';
    transition: transform 0.2s ease;
}

.service-card .btn.btn-outline:hover {
    background: transparent;    /* keep transparent on hover */
    color: var(--brand-primary, #6366f1);
    text-decoration: none;
}

.service-card .btn.btn-outline:hover::after {
    transform: translateX(3px);
}

/* Visiting Hours Section */
.visiting-hours {
    background: white;
}

.visiting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.schedule-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4A90E2;
}

.schedule-item .day {
    font-weight: 600;
    color: #2c3e50;
}

.schedule-item .time {
    color: #4A90E2;
    font-weight: 500;
}

.emergency-appointment {
    text-align: center;
}

.location-map h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.address-info p {
    color: #666;
    font-size: 1.1rem;
}

.address-info i {
    color: #4A90E2;
    margin-right: 0.5rem;
}

/* Appointment Section */
.appointment {
    background: #f8f9fa;
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.appointment-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: #333;
}

.contact-option i {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.contact-option.whatsapp i {
    color: #25D366;
}

.contact-option.phone i {
    color: #4A90E2;
}

.contact-option.email i {
    color: #e74c3c;
}

.contact-option h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-option p {
    color: #666;
}

.appointment-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.appointment-form h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4A90E2;
}

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

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4A90E2, #50C878);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: white;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4A90E2;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4A90E2;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4A90E2;
    transform: translateY(-3px);
}

.emergency-number {
    color: #e74c3c !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}
 
/* Footer Emergency (desktop only) */
.footer-emergency {
    display: flex;
    justify-content: center;
    margin: 0 0 1.25rem;
}

.footer-emergency .emergency-btn {
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.35);
}

/* Hide sticky header hotline on desktop */
@media (min-width: 769px) {
    .emergency-hotline { display: none !important; }
}

/* Image Modal */
.image-modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slogan-strip { margin-top: -20px; padding-bottom: 20px; }
    .slogan-box { border-radius: 12px; padding: 14px 16px; }
    .slogan-text { font-size: 1.05rem; }
    .emergency-hotline {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .emergency-btn {
        justify-content: center;
        width: 100%;
    }
    .footer-emergency { display: none; }
    .footer .emergency-number { display: none; }
    /* Mobile spacing: reserve space for sticky hotline */
    :root { --nav-h: 80px; --hero-extra-top: 12px; }
    .hero {
        padding-top: calc(var(--nav-h) + var(--hero-extra-top));
        min-height: calc(100vh - var(--nav-h));
    }
    body {
        padding-bottom: 90px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

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

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .visiting-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .appointment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    /* Tighter phones: a bit more clearance and bottom safe area */
    :root { --nav-h: 120px; --hero-extra-top: 12px; }
    .hero {
        padding-top: calc(var(--nav-h) + var(--hero-extra-top));
        min-height: calc(100vh - var(--nav-h));
    }
    body {
        padding-bottom: 100px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .doctor-avatar {
        width: clamp(160px, 50vw, 200px);
    }

    .about-avatar {
        width: clamp(160px, 60vw, 200px);
        height: auto;
        aspect-ratio: 1 / 1;
    }



    .gallery-nav {
        flex-direction: column;
        align-items: center;
    }
}

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

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

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Theme enhancements: typography & palette */
:root {
    --brand-primary: #6366F1; /* Indigo */
    --brand-secondary: #0EA5E9; /* Cyan */
    --brand-accent: #06B6D4; /* Teal/Cyan */
    /* RGB helpers for alpha backgrounds */
    --brand-primary-rgb: 99, 102, 241;
    --brand-secondary-rgb: 14, 165, 233;
}

/* Typography improvements */
h1, h2, h3,
.hero-title,
.section-title,
.nav-logo,
.btn {
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* Updated gradients and accents */
.hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.section-title::after {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.about-avatar,
.service-icon {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

.nav-logo {
    color: var(--brand-primary);
}

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

.nav-link::after {
    background: var(--brand-primary);
}

.btn-outline {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

.btn-secondary:hover {
    color: var(--brand-secondary);
}

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

.contact-option.phone i,
.address-info i,
.footer-section h3,
.stat h3 {
    color: var(--brand-primary);
}

.social-links a:hover {
    background: var(--brand-primary);
}

.gallery-overlay {
    background: rgba(99, 102, 241, 0.85); /* Indigo with transparency */
}
