/* ═══════════════════════════════════════════════════════════════
   TAAFE Specialized Clinics — Main Frontend Stylesheet
   ═══════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --primary:       #202c5e;
    --primary-light: #2d3f8f;
    --secondary:     #22a9e1;
    --secondary-dark:#0891b2;
    --dark:          #181f47;
    --text:          #1e293b;
    --muted:         #64748b;
    --border:        #e2e8f0;
    --bg:            #f8fafc;
    --white:         #ffffff;
    --gold:          #f59e0b;
    --success:       #16a34a;
    --danger:        #dc2626;
    --radius-sm:     8px;
    --radius:        14px;
    --radius-lg:     20px;
    --shadow-sm:     0 1px 4px rgba(0,0,0,.06);
    --shadow:        0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:     0 8px 40px rgba(0,0,0,.12);
    --transition:    all .25s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}

[dir="ltr"] body { font-family: 'Inter', 'Cairo', sans-serif; }

a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── HEADER / NAVBAR ────────────────────────────────────────── */
.site-header {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.navbar {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-logo {
    height: 48px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar-logo-placeholder {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--secondary), #0891b2);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}

.navbar-name {
    font-size: 14.5px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
}

.navbar-name span {
    display: block;
    font-size: 10.5px;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: auto;
    flex-wrap: nowrap;
}

[dir="ltr"] .navbar-nav { margin-right: 0; margin-left: auto; }

.nav-link {
    color: rgba(255,255,255,.8);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255,255,255,.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-lang {
    background: rgba(255,255,255,.1);
    color: white;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-lang:hover { background: rgba(255,255,255,.2); }

.btn-book-nav {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(34,169,225,.35);
    transition: var(--transition);
}

.btn-book-nav:hover { color: white; opacity: .9; transform: translateY(-1px); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    background: var(--primary-light);
    padding: 12px 0 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.mobile-nav.open { display: block; }

.mobile-nav .nav-link {
    display: block;
    padding: 10px 24px;
    border-radius: 0;
    font-size: 14.5px;
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, #0e5f7a 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-tag {
    display: inline-block;
    background: rgba(34,169,225,.2);
    border: 1px solid rgba(34,169,225,.4);
    color: var(--secondary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(26px, 5vw, 48px);
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-title span { color: var(--secondary); }

.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.7);
    max-width: 600px;
    margin: 0 auto 32px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(34,169,225,.35);
}

.btn-primary:hover { color: white; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,169,225,.4); }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,.4);
}

.btn-outline:hover { background: rgba(255,255,255,.1); color: white; border-color: white; }

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

.btn-white:hover { color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
}

.btn-whatsapp:hover { color: white; transform: translateY(-2px); }

.btn-phone {
    background: #f8fafc;
    color: var(--primary);
    border: 1.5px solid #cbd5e1;
    font-weight: 800;
}

.btn-phone:hover {
    background: #f1f5f9;
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── SECTION ─────────────────────────────────────────────────── */
.section { padding: 70px 0; }
.section-sm { padding: 50px 0; }
.section-bg { background: white; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: rgba(34,169,225,.1);
    color: var(--secondary-dark);
    border: 1px solid rgba(34,169,225,.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 15px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
}

/* ── SPECIALTY CARDS ─────────────────────────────────────────── */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.specialty-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.specialty-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
}

.specialty-name {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.4;
}

.specialty-count {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 4px;
}

/* ── DOCTOR CARDS ─────────────────────────────────────────────── */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.doctor-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.doctor-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.doctor-photo {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.doctor-photo-placeholder {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; font-weight: 900;
    flex-shrink: 0;
    border: 3px solid var(--border);
}

.doctor-name {
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.3;
}

.doctor-title {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.4;
}

.doctor-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doctor-fee {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--primary);
}

.doctor-fee span { font-size: 11px; color: var(--muted); font-weight: 600; display: block; }

.doctor-schedule-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 20px 14px;
}

.day-pill {
    background: rgba(34,169,225,.1);
    color: var(--secondary-dark);
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}

/* ── TODAY's DOCTORS ──────────────────────────────────────────── */
.today-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    padding: 60px 0;
}

.today-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.today-title {
    font-size: 22px;
    font-weight: 900;
    color: white;
}

.today-day-badge {
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.4);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}

.today-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.today-card:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.today-time {
    background: rgba(34,169,225,.25);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
}

.today-time .hour { font-size: 18px; font-weight: 900; color: white; display: block; }
.today-time .period { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 700; }

.today-info { flex: 1; }
.today-doctor-name { font-size: 14px; font-weight: 900; color: white; }
.today-doctor-title { font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 600; }
.today-specialty { font-size: 11px; margin-top: 3px; font-weight: 700; }

.today-fee {
    text-align: center;
    flex-shrink: 0;
}

.today-fee .fee-num { font-size: 15px; font-weight: 900; color: var(--gold); display: block; }
.today-fee .fee-label { font-size: 10px; color: rgba(255,255,255,.5); font-weight: 700; }

/* ── SERVICE CARDS ────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.service-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-item:hover { border-color: var(--secondary); box-shadow: var(--shadow); }
.service-name { font-size: 13.5px; font-weight: 700; flex: 1; }
.service-price {
    font-size: 13px; font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
    margin-right: 12px;
}

[dir="ltr"] .service-price { margin-right: 0; margin-left: 12px; }

/* ── ARTICLE CARDS ────────────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg);
}

.article-body { padding: 20px; flex: 1; }
.article-category { font-size: 11.5px; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.article-title { font-size: 15px; font-weight: 900; color: var(--text); line-height: 1.4; margin-bottom: 8px; }
.article-excerpt { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.6; }

.article-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

/* ── OFFER CARDS ──────────────────────────────────────────────── */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.offer-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.offer-img { width: 100%; height: 180px; object-fit: cover; }
.offer-body { padding: 20px; }
.offer-title { font-size: 16px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.offer-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; font-weight: 600; }
.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ── WHY US / FEATURES ────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(32,44,94,.08), rgba(34,169,225,.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
}

.feature-title { font-size: 15px; font-weight: 900; color: var(--primary); margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.6; }

/* ── CTA SECTION ──────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
    padding: 70px 0;
    text-align: center;
}

.cta-title { font-size: clamp(22px, 4vw, 36px); font-weight: 900; color: white; margin-bottom: 12px; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; font-weight: 600; }

/* ── CONTACT SECTION ──────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.contact-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(32,44,94,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-label { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.contact-value { font-size: 14px; font-weight: 800; color: var(--text); }
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--secondary); }

/* ── FORM STYLES ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--text);
    transition: var(--transition);
    direction: rtl;
}

[dir="ltr"] .form-control, [dir="ltr"] .form-select { direction: ltr; }

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(34,169,225,.12);
}

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

/* ── WHATSAPP FLOAT ───────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 24px;
    z-index: 500;
}

[dir="rtl"] .whatsapp-float { left: auto; right: 24px; }

.whatsapp-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-wa 2.5s infinite;
}

.whatsapp-btn:hover { transform: scale(1.1); color: white; }

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 32px rgba(37,211,102,.6); }
}

/* ── CHATBOT FLOAT ────────────────────────────────────────────── */
.chatbot-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 500;
}

[dir="rtl"] .chatbot-float { left: auto; right: 24px; }

.chatbot-toggle {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(32,44,94,.35);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.chatbot-toggle:hover { transform: scale(1.08); }

.chatbot-window {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 375px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 45px rgba(0,0,0,.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

[dir="rtl"] .chatbot-window { left: auto; right: 0; }

.chatbot-window.open { display: flex; }

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header .ch-icon { font-size: 22px; }
.chatbot-header .ch-name { font-size: 13.5px; font-weight: 900; color: white; }
.chatbot-header .ch-sub { font-size: 11px; color: rgba(255,255,255,.75); font-weight: 600; }
.ch-action-btn {
    background: rgba(255,255,255,.15);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}
.ch-action-btn:hover { background: rgba(255,255,255,.3); }
.chatbot-header .ch-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    max-width: 88%;
    line-height: 1.5;
}

.chat-msg.bot {
    background: white;
    border: 1px solid var(--border);
    align-self: flex-start;
    border-radius: 4px var(--radius) var(--radius) var(--radius);
}

[dir="ltr"] .chat-msg.bot { border-radius: var(--radius) 4px var(--radius) var(--radius); }

.chat-msg.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
    color: white;
    align-self: flex-end;
    border-radius: var(--radius) var(--radius) 4px var(--radius);
}

[dir="ltr"] .chat-msg.user { border-radius: var(--radius) var(--radius) var(--radius) 4px; }

/* In-Chat Booking Cards */
.chat-booking-card {
    background: #ffffff;
    border: 1.5px solid #10b981;
    border-radius: 12px;
    padding: 14px;
    margin: 4px 0;
    box-shadow: 0 4px 15px rgba(16,185,129,.12);
    align-self: stretch;
}
.cbc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.cbc-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
}
.cbc-ref {
    font-weight: 900;
    font-size: 13px;
    color: var(--primary);
    direction: ltr;
}
.cbc-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12.5px;
}
.cbc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cbc-label {
    color: #64748b;
    font-weight: 700;
    font-size: 11.5px;
}
.cbc-wa-btn {
    display: block;
    text-align: center;
    background: #25D366;
    color: white !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    transition: transform .2s, background .2s;
}
.cbc-wa-btn:hover {
    background: #1ebc59;
    transform: translateY(-1px);
}

/* In-Chat Form Card */
.chat-form-card {
    background: #ffffff;
    border: 1.5px solid var(--secondary);
    border-radius: 12px;
    padding: 14px;
    margin: 4px 0;
    box-shadow: 0 4px 18px rgba(13,148,136,.1);
    align-self: stretch;
}
.cfc-title {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}
.cfc-group {
    margin-bottom: 8px;
    text-align: right;
}
[dir="ltr"] .cfc-group { text-align: left; }
.cfc-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 3px;
}
.cfc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    font-size: 12px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
    outline: none;
}
.cfc-input:focus {
    border-color: var(--secondary);
    background: #ffffff;
}
.cfc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.cfc-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary), #0284c7);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    transition: opacity .2s;
}
.cfc-submit-btn:hover { opacity: .92; }

.chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: stretch;
}

.chat-btn {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    transition: var(--transition);
    color: var(--text);
}

[dir="ltr"] .chat-btn { text-align: left; }

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

/* Chatbot Input Box */
.chatbot-input-area {
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input-area input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    background: #f8fafc;
}

.chatbot-input-area input:focus {
    border-color: var(--secondary);
    background: #ffffff;
}

.chatbot-input-area button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #0284c7);
    border: none;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s, background .2s;
    flex-shrink: 0;
}

.chatbot-input-area button:hover {
    transform: scale(1.06);
}

.chatbot-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── BREADCRUMBS ──────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    flex-wrap: wrap;
    padding: 16px 0;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #cbd5e1; }
.breadcrumb .current { color: var(--primary); }

/* ── PAGE HEADER ──────────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 50px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
}

.page-header p { font-size: 15px; color: rgba(255,255,255,.7); font-weight: 600; }

/* ── DOCTOR PROFILE ───────────────────────────────────────────── */
.doctor-profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

.doctor-profile-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 1;
}

.doctor-profile-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 80px;
}

/* ── SCHEDULE TABLE ───────────────────────────────────────────── */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th, .schedule-table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

[dir="ltr"] .schedule-table th, [dir="ltr"] .schedule-table td { text-align: left; }

.schedule-table th {
    background: var(--bg);
    font-weight: 800;
    color: var(--primary);
    font-size: 13px;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: #fafbfc; }

.time-badge {
    display: inline-block;
    background: rgba(32,44,94,.08);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}

/* ── FAQ ACCORDION ────────────────────────────────────────────── */
.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.faq-question::after { content: '▼'; font-size: 11px; color: var(--secondary); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-question::after { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

.faq-answer p { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.7; }

/* ── GALLERY ──────────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

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

/* ── SEARCH/FILTER BAR ────────────────────────────────────────── */
.filter-bar {
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--border);
}

.filter-search {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    min-width: 200px;
}

.filter-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    min-width: 160px;
}

/* ── MAP EMBED ────────────────────────────────────────────────── */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.map-wrapper iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,.7);
}

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

.footer-brand-name { font-size: 18px; font-weight: 900; color: white; margin-bottom: 10px; }
.footer-brand-desc { font-size: 13px; font-weight: 600; line-height: 1.7; }

.footer-heading { font-size: 13px; font-weight: 900; color: white; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }

.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); }

.footer-contact-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; margin-bottom: 10px; font-weight: 600;
}

.footer-social {
    display: flex; gap: 10px; margin-top: 16px;
}

.social-link {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 17px;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover { background: var(--secondary); color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,.4);
    font-weight: 600;
}

/* ── BADGES & TAGS ────────────────────────────────────────────── */
.tag {
    display: inline-block;
    background: rgba(34,169,225,.1);
    color: var(--secondary-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

/* ── ALERTS ───────────────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
}

.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: var(--success); }
.alert-error   { background: #fee2e2; border: 1px solid #fecaca; color: var(--danger); }
.alert-info    { background: #dbeafe; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ── CARDS (generic) ──────────────────────────────────────────── */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-body { padding: 24px; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .doctor-profile-grid { grid-template-columns: 1fr; }
    .doctor-profile-photo, .doctor-profile-photo-placeholder { max-width: 280px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .hamburger { display: flex; }
    .btn-book-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .specialties-grid { grid-template-columns: repeat(2, 1fr); }
    .doctors-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .hero { padding: 60px 0 50px; }
    .chatbot-window { width: calc(100vw - 48px); }
}

@media (max-width: 480px) {
    .specialties-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { padding: 10px 20px; }
    .container { padding: 0 14px; }
}
