:root {
    --primary: #059669; /* Medical Green */
    --primary-dark: #047857;
    --secondary: #10b981;
    --dark: #0f172a;
    --light: #f0fdf4;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.90);
    --glass-card: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: #f1f5f9; color: #334155; overflow-x: hidden; line-height: 1.6; }

/* 1. Living Background */
.living-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; background: linear-gradient(120deg, #f0fdf4, #e0f2fe); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.6; animation: moveOrb 20s infinite alternate; }
.orb-1 { width: 400px; height: 400px; background: #86efac; top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: #7dd3fc; bottom: 10%; right: 10%; animation-delay: -5s; }
.orb-3 { width: 200px; height: 200px; background: #c4b5fd; top: 40%; left: 40%; animation-delay: -10s; }
@keyframes moveOrb { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }
.gradient-text { background: linear-gradient(135deg, var(--primary), #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bg-glass { background: rgba(255,255,255,0.4); backdrop-filter: blur(5px); }
.bg-dark { background: var(--dark); }
.bg-light { background: #f8fafc; }
.text-white { color: white; }
.text-gray { color: #94a3b8; }

/* Navigation */
.glass-nav { position: fixed; top: 0; width: 100%; z-index: 1000; background: var(--glass); backdrop-filter: blur(12px); padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

/* LOGO FIX */
.logo { display: flex; align-items: center; height: 80px; }
.logo-img { 
    height: 100%; 
    width: auto; 
    object-fit: contain; 
    mix-blend-mode: multiply; /* Blends white background */
}

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: 0.3s; font-size: 1rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn-nav { background: var(--primary); color: white; padding: 10px 22px; border-radius: 25px; border: none; cursor: pointer; font-weight: 600; transition: transform 0.2s; }
.btn-nav:hover { transform: scale(1.05); background: var(--primary-dark); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--dark); }

/* Hero Section */
.hero { padding-top: 150px; min-height: 100vh; display: flex; align-items: center; position: relative; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: #d1fae5; color: var(--primary-dark); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.15; margin-bottom: 20px; color: var(--dark); }
.hero-sub { font-size: 1.2rem; color: #475569; margin-bottom: 35px; }
.hero-btns { display: flex; gap: 15px; margin-bottom: 35px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 14px 30px; border-radius: 30px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; font-size: 1rem; }
.btn-primary { background: var(--primary); color: white; border: none; box-shadow: 0 5px 15px rgba(5,150,105,0.3); }
.btn-primary:hover { transform: translateY(-3px); }
.btn-secondary { background: rgba(255,255,255,0.8); color: var(--primary); border: 2px solid var(--primary); }
.upcoming-ticker { background: rgba(255,255,255,0.8); padding: 12px 18px; border-radius: 12px; display: inline-block; font-size: 0.95rem; border: 1px solid #bae6fd; color: #0369a1; backdrop-filter: blur(5px); }
.hero-visual img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); }

/* Qualifications & About */
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { width: 100%; border-radius: 25px; box-shadow: var(--shadow); }
.highlight { color: var(--primary); }

.mission-vision-box { background: white; padding: 25px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-left: 5px solid var(--primary); }
.mv-item { margin-bottom: 20px; }
.mv-item:last-child { margin-bottom: 0; }
.mv-item h4 { color: var(--primary-dark); display: flex; align-items: center; gap: 10px; margin-bottom: 5px; font-size: 1.1rem; }
.mv-item p { font-size: 0.95rem; color: #475569; }

.qual-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 25px 0; }
.qual-item { display: flex; gap: 12px; font-size: 1rem; align-items: flex-start; color: #334155; }
.qual-item i { color: var(--primary); width: 20px; flex-shrink: 0; margin-top: 4px; }
.link-doc { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; text-decoration: none; margin-top: 20px; }

/* Services Grid */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}
.large-card { grid-column: span 1; }
@media (min-width: 992px) { .large-card { grid-column: span 2; } }

.service-card { background: var(--glass-card); padding: 30px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: transform 0.3s; border: 1px solid white; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); border-color: var(--primary); background: white; }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; }
.card-header h3 { color: var(--primary-dark); font-size: 1.25rem; font-weight: 700; }
.s-icon { color: var(--dark); width: 24px; height: 24px; }
.card-body p { margin-bottom: 15px; font-size: 0.95rem; color: #475569; }
.highlight-text { font-weight: 700; color: var(--primary); background: #f0fdf4; padding: 8px; border-radius: 8px; display: inline-block; margin-bottom: 15px; }
.detailed-list, .simple-list { list-style: none; padding: 0; margin-bottom: 20px; }
.detailed-list li, .simple-list li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 0.95rem; }
.detailed-list li::before, .simple-list li::before { content: "•"; color: var(--primary); position: absolute; left: 0; font-size: 1.2rem; line-height: 1; top: -2px; }
.btn-sm { background: var(--primary); color: white; border: none; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; font-weight: 600; margin-top: auto; align-self: flex-start; }
.btn-text { background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer; margin-top: auto; align-self: flex-start; display: flex; align-items: center; gap: 5px; }

/* Knowledge & FAQ */
.knowledge-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; margin-top: 30px; flex-wrap: wrap; }
.k-tab { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 10px 25px; border-radius: 25px; cursor: pointer; font-weight: 700; font-size: 1rem; transition: 0.3s; }
.k-tab.active, .k-tab:hover { background: var(--primary); color: white; }

.knowledge-grid-wrapper { display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.knowledge-grid-wrapper.active { display: grid; }

.long-read-card { grid-column: 1 / -1; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.long-read-card h3 { color: var(--primary-dark); font-size: 1.5rem; margin-bottom: 20px; }
.read-text { font-size: 1.05rem; line-height: 1.8; color: #334155; }

.article-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-left: 4px solid var(--primary); }
.art-badge { background: #e0f2fe; color: #0284c7; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 10px; }
.art-author { font-size: 0.85rem; color: #94a3b8; font-style: italic; margin-bottom: 10px; }
.article-card h4 { color: var(--dark); font-size: 1.15rem; margin-bottom: 10px; }

.k-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.k-card h3 { color: var(--dark); margin-bottom: 10px; }
.k-icon { background: #f0fdf4; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary); margin-bottom: 20px; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.accordion-wrapper { display: flex; flex-direction: column; gap: 15px; }
.accordion-item { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 15px; }
.accordion-header { padding: 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.9); transition: background 0.3s; }
.accordion-header:hover { background: #f8fafc; }
.accordion-header h4 { margin: 0; color: var(--dark); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.acc-icon { color: #94a3b8; transition: transform 0.3s; }
.accordion-item.active .acc-icon { transform: rotate(180deg); }
.accordion-item.active .accordion-header h4 { color: var(--primary); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; background: #f1f5f9; color: #475569; }
.accordion-item.active .accordion-body { padding: 20px; max-height: 300px; }

/* Booking & Payment */
.booking-wrapper { display: flex; gap: 60px; flex-wrap: wrap; }
.form-side { flex: 2; min-width: 320px; }
.qr-side { flex: 1; min-width: 280px; text-align: center; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: #cbd5e1; font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.input-group input, .input-group select { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid #334155; background: #1e293b; color: white; font-size: 1rem; }
.full-width { width: 100%; font-size: 1.1rem; }
.payment-section-box { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); }
.payment-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.payment-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); }
.upload-container { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.upload-container.hidden { display: none; }
.file-input { margin-top: 10px; color: #cbd5e1; width: 100%; }
.status-msg { margin-top: 15px; font-weight: bold; font-size: 1rem; }
.qr-card { background: white; padding: 25px; border-radius: 20px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.qr-code-img { width: 100%; max-width: 220px; margin-bottom: 10px; }
.contact-info { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.c-item { display: flex; gap: 12px; align-items: center; color: #e2e8f0; font-size: 1rem; }
.c-item i { color: var(--primary); }
.c-item a { color: #e2e8f0; text-decoration: none; }

/* Footer */
footer { background: #0f172a; color: white; padding: 40px 0; margin-top: auto; border-top: 1px solid #1e293b; text-align: center; }
.powered-by strong { color: var(--white); }

/* Chat */
.chat-widget { position: fixed; bottom: 100px; right: 30px; width: 340px; background: white; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); display: none; overflow: hidden; z-index: 2000; }
.chat-widget.active { display: flex; flex-direction: column; }
.chat-header { background: var(--primary); padding: 18px; color: white; display: flex; justify-content: space-between; align-items: center; }
.chat-body { height: 320px; padding: 20px; overflow-y: auto; background: #f1f5f9; display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; max-width: 85%; }
.msg.bot { background: white; border: 1px solid #e2e8f0; }
.msg.user { background: var(--primary); color: white; margin-left: auto; }
.chat-input { padding: 15px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; background: white; }
.chat-input input { flex: 1; padding: 10px 15px; border-radius: 25px; border: 1px solid #cbd5e1; outline: none; }
.chat-input button { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-toggle { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 25px rgba(5,150,105,0.4); z-index: 1999; }

/* Animations */
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.fade-in-right { animation: fadeInRight 0.8s ease-out forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* --- RESPONSIVE & MOBILE OPTIMIZATIONS (FIXED) --- */
@media (max-width: 900px) {
    .hero-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px; 
    }
    
    /* FIX: Show Hero Image and Center it on Mobile */
    .hero-visual { 
        display: block !important; 
        width: 100%; 
        margin: 0 auto; 
    }
    .hero-visual img { 
        max-width: 90%; 
        margin: 0 auto; 
        display: block; 
    }

    .about-wrapper { 
        grid-template-columns: 1fr; 
    }
    /* FIX: Show About Image on Mobile */
    .about-img {
        display: block !important;
        margin: 0 auto 30px auto;
        max-width: 300px;
    }

    .booking-wrapper { flex-direction: column-reverse; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Tighten padding for mobile */
    .section-pad { padding: 50px 0; }
    
    /* Navbar Mobile Styles */
    .nav-links { display: none; position: absolute; top: 90px; left: 0; width: 100%; background: white; flex-direction: column; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    
    /* Hero Adjustments */
    .hero { padding-top: 120px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    
    /* Chat Widget Sizing */
    .chat-widget { width: 90%; right: 5%; bottom: 100px; }
    
    /* Knowledge Tabs Stacking */
    .knowledge-tabs { flex-direction: column; width: 100%; }
    .k-tab { width: 100%; text-align: center; }
    
    /* Form Sizing */
    .form-side { min-width: 100%; }
    .qr-side { min-width: 100%; }
    
    /* Long Read Padding */
    .long-read-card { padding: 25px; }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    .hero-text h1 { font-size: 2rem; }
    .service-card { padding: 20px; }
    .logo { height: 60px; }
}