/*
Theme Name: MedCare Diagnostics
Theme URI: https://medcare-diagnostics.com
Author: MedCare Team
Author URI: https://medcare-diagnostics.com
Description: A professional, modern WordPress theme for medical centers and diagnostic facilities. Features doctors listing, test packages, patient portal, appointment booking, testimonials, and comprehensive medical center functionality. Fully responsive with clean medical-teal color scheme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medcare
Tags: medical, healthcare, diagnostic, doctor, hospital, clinic, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  --primary: #0F766E;
  --primary-light: #14B8A6;
  --primary-dark: #0D5D56;
  --primary-rgb: 15, 118, 110;
  --bg: #FAFBFC;
  --fg: #1e293b;
  --card-bg: #ffffff;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent-warm: #F59E0B;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-pink: #EC4899;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --emergency: #E11D48;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  /* Glassmorphism tokens */
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(16px) saturate(170%);
  --glass-blur-lg: blur(22px) saturate(180%);
  --glass-shadow: 0 8px 30px rgba(15, 118, 110, 0.10), 0 2px 8px rgba(0, 0, 0, 0.03);
  --brand-gradient: linear-gradient(135deg, #0F766E 0%, #14B8A6 45%, #06B6D4 100%);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 42rem at 12% 6%, rgba(20, 184, 166, 0.12), transparent 60%),
    radial-gradient(38rem 38rem at 88% 12%, rgba(59, 130, 246, 0.11), transparent 60%),
    radial-gradient(34rem 34rem at 80% 90%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(30rem 30rem at 6% 94%, rgba(245, 158, 11, 0.09), transparent 60%);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ========== UTILITY CLASSES ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.gradient-text { background: linear-gradient(135deg, #0F766E 0%, #14B8A6 50%, #0D9488 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-label { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.5rem; }
.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; color: var(--fg); }
.section-desc { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 3rem; line-height: 1.7; text-align: center; }
.section { padding: 5rem 0; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.5rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent-cyan) 100%); color: #fff; box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.42); transform: translateY(-1px); }
.btn-outline { background: rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--fg); border: 1.5px solid var(--glass-border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb), 0.08); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { background: #f8fffe; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* ========== CARDS ========== */
.card { background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--glass-shadow); transition: all 0.3s ease; }
.card:hover { box-shadow: 0 14px 40px rgba(15, 118, 110, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04); border-color: rgba(255, 255, 255, 0.85); }
.card-service { height: 100%; }
.card-service:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.1); }
.card-service:hover .service-icon { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.08); }
.service-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; transition: all 0.3s ease; }

/* ========== EMERGENCY TOP BAR ========== */
.emergency-bar { background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 40%, var(--accent-cyan) 100%); color: #fff; font-size: 0.82rem; padding: 0.4rem 0; }
.emergency-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.emergency-bar a { color: #fff; text-decoration: none; font-weight: 500; }
.emergency-bar a:hover { text-decoration: underline; }
.emergency-bar-left { display: flex; align-items: center; gap: 1.5rem; }
.emergency-bar-left span { opacity: 0.85; display: flex; align-items: center; gap: 0.3rem; }
.emergency-pulse { animation: emPulse 2s ease-in-out infinite; }
@keyframes emPulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* ========== HEADER ========== */
.site-header { background: rgba(255, 255, 255, 0.68); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid rgba(255, 255, 255, 0.45); position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s, background 0.3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 118, 110, 0.10); background: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(15, 118, 110, 0.08); }
.main-nav a:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3); }
.logo-icon svg { width: 1.4rem; height: 1.4rem; }
.logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--fg); }
.logo-text span { color: var(--primary); }
.logo-sub { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: -2px; }
.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.main-nav a { padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); border-radius: 0.5rem; transition: all 0.2s; }
.main-nav a:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.05); }
.header-right { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.header-phone-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; background: rgba(var(--primary-rgb), 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.mobile-toggle { display: none; padding: 0.5rem; border-radius: 0.5rem; }
.mobile-toggle:hover { background: rgba(var(--primary-rgb), 0.05); }
.mobile-toggle svg { width: 1.25rem; height: 1.25rem; }
.mobile-menu { position: fixed; top: 0; right: 0; width: 70%; max-width: 22rem; height: 100vh; height: 100dvh; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg); border-left: 1px solid rgba(255, 255, 255, 0.5); box-shadow: -8px 0 40px rgba(15, 118, 110, 0.14); padding: 4.5rem 1.25rem 1.5rem; z-index: 210; overflow-y: auto; visibility: hidden; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0.32s ease; }
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a { display: block; padding: 0.75rem 0.75rem; font-size: 0.95rem; font-weight: 500; color: var(--muted); border-radius: 0.5rem; margin-bottom: 0.2rem; }
.mobile-menu a:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.05); }
.mobile-menu-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; color: var(--fg); transition: background 0.2s ease, color 0.2s ease; }
.mobile-menu-close:hover { background: rgba(var(--primary-rgb), 0.06); color: var(--primary); }
.mobile-menu-close svg { width: 1.35rem; height: 1.35rem; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.35); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 200; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* ========== HERO SLIDER ========== */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(20, 184, 166, 0.10) 0%, rgba(59, 130, 246, 0.08) 35%, rgba(139, 92, 246, 0.06) 68%, rgba(245, 158, 11, 0.07) 100%); }
.hero::before { content: ''; position: absolute; top: -12rem; right: -10rem; width: 32rem; height: 32rem; border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 65%); filter: blur(3rem); pointer-events: none; z-index: 0; }
.hero::after { content: ''; position: absolute; bottom: -12rem; left: -10rem; width: 30rem; height: 30rem; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%); filter: blur(3rem); pointer-events: none; z-index: 0; }
.hero-slider { position: relative; z-index: 1; }
.hero-slide { display: none; padding: 3.5rem 0; }
.hero-slide.active { display: block; animation: heroFade 0.6s ease both; }
@keyframes heroFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-content { min-width: 0; }
.hero-media { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; min-height: 74vh; }

/* Slider controls */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; color: var(--primary); z-index: 6; transition: all 0.2s ease; }
.hero-arrow:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.05); }
.hero-arrow svg { width: 1.3rem; height: 1.3rem; }
.hero-arrow-prev { left: 1.25rem; }
.hero-arrow-next { right: 1.25rem; }
.hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 6; }
.hero-dot { width: 0.6rem; height: 0.6rem; border-radius: 9999px; background: rgba(var(--primary-rgb), 0.25); transition: all 0.25s ease; }
.hero-dot:hover { background: rgba(var(--primary-rgb), 0.5); }
.hero-dot.active { width: 1.6rem; background: var(--primary); }
.hero-image-placeholder { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); display: flex; align-items: center; justify-content: center; min-height: 360px; }
.hero-image-placeholder p { color: var(--primary); font-weight: 600; font-size: 1rem; text-align: center; padding: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 9999px; background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.14)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.55); color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.08); }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; max-width: 32rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hero-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 0.3rem; }
.hero-stat-value svg { width: 1rem; height: 1rem; color: var(--primary); }
.hero-stat-label { font-size: 0.75rem; color: var(--muted); }
.hero-image { width: 100%; max-width: 32rem; margin: 0 auto; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: auto; display: block; }
.hero-float { position: absolute; background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: 0.75rem; border: 1px solid var(--glass-border); padding: 0.6rem 0.8rem; box-shadow: var(--glass-shadow); display: flex; align-items: center; gap: 0.6rem; animation: floatY 3s ease-in-out infinite; z-index: 3; }
.hero-float-1 { top: 2rem; right: 1rem; animation-delay: 0s; }
.hero-float-2 { bottom: 2rem; left: 0; animation-delay: 0.5s; }
.hero-float-icon { width: 2.2rem; height: 2.2rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-float-title { font-size: 0.75rem; font-weight: 600; }
.hero-float-desc { font-size: 0.625rem; color: var(--muted); }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ========== SERVICES ========== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card-service h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.card-service p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ========== DOCTORS ========== */
.doctors-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.dept-btn { padding: 0.4rem 0.9rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; transition: all 0.25s; }
.dept-btn:hover { border-color: var(--primary); }
.dept-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3); }
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.doctor-card { transition: all 0.3s ease; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.1); }
.doctor-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.doctor-avatar { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.doctor-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.1rem; }
.doctor-specialty { font-size: 0.82rem; color: var(--primary); font-weight: 500; }
.doctor-rating { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.25rem; }
.doctor-rating .stars { color: #F59E0B; font-size: 0.8rem; }
.doctor-rating .count { font-size: 0.75rem; color: var(--muted); }
.doctor-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.doctor-meta-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); }
.doctor-meta-item svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }
.doctor-meta-item.next-slot { color: var(--primary); font-weight: 500; }
.doctor-actions { display: flex; gap: 0.5rem; }
.doctor-actions .btn { flex: 1; justify-content: center; }
.doctor-actions .btn-icon { flex: 0 0 auto; width: 2.2rem; padding: 0; }
.doctors-search { max-width: 32rem; margin: 0 auto 1.5rem; position: relative; }
.doctors-search input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.75rem; border: 1px solid var(--border); border-radius: 9999px; font-size: 0.9rem; background: #fff; outline: none; transition: all 0.2s; }
.doctors-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.doctors-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--muted); }
.doctors-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.doctors-empty[hidden] { display: none; }
.doctors-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.doctors-empty p { font-size: 0.95rem; max-width: 26rem; margin: 0 auto; }

/* Compact hero variant (Doctors page) */
.hero-compact .hero-slide { padding: 2.5rem 0; }
.hero-compact .hero-grid { min-height: 56vh; }

/* ========== TESTS & REPORTS ========== */
.tabs-toggle { display: inline-flex; background: #f1f5f9; border-radius: 9999px; padding: 0.2rem; gap: 0.2rem; margin-bottom: 2.5rem; }
.tab-btn { padding: 0.6rem 1.2rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: transparent; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem; }
.tab-btn.active { background: #fff; color: var(--fg); box-shadow: var(--shadow); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tests-search { max-width: 28rem; margin: 0 auto 1rem; position: relative; }
.tests-search input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.5rem; border: 1px solid var(--border); border-radius: 9999px; font-size: 0.875rem; background: #fff; outline: none; transition: all 0.2s; }
.tests-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.tests-search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted); }
.tests-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 2rem; }
.cat-btn { padding: 0.3rem 0.7rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 500; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.cat-btn:hover { border-color: var(--primary); }
.cat-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tests-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.test-card { border: 2px solid transparent; transition: all 0.3s; }
.test-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.08); }
.test-card .popular { background: #FEF3C7; color: #92400E; font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 9999px; border: 1px solid #FDE68A; }
.test-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.8rem; }
.test-tag { font-size: 0.65rem; font-weight: 500; padding: 0.1rem 0.45rem; border-radius: 9999px; background: rgba(var(--primary-rgb), 0.06); color: var(--primary); }
.test-more { font-size: 0.65rem; background: #f1f5f9; color: var(--muted); padding: 0.1rem 0.45rem; border-radius: 9999px; }
.test-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.test-price { font-size: 1.15rem; font-weight: 700; }
.test-time { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.25rem; }

/* Reports table */
.reports-card { overflow: hidden; }
.reports-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.reports-header h3 { font-size: 1rem; font-weight: 600; }
.reports-header p { font-size: 0.85rem; color: var(--muted); }
.report-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.report-row:last-child { border-bottom: none; }
.report-row:hover { background: rgba(var(--primary-rgb), 0.02); }
.report-left { display: flex; align-items: center; gap: 1rem; }
.report-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(var(--primary-rgb), 0.08); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.report-icon svg { width: 1.2rem; height: 1.2rem; }
.report-name { font-size: 0.875rem; font-weight: 500; }
.report-date { font-size: 0.75rem; color: var(--muted); }
.report-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.badge { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.25rem; }
.badge-ready { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-processing { background: #e0f2fe; color: #075985; }

/* ========== PATIENT PORTAL ========== */
.portal-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.portal-feature { height: 100%; }
.portal-feature .service-icon { width: 2.7rem; height: 2.7rem; font-size: 1.2rem; }
.portal-feature h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.portal-feature p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.portal-login-card { max-width: 32rem; margin: 0 auto; }
.portal-login-card.dashed { border: 2px dashed rgba(var(--primary-rgb), 0.2); background: rgba(var(--primary-rgb), 0.015); }
.portal-login-inner { text-align: center; padding: 2rem; }
.portal-login-icon { width: 4rem; height: 4rem; border-radius: 1rem; background: rgba(var(--primary-rgb), 0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); }
.portal-login-inner h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.portal-login-inner > p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 24rem; margin-left: auto; margin-right: auto; }
.portal-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.portal-trust { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; font-size: 0.75rem; color: var(--muted); }
.portal-trust span { display: flex; align-items: center; gap: 0.25rem; }
.portal-trust svg { width: 0.8rem; height: 0.8rem; color: var(--primary); }

/* Profile card */
.profile-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.profile-avatar { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background: rgba(var(--primary-rgb), 0.08); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.profile-info { flex: 1; min-width: 0; }
.profile-info h3 { font-size: 1.1rem; font-weight: 700; }
.profile-info p { font-size: 0.85rem; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.profile-stat { text-align: center; padding: 0.8rem; border-radius: 0.75rem; background: #f8fafc; }
.profile-stat-val { font-size: 1.5rem; font-weight: 700; }
.profile-stat-label { font-size: 0.72rem; color: var(--muted); }
.quick-actions { margin-bottom: 1.2rem; }
.quick-action { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-radius: 0.75rem; background: #fff; border: 1px solid var(--border); margin-bottom: 0.5rem; font-size: 0.875rem; text-align: left; transition: all 0.2s; }
.quick-action:hover { border-color: rgba(var(--primary-rgb), 0.3); background: rgba(var(--primary-rgb), 0.01); }
.quick-action svg { width: 1rem; height: 1rem; color: var(--muted); transition: all 0.2s; }
.quick-action:hover svg { color: var(--primary); transform: translateX(2px); }

/* ========== ABOUT ========== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 5rem; }
.stat-card { text-align: center; padding: 1.5rem; border-radius: 1rem; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(15, 118, 110, 0.14); }
.stat-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; background: rgba(var(--primary-rgb), 0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.8rem; color: var(--primary); }
.stat-icon svg { width: 1.5rem; height: 1.5rem; }
.stat-value { font-size: 2rem; font-weight: 700; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.stat-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 5rem; }
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; font-size: 0.95rem; }
.accreditations { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 2rem; }
.accred-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.7rem; border-radius: 0.75rem; background: rgba(var(--primary-rgb), 0.04); }
.accred-item svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; margin-top: 0.1rem; }
.accred-name { font-size: 0.78rem; font-weight: 600; }
.accred-desc { font-size: 0.65rem; color: var(--muted); }
.why-list { margin-bottom: 1.5rem; }
.why-item { display: flex; gap: 1rem; padding: 1rem; border-radius: 0.75rem; border: 1px solid var(--border); margin-bottom: 0.6rem; transition: all 0.2s; }
.why-item:hover { box-shadow: var(--shadow); border-color: rgba(var(--primary-rgb), 0.15); }
.why-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; background: #dcfce7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #16a34a; }
.why-icon svg { width: 1.2rem; height: 1.2rem; }
.why-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.why-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.hours-card { padding: 1.2rem; border-radius: 0.75rem; background: rgba(var(--primary-rgb), 0.04); border: 1px solid rgba(var(--primary-rgb), 0.1); }
.hours-title { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.8rem; color: var(--primary); }
.hours-title svg { width: 1rem; height: 1rem; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.3rem 0; }
.hours-row .label { color: var(--muted); }
.hours-row .value { font-weight: 500; }
.hours-row .emergency { color: var(--emergency); font-weight: 600; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial-card { cursor: pointer; transition: all 0.3s; }
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.testimonial-card.expanded { box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.12); border-color: rgba(var(--primary-rgb), 0.2); }
.testi-top { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.6rem; }
.testi-avatar { width: 2.7rem; height: 2.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.testi-name { font-size: 0.9rem; font-weight: 600; }
.testi-role { font-size: 0.78rem; color: var(--muted); }
.testi-date { font-size: 0.68rem; color: var(--muted); margin-top: 0.1rem; }
.testi-stars { display: flex; gap: 0.1rem; margin-bottom: 0.6rem; }
.testi-stars .filled { color: #F59E0B; }
.testi-stars .empty { color: #e2e8f0; }
.testi-quote { overflow: hidden; max-height: 0; opacity: 0; transition: all 0.3s ease; }
.testi-card.expanded .testi-quote { max-height: 300px; opacity: 1; margin-bottom: 0.5rem; }
.testi-quote-inner { border-left: 2px solid rgba(var(--primary-rgb), 0.25); padding-left: 1rem; position: relative; }
.testi-quote-mark { position: absolute; left: -0.7rem; top: -0.2rem; color: var(--primary); }
.testi-quote-mark svg { width: 1.2rem; height: 1.2rem; }
.testi-text { font-size: 0.85rem; color: var(--muted); line-height: 1.7; font-style: italic; }
.testi-toggle { text-align: center; padding-top: 0.4rem; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 0.2rem; }
.testi-card.expanded .testi-toggle { color: var(--primary); }
.testi-toggle svg { width: 1rem; height: 1rem; transition: transform 0.3s; }
.testi-card.expanded .testi-toggle svg { transform: rotate(180deg); }

/* ========== APPOINTMENT ========== */
.appointment-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary)); padding: 5rem 0; position: relative; overflow: hidden; }
.appointment-section::before { content: ''; position: absolute; top: 0; left: 25%; width: 24rem; height: 24rem; border-radius: 50%; background: rgba(255,255,255,0.05); filter: blur(3rem); }
.appointment-section * { position: relative; z-index: 1; }
.appointment-section .section-label { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); padding: 0.3rem 0.7rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.8rem; }
.appointment-section .section-title { color: #fff; }
.appointment-section .section-desc { color: rgba(255,255,255,0.6); }
.appt-form { max-width: 48rem; margin: 0 auto; }
.appt-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: 1rem; padding: 2rem; box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.appt-label { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.5rem; }
.appt-label svg { width: 0.85rem; height: 0.85rem; }
.dept-select { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.dept-select-btn { padding: 0.35rem 0.7rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s; }
.dept-select-btn:hover { background: rgba(255,255,255,0.15); }
.dept-select-btn.active { background: #fff; color: var(--primary); border-color: #fff; }
.time-slots { display: flex; flex-wrap: wrap; gap: 0.35rem; max-height: 2.8rem; overflow-y: auto; }
.time-slot { padding: 0.25rem 0.55rem; border-radius: 9999px; font-size: 0.68rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s; }
.time-slot:hover, .time-slot.active { background: #fff; color: var(--primary); border-color: #fff; }
.appt-input { width: 100%; padding: 0.7rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; font-size: 0.875rem; outline: none; transition: all 0.2s; }
.appt-input::placeholder { color: rgba(255,255,255,0.4); }
.appt-input:focus { border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
.appt-select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%); background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
.appt-select option, .appt-select optgroup { color: #111; background: #fff; }
.appt-hint { margin: 0.4rem 0 0; font-size: 0.75rem; color: rgba(252, 211, 77, 0.95); }
.appt-textarea { width: 100%; padding: 0.7rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; font-size: 0.875rem; outline: none; resize: none; transition: all 0.2s; font-family: var(--font); }
.appt-textarea::placeholder { color: rgba(255,255,255,0.4); }
.appt-textarea:focus { border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
.appt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.appt-remember { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; }
.appt-remember label { color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.appt-remember a { color: var(--primary-light); font-weight: 500; }
.appt-remember a:hover { text-decoration: underline; }
.appt-success { text-align: center; padding: 2.5rem; }
.appt-success-icon { width: 4rem; height: 4rem; color: #4ade80; margin: 0 auto 1rem; }
.appt-success h3 { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.appt-success p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 24rem; margin: 0 auto 1.5rem; }
.appt-success .highlight { color: #fff; font-weight: 600; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.contact-cards { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-card-inner { display: flex; align-items: flex-start; gap: 0.8rem; }
.contact-card-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card-icon svg { width: 1.2rem; height: 1.2rem; }
.contact-card-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.contact-card-value { font-size: 0.875rem; font-weight: 600; }
.contact-card-value a:hover { text-decoration: underline; }
.contact-card-value.emergency-text { color: var(--emergency); }
.contact-map { min-height: 22rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), rgba(var(--primary-rgb), 0.01), rgba(var(--primary-rgb), 0.06)); border-radius: 0.75rem; text-align: center; padding: 2rem; }
.map-icon { width: 4rem; height: 4rem; border-radius: 1rem; background: rgba(var(--primary-rgb), 0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); }
.map-icon svg { width: 2rem; height: 2rem; }
.map-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.map-address { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.2rem; }

/* ========== FAQ ACCORDION ========== */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); overflow: hidden; transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.faq-item.open { border-color: rgba(var(--primary-rgb), 0.3); box-shadow: var(--shadow-md); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-size: 1rem; font-weight: 600; color: var(--fg); text-align: left; transition: color 0.2s ease; }
.faq-question:hover { color: var(--primary); }
.faq-chevron { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 1.25rem 1.2rem; color: var(--muted); font-size: 0.92rem; line-height: 1.75; }
.faq-answer-inner p { margin-bottom: 0.6rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ========== FOOTER ========== */
.site-footer { background: var(--fg); color: rgba(255,255,255,0.7); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo-icon { width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3); }
.footer-logo-icon svg { width: 1.2rem; height: 1.2rem; color: #fff; }
.footer-logo-text { font-weight: 800; font-size: 1.1rem; color: #fff; }
.footer-logo-text span { color: var(--primary-light); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.2rem; max-width: 20rem; }
.footer-contact a { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; margin-bottom: 0.4rem; transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 1rem; height: 1rem; }
.footer-contact .emergency-link { color: #fb7185; font-weight: 500; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.4); padding-bottom: 2rem; }
.footer-hours { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.footer-hours .em { color: #fb7185; font-weight: 600; }

/* ========== VIBRANT SECTION ORBS (color for the glass to refract) ========== */
.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section::before, .section::after { content: ''; position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.55; pointer-events: none; z-index: 0; }

#services::before { width: 26rem; height: 26rem; top: -7rem; left: -7rem; background: rgba(20, 184, 166, 0.40); }
#services::after  { width: 22rem; height: 22rem; bottom: -8rem; right: -6rem; background: rgba(59, 130, 246, 0.30); }

#tests::before { width: 26rem; height: 26rem; top: -8rem; right: -7rem; background: rgba(139, 92, 246, 0.32); }
#tests::after  { width: 22rem; height: 22rem; bottom: -8rem; left: -6rem; background: rgba(6, 182, 212, 0.30); }

#patient-portal::before { width: 26rem; height: 26rem; top: -7rem; left: -6rem; background: rgba(59, 130, 246, 0.32); }
#patient-portal::after  { width: 22rem; height: 22rem; bottom: -8rem; right: -6rem; background: rgba(16, 185, 129, 0.30); }

#about::before { width: 26rem; height: 26rem; top: -8rem; right: -7rem; background: rgba(245, 158, 11, 0.26); }
#about::after  { width: 22rem; height: 22rem; bottom: -8rem; left: -6rem; background: rgba(20, 184, 166, 0.30); }

#testimonials::before { width: 26rem; height: 26rem; top: -7rem; left: -7rem; background: rgba(236, 72, 153, 0.26); }
#testimonials::after  { width: 22rem; height: 22rem; bottom: -8rem; right: -6rem; background: rgba(139, 92, 246, 0.28); }

#faq::before { width: 26rem; height: 26rem; top: -8rem; right: -7rem; background: rgba(6, 182, 212, 0.32); }
#faq::after  { width: 22rem; height: 22rem; bottom: -8rem; left: -6rem; background: rgba(20, 184, 166, 0.30); }

#doctors-list::before { width: 26rem; height: 26rem; top: -7rem; left: -7rem; background: rgba(20, 184, 166, 0.36); }
#doctors-list::after  { width: 22rem; height: 22rem; bottom: -8rem; right: -6rem; background: rgba(139, 92, 246, 0.28); }

#contact::before { width: 26rem; height: 26rem; top: -8rem; right: -7rem; background: rgba(59, 130, 246, 0.30); }
#contact::after  { width: 22rem; height: 22rem; bottom: -8rem; left: -6rem; background: rgba(236, 72, 153, 0.24); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero p { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-items: center; }
  .hero-image { max-width: 28rem; }
  .hero-float { display: none; }
  .hero-arrow { display: none; }
  .hero-media { order: -1; margin-bottom: 1.5rem; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .tests-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 2.5rem 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: 1fr; }
  .tests-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-features { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .appt-form-grid { grid-template-columns: 1fr; }
  .main-nav, .header-phone, .header-right .btn { display: none; }
  .mobile-toggle { display: block; }
  /* Address wraps to its own line in the top bar on phones — hide it there only. */
  .emergency-bar-address { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .portal-features { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; gap: 0.6rem; }
  .accreditations { grid-template-columns: 1fr; }
  .doctors-filters { gap: 0.3rem; }
  .dept-btn { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
}