/* ==========================================================================
   NUH Hospital Theme — Main Stylesheet
   Arabic RTL | Production-ready | v1.0.0
   ========================================================================== */

/* ─── DESIGN TOKENS ─── */
:root {
  --primary:   #1277bd;
  --secondary: #00aeef;
  --accent:    #be1e2d;
  --dark:      #0a2a4a;
  --light:     #f0f8ff;
  --white:     #ffffff;
  --gray:      #f4f9fc;
  --text:      #1a3a5c;
  --whatsapp:  #25d366;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 4px 15px rgba(18,119,189,0.12);
  --shadow-md: 0 8px 30px rgba(18,119,189,0.18);
  --shadow-lg: 0 20px 60px rgba(18,119,189,0.2);
  --transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── ACCESSIBILITY ─── */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── NAVBAR ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: 0 4px 30px rgba(18,119,189,0.22); }

.nav-logo { height: 52px; width: auto; }

.main-nav {
  display: flex;
  gap: 6px;           /* Use padding on links instead of gap for better click area */
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav > li > a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
  white-space: nowrap;
}
.main-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 12px; left: 12px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.main-nav > li > a:hover { color: var(--primary); background: rgba(18,119,189,0.06); }
.main-nav > li > a:hover::after { transform: scaleX(1); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--primary); }
.main-nav .current-menu-item > a::after,
.main-nav .current-menu-ancestor > a::after { transform: scaleX(1); }

/* Optional nav-cta class for WP menu items marked as booking link */
.main-nav .nav-cta > a,
.main-nav li.nav-cta > a {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(190,30,45,0.25) !important;
}
.main-nav .nav-cta > a::after { display: none !important; }
.main-nav .nav-cta > a:hover { background: #a0121f !important; transform: translateY(-2px) !important; }

/* ─── HERO ─── */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #03152b 0%, #0a2d5e 45%, #1277bd 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Radial glow */
.hero-section::after {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,174,239,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Decorative circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-circle--1 {
  width: 700px; height: 700px;
  border: 1px solid rgba(255,255,255,0.05);
  top: -250px; left: -200px;
}
.hero-circle--2 {
  width: 500px; height: 500px;
  border: 1px solid rgba(0,174,239,0.12);
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(0,174,239,0.06) 0%, transparent 70%);
}
.hero-circle--3 {
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.06);
  top: 40%; left: 30%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

/* ─── HERO INNER (two columns) ─── */
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 130px 6% 60px;
  width: 100%;
}

/* ─── HERO CONTENT ─── */
.hero-content {
  position: relative;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,174,239,0.15);
  border: 1px solid rgba(0,174,239,0.35);
  border-radius: 50px;
  padding: 7px 18px;
  color: #7dd9ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  width: fit-content;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #4cff91;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,255,145,0.4); } 50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(76,255,145,0); } }

.hero-section h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
  letter-spacing: -0.5px;
}
.hero-section h1 span {
  display: block;
  background: linear-gradient(90deg, #5ddcff, #00aeef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 40px;
  font-weight: 400;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  color: var(--primary);
}

.btn-outline {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--transition);
  font-family: 'Cairo', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ─── HERO VISUAL ─── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  animation: fadeUp 0.7s ease 0.2s both;
}

/* Rings */
.hv-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,174,239,0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin-slow 20s linear infinite;
}
.hv-ring--outer { width: 360px; height: 360px; border-color: rgba(0,174,239,0.12); }
.hv-ring--inner { width: 260px; height: 260px; border-color: rgba(0,174,239,0.2);  animation-direction: reverse; animation-duration: 14s; }

@keyframes spin-slow { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Central cross */
.hv-cross {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  background: rgba(18,119,189,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(0,174,239,0.4), 0 0 120px rgba(18,119,189,0.2);
  animation: pulse-glow 3s ease-in-out infinite;
}
.hv-cross svg { width: 52px; height: 52px; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(0,174,239,0.4), 0 0 80px rgba(18,119,189,0.15); }
  50%       { box-shadow: 0 0 70px rgba(0,174,239,0.6), 0 0 140px rgba(18,119,189,0.3); }
}

/* Floating cards */
.hv-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  white-space: nowrap;
  transition: transform var(--transition);
}
.hv-card:hover { transform: scale(1.04); }

.hv-card--tl { top: 18%; left: 2%;  animation: float-card 5s ease-in-out infinite; }
.hv-card--tr { top: 18%; right: 2%; animation: float-card 5s ease-in-out 1s infinite; }
.hv-card--bl { bottom: 18%; left: 2%;  animation: float-card 5s ease-in-out 0.5s infinite; }
.hv-card--br { bottom: 18%; right: 2%; animation: float-card 5s ease-in-out 1.5s infinite; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hv-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hv-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hv-card-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  font-weight: 500;
}

/* Heartbeat strip */
.hv-heartbeat {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  opacity: 0.7;
}
.hv-heartbeat svg { width: 100%; height: 36px; }

/* ─── HERO STATS (full-width bottom bar) ─── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeUp 0.6s ease 0.4s both;
  margin-bottom: 70px; /* space for wave */
}

.stat {
  text-align: center;
  color: var(--white);
  padding: 28px 20px;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.stat:last-child { border-left: none; }
.stat:hover { background: rgba(255,255,255,0.05); }

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #7dd9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 7px;
  display: block;
  font-weight: 500;
}
.stat-divider { display: none; }

/* ─── HERO WAVE ─── */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ─── HOTLINE BAR ─── */
.hotline-bar {
  background: var(--accent);
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hotline-bar p { color: var(--white); font-size: 1.05rem; font-weight: 700; }

.hotline-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.hotline-num:hover { opacity: 0.85; }

.phone-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: ring 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30%  { transform: rotate(-15deg); }
  20%, 40%  { transform: rotate(15deg); }
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
}
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,211,102,0.5); }

/* ─── SHARED SECTION STYLES ─── */
.nuh-section { padding: 90px 5%; }

.section-tag {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(18,119,189,0.2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title span { color: var(--primary); }

.section-sub {
  font-size: 1.05rem;
  color: #5a7a9a;
  line-height: 1.8;
  max-width: 600px;
}

/* ─── DEPARTMENTS ─── */
.departments-section { background: var(--gray); }

.dept-header { text-align: center; margin-bottom: 60px; }
.dept-header .section-sub { margin: 0 auto; }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 50px;
}

.dept-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.dept-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50px; height: 50px;
  border-radius: 0 var(--radius-md) 0 50px;
  background: var(--light);
  transition: all var(--transition);
}
.dept-card:hover {
  border-color: var(--secondary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.dept-card:hover::before { background: var(--secondary); opacity: 0.15; }

.dept-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 16px;
  transition: transform var(--transition);
}
.dept-card:hover .dept-icon { transform: scale(1.1) rotate(-5deg); }

.dept-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.dept-card:nth-child(1)  .dept-icon { background: #fef0f1; color: var(--accent); }
.dept-card:nth-child(2)  .dept-icon { background: #e8f7ff; color: var(--primary); }
.dept-card:nth-child(3)  .dept-icon { background: #fff3e8; color: #e07b00; }
.dept-card:nth-child(4)  .dept-icon { background: #f0fff4; color: #1a9c4e; }
.dept-card:nth-child(5)  .dept-icon { background: #f3f0ff; color: #7b3fe4; }
.dept-card:nth-child(6)  .dept-icon { background: #e8f7ff; color: var(--secondary); }
.dept-card:nth-child(7)  .dept-icon { background: #fef0f1; color: var(--accent); }
.dept-card:nth-child(8)  .dept-icon { background: #e8f7ff; color: var(--primary); }
.dept-card:nth-child(9)  .dept-icon { background: #fff3e8; color: #e07b00; }
.dept-card:nth-child(10) .dept-icon { background: #f0fff4; color: #1a9c4e; }
.dept-card:nth-child(11) .dept-icon { background: #f3f0ff; color: #7b3fe4; }
.dept-card:nth-child(12) .dept-icon { background: #fef0f1; color: var(--accent); }
.dept-card:nth-child(13) .dept-icon { background: #e8f7ff; color: var(--primary); }
.dept-card:nth-child(14) .dept-icon { background: #fff3e8; color: #e07b00; }
.dept-card:nth-child(15) .dept-icon { background: #f0fff4; color: #1a9c4e; }
.dept-card:nth-child(16) .dept-icon { background: #f3f0ff; color: #7b3fe4; }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: relative;
}
.about-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,42,74,0.5));
  pointer-events: none;
}

.about-accent-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  box-shadow: var(--shadow-lg);
  border-right: 4px solid var(--accent);
  min-width: 200px;
}
.accent-card-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}
.accent-card-label { font-size: 0.9rem; color: #5a7a9a; font-weight: 600; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.feature-pill {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  border: 1px solid rgba(18,119,189,0.1);
  transition: all var(--transition);
}
.feature-pill:hover { background: var(--primary); color: var(--white); transform: translateX(-5px); }
.feature-pill:hover .pill-icon { background: rgba(255,255,255,0.2); color: var(--white); }

.pill-icon {
  width: 34px; height: 34px;
  background: rgba(18,119,189,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

/* ─── SERVICES HIGHLIGHT ─── */
.services-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,174,239,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.services-section::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(190,30,45,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sh-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.sh-text .section-title { color: var(--white); }
.sh-text .section-sub { color: rgba(255,255,255,0.7); }
.sh-text .section-tag { background: rgba(255,255,255,0.1); color: var(--secondary); border-color: rgba(0,174,239,0.3); }

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  cursor: pointer;
  overflow: hidden;
  min-width: 0;
}
.service-item:hover { background: rgba(0,174,239,0.15); border-color: var(--secondary); transform: translateX(-4px); }

.service-dot { width: 10px; height: 10px; background: var(--secondary); border-radius: 50%; flex-shrink: 0; }
.service-item span,
.service-item a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-item a:hover { color: var(--secondary); }

/* ─── WHY US ─── */
.whyus-section { background: var(--white); }

.whyus-header { text-align: center; margin-bottom: 60px; }
.whyus-header .section-sub { margin: 0 auto; }

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reason-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 24px;
  background: var(--gray);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.reason-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.reason-card:hover { background: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.reason-card:hover::after { transform: scaleX(1); }

.reason-icon { font-size: 2.8rem; margin-bottom: 20px; display: block; }
.reason-title { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.reason-desc { font-size: 0.9rem; color: #6a8aaa; line-height: 1.7; }

/* ─── APPOINTMENT ─── */
.appointment-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.appointment-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.appointment-inner { position: relative; z-index: 2; }

.appointment-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.appointment-section .section-lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.appt-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 12px;
  align-items: start;
}

.appt-form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 24px;
}

.appt-input,
.appt-select {
  width: 100%;
  padding: 16px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  appearance: none;
  -webkit-appearance: none;
}
.appt-select option { color: var(--text); background: var(--white); }
.appt-input::placeholder { color: rgba(255,255,255,0.65); }
.appt-select:invalid  { color: rgba(255,255,255,0.65); }
.appt-input:focus,
.appt-select:focus { border-color: var(--white); background: rgba(255,255,255,0.25); }

.btn-appt {
  background: var(--white);
  color: var(--primary);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all var(--transition);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-appt:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.btn-appt:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.appt-phone-note { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-top: 8px; }
.appt-phone-note a { color: var(--white); font-weight: 800; font-size: 1.3rem; direction: ltr; display: inline-block; text-decoration: none; }
.appt-phone-note a:hover { text-decoration: underline; }

.form-success {
  display: none;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 20px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 70px 5% 30px;
}

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

.footer-logo { height: 50px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }

.footer-about {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.footer-socials { display: flex; gap: 12px; }

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--secondary); color: white; border-color: var(--secondary); transform: translateY(-3px); }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--secondary); font-size: 1.1rem; }
.footer-links a:hover { color: var(--secondary); padding-right: 6px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.contact-icon { color: var(--secondary); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1), transform 0.7s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998; }
.nav-overlay.open { display: block; }

/* ─── WORDPRESS: PAGE / BLOG ─── */
.page-content,
.entry-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 5%;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.entry-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
}

.page-header {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  padding: 80px 5% 50px;
  text-align: center;
  margin-top: 80px;
}
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; }
.page-header p  { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 1.1rem; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 60px 5%;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
  border: 1px solid rgba(18,119,189,0.08);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.post-thumbnail { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-body { padding: 24px; }
.post-meta { font-size: 0.82rem; color: #7a9ab0; margin-bottom: 10px; }
.post-title { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.post-title a { text-decoration: none; color: inherit; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: 0.9rem; color: #5a7a9a; line-height: 1.7; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 5%;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}
.page-numbers.current,
.page-numbers:hover { background: var(--primary); color: var(--white); }

/* ─── 404 ─── */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5%;
}
.error-404 .error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--light);
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-404 h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.error-404 p { color: #5a7a9a; margin-bottom: 32px; font-size: 1.05rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-visual { max-width: 500px; margin: 0 auto; width: 100%; }
  .sh-inner { grid-template-columns: 1fr; gap: 50px; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-inner { grid-template-columns: 1fr; padding: 120px 6% 40px; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .appt-form { grid-template-columns: 1fr 1fr; }
  .appt-form .btn-appt { grid-column: 1 / -1; }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    padding: 80px 28px 40px;
    gap: 4px;
    transition: right 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav > li > a {
    font-size: 1.05rem;
    padding: 12px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(18,119,189,0.08);
  }
  .main-nav > li > a::after { display: none; }
  .main-nav .nav-cta > a {
    margin-top: 12px !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 768px) {
  .nuh-section { padding: 70px 5%; }
  .hero-inner { padding: 100px 5% 30px; }
  .hero-section h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-section > .hero-content > p { font-size: 1rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-btns a { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 60px; }
  .stat { padding: 20px 12px; }
  .stat-num { font-size: 1.8rem; }
  .hotline-num { font-size: 1.4rem; }
  .about-accent-card { position: static; margin-top: 20px; border-radius: 14px; }
  .appt-form { grid-template-columns: 1fr; }
  .appt-form-row2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .services-list { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 16px; }
  .hotline-bar { flex-direction: column; text-align: center; gap: 12px; }
  .stat-num { font-size: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .dept-grid { grid-template-columns: 1fr; }
  .hero-btns a { font-size: 0.95rem; padding: 14px 24px; }
}

/* ─── PRINT ─── */
@media print {
  .site-header, .hotline-bar, .appointment-section, .site-footer { display: none; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   NUH THEME v2.0 — EXTENDED STYLES
   Stats, Doctors, Emergency, Testimonials, News, Insurance, Contact,
   Header topbar, Floating buttons, Page templates, Admin, RTL extras
   ========================================================================== */

/* ─── TOPBAR ─── */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 8px 5%;
  font-size: 0.82rem;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tb-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  font-size: 0.82rem;
}
.tb-link:hover { color: var(--secondary); }
.tb-hours { color: rgba(255,255,255,0.55); font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 8px; }
.tb-social-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all var(--transition);
}
.tb-social-btn:hover { background: var(--secondary); color: white; }

/* ─── HEADER LAYOUT ─── */
/*
 * RTL note: HTML order is [logo][nav][actions].
 * In RTL flexbox the first child is on the RIGHT.
 * So: logo=right, nav=center (flex:1), actions=left. No order overrides needed.
 */
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 4%;
  height: 72px;
}

.site-header { padding: 0; }

/* Logo: first child → rightmost in RTL flex */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Nav: grows to fill space, centers its children */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* Actions: last child → leftmost in RTL flex */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search toggle */
.header-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.header-search-btn:hover { background: var(--light); color: var(--primary); }

/* Book appointment CTA button */
.header-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 3px 12px rgba(18,119,189,0.35);
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.header-book-btn:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(18,119,189,0.2);
  transform: translateY(-1px);
}


/* ─── SEARCH DROPDOWN ─── */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-top: 2px solid var(--secondary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 20px 5%;
  z-index: 998;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.search-dropdown.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.search-form { display: flex; gap: 0; max-width: 600px; margin: 0 auto 16px; }
.search-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--light);
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  outline: none;
  color: var(--dark);
  background: var(--gray);
  transition: border-color var(--transition);
  border-right: none;
}
.search-input:focus { border-color: var(--primary); background: white; }
.search-submit {
  padding: 14px 22px;
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.search-submit:hover { background: #0e62a0; }
.search-quick-links {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.sql-label { color: var(--gray-500, #64748b); font-size: 0.85rem; }
.search-quick-links a {
  background: var(--light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.search-quick-links a:hover { background: var(--primary); color: white; }

/* ─── FLOATING ACTION BUTTONS ─── */
.floating-actions {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all var(--transition);
  position: relative;
}
.fab:hover { transform: scale(1.1); }
.fab-whatsapp { background: #25d366; color: white; }
.fab-whatsapp:hover { background: #1da851; }
.fab-call { background: var(--primary); color: white; }
.fab-call:hover { background: #0e62a0; }
.fab-tooltip {
  position: absolute;
  left: 100%;
  margin-left: 12px;
  background: var(--dark);
  color: white;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.fab:hover .fab-tooltip { opacity: 1; }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(18,119,189,0.4);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: #0e62a0; transform: translateY(-3px); }

/* ─── PAGE HERO BANNER ─── */
.page-hero-banner {
  min-height: 260px;
  background: linear-gradient(135deg, #0a2a4a 0%, #1277bd 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 90px 5% 70px;
  margin-top: 0;
}
.page-hero-banner--blue {
  background: linear-gradient(135deg, #0a1f3d 0%, #1277bd 50%, #00aeef 100%);
}
.page-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='25'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.phb-content { position: relative; z-index: 2; max-width: 700px; }
.phb-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.phb-content p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.phb-dept-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.phb-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; z-index: 3; }
.phb-wave svg { width: 100%; height: 60px; display: block; }

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.breadcrumbs a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--secondary); }
.bc-sep { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ─── STATS SECTION ─── */
.stats-section { background: var(--light); }
.stats-header { text-align: center; margin-bottom: 60px; }
.stats-header .section-sub { margin: 0 auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
  border: 2px solid transparent;
  min-width: 0;
  overflow: hidden;
}
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.stat-card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform var(--transition);
}
.stat-card:hover .stat-card-icon { transform: scale(1.1) rotate(-5deg); }
.stat-card-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 10px;
  font-family: 'Inter', 'Cairo', sans-serif;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.counter { display: inline-block; }
.stat-card-label { font-size: 0.92rem; color: var(--gray-500, #64748b); font-weight: 600; }

/* ─── DOCTORS SECTION ─── */
.doctors-section { background: var(--white); }
.doctors-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.doctor-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(18,119,189,0.1);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.doctor-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--light), #d0e8f5);
  overflow: hidden;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.doctor-card:hover .doctor-photo img { transform: scale(1.05); }
.doctor-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.4;
}
.doctor-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,42,74,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.doctor-card:hover .doctor-overlay { opacity: 1; }
.doctor-profile-btn {
  background: var(--white);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.doctor-profile-btn:hover { background: var(--secondary); color: white; }
.doctor-info { padding: 20px; }
.doctor-dept-tag {
  background: var(--light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
  border: 1px solid rgba(18,119,189,0.15);
}
.doctor-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.doctor-specialty { font-size: 0.88rem; color: #5a7a9a; margin-bottom: 12px; }
.doctor-exp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.doctor-schedule-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #5a7a9a;
  margin-bottom: 14px;
}
.doctor-book-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}
.doctor-book-btn:hover { background: #0e62a0; color: white; transform: translateY(-2px); }

/* ─── BUTTON VARIANTS ─── */
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-primary-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(18,119,189,0.3);
}
.btn-primary-solid:hover { background: #0e62a0; color: white; transform: translateY(-2px); }

/* ─── EMERGENCY SECTION ─── */
.emergency-section {
  background: linear-gradient(135deg, #0a1520 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 5%;
}
.emergency-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.emergency-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.emergency-left { color: var(--white); }
.emergency-pulse {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}
.emergency-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}
.emergency-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}
.emergency-left h2 span { color: rgba(255,255,255,0.7); }
.emergency-left p { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.8; }
.emergency-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ec-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.ec-label { font-size: 0.9rem; color: #5a7a9a; margin-bottom: 8px; }
.ec-phone {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  direction: ltr;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.ec-note { font-size: 0.8rem; color: #7a9ab0; margin-bottom: 20px; }
.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 12px;
  width: 100%;
  justify-content: center;
}
.btn-emergency:hover { background: #a0121f; transform: translateY(-2px); color: white; }
.btn-whatsapp-em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}
.btn-whatsapp-em:hover { background: #1da851; color: white; }
.emergency-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.ef-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
}
.ef-icon { font-size: 1.1rem; }

/* ─── TESTIMONIALS SECTION ─── */
.testimonials-section { background: var(--gray); }
.testimonials-header { text-align: center; margin-bottom: 50px; }
.testimonials-header .section-sub { margin: 0 auto; }
/* Wrap: overflow hidden clips the sliding track; padding exposes the arrows */
.testimonials-track-wrap {
  position: relative;
  padding: 0 56px;
}
/* Clip window — sits between the arrows */
.testimonials-track-clip {
  overflow: hidden;   /* clips cards outside the viewport */
}
.testimonials-track {
  display: flex;
  gap: 0;              /* gaps handled via card margin so JS step stays at 50% */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  flex: 0 0 calc(50% - 24px);  /* 2 cards: (50% - 24px) + 24px margin = 50% slot */
  margin: 0 12px;
  box-sizing: border-box;
  box-shadow: 0 2px 20px rgba(18,119,189,0.08);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
  border: 2px solid transparent;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.tc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tc-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
}
.tc-info { flex: 1; }
.tc-name { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin-bottom: 2px; }
.tc-dept { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.tc-quote { font-size: 2rem; color: var(--secondary); opacity: 0.3; line-height: 1; margin-right: auto; }
.tc-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.star { font-size: 1rem; color: #d0d0d0; }
.star.filled { color: #fbbf24; }
.tc-content { font-size: 0.92rem; color: #5a7a9a; line-height: 1.8; }
.tc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--secondary);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.tc-nav:hover { background: var(--primary); border-color: var(--primary); color: white; }
.tc-nav--prev { left: 0; }
.tc-nav--next { right: 0; }
.tc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.tc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300, #cbd5e1);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.tc-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ─── NEWS SECTION ─── */
.news-section { background: var(--white); }
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
/* Layout: featured (left in RTL = right visually) + secondary stack */
.news-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Featured Card ── */
.news-featured {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(18,119,189,0.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-featured:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.nf-image {
  position: relative;
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.nf-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }
.news-featured:hover .nf-img { transform: scale(1.05); }
.nf-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4ff 0%, #d0eaf8 100%);
  color: var(--primary);
  opacity: 0.5;
  min-height: 220px;
}
.nf-cat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.nf-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.nf-meta { font-size: 0.82rem; color: #7a9ab0; margin-bottom: 12px; }
.nf-title { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; line-height: 1.4; }
.nf-title a { text-decoration: none; color: inherit; transition: color var(--transition); }
.nf-title a:hover { color: var(--primary); }
.nf-excerpt { font-size: 0.9rem; color: #5a7a9a; line-height: 1.7; flex: 1; margin-bottom: 18px; }
.nf-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap var(--transition);
}
.nf-read-more:hover { gap: 10px; }

/* ── Secondary (small) cards ── */
.news-secondary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-card-sm {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(18,119,189,0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.news-card-sm:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ncs-image {
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--light);
  position: relative;
}
.ncs-image a { display: block; height: 100%; }
.ncs-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }
.news-card-sm:hover .ncs-image img { transform: scale(1.06); }
.ncs-placeholder {
  width: 100%;
  height: 100%;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4ff 0%, #d0eaf8 100%);
  color: var(--primary);
  opacity: 0.45;
}
.ncs-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ncs-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(18,119,189,0.08);
  padding: 2px 10px;
  border-radius: 50px;
  display: inline-block;
  width: fit-content;
}
.ncs-title { font-size: 0.92rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin: 0; }
.ncs-title a { text-decoration: none; color: inherit; transition: color var(--transition); }
.ncs-title a:hover { color: var(--primary); }
.ncs-date { font-size: 0.78rem; color: #7a9ab0; margin: 0; }

/* ─── NEWS ARCHIVE / CARDS ─── */
.news-archive-section { padding-top: 40px; }

/* Filter bar */
.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  align-items: center;
}
.news-filter-search {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
}
.news-filter-search input {
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 0.88rem;
  background: transparent;
  min-width: 200px;
  direction: rtl;
}
.news-filter-search button {
  background: var(--primary);
  border: none;
  padding: 8px 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.nfb-pill {
  padding: 7px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.nfb-pill:hover { border-color: var(--primary); color: var(--primary); }
.nfb-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

/* News card */
.news-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.nc-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--gray);
  flex-shrink: 0;
}
.nc-image a { display: block; height: 100%; }
.nc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.news-card:hover .nc-img { transform: scale(1.05); }
.nc-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0c4d8;
  background: linear-gradient(135deg, #e8f0f7 0%, #d0e2ef 100%);
}
.nc-cat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

.nc-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.nc-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nc-meta time { color: var(--text-light); }
.nc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
}
.nc-title a { text-decoration: none; color: inherit; transition: color var(--transition); }
.nc-title a:hover { color: var(--primary); }
.nc-excerpt {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition);
}
.nc-read-more:hover { gap: 10px; }

/* Pagination nav */
.pagination-nav { display: flex; justify-content: center; margin-top: 10px; }

/* No-results box */
.news-no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.news-no-results svg { margin-bottom: 16px; color: #b0c4d8; }
.news-no-results h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 8px; }

/* ─── INSURANCE SECTION ─── */
.insurance-section { background: var(--light); }
.insurance-header { text-align: center; margin-bottom: 52px; }

.partners-track-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding: 8px 0;
}
/* Fade edges */
.partners-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.partners-fade--right { right: 0; background: linear-gradient(to left,  var(--light) 0%, transparent 100%); }
.partners-fade--left  { left:  0; background: linear-gradient(to right, var(--light) 0%, transparent 100%); }

.partners-track {
  display: flex;
  gap: 0;
  animation: scroll-partners 30s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }

@keyframes scroll-partners {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner-logo { flex-shrink: 0; padding-right: 18px; }

.partner-inner {
  width: 180px;
  height: 100px;
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  transition: all var(--transition);
  cursor: default;
}
.partner-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--p-color, var(--secondary));
}
.partner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--p-bg, #e8f4ff);
  color: var(--p-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.partner-inner:hover .partner-icon { transform: scale(1.1); }
.partner-short {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--p-color, var(--primary));
  letter-spacing: 0.5px;
}
.partner-name {
  font-size: 0.68rem;
  color: #6b7e8f;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

/* CTA row below partners */
.insurance-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 32px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18,119,189,0.1);
  flex-wrap: wrap;
}
.icr-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5a7a9a;
  font-size: 0.92rem;
  font-weight: 500;
}
.icr-text svg { color: var(--secondary); flex-shrink: 0; }
.icr-phone {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
}
.icr-phone:hover { color: var(--secondary); }

/* ─── CONTACT SECTION ─── */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; margin: 30px 0; }
.ci-item { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-text { flex: 1; }
.ci-label { font-size: 0.82rem; color: #7a9ab0; font-weight: 600; margin-bottom: 4px; }
.ci-value { font-size: 0.95rem; color: var(--dark); font-weight: 700; text-decoration: none; display: block; }
a.ci-value:hover { color: var(--primary); }
.btn-book-appt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-primary, 0 8px 30px rgba(18,119,189,0.3));
}
.btn-book-appt:hover { background: #0e62a0; color: white; transform: translateY(-2px); }
.contact-map .map-wrap {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: var(--shadow-md);
}
.contact-map iframe { border-radius: 20px; height: 100%; min-height: 400px; }

/* ─── APPOINTMENT PAGE ─── */
.appointment-page-section .appt-page-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.appt-form-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(18,119,189,0.08);
}
.afc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--light);
}
.afc-icon {
  width: 50px; height: 50px;
  background: var(--light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.afc-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.apf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apf-field { margin-bottom: 16px; }
.apf-label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.required { color: var(--accent); }
.apf-input, .apf-select, .apf-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200, #e2e8f0);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Cairo', sans-serif;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.apf-input:focus, .apf-select:focus, .apf-textarea:focus { border-color: var(--primary); background: #fafeff; }
.apf-textarea { resize: vertical; min-height: 100px; }
.apf-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: #5a7a9a; }
.apf-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.apf-consent a { color: var(--primary); text-decoration: none; }
.apf-submit-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-primary, 0 8px 30px rgba(18,119,189,0.3));
}
.apf-submit-btn:hover { background: #0e62a0; transform: translateY(-2px); }
.apf-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.apf-success {
  display: none;
  text-align: center;
  padding: 30px;
  background: #f0fff4;
  border-radius: 14px;
  border: 2px solid #1a9c4e;
  margin-top: 20px;
}
.apf-success-icon { font-size: 3rem; margin-bottom: 12px; }
.apf-success h3 { color: #1a9c4e; font-size: 1.2rem; margin-bottom: 8px; }
.apf-success p { color: #5a7a9a; font-size: 0.9rem; }
.apf-error {
  display: none;
  text-align: center;
  padding: 16px 20px;
  background: #fff0f0;
  border-radius: 14px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  margin-top: 16px;
}

/* Appointment Sidebar */
.appt-phone-card {
  background: linear-gradient(135deg, var(--accent), #a0121f);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: white;
  margin-bottom: 20px;
}
.apc-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.apc-label { font-size: 0.9rem; opacity: 0.8; margin-bottom: 8px; }
.apc-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  text-decoration: none;
  display: block;
  direction: ltr;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.apc-note { font-size: 0.8rem; opacity: 0.7; }
.appt-steps-card, .appt-hours-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18,119,189,0.08);
}
.appt-steps-card h3, .appt-hours-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.step-title { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.step-desc { font-size: 0.82rem; color: #5a7a9a; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100, #f1f5f9); font-size: 0.88rem; color: #5a7a9a; }
.hours-row:last-child { border-bottom: none; }
.hours-time { font-weight: 700; color: var(--dark); }
.emergency-row .hours-emergency { color: var(--accent); }

/* ─── DOCTOR PROFILE PAGE ─── */
.doctor-profile-section .dp-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.dp-photo-wrap { border-radius: 20px; overflow: hidden; position: relative; margin-bottom: 20px; }
.dp-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; }
.dp-photo-placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--light), #d0e8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.4;
  border-radius: 20px;
}
.dp-dept-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}
.dp-quick-stats {
  background: var(--light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dqs-item {
  flex: 1;
  text-align: center;
  min-width: 80px;
}
.dqs-num { font-size: 1.4rem; font-weight: 900; color: var(--primary); display: block; }
.dqs-icon { font-size: 1.2rem; display: block; }
.dqs-label { font-size: 0.78rem; color: #5a7a9a; font-weight: 600; }
.dp-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 16px;
}
.dp-book-btn:hover { background: #0e62a0; color: white; transform: translateY(-2px); }
.dp-contact-box { background: var(--white); border: 2px solid var(--light); border-radius: 16px; padding: 20px; }
.dp-contact-box h4 { font-size: 0.9rem; font-weight: 800; color: var(--dark); margin-bottom: 14px; }
.dp-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5a7a9a;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
  transition: color var(--transition);
  direction: ltr;
}
.dp-contact-link:last-child { border-bottom: none; }
.dp-contact-link:hover { color: var(--primary); }
.dp-name-block { margin-bottom: 30px; }
.dp-full-name { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.dp-specialty { color: var(--primary); font-size: 1.05rem; font-weight: 600; }
.dp-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--light); }
.dp-section:last-child { border-bottom: none; }
.dp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.dps-icon { font-size: 1.2rem; }
.dp-bio { font-size: 1rem; color: #4a6a8a; line-height: 1.9; }
.dp-text { font-size: 0.95rem; color: #4a6a8a; line-height: 1.8; }
.dp-schedule-box { background: var(--light); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.dsb-row { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(18,119,189,0.08); }
.dsb-row:last-child { border-bottom: none; }
.dsb-label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--primary); min-width: 120px; }
.dsb-value { font-size: 0.9rem; color: var(--dark); font-weight: 600; }
.dp-inline-book {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.dp-inline-book:hover { background: #0e62a0; color: white; }

/* ─── ABOUT PAGE ─── */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai-stats-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ais-item {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
  will-change: transform;
}
.ais-item:hover { border-color: var(--secondary); transform: translateY(-4px); }
.ais-num { font-size: 2rem; font-weight: 900; color: var(--primary); display: block; margin-bottom: 6px; }
.ais-label { font-size: 0.85rem; color: #5a7a9a; font-weight: 600; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mvv-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.mvv-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.mvv-card p { font-size: 0.9rem; color: #5a7a9a; line-height: 1.7; }

/* Timeline */
.timeline { position: relative; padding: 20px 0; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  transform: translateX(-50%);
}
.tl-item {
  display: flex;
  justify-content: flex-end;
  padding-left: 50%;
  margin-bottom: 32px;
  position: relative;
}
.tl-item--left { justify-content: flex-start; padding-left: 0; padding-right: 50%; }
.tl-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--secondary);
  transform: translateX(-50%);
  z-index: 2;
}
.tl-content {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  max-width: calc(50% - 30px);
  border-right: 4px solid var(--secondary);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.tl-item--left .tl-content { border-right: none; border-left: 4px solid var(--primary); }
.tl-content:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tl-year { font-size: 0.85rem; font-weight: 800; color: var(--secondary); display: block; margin-bottom: 6px; }
.tl-event { font-size: 0.92rem; color: var(--dark); font-weight: 600; }

/* Leadership */
.leadership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.leader-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.lc-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light), #d0e8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}
.lc-name { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.lc-role { font-size: 0.82rem; color: var(--primary); font-weight: 600; }

/* Accreditations */
.accred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.accred-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
  will-change: transform;
}
.accred-card:hover { border-color: var(--secondary); transform: translateY(-5px); }
.accred-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.accred-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.accred-year { font-size: 0.8rem; color: var(--secondary); font-weight: 700; }

/* ─── DEPARTMENT PAGE ─── */
.depts-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.dept-page-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.dept-page-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.dpc-icon {
  font-size: 2.5rem;
  width: 70px; height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 18px;
  background: var(--light);
  transition: transform var(--transition);
}
.dept-page-card:hover .dpc-icon { transform: scale(1.1) rotate(-5deg); }
.dpc-name { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.dpc-name a { text-decoration: none; color: inherit; transition: color var(--transition); }
.dpc-name a:hover { color: var(--primary); }
.dpc-desc { font-size: 0.88rem; color: #5a7a9a; line-height: 1.7; margin-bottom: 14px; }
.dpc-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dpc-meta span { font-size: 0.78rem; color: #5a7a9a; background: var(--light); padding: 4px 10px; border-radius: 50px; }
.dpc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 50px;
  transition: background var(--transition), box-shadow var(--transition), gap var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(18,119,189,0.25);
}
.dpc-link:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18,119,189,0.35);
  gap: 10px;
  transform: translateY(-2px);
}

/* ─── FAQS PAGE ─── */
.faqs-section .faqs-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.faqs-sidebar { position: sticky; top: 90px; }
.faqs-sidebar h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.faq-cat-btn {
  display: block;
  width: 100%;
  text-align: right;
  background: none;
  border: 2px solid var(--light);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a7a9a;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all var(--transition);
  font-family: 'Cairo', sans-serif;
}
.faq-cat-btn:hover, .faq-cat-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.faqs-cta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--light); }
.faqs-cta p { font-size: 0.88rem; color: #5a7a9a; margin-bottom: 12px; }
.faq-item { border: 2px solid var(--light); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: border-color var(--transition); }
.faq-item:hover { border-color: rgba(18,119,189,0.2); }
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Cairo', sans-serif;
  transition: all var(--transition);
}
.faq-question:hover { background: var(--light); }
.faq-question[aria-expanded="true"] { background: var(--primary); color: white; }
.faq-question[aria-expanded="true"] .faq-arrow svg { transform: rotate(180deg); }
.faq-question[aria-expanded="true"] .faq-arrow { color: white; }
.faq-arrow { color: var(--primary); transition: transform var(--transition), color var(--transition); flex-shrink: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer.open { max-height: 500px; }
.faq-answer-inner { padding: 20px 24px; font-size: 0.95rem; color: #5a7a9a; line-height: 1.8; border-top: 1px solid var(--light); }

/* ─── CAREERS PAGE ─── */
.careers-benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.career-benefit-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
  border: 2px solid transparent;
}
.career-benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.cbc-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.career-benefit-card h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.career-benefit-card p { font-size: 0.88rem; color: #5a7a9a; line-height: 1.7; }
.jobs-header { margin-bottom: 40px; }
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
}
.job-card:hover { border-color: var(--secondary); transform: translateX(-4px); }
.jc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.jc-title { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.jc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.jc-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.jc-tag--type { background: var(--light); color: var(--primary); }
.jc-tag--dept { background: #fff3e8; color: #e07b00; }
.jc-tag--location { background: #e8fff3; color: #1a9c4e; }
.jc-exp, .jc-deadline { font-size: 0.82rem; color: #7a9ab0; margin-bottom: 4px; text-align: left; white-space: nowrap; }
.jc-desc { font-size: 0.9rem; color: #5a7a9a; line-height: 1.7; margin-bottom: 16px; }
.jc-footer { display: flex; align-items: center; gap: 16px; }
.jc-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.jc-apply-btn:hover { background: #0e62a0; color: white; transform: translateY(-2px); }
.jc-details-link { color: #5a7a9a; font-size: 0.88rem; text-decoration: none; }
.jc-details-link:hover { color: var(--primary); }
.apply-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.apply-step {
  text-align: center;
  position: relative;
}
.apply-step::after {
  content: '';
  position: absolute;
  top: 40px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, var(--secondary), var(--primary));
  z-index: 0;
}
.apply-step:first-child::after { display: none; }
.as-num {
  width: 50px; height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}
.as-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.apply-step h3 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.apply-step p { font-size: 0.85rem; color: #5a7a9a; }

/* ─── NO RESULTS / EMPTY STATES ─── */
.no-results-msg {
  text-align: center;
  padding: 80px 20px;
}
.nrm-icon { font-size: 4rem; margin-bottom: 20px; }
.no-results-msg h3 { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.no-results-msg p { color: #5a7a9a; margin-bottom: 24px; }
.nrm-quick-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nrm-quick-links a {
  background: var(--light);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.nrm-quick-links a:hover { background: var(--primary); color: white; }

/* ─── DOCTORS FILTER BAR ─── */
.doctors-filter-bar {
  background: var(--light);
  padding: 16px 5%;
  border-bottom: 1px solid rgba(18,119,189,0.1);
  position: sticky;
  top: 74px;
  z-index: 100;
  overflow-x: auto;
}
.filter-bar-inner { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-btn {
  background: var(--white);
  border: 2px solid transparent;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5a7a9a;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.doctors-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ─── CONTACT PAGE ─── */
.contact-cards-section { padding: 0 5% 40px !important; }
.contact-quick-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.cqc-card {
  background: var(--cqc-bg, var(--light));
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  min-width: 200px;
  flex: 1 1 200px;
  max-width: 260px;
}
.cqc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--cqc-color, var(--secondary));
}
.cqc-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cqc-bg, var(--light));
  color: var(--cqc-color, var(--primary));
  margin: 0 auto 14px;
  font-size: 1.6rem;
}
.cqc-title { font-size: 0.85rem; color: var(--cqc-color, #7a9ab0); font-weight: 700; margin-bottom: 6px; }
.cqc-value { font-size: 0.95rem; font-weight: 800; color: var(--dark); }
.cf-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.cf-form-col, .cf-map-col { min-width: 0; }
.cf-form-card { background: var(--white); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-md); }
.cf-form-card h2 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.cf-form-card > p { font-size: 0.9rem; color: #5a7a9a; margin-bottom: 24px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { margin-bottom: 16px; }
.cf-field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.cf-input, .cf-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200, #e2e8f0);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Cairo', sans-serif;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}
.cf-input:focus, .cf-textarea:focus { border-color: var(--primary); }
.cf-textarea { resize: vertical; min-height: 120px; }
.cf-submit {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-primary, 0 8px 30px rgba(18,119,189,0.3));
}
.cf-submit:hover { background: #0e62a0; transform: translateY(-2px); }
.cf-success {
  display: none;
  background: #f0fff4;
  border: 2px solid #1a9c4e;
  border-radius: 14px;
  padding: 16px;
  color: #1a9c4e;
  font-weight: 700;
  margin-top: 16px;
  text-align: center;
}
.cf-error {
  display: none;
  background: #fff0f0;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 16px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 16px;
  text-align: center;
}
.cf-map-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 20px; }
.cf-map-wrap iframe { border-radius: 16px; display: block; }
.cf-hours-box { background: var(--white); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(18,119,189,0.08); }
.cf-hours-box h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ─── PATIENT PORTAL ─── */
.portal-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.portal-service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.portal-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.psc-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  transition: transform var(--transition);
}
.portal-service-card:hover .psc-icon { transform: scale(1.1) rotate(-5deg); }
.portal-service-card h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.portal-service-card p { font-size: 0.88rem; color: #5a7a9a; line-height: 1.7; margin-bottom: 16px; }
.psc-arrow { color: var(--secondary); font-size: 1.2rem; font-weight: 700; transition: all var(--transition); }
.portal-service-card:hover .psc-arrow { letter-spacing: 4px; }
.portal-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.pl-features { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.pl-features li { font-size: 0.95rem; color: #5a7a9a; }
.pl-help { font-size: 0.9rem; color: #5a7a9a; margin-top: 20px; }
.pl-form-card { background: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid rgba(18,119,189,0.08); }
.plfc-tabs { display: flex; gap: 0; margin-bottom: 28px; border-radius: 12px; overflow: hidden; border: 2px solid var(--light); }
.plfc-tab { flex: 1; padding: 12px; background: none; border: none; font-size: 0.9rem; font-weight: 700; cursor: pointer; color: #5a7a9a; transition: all var(--transition); font-family: 'Cairo', sans-serif; }
.plfc-tab.active { background: var(--primary); color: white; }
.pl-form .plf-field { margin-bottom: 16px; }
.pl-form label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.pl-form input[type="text"], .pl-form input[type="email"], .pl-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200, #e2e8f0);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.pl-form input:focus { border-color: var(--primary); }
.plf-remember { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #5a7a9a; margin-bottom: 20px; }
.plf-forgot { margin-right: auto; color: var(--primary); text-decoration: none; font-size: 0.85rem; }
.plf-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: all var(--transition);
}
.plf-submit:hover { background: #0e62a0; }
.pl-logged-in { text-align: center; padding: 40px; }
.pli-avatar { font-size: 4rem; margin-bottom: 16px; }
.pl-logged-in h3 { font-size: 1.2rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.pl-logged-in p { color: #5a7a9a; margin-bottom: 20px; }

/* ─── SEARCH RESULTS PAGE ─── */
.search-results-wrap .search-results-form { max-width: 700px; margin: 0 auto 40px; }
.site-search-form { display: flex; }
.site-search-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--light);
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  outline: none;
  color: var(--dark);
}
.site-search-input:focus { border-color: var(--primary); }
.site-search-btn {
  padding: 14px 22px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background var(--transition);
}
.site-search-btn:hover { background: #0e62a0; }
.search-count { text-align: center; margin-bottom: 30px; color: #5a7a9a; font-size: 0.95rem; }
.post-type-label {
  background: var(--light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.post-read-more { color: var(--primary); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.post-read-more:hover { text-decoration: underline; }

/* ─── TEXT CENTER UTILITY ─── */
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── DEPARTMENT SINGLE ─── */
.dept-profile-section .dept-profile-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.dept-bio.entry-content { font-size: 1rem; color: #4a6a8a; line-height: 1.9; }
.dept-services-block { background: var(--light); border-radius: 16px; padding: 24px; margin-top: 24px; }
.dept-services-block h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.dsb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dsb-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.dsb-dot { color: var(--secondary); font-size: 0.7rem; }
.dsb-item a { color: var(--primary); text-decoration: none; font-weight: 600; }
.dsb-item a:hover { text-decoration: underline; }
.dept-info-box { background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(18,119,189,0.1); margin-bottom: 16px; }
.dept-info-box h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--secondary); display: inline-block; }
.dib-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--light); gap: 10px; }
.dib-row:last-child { border-bottom: none; }
.dib-label { font-size: 0.82rem; color: #7a9ab0; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dib-value { font-size: 0.88rem; color: var(--dark); font-weight: 700; text-decoration: none; }
a.dib-value:hover { color: var(--primary); }
.dept-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 16px;
  text-align: center;
}
.dept-book-btn:hover { background: #0e62a0; color: white; transform: translateY(-2px); }
.dept-docs-box { background: var(--white); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(18,119,189,0.08); }
.dept-docs-box h4 { font-size: 0.9rem; font-weight: 800; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--light); }
.mini-doc-card { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--light); text-decoration: none; transition: all var(--transition); }
.mini-doc-card:last-child { border-bottom: none; }
.mini-doc-card:hover { padding-right: 6px; }
.mdc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 1.2rem;
}
.mdc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mdc-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.mdc-spec { font-size: 0.75rem; color: #7a9ab0; }

/* ─── DOCTORS PAGE / FILTER ─── */
.doctors-page-section { padding-top: 40px; }

/* ─── SINGLE POST ─── */
.single-post-section { padding-top: 50px; }

.single-post-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

/* Hero banner additions for posts */
.phb-category-badge a {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
}
.phb-category-badge a:hover { background: rgba(255,255,255,0.28); }
.phb-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}
.phb-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Thumbnail */
.single-post-thumbnail {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  max-height: 480px;
}
.single-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.single-post-content {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text);
}
.single-post-content h2,
.single-post-content h3 { margin: 2rem 0 1rem; color: var(--dark); }
.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content img { max-width: 100%; border-radius: 12px; }
.single-post-content blockquote {
  border-right: 4px solid var(--primary);
  margin: 1.5rem 0;
  padding: 16px 20px;
  background: var(--gray);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--dark);
}

/* Tags */
.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  color: var(--text-light);
  font-size: 0.88rem;
}
.post-tag {
  background: var(--gray);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.83rem;
  text-decoration: none;
  transition: all var(--transition);
}
.post-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Prev / Next Nav */
.single-post-nav {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.spn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: all var(--transition);
}
.spn-item:hover { border-color: var(--primary); background: #e8f4ff; }
.spn-dir {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}
.spn-title {
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.4;
}
.spn-next { text-align: left; }
.spn-next .spn-dir { justify-content: flex-end; }

/* ── Sidebar ── */
.sps-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.sps-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.sps-card-header svg { color: var(--primary); flex-shrink: 0; }
.sps-card p { color: var(--text); font-size: 0.92rem; line-height: 1.7; margin: 0 0 12px; }
.sps-link { font-size: 0.9rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.sps-link:hover { text-decoration: underline; }

/* Categories list */
.sps-cat-list { list-style: none; padding: 0; margin: 0; }
.sps-cat-list li + li { border-top: 1px solid var(--border); }
.sps-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition);
}
.sps-cat-link:hover,
.sps-cat-link.active { color: var(--primary); font-weight: 600; }
.sps-cat-count {
  background: var(--gray);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Related list */
.sps-related-list { list-style: none; padding: 0; margin: 0; }
.sps-related-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sps-related-item:last-child { border-bottom: none; }
.sri-thumb {
  width: 70px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.sri-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sri-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sri-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sri-title:hover { color: var(--primary); }
.sri-date { font-size: 0.78rem; color: var(--text-light); }

/* CTA card */
.sps-cta { background: linear-gradient(135deg, var(--primary) 0%, #0e5da0 100%); border-color: transparent; text-align: center; }
.sps-cta-icon { font-size: 2.5rem; margin-bottom: 12px; }
.sps-cta h3 { color: #fff; margin: 0 0 8px; font-size: 1.05rem; }
.sps-cta p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.sps-cta .btn-primary { background: #fff; color: var(--primary); }
.sps-cta .btn-primary:hover { background: var(--secondary); color: #fff; }
.sps-phone-link {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  direction: ltr;
}
.sps-phone-link:hover { color: #fff; }

/* More posts row */
.single-more-section { padding-top: 50px; }
.sms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.sms-all-link { font-size: 0.95rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.sms-all-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .single-post-grid { grid-template-columns: 1fr; }
  .single-post-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .sps-card { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .single-post-sidebar { grid-template-columns: 1fr; }
  .single-post-nav { flex-direction: column; }
}

/* ─── SEARCH DROPDOWN STATE FIX ─── */
.site-header { position: relative; }

/* ─── RESPONSIVE v2.0 ─── */
@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-secondary { flex-direction: row; flex-wrap: wrap; }
  .news-card-sm { flex: 1 1 260px; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .accred-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .emergency-inner { grid-template-columns: 1fr; gap: 40px; }
  .emergency-features { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map .map-wrap { min-height: 300px; }
  .dp-grid { grid-template-columns: 260px 1fr; }
  .dept-profile-grid { grid-template-columns: 1fr !important; }
  .dept-sidebar { order: -1; }
  .faqs-grid { grid-template-columns: 1fr !important; }
  .faqs-sidebar { position: static; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .faqs-sidebar h3 { display: none; }
  .faqs-cta { display: none; }
  .ai-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .portal-login-grid { grid-template-columns: 1fr; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr 1fr; }
  .apply-steps { grid-template-columns: repeat(2, 1fr); }
  .apply-step::after { display: none; }
  .appointment-page-section .appt-page-grid { grid-template-columns: 1fr; }
  .appt-info-col { order: -1; }
  .appt-phone-card { max-width: 400px; }
  .timeline::before { display: none; }
  .tl-item { padding-left: 0; justify-content: flex-start; }
  .tl-item--left { padding-right: 0; }
  .tl-dot { display: none; }
  .tl-content { max-width: 100%; border-right: 4px solid var(--secondary) !important; border-left: none !important; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .page-hero-banner { margin-top: 0; padding: 70px 5% 50px; }
  .header-inner { padding: 0 4%; }
  .hbb-text { display: none; }
  .header-book-btn { padding: 9px 14px; }
  .news-layout { grid-template-columns: 1fr; }
  .news-secondary { flex-direction: column; }
  .news-card-sm { flex: 1 1 auto; }
  .ncs-image { width: 100px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 22px 14px; }
  .stat-card-number { font-size: 1.9rem; }
  .stat-card-icon { width: 52px; height: 52px; }
  .dp-grid { grid-template-columns: 1fr; }
  .dp-photo-wrap { max-width: 280px; margin: 0 auto 20px; }
  .doctors-header { flex-direction: column; }
  .mvv-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr 1fr; }
  .accred-grid { grid-template-columns: 1fr 1fr; }
  .ai-stats-stack { grid-template-columns: 1fr 1fr; }
  .emergency-features { grid-template-columns: 1fr 1fr; }
  .apf-row { grid-template-columns: 1fr; }
  .testimonial-card { flex: 0 0 calc(100% - 24px); }
  .testimonials-track-wrap { padding: 0 44px; }
  .floating-actions { bottom: 20px; left: 14px; }
  .back-to-top { bottom: 20px; right: 14px; }
  .testimonials-track-wrap { padding: 0 40px; }
  .tc-nav--prev { left: 0; }
  .tc-nav--next { right: 0; }
  .jobs-header { flex-direction: column; }
  .cf-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 18px 10px; }
  .stat-card-number { font-size: 1.6rem; }
  .stat-card-icon { width: 44px; height: 44px; border-radius: 12px; }
  .stat-card-icon svg { width: 22px; height: 22px; }
  .stat-card-label { font-size: 0.8rem; }
  .doctors-grid { grid-template-columns: 1fr; }
  .careers-benefits-grid { grid-template-columns: 1fr; }
  .contact-quick-cards { grid-template-columns: 1fr 1fr; }
  .portal-services-grid { grid-template-columns: 1fr; }
  .apply-steps { grid-template-columns: 1fr; }
  .depts-page-grid { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
  .accred-grid { grid-template-columns: 1fr; }
  .filter-bar-inner { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .jc-header { flex-direction: column; }
}

/* ════════════════════════════════════════════
   SERVICES PAGE / ARCHIVE
════════════════════════════════════════════ */
.services-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-input {
  padding: 10px 16px;
  padding-left: 46px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 260px;
  transition: border-color 0.2s;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-search-btn {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.filter-cats,
.filter-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-cat-btn,
.filter-spec-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-cat-btn:hover,
.filter-spec-btn:hover,
.filter-cat-btn.active,
.filter-spec-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card .sc-icon {
  font-size: 2.5rem;
  text-align: center;
  padding: 28px 20px 0;
}

.service-card .sc-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.service-card .sc-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sc-dept-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(18, 119, 189, 0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.sc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}

.sc-title a { color: var(--heading); text-decoration: none; }
.sc-title a:hover { color: var(--primary); }

.sc-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.sc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sc-meta-item,
.sc-duration {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sc-meta-item svg,
.sc-duration svg { flex-shrink: 0; }

.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s;
}

.sc-link:hover { gap: 10px; }

/* ════════════════════════════════════════════
   SINGLE SERVICE PAGE
════════════════════════════════════════════ */
.svc-profile-section {}

.svc-profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.svc-featured-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.svc-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.svc-description { margin-bottom: 32px; }

.svc-prep-block {
  background: rgba(18, 119, 189, 0.04);
  border-radius: 12px;
  padding: 24px 28px;
  border-right: 4px solid var(--primary);
}

.svc-prep-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-prep-text {
  color: var(--text);
  line-height: 1.8;
}

.svc-info-box {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.svc-info-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sib-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
  font-size: 0.9rem;
}

.sib-row:last-child { border-bottom: none; }

.sib-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.sib-value {
  color: var(--heading);
  font-weight: 600;
  text-align: left;
}

.svc-related-dept {
  margin-top: 20px;
}

.svc-related-dept h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--heading);
}

.related-dept-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--heading);
  font-weight: 600;
  transition: all 0.2s;
  border: 1.5px solid var(--border);
}

.related-dept-card:hover {
  border-color: var(--primary);
  background: rgba(18, 119, 189, 0.04);
  color: var(--primary);
}

.rdc-icon { font-size: 1.5rem; }

.rdc-name { flex: 1; }

.svc-emergency-card {
  margin-top: 20px;
  background: var(--accent);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: var(--white);
}

.sec-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  color: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.sec-btn:hover { opacity: 0.9; }

/* ════════════════════════════════════════════
   NEWS PAGE / NEWS CATEGORY TABS
════════════════════════════════════════════ */
.news-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.news-cat-tab {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.news-cat-tab:hover,
.news-cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.news-page-grid .featured-news-card {
  grid-column: span 3;
  display: flex;
  flex-direction: row;
  gap: 0;
}

.news-page-grid .featured-news-card .post-thumbnail {
  flex: 1;
  min-width: 0;
}

.news-page-grid .featured-news-card .post-thumbnail img {
  height: 340px;
  width: 100%;
  object-fit: cover;
}

.news-page-grid .featured-news-card .post-body {
  flex: 1;
  padding: 36px 40px;
}

.news-page-grid .featured-news-card .post-title {
  font-size: 1.5rem;
}

/* ════════════════════════════════════════════
   DOCTORS ARCHIVE
════════════════════════════════════════════ */
.doctors-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-specs {
  flex: 1;
}

/* ════════════════════════════════════════════
   DEPARTMENTS ARCHIVE
════════════════════════════════════════════ */
.dept-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.dept-cat-tab {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dept-cat-tab.active,
.dept-cat-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.dept-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  will-change: transform;
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 1.5px solid transparent;
}

.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.dept-card-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.dept-card:hover .dept-card-icon { transform: scale(1.1); }

.dept-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.dept-card-name a {
  color: var(--heading);
  text-decoration: none;
}

.dept-card-name a:hover { color: var(--primary); }

.dept-card-excerpt {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.dept-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.dcm-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--gray);
  padding: 4px 10px;
  border-radius: 20px;
}

.dept-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding: 11px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition), box-shadow var(--transition), gap var(--transition);
  box-shadow: 0 4px 14px rgba(18,119,189,0.25);
}

.dept-card-link:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18,119,189,0.35);
  gap: 10px;
}

/* ════════════════════════════════════════════
   FILTER BAR (generic)
════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ════════════════════════════════════════════
   INPUT ERROR STATE
════════════════════════════════════════════ */
.input-error {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(190, 30, 45, 0.1);
}

/* ════════════════════════════════════════════
   RELATED SERVICES SECTION
════════════════════════════════════════════ */
.related-services-section .services-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ════════════════════════════════════════════
   RESPONSIVE — NEW TEMPLATES
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .svc-profile-grid { grid-template-columns: 1fr; }
  .svc-sidebar { order: -1; }

  .news-page-grid { grid-template-columns: repeat(2, 1fr); }
  .news-page-grid .featured-news-card { grid-column: span 2; }

  .related-services-section .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .news-page-grid,
  .news-page-grid .featured-news-card {
    grid-template-columns: 1fr;
    grid-column: span 1;
    flex-direction: column;
  }

  .news-page-grid .featured-news-card .post-thumbnail img { height: 220px; }

  .services-grid,
  .departments-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .related-services-section .services-grid { grid-template-columns: 1fr; }

  .filter-search-input { width: 100%; }
  .services-filter-bar { flex-direction: column; }
  .doctors-filter-bar  { flex-direction: column; }

  .svc-featured-img img { height: 240px; }
}

@media (max-width: 480px) {
  .news-cat-tabs,
  .dept-cat-tabs,
  .filter-bar { gap: 8px; }

  .news-cat-tab,
  .dept-cat-tab,
  .filter-btn,
  .filter-cat-btn,
  .filter-spec-btn { padding: 7px 14px; font-size: 0.82rem; }
}

/* ════════════════════════════════════════════
   HEADER RESPONSIVE REFINEMENTS
════════════════════════════════════════════ */

/* Medium screens: compact the nav font/padding */
@media (max-width: 1200px) and (min-width: 993px) {
  .main-nav > li > a { padding: 6px 9px; font-size: 0.85rem; }
  .header-book-btn   { padding: 8px 14px; font-size: 0.82rem; }
  .nav-logo          { height: 46px; }
  .header-inner      { padding: 0 3%; gap: 14px; }
}

/* Mobile: hide desktop nav, show hamburger */
@media (max-width: 992px) {
  .header-nav  { display: block; flex: none; width: 0; padding: 0; overflow: visible; }
  .nav-toggle  { display: flex; }
  .header-inner { padding: 0 5%; gap: 12px; }
}

/* Very small screens: icon-only book button */
@media (max-width: 420px) {
  .hbb-text         { display: none; }
  .header-book-btn  { padding: 9px 11px; }
  .nav-logo         { height: 38px; }
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-filter-bar { gap: 8px; }
  .news-filter-search { width: 100%; }
  .news-filter-search input { min-width: 0; flex: 1; }
}


/* ==========================================================================
   NUH THEME v3.0 — 2026 REDESIGN
   Modern Hospital UI · Arabic RTL · Production-ready
   ========================================================================== */

/* ─── DESIGN TOKENS v3 ─── */
:root {
  --p3-dark:      #0A2540;
  --p3-blue:      #2A8EFF;
  --p3-cyan:      #00C2FF;
  --p3-hero-bg:   linear-gradient(135deg, #0A2540 0%, #0F4C81 50%, #1A6FB3 100%);
  --p3-glass:     rgba(255,255,255,0.07);
  --p3-glass-b:   1px solid rgba(255,255,255,0.14);
  --p3-drop-r:    18px;
  --p3-drop-shad: 0 24px 64px rgba(10,37,64,0.14), 0 4px 16px rgba(10,37,64,0.07);
}

/* ════════════════════════════════════════════
   TOPBAR v3 — 2026 REDESIGN
════════════════════════════════════════════ */
.topbar {
  background: linear-gradient(135deg, #061828 0%, #0A2540 100%) !important;
  height: 44px !important;
  padding: 0 5% !important;
  display: flex !important;
  align-items: center !important;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.topbar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

/* Separator line */
.tb-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
  margin: 0 14px;
  flex-shrink: 0;
}

/* Emergency hotline */
.tb-emergency {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ff8888;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.tb-emergency:hover { color: #ffb0b0; }

/* Pulsing dot */
.emergency-pulse {
  width: 8px; height: 8px;
  background: #ff4444;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  animation: ep-blink 1.6s ease-in-out infinite;
}
.emergency-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255,68,68,0.5);
  animation: ep-ring 1.6s ease-in-out infinite;
}
@keyframes ep-blink { 0%,100% { opacity:1; } 50% { opacity:0.45; } }
@keyframes ep-ring  { 0% { transform:scale(1); opacity:1; } 100% { transform:scale(2.4); opacity:0; } }

/* Contact links */
.tb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.tb-link:hover { color: #7dd9ff; }

/* 24/7 Badge */
.tb-badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,142,255,0.18);
  border: 1px solid rgba(42,142,255,0.38);
  color: #7dd9ff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.4px;
}

/* Green pulsing dot inside badge */
.badge-dot-pulse {
  width: 6px; height: 6px;
  background: #4cff91;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Hours */
.tb-hours {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.48);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ════════════════════════════════════════════
   MAIN HEADER v3 — GLASSMORPHISM
════════════════════════════════════════════ */
.site-header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 2px solid rgba(42,142,255,0.15) !important;
  box-shadow: 0 2px 24px rgba(10,37,64,0.07) !important;
  transition: box-shadow 0.35s cubic-bezier(0.23,1,0.32,1),
              border-color 0.35s cubic-bezier(0.23,1,0.32,1) !important;
}

.site-header.scrolled {
  box-shadow: 0 6px 36px rgba(10,37,64,0.13) !important;
  border-bottom-color: rgba(42,142,255,0.28) !important;
}

.header-inner {
  height: 76px !important;
  padding: 0 4% !important;
  gap: 16px !important;
}

/* ─── NAV LINKS v3 ─── */
.main-nav > li > a {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #1a3a5c !important;
  padding: 8px 11px !important;
  border-radius: 10px !important;
  letter-spacing: 0.2px;
  position: relative;
}

.main-nav > li > a:hover {
  color: var(--p3-blue) !important;
  background: rgba(42,142,255,0.07) !important;
}

.main-nav > li > a::after {
  background: var(--p3-blue) !important;
  bottom: 2px !important;
}

.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
  color: var(--p3-blue) !important;
}

.main-nav .current-menu-item > a::after,
.main-nav .current-menu-ancestor > a::after {
  transform: scaleX(1) !important;
}

/* Parent item chevron */
.main-nav li.menu-item-has-children > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.main-nav li.menu-item-has-children > a .nav-chevron {
  display: inline-block;
  width: 8px; height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.22s cubic-bezier(0.23,1,0.32,1);
  flex-shrink: 0;
}

.main-nav li.menu-item-has-children:hover > a .nav-chevron,
.main-nav li.menu-item-has-children:focus-within > a .nav-chevron {
  transform: rotate(135deg) translateY(1px);
}

/* ─── DROPDOWN MENUS v3 ─── */
.main-nav li.menu-item-has-children {
  position: relative;
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 230px;
  background: #ffffff;
  border-radius: var(--p3-drop-r);
  box-shadow: var(--p3-drop-shad);
  border: 1px solid rgba(42,142,255,0.1);
  list-style: none;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.25s cubic-bezier(0.23,1,0.32,1),
              transform 0.25s cubic-bezier(0.23,1,0.32,1),
              visibility 0.25s;
  z-index: 1100;
  pointer-events: none;
}

/* Dropdown caret */
.main-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px; height: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(42,142,255,0.1);
  border-right: 1px solid rgba(42,142,255,0.1);
  transform: rotate(-45deg);
}

.main-nav li.menu-item-has-children:hover > .sub-menu,
.main-nav li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Sub-menu items */
.main-nav .sub-menu li { list-style: none; }

.main-nav .sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  color: #1a3a5c !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  border-radius: 11px !important;
  transition: background 0.18s, color 0.18s, padding-right 0.18s !important;
  white-space: nowrap;
  background: none !important;
}

.main-nav .sub-menu li a::after { display: none !important; }
.main-nav .sub-menu li a::before { display: none !important; }

.main-nav .sub-menu li a .sub-dot {
  width: 6px; height: 6px;
  background: var(--p3-blue);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.18s, background 0.18s;
}

.main-nav .sub-menu li a:hover {
  background: rgba(42,142,255,0.07) !important;
  color: var(--p3-blue) !important;
  padding-right: 20px !important;
}

.main-nav .sub-menu li a:hover .sub-dot {
  opacity: 1;
  background: var(--p3-blue);
}

/* ─── MEGA MENU (wide dropdown for Departments) ─── */
.main-nav li.has-mega > .sub-menu {
  min-width: 480px;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 14px;
}

.main-nav li.has-mega > .sub-menu::before {
  right: auto;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* ─── BOOK BUTTON v3 ─── */
.header-book-btn {
  background: linear-gradient(135deg, #2A8EFF 0%, #0A6EE8 100%) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(42,142,255,0.42) !important;
  border: 2px solid transparent !important;
  gap: 8px !important;
  transition: all 0.3s cubic-bezier(0.23,1,0.32,1) !important;
}

.header-book-btn:hover {
  background: linear-gradient(135deg, #3d9fff 0%, #1a7ef8 100%) !important;
  box-shadow: 0 8px 30px rgba(42,142,255,0.55) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.header-book-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 16px rgba(42,142,255,0.4) !important;
}

/* Search button */
.header-search-btn:hover {
  background: rgba(42,142,255,0.08) !important;
  color: var(--p3-blue) !important;
}

/* Hamburger bars */
.nav-toggle span { background: #0A2540 !important; }

/* ════════════════════════════════════════════
   HERO SECTION v3 — 2026 GRADIENT
════════════════════════════════════════════ */
.hero-section {
  background: var(--p3-hero-bg) !important;
}

/* Enhanced radial glow */
.hero-section::after {
  background: radial-gradient(circle, rgba(0,194,255,0.2) 0%, transparent 65%) !important;
  width: 1000px !important; height: 1000px !important;
}

/* Hero badge */
.hero-badge {
  background: rgba(42,142,255,0.15) !important;
  border-color: rgba(42,142,255,0.38) !important;
  color: #7dd9ff !important;
}

/* H1 gradient span */
.hero-section h1 span {
  background: linear-gradient(90deg, #00C2FF 0%, #7ddeff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Hero content description */
.hero-content p {
  font-size: 1.08rem !important;
  color: rgba(255,255,255,0.72) !important;
  line-height: 1.95 !important;
}

/* Primary button — pill shape */
.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%) !important;
  color: var(--p3-dark) !important;
  border-radius: 50px !important;
  padding: 16px 38px !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.1) !important;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 42px rgba(0,0,0,0.28) !important;
  color: var(--p3-dark) !important;
}
.btn-primary:active { transform: translateY(-1px) !important; }

/* Outline button — pill shape */
.btn-outline {
  border-color: rgba(255,255,255,0.32) !important;
  border-radius: 50px !important;
  padding: 15px 38px !important;
  font-weight: 700 !important;
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-3px) !important;
}

/* Hero rings */
.hv-ring--outer {
  width: 390px !important; height: 390px !important;
  border-color: rgba(42,142,255,0.16) !important;
}
.hv-ring--inner {
  width: 278px !important; height: 278px !important;
  border-color: rgba(0,194,255,0.28) !important;
}

/* Central cross glow */
.hv-cross {
  background: rgba(42,142,255,0.42) !important;
  box-shadow: 0 0 60px rgba(0,194,255,0.5),
              0 0 120px rgba(42,142,255,0.25),
              inset 0 0 40px rgba(0,194,255,0.15) !important;
}

/* Hero floating cards — glassmorphism */
.hv-card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* Stat numbers */
.stat-num {
  background: linear-gradient(135deg, #ffffff 0%, #7dd9ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Stats bar */
.hero-stats {
  background: rgba(0,0,0,0.28) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.stat { border-left-color: rgba(255,255,255,0.07) !important; }
.stat:hover { background: rgba(42,142,255,0.08) !important; }

/* ════════════════════════════════════════════
   MOBILE STICKY BOTTOM CTA
════════════════════════════════════════════ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 995;
  padding: 10px 16px env(safe-area-inset-bottom, 12px);
  background: rgba(10,37,64,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(42,142,255,0.2);
  box-shadow: 0 -4px 28px rgba(10,37,64,0.28);
}

.mobile-sticky-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2A8EFF 0%, #0A6EE8 100%);
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 15px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  box-shadow: 0 4px 22px rgba(42,142,255,0.45);
  transition: box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.4px;
}

.mobile-sticky-link:hover {
  box-shadow: 0 6px 28px rgba(42,142,255,0.55);
}

.mobile-sticky-link:active { transform: scale(0.985); }

/* ════════════════════════════════════════════
   RESPONSIVE ENHANCEMENTS v3
════════════════════════════════════════════ */

/* ── Tablet 1024px ── */
@media (max-width: 1024px) {
  .main-nav > li > a { padding: 7px 9px !important; font-size: 0.83rem !important; }
}

/* ── 992px: Switch to hamburger ── */
@media (max-width: 992px) {
  /* Show mobile sticky CTA */
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 76px; }

  /* Mobile nav: slide from right (RTL) */
  .main-nav {
    right: -100% !important;
    left: auto !important;
    transition: right 0.35s cubic-bezier(0.23,1,0.32,1) !important;
  }
  .main-nav.open { right: 0 !important; }

  /* Mobile sub-menus: accordion style */
  .main-nav .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 10px !important;
    background: rgba(42,142,255,0.05) !important;
    padding: 4px 8px 6px !important;
    display: none;
    min-width: 0 !important;
    margin-top: 4px;
  }

  .main-nav .sub-menu::before { display: none !important; }

  .main-nav li.menu-item-has-children.mob-open > .sub-menu { display: block !important; }

  /* Mega sub-menu in mobile: single column */
  .main-nav li.has-mega > .sub-menu {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  /* Chevron in mobile */
  .main-nav li.menu-item-has-children > a .nav-chevron {
    transform: rotate(-45deg) translateY(-1px) !important;
    transition: transform 0.22s !important;
  }
  .main-nav li.menu-item-has-children.mob-open > a .nav-chevron {
    transform: rotate(135deg) translateY(1px) !important;
  }

  /* Book button smaller */
  .header-book-btn { padding: 9px 14px !important; }
}

/* ── 768px tablet ── */
@media (max-width: 768px) {
  .tb-link--email { display: none !important; }
  .tb-sep--email  { display: none !important; }
  .tb-sep--hours  { display: none !important; }
  .tb-hours       { display: none !important; }

  .hero-btns { flex-direction: column; align-items: stretch !important; }
  .hero-btns a { width: 100% !important; justify-content: center !important; text-align: center; }
  .btn-primary, .btn-outline { padding: 15px 28px !important; font-size: 0.98rem !important; }
}

/* ── 480px mobile ── */
@media (max-width: 480px) {
  .tb-emergency-label { display: none; }
  .tb-emergency svg + span { display: none; }
  .topbar { height: 40px !important; padding: 0 4% !important; }
  .hero-section h1 { font-size: clamp(1.9rem, 7.5vw, 2.5rem) !important; }
  .hero-content p { font-size: 0.97rem !important; }
  .mobile-sticky-link { font-size: 0.97rem; padding: 14px 16px; }
}

/* ── 380px very small ── */
@media (max-width: 380px) {
  .header-book-btn .hbb-text { display: none; }
  .header-book-btn { padding: 10px 12px !important; border-radius: 10px !important; }
}

/* ── Print: hide sticky bar ── */
@media print {
  .mobile-sticky-cta { display: none !important; }
  .topbar { display: none !important; }
}
