/* ============================================
   YMDC — Yaseen Medical & Diagnostic Centre
   Brand: Navy / Gold / Red / White — clean institutional, restrained
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1A0A6E;
  --navy-deep: #12074c;
  --gold: #B8962E;
  --gold-light: #d4b84a;
  --red: #B22222;
  --white: #FFFFFF;
  --off-white: #FAF9F5;
  --ink: #221C4A;
  --grey: #6b6880;

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 8px;
  --border: 1px solid rgba(26, 10, 110, 0.12);
  --border-hover: 1px solid rgba(26, 10, 110, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.9); background: transparent; }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,10,110,0.08);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
}
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links li:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 12px;
  margin: 0 10px;
  background: rgba(26, 10, 110, 0.16);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 20%, black, transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
}
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: var(--white);
  line-height: 1.08;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 50px;
  display: flex;
  gap: 40px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.hero-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.hero-list li:last-child { border-bottom: none; }
.hero-list li span:last-child { color: rgba(255,255,255,0.9); font-weight: 600; }

/* Find a Doctor — AKUH-style labeled select + search */
.find-doctor-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}
.find-doctor-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.find-doctor-row select {
  flex: 1;
  min-width: 0;
  appearance: none;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}
.find-doctor-row select option {
  color: var(--ink);
  background: var(--white);
}
.find-doctor-row select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.55);
}
.find-doctor-row .btn { flex-shrink: 0; }

@keyframes doctorHighlight {
  0%, 100% { border-color: rgba(26, 10, 110, 0.12); }
  20%, 80% { border-color: var(--gold); }
  50% { border-color: var(--gold-light); }
}
.doctor-card.is-highlighted {
  animation: doctorHighlight 2s ease;
  border-color: var(--gold);
}

/* ---------- Section shared ---------- */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
}
.section-head p {
  margin-top: 14px;
  color: var(--grey);
  font-size: 1.02rem;
}

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy .section-head h2 { color: var(--white); }
.bg-navy .section-head p { color: rgba(255,255,255,0.7); }

/* ---------- About (editorial) ---------- */
.about-section {
  background: var(--white);
}
.about-page {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 70vh;
}
.about-wrap {
  max-width: 760px;
}
.about-intro h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 8px;
}
.about-mission {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--grey);
  max-width: 42em;
}
.about-block {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(26, 10, 110, 0.1);
}
.about-block-first {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}
.about-block h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
}
.about-block p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--grey);
  max-width: 40em;
}
.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-values li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--grey);
  max-width: 40em;
  padding-left: 0;
}
.about-values strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Departments ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.dept-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: var(--border);
  transition: border-color 0.15s ease;
  position: relative;
}
.dept-card:hover { border: var(--border-hover); }
/* Icon slot — replace .dept-icon contents with a simple line-icon SVG when available */
.dept-icon {
  display: none;
}
.dept-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.dept-card p { color: var(--grey); font-size: 0.92rem; }

/* ---------- Prosthetics feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-split .tag {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.feature-split h2 { font-size: 2rem; margin-bottom: 18px; }
.feature-split p { color: var(--grey); margin-bottom: 26px; font-size: 1.02rem; }
.prosthetics-carousel-wrap { position: relative; }
.prosthetics-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  scrollbar-width: none;
}
.prosthetics-carousel::-webkit-scrollbar { display: none; }
.prosthetics-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--off-white);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#prosthetics .carousel-arrows { margin-top: 16px; }
#prosthetics .carousel-arrow {
  border: 1px solid rgba(18, 7, 76, 0.2);
  background: rgba(18, 7, 76, 0.06);
  color: var(--navy);
}
#prosthetics .carousel-arrow:hover { background: rgba(18, 7, 76, 0.12); }
.feature-checks { display: flex; flex-direction: column; gap: 12px; }
.feature-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink);
}
.feature-checks li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--navy);
  flex-shrink: 0;
}

/* ---------- Doctors ---------- */
.doctor-group { margin-bottom: 46px; }
.doctor-group h3 {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: var(--border);
  transition: border-color 0.15s ease;
}
.doctor-card:hover { border: var(--border-hover); }
.doctor-card h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.doctor-card .qual { font-size: 0.85rem; color: var(--grey); margin-bottom: 12px; }
.doctor-card .avail {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Pharmacy ---------- */
.pharmacy-strip {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.pharmacy-strip h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pharmacy-strip p { color: var(--grey); }
.pharmacy-hours {
  background: var(--navy);
  color: var(--white);
  padding: 14px 26px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.pharmacy-hours span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--gold-light); }

/* ---------- Pharmacy catalogue page ---------- */
.pharmacy-page {
  padding: 140px 0 120px;
  background: var(--off-white);
  min-height: 70vh;
}
.pharmacy-page-wrap { max-width: 1100px; }
.pharmacy-intro h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 16px;
}
.pharmacy-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--grey);
  max-width: 40em;
}
.pharmacy-controls {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.pharmacy-tabs {
  display: flex;
  gap: 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pharmacy-tab {
  appearance: none;
  background: var(--white);
  border: none;
  border-right: var(--border);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pharmacy-tab:last-child { border-right: none; }
.pharmacy-tab.is-active {
  background: var(--navy);
  color: var(--white);
}
.pharmacy-search-label { flex: 1; min-width: 200px; max-width: 360px; }
.pharmacy-search-label input {
  width: 100%;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.pharmacy-search-label input:focus {
  outline: none;
  border-color: rgba(26, 10, 110, 0.35);
}
.pharmacy-count {
  margin: 18px 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
}
.pharmacy-catalog-wrap { margin-top: 4px; }
.pharmacy-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pharmacy-card {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pharmacy-card:hover {
  border-color: rgba(26, 10, 110, 0.35);
  background: rgba(26, 10, 110, 0.03);
}
.pharmacy-table-wrap {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.pharmacy-table {
  width: 100%;
  border-collapse: collapse;
}
.pharmacy-table thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 12px 16px;
  background: rgba(26, 10, 110, 0.04);
  border-bottom: var(--border);
}
.pharmacy-table tbody td {
  padding: 11px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(26, 10, 110, 0.06);
}
.pharmacy-table tbody tr:nth-child(even) { background: rgba(26, 10, 110, 0.03); }
.pharmacy-table tbody tr:last-child td { border-bottom: none; }
.pharmacy-row { cursor: pointer; transition: background 0.12s ease; }
.pharmacy-row:hover { background: rgba(26, 10, 110, 0.07) !important; }
.pharmacy-name { color: var(--ink); }
.pharmacy-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
}
.pharmacy-order-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 85;
  box-shadow: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lab page extras */
.lab-page .pharmacy-page-wrap { max-width: 820px; }
.lab-search-label { max-width: none; flex: 1; }
.lab-accordion {
  border-bottom: var(--border);
}
.lab-accordion:first-child {
  border-top: none;
}
.lab-accordion-header {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(26, 10, 110, 0.03);
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
}
.lab-accordion.is-open .lab-accordion-header {
  background: rgba(26, 10, 110, 0.06);
  border-bottom-color: rgba(26, 10, 110, 0.08);
}
.lab-accordion-title {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.lab-accordion-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey);
}
.lab-accordion-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.lab-accordion.is-open .lab-accordion-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.lab-accordion-body { background: var(--white); }
.lab-table { border: none; }
.lab-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(26, 10, 110, 0.08);
}
.lab-page-btn {
  appearance: none;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.lab-page-btn.is-active,
.lab-page-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.lab-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.lab-feature {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px 24px;
}
.lab-feature h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.lab-feature p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Lightweight homepage strip */
.site-banner {
  background: var(--white);
  border-bottom: 1px solid rgba(26, 10, 110, 0.1);
}
.site-banner-inner {
  padding: 14px 24px;
}
.site-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
}
.site-banner a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-banner a:hover { color: var(--navy-deep); }

@media (max-width: 900px) {
  .pharmacy-catalog { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pharmacy-controls { flex-direction: column; align-items: stretch; }
  .pharmacy-search-label { max-width: none; }
  .pharmacy-catalog { grid-template-columns: repeat(2, 1fr); }
  .pharmacy-order-cta { left: 24px; right: 24px; transform: none; width: auto; justify-content: center; }
  .pharmacy-page { padding-bottom: 140px; }
  .lab-features { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .pharmacy-catalog { grid-template-columns: 1fr; }
}

/* ---------- Promotions ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.promo-card {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.15s ease;
}
.promo-card:hover { border-color: rgba(255,255,255,0.4); }
.promo-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin: 12px 0;
}
.promo-card p.note { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 14px; }
.promo-card h3 { color: var(--white); }

/* ---------- Background photo sections (low-opacity real photography) ---------- */
/* Drop matching filenames into /images to activate — gradient shows as graceful fallback if missing */
.bg-photo {
  position: relative;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.bg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(18,7,76,0.55), rgba(18,7,76,0.45));
}
.bg-photo > .container { position: relative; z-index: 1; }

.bg-photo-light {
  position: relative;
  background-color: var(--off-white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.bg-photo-light::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(250,249,245,0.55), rgba(250,249,245,0.45));
}
.bg-photo-light > .container { position: relative; z-index: 1; }

/* Keep section headings readable over more-visible photo backgrounds */
#doctors.bg-photo .section-head h2,
#doctors.bg-photo .doctor-group h3 {
  text-shadow: 0 1px 10px rgba(18, 7, 76, 0.55);
}
#departments.bg-photo-light .section-head h2 {
  text-shadow: 0 1px 8px rgba(250, 249, 245, 0.9);
}

/* ---------- Hero background carousel ---------- */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  z-index: 0;
}
.hero-bg-slide.active { opacity: 0.28; }
.hero > .hero-grid { position: relative; z-index: 1; }

/* ---------- Department card interactivity ---------- */
.dept-card { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.dept-card .learn { margin-top: 12px; font-size: 0.8rem; font-weight: 700; color: var(--navy); display: inline-block; }

/* ---------- Department Modal ---------- */
.dept-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,7,76,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dept-modal-overlay.open { display: flex; }
.dept-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  border: var(--border);
}
.dept-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  border: var(--border);
  background: var(--off-white);
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Icon slot — replace with line-icon SVG when available */
.dept-modal .icon { display: none; }
.dept-modal h3 { font-size: 1.5rem; margin-bottom: 10px; }
.dept-modal p.desc { color: var(--grey); margin-bottom: 24px; }
.dept-modal .doctor-list-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.dept-modal .test-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dept-modal .test-list li {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 10, 110, 0.08);
  border-right: 1px solid rgba(26, 10, 110, 0.08);
}
.dept-modal .test-list li:nth-child(2n) { border-right: none; }
.dept-modal .test-list li:nth-last-child(-n+2) { border-bottom: none; }
.dept-modal .test-note {
  font-size: 0.88rem;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .dept-modal .test-list { grid-template-columns: 1fr; }
  .dept-modal .test-list li { border-right: none; }
  .dept-modal .test-list li:last-child { border-bottom: none; }
  .dept-modal .test-list li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(26, 10, 110, 0.08); }
  .dept-modal .test-list li:last-child { border-bottom: none; }
}
.dept-modal .doc-row {
  border-left: 3px solid var(--navy);
  background: var(--off-white);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.dept-modal .doc-row h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.dept-modal .doc-row .qual { font-size: 0.82rem; color: var(--grey); margin-bottom: 6px; }
.dept-modal .doc-row .avail { font-size: 0.8rem; color: var(--red); font-weight: 600; }
.dept-modal .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------- Promotions carousel ---------- */
.promo-carousel-wrap { position: relative; }
.promo-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-carousel .promo-card {
  scroll-snap-align: start;
  min-width: 280px;
  flex: 1 0 300px;
}
.carousel-arrows { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.carousel-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.16); }

/* Section-specific background photo slots — drop matching files into /images to activate */
#departments.bg-photo-light { background-image: url('../images/image2.png'); }
#doctors.bg-photo { background-image: url('../images/image3.png'); }
#promotions.bg-navy { background-color: var(--navy); }

/* ---------- Trust / Patient Info ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.trust-card {
  text-align: left;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.trust-card:hover { border-color: rgba(255,255,255,0.4); }
.trust-card .num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.trust-card p { font-size: 0.95rem; color: rgba(255,255,255,0.85); }

/* ---------- Blog preview ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border);
  transition: border-color 0.15s ease;
}
.blog-card:hover { border: var(--border-hover); transform: none; }
.blog-card .thumb {
  height: 140px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: center;
  padding: 20px;
}
.blog-card .body { padding: 22px; }
.blog-card .cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.blog-card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.blog-card p { color: var(--grey); font-size: 0.88rem; }
.blog-card .read-more { margin-top: 14px; font-weight: 700; font-size: 0.85rem; color: var(--navy); display: inline-block; }

/* ---------- Contact / Footer ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-block h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.contact-block p, .contact-block a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list strong { color: var(--gold-light); display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 30px 0;
  text-align: center;
  font-size: 0.82rem;
}
footer a { color: var(--gold-light); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--navy);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Blog / Article pages ---------- */
.blog-hero {
  padding: 150px 0 60px;
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: var(--white);
  text-align: center;
}
.blog-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.blog-hero p { color: rgba(255,255,255,0.75); margin-top: 12px; max-width: 560px; margin-left:auto; margin-right:auto; }

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 70px 0;
}

.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}
.article .cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.article h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 14px 0 10px;
}
.article .meta { color: var(--grey); font-size: 0.88rem; margin-bottom: 30px; }
.article h2 { font-size: 1.4rem; margin: 34px 0 14px; }
.article p { margin-bottom: 18px; color: var(--ink); font-size: 1.02rem; }
.article ul { margin: 0 0 18px 20px; list-style: disc; color: var(--ink); }
.article ul li { margin-bottom: 8px; }
.article .cta-box {
  background: var(--off-white);
  border: 1px solid rgba(26,10,110,0.1);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 40px;
  text-align: center;
}
.article .back-link { display:inline-block; margin-bottom: 20px; font-weight: 700; font-size: 0.88rem; color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .feature-split, .contact-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 140px 0 70px; }
}
