:root {
  --primary-900: #093019;
  --primary-800: #0f4423;
  --primary-700: #145d2f;
  --primary-600: #16793b;
  --primary-500: #199447;
  --primary-400: #2cc062;
  --primary-100: #dcfce7;
  --primary-50: #f0fdf4;
  --accent-color: #0d9488;
  --accent-gold: #f59e0b;
  --text-dark: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #f4f7f5;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 4px 14px rgba(15, 68, 35, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 68, 35, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 68, 35, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
}

/* Theme 2: กลุ่มงานปฐมภูมิและเครือข่ายสุขภาพ (Teal-Emerald & Fresh Leaf Green) */
body.theme-primary {
  --primary-900: #06322f;
  --primary-800: #0b4f4a;
  --primary-700: #0f766e;
  --primary-600: #0d9488;
  --primary-500: #14b8a6;
  --primary-400: #2dd4bf;
  --primary-100: #ccfbf1;
  --primary-50: #f0fdfa;
  --accent-color: #16a34a;
  --bg-page: #f2f9f8;
  background: linear-gradient(180deg, #e6f7f5 0%, #f3faf9 35%, #eaf5f3 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Prompt', 'Kodchasan', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
}

body {
  background: linear-gradient(180deg, #ebf5ee 0%, #f5f8f6 35%, #edf4ef 100%);
  overflow-x: hidden;
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== DIVISION SWITCHER BAR (TOP STRIP) ==================== */
.division-bar {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.division-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.division-switcher-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.division-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.division-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.division-pill.active {
  background: #ffffff;
  color: var(--primary-900);
  font-weight: 700;
  border-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ==================== TOP NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 93, 47, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 28px rgba(15, 68, 35, 0.09);
  background: rgba(255, 255, 255, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 68, 35, 0.16);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--primary-600);
  line-height: 1.1;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-800);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 2px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary-600);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-700);
  font-weight: 600;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 68, 35, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 68, 35, 0.3);
  filter: brightness(1.04);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-800);
  border-color: rgba(20, 93, 47, 0.26);
}

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

.mobile-menu-btn {
  display: none;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-800);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  padding: 42px 0 96px;
  background: radial-gradient(circle at 80% 20%, rgba(22, 163, 74, 0.13) 0%, transparent 52%),
              radial-gradient(circle at 12% 30%, rgba(13, 148, 136, 0.11) 0%, transparent 45%),
              linear-gradient(180deg, var(--primary-50) 0%, #f4faf6 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 68, 35, 0.07);
  border: 1px solid var(--primary-100);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--primary-600);
  background: linear-gradient(120deg, var(--primary-700), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 570px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 93, 47, 0.16);
  color: var(--primary-800);
  cursor: pointer;
}

.quick-chip:hover {
  background: var(--primary-700);
  color: #fff;
  border-color: var(--primary-700);
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 68, 35, 0.18);
  border: 5px solid rgba(255, 255, 255, 0.95);
  background: #fff;
  aspect-ratio: 4 / 3.1;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-floating-sign {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--primary-100);
}

.hero-slide-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 48, 25, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 16px;
  color: #fff;
}

.hero-slide-caption {
  font-size: 0.84rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 24px;
  background: #4ade80;
}

/* ==================== FLOATING 4-STAT BAR ==================== */
.stats-wrapper {
  position: relative;
  z-index: 20;
  margin-top: -54px;
  margin-bottom: 36px;
}

.stats-bar {
  background: #ffffff;
  border-radius: 26px;
  padding: 26px 34px;
  box-shadow: 0 18px 46px rgba(15, 68, 35, 0.10);
  border: 1px solid rgba(20, 93, 47, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 12px;
  border-right: 1px solid #edf2ef;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-100);
}

.stat-number {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==================== ABOUT & POLICY SECTION ==================== */
.about-section {
  padding: 36px 0 60px;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background: var(--primary-800);
}

.about-media img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.about-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 40, 22, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}

.about-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-title .highlight {
  color: var(--primary-600);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 26px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.about-feature-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 93, 47, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

.about-feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.about-feature-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.about-feature-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ==================== SERVICES / MISSIONS SECTION ==================== */
.services-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-md);
  margin-bottom: 52px;
  border: 1px solid rgba(20, 93, 47, 0.06);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--primary-100);
  cursor: pointer;
}

.link-arrow:hover {
  background: var(--primary-600);
  color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  background: #f8fbf9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e6f0ea;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: var(--primary-400);
  box-shadow: 0 16px 32px rgba(15, 68, 35, 0.12);
}

.service-img-wrap {
  height: 128px;
  overflow: hidden;
  position: relative;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.08);
}

.service-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -24px auto 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(15, 68, 35, 0.14);
  border: 2px solid var(--primary-50);
  transition: all 0.25s ease;
}

.service-card:hover .service-icon-badge {
  background: var(--primary-600);
  color: #ffffff;
}

.service-body {
  padding: 0 12px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 6px;
}

.service-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==================== INTERACTIVE ORG CHART (PDF DIAGRAM STYLE) ==================== */
.org-chart-section {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-md);
  margin-bottom: 52px;
  border: 1px solid rgba(20, 93, 47, 0.08);
}

.org-head-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
}

.org-head-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: #fff;
  padding: 18px 28px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 68, 35, 0.22);
  border: 3px solid #fbbf24;
  max-width: 680px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.org-head-card:hover {
  transform: translateY(-3px);
}

.org-head-photo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid #ffffff;
  background: #fff;
  flex-shrink: 0;
}

.org-tree-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  padding-top: 22px;
  border-top: 3px solid var(--primary-600);
}

.org-member-col {
  display: flex;
  flex-direction: column;
  background: #f8fbf9;
  border: 1.5px solid #d5e6dc;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.org-member-col:hover {
  transform: translateY(-5px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.org-member-header {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  color: #fff;
  padding: 14px 12px;
  text-align: center;
}

.org-member-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 8px;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  background: #e2e8f0;
}

.org-member-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.org-member-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 2px;
}

.org-member-tasks {
  padding: 16px 14px;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.org-member-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}

.org-member-tasks li::before {
  content: '•';
  color: var(--primary-600);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
}

/* ==================== TEAM / STAFF CAROUSEL SECTION ==================== */
.team-section {
  background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 100%);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-md);
  margin-bottom: 52px;
  border: 1px solid rgba(20, 93, 47, 0.08);
}

.team-layout {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 36px;
  align-items: center;
}

.team-carousel-wrap {
  position: relative;
}

.team-cards-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.staff-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e4eee8;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.staff-photo-wrap {
  height: 195px;
  background: linear-gradient(180deg, var(--primary-100) 0%, var(--primary-50) 100%);
  overflow: hidden;
  position: relative;
}

.staff-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.staff-info {
  padding: 14px 10px 16px;
}

.staff-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.staff-role {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
}

.carousel-nav-btn {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-800);
  border: 1px solid rgba(20, 93, 47, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: var(--primary-600);
  color: #fff;
}

.carousel-nav-btn.prev {
  left: -18px;
}

.carousel-nav-btn.next {
  right: -18px;
}

/* ==================== DARK EMERALD E-BOOK & SYSTEMS BANNER ==================== */
.facilities-banner {
  background: linear-gradient(125deg, var(--primary-900) 0%, var(--primary-700) 60%, #0d3b2e 100%);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  color: #ffffff;
  margin-bottom: 52px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(7, 40, 20, 0.22);
}

.facilities-layout {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

.facilities-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.facilities-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.ebook-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ebook-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 165px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
  background: var(--primary-800);
  transition: all 0.3s ease;
}

.ebook-card:hover {
  transform: translateY(-5px);
  border-color: #4ade80;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.ebook-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: all 0.4s ease;
}

.ebook-card:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.ebook-card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 10px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 26, 13, 0.95) 100%);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==================== HIGHLIGHTS & NEWS SECTION (#highlights) ==================== */
.news-section {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-md);
  margin-bottom: 52px;
  border: 1px solid rgba(20, 93, 47, 0.06);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #dce8e0;
  background: #f8fbf9;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--primary-600);
  color: #fff;
  border-color: var(--primary-600);
}

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

.news-card {
  background: #f9fbfa;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e6f0ea;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-400);
}

.news-thumb {
  height: 168px;
  position: relative;
  overflow: hidden;
  background: var(--primary-900);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-play-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 48, 25, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.news-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 10px;
}

.news-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.42;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==================== CALENDAR & PRIMARY CARE DATA HUB ==================== */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 52px;
}

.hub-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(20, 93, 47, 0.08);
}

.hub-iframe-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  height: 360px;
  background: #f8fafc;
}

.hub-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================== BOTTOM CTA CONTACT BANNER ==================== */
.cta-contact-banner {
  background: linear-gradient(120deg, var(--primary-900) 0%, var(--primary-700) 55%, var(--primary-600) 100%);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 24px 56px rgba(9, 48, 25, 0.25);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.cta-left-title {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-left-sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.cta-Badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
}

.cta-phone-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 24px;
  padding: 26px 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.phone-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.phone-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1.2;
}

.phone-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.phone-go-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.site-footer {
  padding: 24px 0 44px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==================== UNIVERSAL INTERACTIVE MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 17, 0.68);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 26px;
  max-width: 960px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .org-tree-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ebook-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-layout,
  .facilities-layout {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .about-grid,
  .hub-grid,
  .cta-contact-banner {
    grid-template-columns: 1fr;
  }
  .stats-bar,
  .org-tree-grid,
  .team-cards-track,
  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
  }
}

@media (max-width: 540px) {
  .services-grid,
  .org-tree-grid,
  .ebook-cards-grid,
  .news-grid,
  .stats-bar,
  .team-cards-track {
    grid-template-columns: 1fr;
  }
  .services-wrapper,
  .org-chart-section,
  .team-section,
  .facilities-banner,
  .news-section,
  .cta-contact-banner {
    padding: 28px 20px;
  }
}
