:root {
  --navy: #0B2E6B;
  --navy-deep: #081F49;
  --navy-light: #EEF2F9;
  --red: #D81E24;
  --red-hover: #B5171C;
  --paper: #F7F8FA;
  --panel: #FFFFFF;
  --ink: #101820;
  --muted: #5B6470;
  --line: rgba(11, 46, 107, 0.13);
  --shadow-sm: 0 4px 12px rgba(11, 46, 107, 0.07);
  --shadow-md: 0 12px 28px rgba(11, 46, 107, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(11, 46, 107, 0.22);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: 85px;
}

@media (max-width: 900px) {
  [id] {
    scroll-margin-top: 68px;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--navy-deep);
  overflow-wrap: break-word;
}

a {
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

/* Fluid wrap */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
}

/* Top Strip (Emergency Bar) */
.top-strip {
  background: var(--navy-deep);
  color: #DCE6F5;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 32px;
  gap: 12px;
  flex-wrap: wrap;
}

.top-strip a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
}

.top-strip a:hover {
  text-decoration: underline;
  color: #FF9B9E;
}

.top-strip .emg {
  color: #FF9B9E;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 680px) {
  .top-strip .wrap {
    padding: 7px 16px;
    font-size: 11.5px;
    justify-content: center;
    text-align: center;
    gap: 4px 10px;
  }

  .top-strip a {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    display: inline-block;
  }
}

@media (max-width: 380px) {
  .top-strip .wrap {
    font-size: 11px;
    padding: 6px 12px;
    gap: 3px;
  }
}

/* Header & Navigation */
header.site {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: all 0.25s ease;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.logo img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navlinks {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  align-items: center;
}

.navlinks a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  transition: all 0.2s ease;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

.navcta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-book-btn .btn-text-short {
  display: none;
}

.nav-drawer-footer,
.drawer-header {
  display: none;
}

.nav-backdrop {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.25;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 6px rgba(216, 30, 36, 0.25);
}

.btn-primary:hover {
  background: var(--red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 30, 36, 0.35);
}

.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(11, 46, 107, 0.06);
}

.nav-toggle.active {
  background: rgba(11, 46, 107, 0.08);
  border-color: rgba(11, 46, 107, 0.15);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-deep);
  display: block;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  header.site {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.menu-open header.site {
    background: #ffffff;
    z-index: 100002;
  }

  nav {
    position: relative;
    padding: 12px 0;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    z-index: 100001;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.menu-open .nav-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Off-canvas Side Drawer (Slides in from the right) */
  .navlinks {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(8, 31, 73, 0.22);
    display: flex;
    flex-direction: column;
    padding: 16px 18px 24px;
    padding-top: max(16px, env(safe-area-inset-top, 16px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    z-index: 100005;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
    gap: 4px;
    border-left: 1px solid var(--line);
    box-sizing: border-box;
  }

  .navlinks.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Drawer Top Bar with Brand & Close Button */
  .drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }

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

  .drawer-logo {
    height: 32px;
    width: auto;
    max-width: 155px;
    object-fit: contain;
  }

  .drawer-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #f8fafc;
    color: var(--navy-deep);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }

  .drawer-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--navy-deep);
    display: block;
    transition: stroke 0.2s ease, transform 0.2s ease;
  }

  .drawer-close:hover,
  .drawer-close:active {
    background: rgba(216, 30, 36, 0.08);
    border-color: rgba(216, 30, 36, 0.25);
    transform: scale(1.05);
  }

  .drawer-close:hover svg,
  .drawer-close:active svg {
    stroke: var(--red);
  }

  .navlinks a {
    padding: 13px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-deep);
    border-bottom: 1px solid rgba(11, 46, 107, 0.07);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease;
  }

  .navlinks a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--muted);
    border-right: 2px solid var(--muted);
    transform: rotate(45deg);
    opacity: 0.45;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    margin-left: 10px;
    flex-shrink: 0;
  }

  .navlinks a:hover,
  .navlinks a:active {
    background: rgba(11, 46, 107, 0.05);
    color: var(--navy);
  }

  .navlinks a:hover::after,
  .navlinks a:active::after {
    opacity: 1;
    border-color: var(--navy);
    transform: rotate(45deg) translate(2px, -2px);
  }

  .navlinks a.active {
    color: var(--red);
    font-weight: 700;
    background: rgba(216, 30, 36, 0.06);
    border-left: 3.5px solid var(--red);
    padding-left: 14px;
  }

  .navlinks a.active::after {
    opacity: 1;
    border-color: var(--red);
  }

  .nav-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
  }

  .nav-drawer-footer .drawer-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 14.5px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-sizing: border-box;
  }

  .nav-drawer-footer .drawer-call {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--navy-light);
    font-weight: 600;
  }

  .nav-drawer-footer::after {
    content: 'Ayodhya • 24/7 Emergency Care';
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 31, 73, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-backdrop.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .navcta .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .nav-book-btn .btn-text-full {
    display: none;
  }

  .nav-book-btn .btn-text-short {
    display: inline;
  }

  .navcta {
    gap: 6px;
  }

  .navcta .btn-primary {
    padding: 7px 12px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 480px) {
  nav {
    padding: 8px 0;
  }

  .logo img {
    height: 32px;
  }

  .navlinks {
    padding: 10px 16px 20px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    padding: 5px;
  }

  .nav-toggle span {
    width: 20px;
  }
}

@media (max-width: 360px) {
  .logo img {
    height: 28px;
  }

  .navcta .btn-primary {
    padding: 6px 9px;
    font-size: 11.5px;
  }

  .nav-toggle {
    width: 34px;
    height: 34px;
  }

  .nav-toggle span {
    width: 17px;
  }
}

/* Page Header Banner (for inner pages) */
.page-banner {
  background: linear-gradient(180deg, #EEF2F9 0%, var(--paper) 100%);
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.page-banner .eyebrow {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.page-banner h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  color: var(--navy-deep);
  line-height: 1.15;
  max-width: 100%;
}

.page-banner p {
  margin-top: 14px;
  font-size: clamp(15px, 2vw, 16.5px);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .page-banner {
    padding: 36px 0 40px;
  }
}

/* Hero Section */
.hero {
  padding: 70px 0 84px;
  background: linear-gradient(180deg, #EEF2F9 0%, var(--paper) 100%);
}

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

.eyebrow {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.12;
  color: var(--navy-deep);
  max-width: 100%;
}

.hero p.lede {
  margin-top: 20px;
  font-size: clamp(15.5px, 2vw, 17.5px);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
}

.hero .actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 24px;
}

.trust-row div {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.trust-row strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 28px);
  color: var(--navy-deep);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 3px;
}

.hero-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
  background: #DDE6F4;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.hero-photo .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 22px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 31, 73, 0.92) 100%);
  color: #fff;
}

.hero-photo .cap strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
}

.hero-photo .cap span {
  font-size: 12.5px;
  color: #DCE6F5;
  display: block;
  margin-top: 2px;
}

@media (max-width: 1000px) {
  .hero .wrap {
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 46px 0 56px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-photo {
    order: -1;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 36px 0 44px;
  }
  .hero .actions {
    margin-top: 24px;
    flex-direction: column;
    gap: 10px;
  }
  .hero .actions .btn {
    width: 100%;
    text-align: center;
  }
  .trust-row {
    margin-top: 30px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .trust-row div {
    font-size: 11.5px;
  }
  .trust-row strong {
    font-size: 22px;
  }
  .hero-photo img {
    max-height: 380px;
  }
  .hero-photo .cap {
    padding: 32px 16px 14px;
  }
}

@media (max-width: 360px) {
  .trust-row {
    grid-template-columns: 1fr;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
}

/* Sections */
.section {
  padding: 84px 0;
}

.section.alt {
  background: #fff;
}

.section.tight {
  padding: 56px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 46px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(24px, 3.8vw, 32px);
  color: var(--navy-deep);
  max-width: 100%;
}

.section-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .section {
    padding: 52px 0;
  }
  .section.tight {
    padding: 38px 0;
  }
  .section-head {
    margin-bottom: 28px;
    padding-bottom: 16px;
    gap: 12px;
  }
}

/* Departments Grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dept-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.dept-card {
  background: var(--paper);
  padding: 28px 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dept-card:hover {
  background: #fff;
}

.dept-card .num {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--red);
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dept-card h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
  color: var(--navy-deep);
  line-height: 1.25;
}

.dept-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .dept-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dept-grid,
  .dept-grid.four {
    grid-template-columns: 1fr;
  }
  .dept-card {
    padding: 20px 18px;
  }
}

/* Doctors Showcase Grid (index.html) */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.doc-grid.wide {
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.doc-grid.six {
  grid-template-columns: repeat(3, 1fr);
}

.doc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doc-photo {
  width: 100%;
  aspect-ratio: 3/3.2;
  background: linear-gradient(160deg, #DDE6F4, #C6D4EB);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.doc-card:hover .doc-photo img {
  transform: scale(1.03);
}

.doc-photo.round {
  aspect-ratio: 1/1;
  border-radius: 50%;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 16px rgba(11, 46, 107, 0.15);
}

.doc-card h3 {
  font-size: 16.5px;
  color: var(--navy-deep);
  line-height: 1.25;
}

.doc-card .role {
  font-size: 13px;
  color: var(--red);
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.4;
}

.doc-card .qual {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .doc-grid.six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .doc-photo.round {
    max-width: 120px;
  }
  .doc-card h3 {
    font-size: 14.5px;
  }
  .doc-card .role {
    font-size: 12px;
  }
}

@media (max-width: 350px) {
  .doc-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .doc-photo.round {
    max-width: 150px;
  }
}

/* Feature Doctor Card */
.doc-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.doc-feature .doc-photo {
  margin-bottom: 0;
  aspect-ratio: 1/1.05;
}

.doc-feature h3 {
  font-size: 22px;
  color: var(--navy-deep);
}

.doc-feature .role {
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}

.doc-feature .qual {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.doc-feature p.bio {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .doc-feature {
    grid-template-columns: 1fr;
  }
}

/* Doctor List Cards (doctors.html) */
.dr-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dr-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  align-items: start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.dr-card .ph {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--navy);
  background: #DDE6F4;
  flex-shrink: 0;
}

.dr-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.dr-card h3 {
  font-size: 19px;
  color: var(--navy-deep);
  line-height: 1.25;
}

.dr-card .role {
  font-size: 13.5px;
  color: var(--red);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.35;
}

.dr-card .qual {
  font-size: 13px;
  color: var(--ink);
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.4;
}

.dr-card .more {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}

.dr-card .more li {
  margin-bottom: 3px;
}

.dr-card .timing {
  margin-top: 10px;
  font-size: 13px;
  color: var(--navy-deep);
  font-weight: 600;
}

.dr-card .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--red);
  padding: 3px 10px;
  border-radius: 20px;
}

@media (max-width: 960px) {
  .dr-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .dr-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
    justify-items: center;
  }
  .dr-card .ph {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  .dr-card .more {
    text-align: left;
    display: inline-block;
    padding-left: 20px;
  }
}

/* Facilities Grid */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.facility-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.facility-card .ficon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EEF2F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.facility-card h3 {
  font-size: 17.5px;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.facility-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .facility-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .facility-card {
    padding: 20px 18px;
  }
}

/* Stats Grid (about.html) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stat-card {
  background: #fff;
  padding: 28px 22px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--navy-deep);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 18px 12px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .stat-card span {
    font-size: 12.5px;
  }
}

/* Values Grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  font-size: 17px;
  color: var(--navy-deep);
  margin-bottom: 9px;
}

.value-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 580px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .value-card {
    padding: 20px 18px;
  }
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.team-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
}

.team-card h3 {
  font-size: 15.5px;
  color: var(--navy-deep);
}

.team-card .role {
  font-size: 12.5px;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}

.team-card .qual {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Quote Section */
.quote {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.quote p {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 3.5vw, 27px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--navy-deep);
}

.quote .who {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Contact Section & Form */
.contact-section {
  background: var(--navy-deep);
  color: #DCE6F5;
  padding: 70px 0;
}

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

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-grid h2 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 30px);
  margin-bottom: 18px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 15px;
}

.contact-item .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.contact-item a {
  text-decoration: none;
  color: #fff;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item div.label {
  font-size: 12.5px;
  color: #9FB3D6;
  margin-bottom: 3px;
  font-weight: 500;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  color: var(--navy-deep);
  font-size: 20px;
  margin-bottom: 18px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy-deep);
}

/* Ensure font-size is 16px on inputs to prevent iOS auto-zoom */
.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  background: #FBFBFD;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 46px;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 46, 107, 0.12);
  background: #fff;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
  background: #eee;
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.book-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.book-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--navy-deep);
}

.book-card .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.book-card .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 6px;
  padding: 13px;
}

@media (max-width: 900px) {
  .contact-section {
    padding: 50px 0;
  }
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-form {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .contact-item {
    font-size: 14px;
  }
  .map-embed iframe {
    height: 250px;
  }
}

/* Footer */
footer {
  background: #081533;
  color: #B9C5DE;
  padding: 32px 0;
  font-size: 13.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

footer a {
  text-decoration: none;
  color: #B9C5DE;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  footer {
    padding: 26px 0;
    text-align: center;
  }
  footer .wrap {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

.section-cta {
  margin-top: 32px;
}

@media (max-width: 540px) {
  .section-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* FAQ Section & Accordion Component */
.faq-section {
  position: relative;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(11, 46, 107, 0.28);
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(11, 46, 107, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.35;
  user-select: none;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

/* Remove default triangle markers in Safari & WebKit */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
}

.faq-question:hover {
  color: var(--red);
}

.faq-question:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.faq-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--red);
  color: #ffffff;
}

.faq-answer {
  padding: 0 24px 22px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  border-top: 1px solid rgba(11, 46, 107, 0.08);
  padding-top: 16px;
  animation: faqFadeIn 0.25s ease-out;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--navy-deep);
  font-weight: 600;
}

.faq-answer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--red);
}

.faq-footer-cta {
  margin-top: 36px;
  padding: 26px 28px;
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.faq-footer-cta .cta-text h4 {
  font-family: 'Fraunces', serif;
  font-size: 18.5px;
  color: var(--navy-deep);
  margin: 0 0 4px 0;
}

.faq-footer-cta .cta-text p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.faq-footer-cta .cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: 16.5px;
    padding: 16px 18px;
  }
  .faq-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 18px;
    margin-left: 12px;
  }
  .faq-answer {
    padding: 0 18px 18px 18px;
    padding-top: 14px;
    font-size: 14px;
  }
  .faq-footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
  }
  .faq-footer-cta .cta-actions {
    width: 100%;
  }
  .faq-footer-cta .cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Touch devices & accessibility enhancements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .navlinks a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .navcta .btn {
    min-height: 32px;
  }
}

