/* ==========================================================================
   1. VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    --primary-blue: #0ea5e9;
    --dark-blue: #041B4D;
    --light-bg: #E9F1FA;
    --text-dark: #001233;
}

body {
    font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Utilities */
.text-primary { color: var(--primary-blue) !important; }
.bg-primary { background-color: var(--primary-blue) !important; }
.text-dark-blue { color: var(--dark-blue) !important; }
.text-primary-custom { color: #007bff !important; }
.bg-primary-custom { background-color: #007bff !important; color: #fff !important; }

.btn-primary { background-color: var(--primary-blue); border-color: var(--primary-blue); }
.btn-primary:hover { background-color: #0056d6; border-color: #0056d6; }
.bg-dark-blue{background-color: #002570;}
.outline-btn {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    transition: all 0.3s ease;
}
.outline-btn:hover { background-color: white; color: var(--dark-blue) !important; }

/* ==========================================================================
   2. NAVBAR & TOP BAR
   ========================================================================== */
.icon-box { width: 35px; height: 35px; font-size: 14px; }
.nav-container { margin-bottom: -28px; }

.social-btn {
    width: 30px; height: 30px;
    font-size: 13px; text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover { background-color: white; color: var(--primary-blue) !important; }

/* ==========================================================================
   3. HERO SECTION (Merged & Cleaned)
   ========================================================================== */
.hero-section {
    background-color: var(--dark-blue);
    position: relative;
    padding-top: 100px;
    border-bottom-left-radius: 50% 12%;
    border-bottom-right-radius: 50% 12%;
    z-index: 1;
}

.hero-watermark {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 10px;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.hero-rings {
    width: 600px; height: 600px;
    border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 50%; left: 15%;
    transform: translateY(-50%);
    pointer-events: none;
}
.hero-rings::before {
    content: ''; position: absolute;
    width: 450px; height: 450px;
    border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, 0.03);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.hero-img-col { z-index: 10; position: static !important; }

.doctor-img {
    position: absolute;
    bottom: -250px;
    left: 20px;
    height: 850px;
    width: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

.overlap-features-container { margin-top: -37px !important; position: relative; z-index: 15; }
.feature-card-wrapper { z-index: 5; }
.feature-left { border-right: 1px solid rgba(255,255,255,0.15); }
.feature-right { background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05)); }
.icon-circle { width: 65px; height: 65px; }

/* ==========================================================================
   4. DEPARTMENTS SECTION (Merged)
   ========================================================================== */
.departments-section {
    background-color: #e5effd;
    padding: 150px 0 100px 0;
    margin-top: -100px;
    z-index: 0;
}

.main-title { line-height: 1.1; letter-spacing: -0.5px; }
.header-para { font-size: 13.5px; color: #7a8fa3; line-height: 1.6; }

.dept-badge {
    font-size: 10px; letter-spacing: 0.5px;
    padding: 6px 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: inline-flex; align-items: center;
}

.btn-more {
    background-color: #007bff; color: #fff; border: none;
    padding: 12px 28px; font-size: 13px; font-weight: 700;
    letter-spacing: 0.5px; border-radius: 50px; transition: all 0.3s ease;
}
.btn-more:hover { background-color: #0056b3; color: #fff; }

.service-box {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 65%, rgba(255, 255, 255, 0) 100%);
    border-radius: 30px; padding: 35px 25px 20px 25px;
    box-shadow: 0px -10px 30px rgba(3, 43, 94, 0.04), 10px 0px 25px rgba(3, 43, 94, 0.03), -10px 0px 25px rgba(3, 43, 94, 0.03);
    border: none; height: 100%; position: relative;
    transition: all 0.3s ease; cursor: pointer;
}
.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.1) !important;
}

.number-circle {
    width: 32px; height: 32px; min-width: 32px;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.icon-wrapper { position: relative; display: inline-block; margin: 15px 0 20px 10px; }
.icon-bg-circle {
    position: absolute; width: 60px; height: 60px;
    background-color: #edf4ff; border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-30%, -50%); z-index: 0;
}
.icon-wrapper i { font-size: 42px; position: relative; z-index: 1; }
.card-desc { font-size: 13px; color: #7a8fa3; line-height: 1.6; margin-bottom: 25px; }
.learn-more-link { font-size: 11px; text-transform: uppercase; color: #007bff; font-weight: 700; text-decoration: none; }

/* ==========================================================================
   5. ABOUT & INTRO SECTIONS
   ========================================================================== */
.intro-section, .about-page-bg { background-color: var(--light-bg); }
.tall-img-wrapper { min-height: 400px; position: relative; }

.play-btn {
    position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
    width: 60px; height: 60px; cursor: pointer; transition: all 0.3s ease; z-index: 2;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3) !important; }

.feature-list i { font-size: 16px; margin-top: 2px; }
.avatar-overlap { margin-left: -15px; }
.avatar-group .avatar-overlap { margin-left: -12px; }

.progress { background-color: #e2e8f0; border-radius: 10px; overflow: hidden; }
.progress-bar { background-color: var(--primary-blue); border-radius: 10px; }

/* ==========================================================================
   6. PROFESSIONALS & PROCESS
   ========================================================================== */
.doc-img-wrapper {
    width: 100%; aspect-ratio: 1/1; border-radius: 50%;
    overflow: hidden; border: 8px solid var(--light-bg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); margin: 0 auto; position: relative;
    background: radial-gradient(circle, rgba(13,110,253,0.1) 0%, rgba(255,255,255,0) 70%);
}
.doc-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.hex-wrapper { position: relative; width: 180px; height: 200px; z-index: 2; }
.hexagon {
    width: 100%; height: 100%; background: white; padding: 6px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hexagon img {
    width: 100%; height: 100%; object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.step-number {
    position: absolute; top: 5px; left: 10px;
    width: 30px; height: 30px; font-size: 12px; font-weight: bold;
    z-index: 3; border: 2px solid white;
}
.step-connector {
    position: absolute; top: 40%; left: 10%; width: 80%; height: 50px;
    border-bottom: 2px dashed #cbd5e1; border-radius: 50%; z-index: 1;
}
.step-down { margin-top: 50px; }

/* ==========================================================================
   7. SECOND HERO & FORMS (Merged)
   ========================================================================== */
.hero-curve { border-bottom-left-radius: 40% 15%; border-bottom-right-radius: 40% 15%; }
.second-hero-rings {
    width: 500px; height: 500px; border-radius: 50%;
    border: 35px solid rgba(255, 255, 255, 0.03);
    position: absolute; top: 50%; right: 5%; transform: translateY(-50%); pointer-events: none;
}
.second-hero-rings::before {
    content: ''; position: absolute; width: 350px; height: 350px; border-radius: 50%;
    border: 35px solid rgba(255, 255, 255, 0.03); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.doctor-team-img { height: 115%; object-fit: contain; object-position: bottom; margin-right: 50px; }
.form-overlap-container { z-index: 10; margin-top: -70px; }

.form-light-bg {
    background-color: #eaf2fc !important; border: none; height: 45px;
    font-size: 13px; color: #333;
}
.form-light-bg::placeholder { color: #9cb1c9; font-weight: 400; }
.form-light-bg:focus { box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important; outline: none; }
textarea.form-light-bg { resize: vertical; height: auto; }

/* ==========================================================================
   8. TESTIMONIALS & BLOG
   ========================================================================== */
.speech-bubble {
    background: linear-gradient(180deg, #ffffff 0%, #eaf1fb 100%);
    border-radius: 30px; position: relative; border-bottom-left-radius: 0;
}
.speech-bubble::after {
    content: ''; position: absolute; bottom: -20px; left: 40px;
    border-width: 20px 20px 0 0; border-style: solid;
    border-color: #eaf1fb transparent transparent transparent;
}
.patient-avatar-wrapper {
    width: 70px; height: 70px; border-radius: 50%; border: 5px solid white;
    position: absolute; top: -35px; left: 40px; overflow: hidden;
}
.patient-avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.blog-card { transition: 0.3s ease; cursor: pointer; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(13,110,253,0.1) !important; }
.blog-img-wrapper img { transition: 0.5s ease; }
.blog-card:hover .blog-img-wrapper img { transform: scale(1.05); }

/* ==========================================================================
   9. FOOTER & CONTACT PAGE
   ========================================================================== */
.footer-overlap-card { background-color: var(--light-bg); margin-top: -100px; position: relative; z-index: 5; }
.footer-links li, .footer-contact li { margin-bottom: 15px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 13px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary-blue); padding-left: 5px; }
.footer-contact li { color: rgba(255, 255, 255, 0.9); font-size: 13px; display: flex; align-items: center; }

.page-banner { background-color: var(--dark-blue); height: 350px; margin-top: -30px; }
.map-container { margin-bottom: -50px; }
.map-container iframe { display: block; pointer-events: none; }

/* ==========================================================================
   10. MEDIA QUERIES (Fully Responsive)
   ========================================================================== */

/* Tablet & Desktop Layout fixes */
@media (min-width: 768px) {
    .border-end-md { border-right: 1px solid rgba(255,255,255,0.25); }
    .border-end-lg { border-right: 1px solid #eee; }
}

/* Tablet & Below */
@media (max-width: 991px) {
    .hero-section { border-bottom-left-radius: 20% 5%; border-bottom-right-radius: 20% 5%; }
    .hero-rings, .second-hero-rings, .step-connector { display: none !important; }
    
    .hero-watermark { font-size: 14vw; bottom: 20%; }
    .doctor-img { position: relative; bottom: -50px; left: 50%; transform: translateX(-50%); height: 500px; max-height: 500px; margin-top: 50px; }
    
    .overlap-features-container { margin-top: -50px !important; }
    .feature-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
    
    .step-down { margin-top: 0; }
    .border-end-lg { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px !important; }
    
    .hero-curve { border-bottom-left-radius: 20% 5%; border-bottom-right-radius: 20% 5%; }
    .form-overlap-container { margin-top: -40px; }
    .footer-overlap-card { margin-top: -30px; }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .play-btn { left: 50%; transform: translate(-50%, -50%); }
    .play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
    .tall-img-wrapper { min-height: 300px; }
    .doctor-team-img { margin-right: 0; width: 100%; height: auto; }
}



/* ==========================================================================
   1. GLOBAL & HEADER SECTION
   ========================================================================== */

.header-section {
    background-color: #f0f4f9; 
    text-align: center;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

/* Modern Pill-shaped Badge */
.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    color: #0ea5e9;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}
.section-label svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0a244d;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.section-title .text-blue {
    color: #0ea5e9;
}

.section-sub {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 28px 0;
    font-weight: 500;
}

/* ==========================================================================
   2. PREMIUM FORM SECTION
   ========================================================================== */

.contact-info-section {
    background-color: #f8fafc;
    padding: 40px 20px;
}

.modern-nav-pills {
    background: #f1f5f9;
    padding: 8px;
    border-radius: 16px;
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}
.modern-nav-pills .nav-link {
    border-radius: 12px;
    color: #64748b;
    font-weight: 600;
    padding: 14px 10px; 
    width: 25%; 
    text-align: center;
    border: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modern-nav-pills .nav-link.active {
    background-color: #ffffff !important; 
    color: #007bff !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.premium-form-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}

.modern-input {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 14px;
    color: #334155;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: none !important;
}
.modern-input::placeholder { color: #94a3b8; }
.modern-input:focus {
    background-color: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1) !important;
    outline: none;
}

.modern-input-group { display: flex; width: 100%; }
.modern-input-group .input-group-text {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #475569;
    font-weight: 600;
    padding: 0 20px;
    display: flex;
    align-items: center;
}
.modern-input-group .modern-input {
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding-left: 10px;
    flex: 1;
}
.modern-input-group:focus-within .input-group-text {
    border-color: #007bff;
    background-color: #e0f2fe;
    color: #007bff;
}
.modern-input-group:focus-within .modern-input { border-color: #007bff; }

.btn-gradient-lift {
    background: linear-gradient(135deg, #007bff, #0284c7);
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    padding: 16px;
    border: none;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
}
.btn-gradient-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(14, 165, 233, 0.3);
}

.contact-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}
.contact-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #e0f2fe;
}
.icon-box-modern {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #007bff;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.contact-card-modern:hover .icon-box-modern {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
}

/* ==========================================================================
   3. WHY CHOOSE SECTION
   ========================================================================== */

.why-choose-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: slideDown 0.8s ease-out;
}
.section-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.section-header p {
    font-size: 1.3rem; color: #333; font-weight: 500;
}

.features-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 25px;
    align-items: center;
}
.left-features, .right-features { display: flex; flex-direction: column; gap: 15px; }

.feature-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #0066FF 100%);
    border-radius: 20px;
    padding: 18px 22px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 82, 204, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
}
.feature-card:hover::before { left: 100%; }
.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 82, 204, 0.4);
    background: linear-gradient(135deg, #0066FF 0%, #0ea5e9 100%);
}

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.feature-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; transition: all 0.3s ease; }
.feature-card:hover .feature-icon { opacity: 1; transform: scale(1.2) rotate(10deg); }
.feature-card p { font-size: 0.85rem; line-height: 1.4; opacity: 0.95; }

/* Stagger Animations */
.left-features .feature-card:nth-child(1) { animation-delay: 0.2s; }
.left-features .feature-card:nth-child(2) { animation-delay: 0.4s; }
.left-features .feature-card:nth-child(3) { animation-delay: 0.6s; }
.right-features .feature-card:nth-child(1) { animation-delay: 0.8s; }
.right-features .feature-card:nth-child(2) { animation-delay: 1s; }
.right-features .feature-card:nth-child(3) { animation-delay: 1.2s; }

.doctor-container { display: flex; justify-content: center; align-items: center; }
.doctor-image {
    width: 280px; height: 380px;
    background: linear-gradient(135deg, #4FA3FF 0%, #0ea5e9 100%);
    border-radius: 30px;
    display: flex; align-items: center; justify-content: center;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 82, 204, 0.3);
    position: relative;
    overflow: hidden;
}
.doctor-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.doctor-image::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

/* ==========================================================================
   4. SURGERIES & CTA LAYOUT
   ========================================================================== */

.row-wrap {
    display: flex;
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.cta-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #0a2463 100%);
    border-radius: 18px;
    padding: 28px 24px;
    min-width: 220px;
    max-width: 240px;
    display: flex; flex-direction: column; justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; top: -30px; right: -30px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.cta-card::after {
    content: ''; position: absolute; bottom: -20px; left: -20px;
    width: 90px; height: 90px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.cta-tag {
    font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.6);
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px;
}
.cta-card h3 {
    font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.4;
    margin-bottom: 10px; position: relative; z-index: 1;
}
.cta-card p {
    font-size: 0.75rem; color: rgba(255,255,255,0.7); line-height: 1.5;
    margin-bottom: 22px; position: relative; z-index: 1;
}
.cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #0ea5e9;
    border: none; border-radius: 10px; padding: 10px 16px;
    font-size: 0.82rem; font-weight: 800; cursor: pointer; text-decoration: none;
    width: fit-content; position: relative; z-index: 1;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.cta-btn:hover {
    background: #f0f5ff; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.cta-btn svg {
    width: 15px; height: 15px; stroke: #0ea5e9; fill: none; stroke-width: 2.5;
    transition: transform 0.2s;
}
.cta-btn:hover svg { transform: translateX(3px); }

.surgeries-grid { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.surg-card {
    background: #fff; border: 1.5px solid #e4eaf5; border-radius: 16px;
    padding: 22px 14px 18px; flex: 1; min-width: 180px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 10px; cursor: pointer;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}
.surg-card:hover {
    box-shadow: 0 8px 28px rgba(0,82,204,0.13);
    border-color: #0ea5e9; transform: translateY(-4px);
}
.surg-icon {
    width: 78px; height: 78px; border-radius: 16px; background: #eef3ff;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s, transform 0.3s;
}
.surg-card:hover .surg-icon { background: #0ea5e9; transform: rotate(-8deg) scale(1.08); }
.surg-icon svg {
    width: 60px; height: 60px; stroke: #0ea5e9; fill: none; stroke-width: 1.6;
    transition: stroke 0.3s;
}
.surg-icon i {
    font-size: 2.3rem;
    color: #0ea5e9;
    transition: color 0.3s;
}
.surg-card:hover .surg-icon svg { stroke: #fff; }
.surg-card:hover .surg-icon i { color: #fff; }
.surg-name { font-size: 0.9rem; font-weight: 700; color: #0a2463; }
.surg-tagline { font-size: 0.7rem; color: #7a8aaa; line-height: 1.4; }
.surg-hint {
    display: flex; align-items: center; gap: 4px; font-size: 0.68rem;
    color: #0ea5e9; font-weight: 600; opacity: 0.7; margin-top: auto;
    transition: opacity 0.2s;
}
.surg-card:hover .surg-hint { opacity: 1; }
.surg-hint svg { width: 12px; height: 12px; stroke: #0ea5e9; fill: none; stroke-width: 2.5; transition: transform 0.2s;}
.surg-card:hover .surg-hint svg { transform: translateX(3px); }

/* ==========================================================================
   5. POPUP OVERLAY
   ========================================================================== */

.popup-overlay {
    display: none; position: fixed; inset: 0; background: rgba(10,36,99,0.35);
    backdrop-filter: blur(3px); z-index: 999;
    align-items: center; justify-content: center; padding: 20px;
}
.popup-overlay.show { display: flex; }
.popup-box {
    background: #fff; border-radius: 20px; padding: 28px;
    max-width: 420px; width: 100%; box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,82,204,0.18);
    position: relative; animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.popup-close {
    position: absolute; top: 14px; right: 16px; background: #eef3ff;
    border: none; border-radius: 50%; width: 30px; height: 30px;
    color: #0ea5e9; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.popup-close:hover { background: #0ea5e9; color: #fff; }
.popup-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.popup-icon {
    width: 54px; height: 54px; border-radius: 14px; background: #0ea5e9;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.popup-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.7; }
.popup-icon i { color: #fff; font-size: 1.35rem; }
.popup-header h3 { font-size: 1.1rem; font-weight: 800; color: #0a2463; margin: 0; }
.popup-header p { font-size: 0.76rem; color: #7a8aaa; margin: 2px 0 0 0; }
.popup-desc { font-size: 0.83rem; color: #444; line-height: 1.6; margin-bottom: 12px; }
.popup-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; color: #0ea5e9;
    background: #eef3ff; border-radius: 6px; padding: 2px 9px; margin-bottom: 5px;
}
.popup-treatment { font-size: 0.81rem; color: #333; line-height: 1.55; margin-bottom: 14px; }
.popup-tip {
    background: linear-gradient(90deg,#eef3ff,#f5f8ff); border-left: 3px solid #0ea5e9;
    border-radius: 0 10px 10px 0; padding: 9px 12px; font-size: 0.78rem;
    color: #0a2463; line-height: 1.5; margin-bottom: 18px;
}
.book-btn {
    display: block; width: 100%; padding: 13px; background: #0ea5e9; color: #fff;
    border: none; border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.book-btn:hover { background: #0041a8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,82,204,0.32); }

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */
@keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@keyframes shine { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 20px 60px rgba(0, 82, 204, 0.3); } 50% { box-shadow: 0 20px 80px rgba(0, 82, 204, 0.5); } }
.pulse { animation: pulse 2s ease-in-out infinite; }


/* ==========================================================================
   7. FULLY RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1200px) {
    .features-container { grid-template-columns: 1fr; gap: 30px; }
    .left-features, .right-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    .doctor-image { width: 250px; height: 350px; }
}

@media (max-width: 768px) {
    /* Header & Titles */
    .section-title, .section-header h1 { font-size: 2.2rem; }
    .section-sub, .section-header p { font-size: 1rem; }
    
    /* Forms & Navigation */
    .modern-nav-pills { flex-wrap: wrap; flex-direction: column; }
    .modern-nav-pills .nav-link { width: 100%; padding: 12px; }
    .premium-form-card { padding: 25px 20px; }
    
    /* Why Choose Features */
    .feature-card { padding: 20px; }
    .doctor-image { width: 200px; height: 300px; margin: 20px auto; }
    
    /* Surgeries Layout */
    .row-wrap { flex-direction: column; padding: 10px; }
    .cta-card { max-width: 100%; width: 100%; margin-bottom: 15px; box-sizing: border-box; }
    .surgeries-grid { flex-direction: column; }
    .surg-card { width: 100%; min-width: unset; box-sizing: border-box; }
    
    /* Contact Cards */
    .contact-card-modern { flex-direction: column; text-align: center; }
}

/* Review Card & Speech Bubble Styling */
.review-card.speech-bubble {
    position: relative; /* Yeh bohot zaroori hai avatar ko set karne ke liye */
    background: linear-gradient(180deg, #ffffff 0%, #eaf1fb 100%);
    border-radius: 20px;
    border-bottom-left-radius: 0;
    margin-top: 40px !important; /* Avatar ke liye upar space chhodne ke liye */
    padding-top: 45px !important; /* Text ko avatar ke niche push karne ke liye */
}

/* Speech Bubble ka Tail (Niche ka point) */
.review-card.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 25px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: #eaf1fb transparent transparent transparent;
}

/* Gol (Circular) Patient Photo Styling */
.patient-avatar-wrapper-small {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff;
    position: absolute; /* Card ke upar overlap karne ke liye */
    top: -32px; /* Photo ko aadha bahar nikalne ke liye */
    left: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    background-color: #fff;
}

.patient-avatar-wrapper-small img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top;
}

/* Text Truncation if too long */
.review-card p {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Maximum 4 lines dikhayega */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


* --- Thin & Compact Feature Cards CSS --- */
    .features-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 40px; /* Center image aur cards ke beech ka gap */
        max-width: 1000px; /* Poore container ki width kam ki taaki boxes patle rahein */
        margin: 0 auto;
        align-items: center;
    }

    .left-features, .right-features {
        display: flex;
        flex-direction: column;
        gap: 12px; /* Boxes ke beech ka gap kam kiya */
    }

    .feature-card {
        background: linear-gradient(135deg, #0ea5e9 0%, #0066FF 100%);
        border-radius: 12px; /* Radius thoda kam kiya */
        padding: 12px 18px; /* PADDING KAM KI (Box patla karne ke liye) */
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 8px 20px rgba(0, 82, 204, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        max-width: 320px; /* Box ki maximum motai (width) fix kar di */
        margin: 0 auto; /* Center align rakhne ke liye */
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0, 82, 204, 0.3);
    }

    .feature-icon {
        font-size: 1.4rem; /* Icon ki size chhoti ki */
        margin-bottom: 6px;
        opacity: 0.8;
    }

    .feature-card h3 {
        font-size: 0.95rem; /* Heading thodi chhoti ki */
        font-weight: 700;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .feature-card p {
        font-size: 0.75rem; /* Text thoda chhota kiya */
        line-height: 1.4;
        margin: 0;
        opacity: 0.9;
    }

    /* Mobile Responsive - Column layout */
    @media (max-width: 991px) {
        .features-container {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .feature-card {
            max-width: 100%; /* Mobile par full width lega */
        }
    }
    /* Pagination dots ko proper jagah dene ke liye */
    .myDoctorSwiper {
        padding-bottom: 50px !important;
    }
    .swiper-pagination-bullet-active {
        background-color: #0ea5e9 !important; /* Blue color for active dot */
    }


  /* --- Compact Sizing for Surgeries Section --- */
  .row-wrap {
    display: flex;
    gap: 10px; /* Gap kam kiya */
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap; /* Mobile ke liye wrap */
  }

  /* Chota CTA Card */
  .cta-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #0a2463 100%);
    border-radius: 16px;
    padding: 20px 16px; /* Padding kam ki */
    min-width: 180px; /* Chota width */
    max-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }
  .cta-tag { font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
  .cta-card h3 { font-size: 0.95rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 8px; z-index: 1; }
  .cta-card p { font-size: 0.7rem; color: rgba(255,255,255,0.7); line-height: 1.4; margin-bottom: 16px; z-index: 1; }
  .cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: #0ea5e9; border-radius: 8px;
    padding: 8px 12px; font-size: 0.75rem; font-weight: 800;
    text-decoration: none; width: fit-content; z-index: 1;
  }
  .cta-btn svg { width: 13px; height: 13px; stroke: #0ea5e9; fill: none; stroke-width: 2.5; }

  /* Chote Surgery Cards */
  .surgeries-grid {
    display: flex;
    gap: 10px; /* Gap kam kiya */
    flex: 1;
    flex-wrap: wrap;
  }
  .surg-card {
    background: #fff;
    border: 1.5px solid #e4eaf5;
    border-radius: 14px; /* Radius thoda kam kiya */
    padding: 16px 10px 12px; /* Padding kam ki */
    flex: 1;
    min-width: 130px; /* Box aur chota ho jayega */
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 8px; cursor: pointer;
    transition: all 0.25s;
  }
  .surg-card:hover { box-shadow: 0 6px 20px rgba(0,82,204,0.1); border-color: #0ea5e9; transform: translateY(-3px); }
  
  /* Icon aur Text Sizes */
  .surg-icon {
    width: 78px; height: 78px; /* Size kam kiya */
    border-radius: 12px; background: #eef3ff;
    display: flex; align-items: center; justify-content: center;
  }
  .surg-icon svg { width: 64px; height: 64px; stroke: #0ea5e9; fill: none; stroke-width: 1.8; }
  .surg-name { font-size: 0.8rem; font-weight: 700; color: #0a2463; }
  .surg-tagline { font-size: 0.65rem; color: #7a8aaa; line-height: 1.3; }
  .surg-hint { display: flex; align-items: center; gap: 3px; font-size: 0.65rem; color: #0ea5e9; font-weight: 600; opacity: 0.7; margin-top: auto; }
  .surg-hint svg { width: 10px; height: 10px; stroke: #0ea5e9; fill: none; stroke-width: 2.5; }

  /* Mobile Reponsive */
  @media(max-width:768px){
    .cta-card { max-width: 100%; }
    .surg-card { min-width: calc(33.33% - 10px); } /* Mobile pe 3 cards ek line me set hone ki koshish karenge */
  }

  .footer-heading {
        position: relative;
        padding-bottom: 12px;
    }
    .footer-heading::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background-color: #0ea5e9;
        border-radius: 5px;
    }

    /* Links Hover Effect */
    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 13px;
        transition: all 0.3s ease;
        display: inline-block;
        padding-bottom: 10px;
    }
    .footer-links a:hover {
        color: #ffffff;
        transform: translateX(6px);
    }

    /* Modern Social Icons */
    .social-icon-modern {
        width: 38px;
        height: 38px;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 14px;
    }
    .social-icon-modern:hover {
        background-color: #0ea5e9;
        border-color: #0ea5e9;
        transform: translateY(-4px);
        color: #fff;
    }

    /* Contact Info Icons */
    .contact-icon-box {
        width: 42px;
        height: 42px;
        background-color: rgba(255, 255, 255, 0.1);
        color: #0ea5e9;
        font-size: 15px;
        transition: all 0.3s ease;
    }
    .contact-item:hover .contact-icon-box {
        background-color: #0ea5e9;
        color: #ffffff;
    }
