/* ==========================================================================
   DR. FAYAZ AHMAD WANI - SENIOR NEPHROLOGIST & KIDNEY TRANSPLANT SPECIALIST
   Comprehensive Master Design System & Responsive Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Core Brand Palette - Deep Medical Navy & Clinical Cyan */
  --primary: #0a2540;
  --primary-light: #123b66;
  --primary-gradient: linear-gradient(135deg, #0a2540 0%, #0d4272 100%);
  --accent: #0284c7;
  --accent-light: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #e11d48;

  /* Neutrals & Surfaces */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --border-light: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 18px -3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);
  --backdrop-blur: blur(14px);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --primary: #071526;
  --primary-light: #0d2847;
  --primary-gradient: linear-gradient(135deg, #071526 0%, #0d2c4e 100%);
  --bg-main: #050b14;
  --bg-card: #0c1a2e;
  --bg-card-subtle: #11223b;
  --bg-glass: rgba(12, 26, 46, 0.94);
  --border-light: #1e3352;
  --border-subtle: rgba(30, 51, 82, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 34px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15.5px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
  background: var(--primary);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 66px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-spec {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  margin-left: auto; /* Aligns all top navigation links towards the right */
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(2, 132, 199, 0.08);
}

.nav-tag-badge {
  background: rgba(2, 132, 199, 0.15);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

/* Consolidated Dropdown Menu (Specialties, Articles, News) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.dropdown-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16);
  padding: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Hover bridge to keep dropdown open during mouse transit */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(6px);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-card-subtle);
  transform: translateX(3px);
}

.dropdown-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
  white-space: normal;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-left: 1.25rem;
}

.theme-toggle-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--border-light);
  color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
}

.mobile-only-action {
  display: none;
}

.admin-link-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
}

.admin-link-btn:hover {
  color: var(--primary);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-subtle);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Full-Screen Above-The-Fold (ATF) Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 0 1.75rem;
  background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 75%, rgba(13, 148, 136, 0.06) 0%, transparent 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-title .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 600px;
}

.hero-credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.credential-pill svg {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem; /* Breathing space below credential pills */
}

.hero-doctor-card {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-doctor-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--bg-card);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.1) 0%, rgba(10, 37, 64, 0.9) 100%);
}

.hero-doctor-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.hero-doctor-frame:hover .hero-doctor-img {
  transform: scale(1.02);
}

.floating-doctor-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.floating-doctor-badge h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.floating-doctor-badge p {
  font-size: 0.82rem;
  color: var(--accent-light);
  font-weight: 500;
}

.floating-doctor-badge .badge-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.experience-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
}

.experience-tag span {
  display: block;
  font-size: 1.3rem;
}

.experience-tag small {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* ATF Master Metrics Bar */
.atf-metrics-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-text h4 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.metric-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Interactive Kidney Risk Assessment Tool (Full Rich Styles)
   ========================================================================== */

.checker-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 940px;
  margin: 0 auto;
}

.checker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.symptoms-selector {
  grid-column: 1 / -1;
}

.checkbox-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.chip-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.chip-label input {
  accent-color: var(--accent);
}

.chip-label:hover {
  border-color: var(--accent);
}

.chip-label:has(input:checked) {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Lead Capture Verification Gate Box */
.lead-capture-box {
  background: var(--bg-card-subtle);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.75rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.lead-capture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* Science-Backed Evidence Result Card */
.result-box {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.score-badge {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

.score-low { background: rgba(16, 185, 129, 0.15); color: #059669; }
.score-medium { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.score-high { background: rgba(225, 29, 72, 0.15); color: #e11d48; }

.kdigo-bar-container {
  margin: 1.5rem 0;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-full);
  height: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.kdigo-segment {
  height: 100%;
  flex: 1;
}

.kdigo-segment.green { background: #10b981; }
.kdigo-segment.yellow { background: #f59e0b; }
.kdigo-segment.red { background: #e11d48; }

.kdigo-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #000000;
  border-radius: 2px;
  transition: left 0.5s ease;
}

.evidence-block {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.diagnostic-tests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.test-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.test-card h5 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.test-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.citations-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==========================================================================
   Specialties & Clinical Services
   ========================================================================== */

.services-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   News, Milestones & Clinical Accomplishments
   ========================================================================== */

.news-section {
  padding: 5rem 0;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.news-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  width: fit-content;
}

.news-badge.award { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.news-badge.milestone { background: rgba(16, 185, 129, 0.15); color: #059669; }
.news-badge.cme { background: rgba(2, 132, 199, 0.15); color: var(--accent); }
.news-badge.community { background: rgba(13, 148, 136, 0.15); color: var(--teal); }

.news-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.news-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}

.news-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

/* ==========================================================================
   About Dr. Fayaz Wani
   ========================================================================== */

.about-section {
  padding: 5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border: 4px solid var(--bg-card-subtle);
}

.about-floating-card {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.about-floating-card .icon-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.timeline-content h4 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Dual Clinic Locations & Live Schedule Switcher
   ========================================================================== */

.locations-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.locations-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.loc-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loc-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.location-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.loc-info h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.loc-address {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.4rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.schedule-table tr {
  border-bottom: 1px solid var(--border-light);
}

.schedule-table td {
  padding: 0.55rem 0;
  font-size: 0.88rem;
}

.schedule-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.loc-visual-map {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 310px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.clinic-map-iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  min-height: 310px;
  border: 0;
  display: block;
  flex-grow: 1;
}

.map-floating-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-floating-overlay a {
  color: var(--accent-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.map-floating-overlay a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Reviews System & Google Business Connection
   ========================================================================== */

.reviews-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.05) 0%, transparent 60%);
}

.google-trust-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.google-trust-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.google-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fbbf24;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.review-source-tag {
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--bg-card-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  font-style: italic;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.author-meta h4 {
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}

.author-meta span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.punjabi-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
}

/* ==========================================================================
   Blog & Medical Education Feature
   ========================================================================== */

.blog-section {
  padding: 5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.featured-article-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.featured-article-card:hover {
  box-shadow: var(--shadow-lg);
}

.article-thumb {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.article-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.15rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

/* ==========================================================================
   Articles Library & Hub Styles (articles.html)
   ========================================================================== */

.articles-hub-section {
  padding: 4.5rem 0 5rem;
}

.articles-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill.active, .filter-pill:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.article-search-input {
  max-width: 320px;
  width: 100%;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.article-card-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.65rem;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.article-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   Admin & Internal Publishing Portal
   ========================================================================== */

.admin-section {
  padding: 4rem 0 5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.admin-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.admin-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.admin-panel.active {
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: var(--bg-card-subtle);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-bar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}

.top-bar-social-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.insurance-badge-box {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.insurance-badge-box svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Modal Appointment Booking
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 48, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--border-light);
  color: var(--text-main);
}

/* ==========================================================================
   Floating Quick Action Bar (Mobile & Desktop)
   ========================================================================== */

.floating-action-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  z-index: 999;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  min-width: 48px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.25s ease, 
              box-shadow 0.25s ease;
  border: none;
  text-decoration: none;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.floating-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.floating-btn span {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.88rem;
  margin-left: 0;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s ease, 
              margin-left 0.35s ease;
}

/* Green WhatsApp Button */
.floating-btn.whatsapp {
  background: #25d366;
  color: #ffffff;
}

/* Black/Navy Call Button */
.floating-btn.call {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Hover & Focus: Smooth horizontal expansion to reveal full label */
.floating-btn:hover,
.floating-btn:focus-visible {
  width: auto;
  min-width: 48px;
  padding: 0 1.25rem 0 1rem;
  transform: translateY(-2px);
}

.floating-btn:hover svg,
.floating-btn:focus-visible svg {
  transform: scale(1.08);
}

.floating-btn:hover span,
.floating-btn:focus-visible span {
  max-width: 220px;
  opacity: 1;
  margin-left: 0.65rem;
}

.floating-btn.whatsapp:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.floating-btn.call:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.55);
  background: #020617;
}

/* Two-Pane Service Selection & Pricing Modal (Screenshot 1 Match) */
.service-booking-modal-card {
  max-width: 760px !important;
  width: 100%;
  padding: 0 !important;
  border-radius: var(--radius-lg);
  max-height: 90vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: auto;
}

.service-booking-modal-card::-webkit-scrollbar {
  width: 7px;
}
.service-booking-modal-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}
.service-booking-modal-card::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.45);
  border-radius: 4px;
}
.service-booking-modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.8);
}

.service-modal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 440px;
}

.service-modal-left {
  background: #f8fafc;
  border-right: 1px solid var(--border-light);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

[data-theme="dark"] .service-modal-left {
  background: rgba(15, 23, 42, 0.6);
  border-right-color: var(--border-light);
}

.service-modal-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.service-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.service-modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: auto;
}

.service-modal-help {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  width: 100%;
}

.service-modal-help .help-question {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.service-modal-help .help-phone {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.service-modal-help .help-phone:hover {
  text-decoration: underline;
}

.service-modal-right {
  padding: 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.service-modal-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.service-modal-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.service-pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1.1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.service-price-card:hover {
  border-color: var(--accent);
  background: rgba(2, 132, 199, 0.04);
  transform: translateY(-1px);
}

.service-price-card.active {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.service-card-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.1rem;
}

.service-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-card-rate {
  text-align: right;
  flex-shrink: 0;
  padding-left: 0.75rem;
}

.service-card-rate .rate-price {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0284c7;
}

.service-card-rate .rate-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.service-payment-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.service-booking-form {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-modal-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.85rem;
}

@media (max-width: 768px) {
  .service-modal-layout {
    grid-template-columns: 1fr;
  }
  .service-modal-left {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 1rem;
  }
  .service-modal-right {
    padding: 1.25rem 1rem 1.5rem;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Comprehensive Multi-Device Responsive System (Mobile, Tablet & Desktop)
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-section {
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-credentials-row, .hero-actions {
    justify-content: center;
  }
  .atf-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .news-grid, .articles-grid, .reviews-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .location-display-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  /* Prevent any horizontal overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    padding: 0 1rem;
  }

  /* 1. Top Bar Hidden on Mobile */
  .top-bar {
    display: none !important;
  }

  /* 2. Compact Sticky Header */
  .navbar {
    height: 60px;
    gap: 0.5rem;
  }

  .brand-logo {
    gap: 0.5rem;
    max-width: calc(100% - 95px);
  }

  .brand-logo img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-spec {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  #header-book-btn {
    display: none !important; /* Concealed in mobile header bar to guarantee 0 overflow; provided in mobile drawer & floating WhatsApp */
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    flex-shrink: 0;
  }

  .mobile-menu-toggle:hover {
    background: var(--border-light);
    color: var(--accent);
  }

  /* 3. Fullscreen Sliding Mobile Navigation Drawer */
  .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    background: var(--bg-card) !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1.25rem 1rem 3.5rem !important;
    gap: 0.45rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
    border-top: 1px solid var(--border-light) !important;
    z-index: 1200 !important;
  }

  .nav-links.mobile-open {
    display: flex !important;
    animation: fadeIn 0.25s ease;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    cursor: pointer;
  }

  .nav-dropdown-menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0.5rem !important;
    margin-top: 0.4rem !important;
    display: none;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }

  .nav-dropdown.expanded .nav-dropdown-menu {
    display: flex !important;
  }

  .dropdown-item {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
  }

  .dropdown-item-title {
    font-size: 0.85rem;
  }

  .dropdown-item-desc {
    font-size: 0.72rem;
  }

  .mobile-drawer-book-btn {
    display: flex !important;
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    font-size: 0.95rem;
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
  }

  .mobile-only-action {
    display: block !important;
    width: 100%;
  }

  /* 4. Hero Section Mobile Layout */
  .hero-section {
    padding: 1.5rem 0 2rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .hero-badge {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: inline-flex;
    white-space: normal;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.8vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-credentials-row {
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }

  .credential-pill {
    font-size: 0.76rem;
    padding: 0.35rem 0.65rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

  .hero-doctor-card {
    margin-top: 1rem;
    width: 100%;
  }

  .hero-doctor-frame {
    max-width: 320px;
    margin: 0 auto;
    border-width: 3px;
  }

  .hero-doctor-img {
    height: 300px;
  }

  .floating-doctor-badge {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.65rem 0.85rem;
  }

  .floating-doctor-badge h3 {
    font-size: 1rem;
  }

  .floating-doctor-badge p {
    font-size: 0.76rem;
  }

  .floating-doctor-badge .badge-meta {
    font-size: 0.7rem;
    gap: 0.4rem;
  }

  /* 5. Metrics Bar */
  .atf-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0.85rem;
    gap: 0.85rem;
    margin-top: 1.75rem;
    border-radius: var(--radius-md);
  }

  .metric-item {
    gap: 0.65rem;
  }

  .metric-icon {
    width: 38px;
    height: 38px;
  }

  .metric-icon svg {
    width: 18px;
    height: 18px;
  }

  .metric-text h4 {
    font-size: 1.15rem;
  }

  .metric-text p {
    font-size: 0.72rem;
    white-space: normal;
    line-height: 1.25;
  }

  /* 6. Section Typography */
  .section-head {
    margin-bottom: 2rem;
    text-align: left;
  }

  .section-eyebrow {
    font-size: 0.78rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 1.95rem);
    line-height: 1.25;
  }

  .section-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* 7. Kidney Risk Assessment Tool */
  .checker-section {
    padding: 3.5rem 0;
  }

  .tool-card {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .checker-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .checkbox-chips {
    gap: 0.45rem;
  }

  .chip-label {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .lead-capture-box {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .lead-capture-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1rem 0;
  }

  .result-box {
    padding: 1.15rem 0.85rem;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .result-header h3 {
    font-size: 1.15rem;
  }

  .diagnostic-tests-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* 8. Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .service-card {
    padding: 1.35rem 1.15rem;
  }

  /* 8b. About Doctor Mobile Layout */
  .about-section {
    padding: 3.5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .about-image-wrapper {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

  .about-image {
    max-height: 340px;
    width: 100%;
  }

  .about-floating-card {
    position: static;
    margin-top: 0.85rem;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  /* 9. Locations Section */
  .locations-section {
    padding: 3.5rem 0;
  }

  .loc-tabs {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .loc-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .location-display-card {
    grid-template-columns: 1fr;
    padding: 1.25rem 0.85rem;
    gap: 1.5rem;
    border-radius: var(--radius-md);
  }

  .schedule-table td {
    font-size: 0.82rem;
    padding: 0.45rem 0;
  }

  .loc-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .loc-actions .btn-primary,
  .loc-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .clinic-map-iframe {
    min-height: 250px;
    height: 250px;
  }

  /* 10. Reviews Section */
  .reviews-section {
    padding: 3.5rem 0;
  }

  .google-trust-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
    gap: 1rem;
    text-align: left;
  }

  .google-trust-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .google-trust-bar > div:last-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .google-trust-bar .btn-primary,
  .google-trust-bar .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .review-card {
    padding: 1.25rem 1rem;
  }

  /* 11. News & Articles Hub */
  .news-section {
    padding: 3.5rem 0 !important;
  }

  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 1.15rem !important;
  }

  .news-card {
    padding: 1.25rem 1rem !important;
  }

  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
  }

  .featured-article-card img {
    height: 200px;
  }

  .articles-hub-section {
    padding: 3rem 0;
  }

  .articles-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .filter-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .filter-pill {
    flex-shrink: 0;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* 11b. Single Article Page Mobile Layout */
  .article-page {
    padding: 2rem 0 3.5rem;
  }

  .article-header h1 {
    font-size: clamp(1.45rem, 5.5vw, 2.2rem) !important;
  }

  .consult-banner {
    padding: 1.5rem 1rem !important;
    margin: 2.25rem 0 !important;
  }

  .consult-banner h3 {
    font-size: 1.3rem !important;
  }

  .key-takeaways-box {
    padding: 1.25rem 1rem !important;
  }

  .article-hero-banner {
    max-height: 240px !important;
  }

  .article-body {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .article-body ul, .article-body ol {
    margin: 0.85rem 0 1.25rem 1.2rem;
  }

  /* 12. FAQ Section */
  .faq-section {
    padding: 3.5rem 0;
  }

  .faq-question {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.15rem;
    font-size: 0.88rem;
  }

  /* 13. Footer Mobile Layout */
  .main-footer {
    padding: 3.5rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social-row {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
  }

  /* 14. Floating Action & Modals */
  .floating-action-bar {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }

  .floating-btn {
    height: 44px;
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .floating-btn svg {
    width: 18px;
    height: 18px;
  }

  .service-modal-layout {
    grid-template-columns: 1fr;
  }

  .service-modal-left {
    padding: 1.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .service-modal-right {
    padding: 1.35rem 1rem;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .modal-card {
    padding: 1.35rem 1rem;
    margin: 0.75rem;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }
}

/* Very Small Phones (<= 400px) */
@media (max-width: 400px) {
  .container {
    padding: 0 0.75rem;
  }
  .atf-metrics-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .brand-name {
    font-size: 0.82rem;
  }
  .brand-spec {
    font-size: 0.62rem;
  }
}

/* ==========================================================================
   Admin Staff PIN Authentication Gate
   ========================================================================== */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.admin-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.admin-auth-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.admin-auth-input {
  width: 100%;
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  margin: 1.25rem 0 1rem;
  transition: var(--transition);
}

.admin-auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   Professional Honors & Surgical Milestones Interactive Carousel & Gesture
   ========================================================================== */
.milestones-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.milestones-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-main);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.milestones-scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.milestones-scroll-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.milestones-scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.milestones-count-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 0.5rem;
  white-space: nowrap;
}

.milestones-carousel-wrap {
  position: relative;
  width: 100%;
}

.milestones-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 165, 233, 0.35) transparent;
}

.milestones-track::-webkit-scrollbar {
  height: 6px;
}

.milestones-track::-webkit-scrollbar-track {
  background: transparent;
}

.milestones-track::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.35);
  border-radius: 999px;
}

.milestones-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.milestones-card {
  flex: 0 0 350px;
  max-width: 350px;
  scroll-snap-align: start;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.65rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.milestones-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(14, 165, 233, 0.45);
}

.milestones-gesture-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .milestones-card {
    flex: 0 0 85%;
    max-width: 85%;
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   Full Article Reader Modal & Clinical Typography
   ========================================================================== */

.article-reader-modal {
  padding: 1.5rem 1rem;
  z-index: 2500;
}

.article-reader-modal-card {
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  position: relative;
}

.reader-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.reader-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reader-close-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.reader-close-btn:hover {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
  transform: rotate(90deg);
}

.reader-scrollable-content {
  overflow-y: auto;
  padding: 2.5rem 3rem 3rem;
  scroll-behavior: smooth;
}

.reader-article-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.reader-author-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.reader-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.reader-author-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.reader-author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reader-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.reader-article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
}

.reader-article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
  color: var(--text-main);
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.reader-article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.reader-article-body ul,
.reader-article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.reader-article-body li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.clinical-pearl-box {
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 80%), var(--bg-main);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

.clinical-pearl-box h4 {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clinical-pearl-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
}

.reader-action-footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border-light);
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .reader-scrollable-content {
    padding: 1.5rem 1.25rem 2rem;
  }
  .reader-action-footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
  }
  .reader-action-footer .btn-primary,
  .reader-action-footer .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}




/* Clinical Guidance / When to Consult Section (Matching Navy & Cyan Design Language) */
.guidance-section {
  padding: 5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.guidance-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.guidance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.guidance-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.guidance-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.guidance-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.guidance-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(2, 132, 199, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-top: 0.85rem;
  align-self: flex-start;
}
