:root {
  --bg: #ffffff;
  --bg-soft: #f6fafb;
  --paper: #ffffff;
  --ink: #12232f;
  --ink-soft: #60717b;
  --line: #dbe8ec;
  --primary: #0f8ca4;
  --secondary: #8ecfd8;
  --accent: #176d82;
  --radius-lg: 0px;
  --radius-md: 0px;
  --shadow: 0 18px 45px rgba(18, 35, 47, 0.08);
  --font-body: "Didot", "Source Han Sans SC", "思源黑体", "Source Han Sans CN", "Source Han Sans", "PingFang SC", sans-serif;
  --font-cn: "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", "PingFang SC", sans-serif;
  --font-en: "Didot", Georgia, serif;
}

@font-face {
  font-family: "Didot";
  src: url("./assets/font/DIDOT.TTF") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(15, 140, 164, 0.08) 0%, transparent 22%),
    radial-gradient(circle at 0 16%, rgba(142, 207, 216, 0.1) 0%, transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f6fafb 100%);
  min-height: 100vh;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 0;
  z-index: 1000;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 232, 236, 0.92);
}

.header-inner,
.nav-shell {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(240px, 42vw);
}

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

.site-nav a {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(15, 140, 164, 0.1);
  color: var(--accent);
  outline: none;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(34, 211, 238, 0.18);
  outline: none;
}

.menu-btn {
  min-height: 44px;
  min-width: 64px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: none;
  cursor: pointer;
}

.menu-toggle {
  min-height: 44px;
  min-width: 64px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: none;
  cursor: pointer;
}

.section {
  padding: 100px 0;
}

.hero {
  padding: 0;
  background: #ffffff;
}

.hero-bg {
  display: none;
}

.hero-grid {
  display: block;
  min-height: 0;
}

.hero-copy,
.hero-gallery {
  grid-area: 1 / 1;
}

.hero-copy {
  display: none;
}

.eyebrow {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.hero p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 50px;
  border-radius: 0;
  padding: 0 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 140, 164, 0.22);
}

.btn-ghost {
  background: rgba(8, 145, 178, 0.12);
  color: var(--ink);
}

.btn-outline {
  border: 1px solid rgba(18, 35, 47, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.hero-gallery {
  position: relative;
  width: 100%;
}

.hero-static {
  background: #edf4f6;
}

.hero-static img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-carousel {
  position: relative;
  min-height: clamp(520px, 74vh, 780px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 0;
  background: #edf4f6;
  /* touch swipe */
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.52s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.carousel-track.no-transition {
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: clamp(520px, 74vh, 780px);
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  border: 0;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(18, 35, 47, 0.76);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(18, 35, 47, 0.08);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease,
    visibility 0.18s ease;
  display: grid;
  place-items: center;
}

.interactive-carousel:hover .carousel-btn,
.interactive-carousel:focus-within .carousel-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-50%) scale(1.04);
  opacity: 1;
  visibility: visible;
  outline: none;
}

.carousel-btn.prev {
  left: clamp(18px, 3vw, 36px);
}

.carousel-btn.next {
  right: clamp(18px, 3vw, 36px);
}

.section-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

#team > .container > h2,
#services > .container > h2 {
  margin: 0 0 24px;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.12;
}

.about-content {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
}

.about-points {
  margin: 14px 0 0;
  padding-left: 20px;
}

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

.section-about {
  padding-top: 82px;
}

.about-section-head {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.about-section-kicker {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #1b8f8b 0%, #4fc8bb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.about-section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.12;
  color: #111111;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 5vw, 62px);
  align-items: center;
}

.about-copy {
  max-width: 520px;
}

.about-copy .eyebrow {
  color: #97a1a8;
  letter-spacing: 0.08em;
}

.about-copy h3 {
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.08;
}

.about-copy p {
  margin: 0 0 18px;
  font-size: 1.12rem;
  line-height: 1.95;
  color: #5e6b73;
}

.about-gallery {
  display: block;
}

.about-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #edf4f6;
  box-shadow: 0 16px 38px rgba(18, 35, 47, 0.08);
}

.about-carousel .carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.about-carousel .carousel-dots {
  bottom: 18px;
}

.section-tint {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
}

.gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.doctor-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.doctor-card:hover,
.doctor-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(18, 35, 47, 0.14);
  outline: none;
}

.doctor-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

.doctor-card-preview .doctor-card-image {
  display: block;
  width: 100%;
  overflow: visible;
  background: #edf4f6;
}

.doctor-card-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.doctor-info {
  padding: 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.doctor-info h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.doctor-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.doctor-lightbox-open {
  overflow: hidden;
  padding-right: var(--doctor-lightbox-scrollbar-width, 0px);
}

.doctor-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.doctor-lightbox[hidden] {
  display: none;
}

.doctor-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.doctor-lightbox__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(8, 17, 26, 0.62);
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.doctor-lightbox.is-open .doctor-lightbox__backdrop {
  opacity: 1;
}

.doctor-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 40px);
  padding: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctor-lightbox.is-open .doctor-lightbox__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.doctor-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 40px);
  object-fit: contain;
}



.service-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #edf4f6;
}

.section-contact {
  position: relative;
  overflow: hidden;
  background: #ffffff url("./assets/images/map.png?1") center 180px / contain no-repeat;
}

.contact-shell {
  position: relative;
  display: block;
}

.contact-heading {
  position: relative;
  margin-bottom: 0;
}

.contact-intro {
  margin: 18px auto 0;
  max-width: 42ch;
  font-size: 1.03rem;
  color: var(--ink-soft);
}

.contact-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.contact-card {
  position: relative;
  min-height: 216px;
  padding: 30px 22px 28px;
  border: 0;
  background: transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.contact-card-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  border: 1.5px solid rgba(15, 140, 164, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 247, 249, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-card-icon svg {
  width: 34px;
  height: 34px;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.15;
}

.contact-card-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 500;
  color: #173443;
  padding: 0 10px;
}

.contact-card-value a,
.contact-card-value span {
  color: inherit;
  text-decoration: none;
}

.contact-map-shell {
  position: relative;
  margin-top: 34px;
  border: 1px solid rgba(8, 145, 178, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 26px 56px rgba(18, 35, 47, 0.1);
  backdrop-filter: blur(12px);
}

.contact-map-frame {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #d9e7ed;
}

.contact-map {
  width: 100%;
  min-height: 620px;
  background-color: #d9e7ed;
}

.contact-map-status {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 145, 178, 0.14);
  box-shadow: 0 14px 34px rgba(18, 35, 47, 0.14);
  color: var(--ink);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-map-status.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.contact-map-status.is-error {
  top: 22px;
  bottom: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
}

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

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-left > p {
  margin: 0;
}

.footer-beian {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-beian a {
  color: inherit;
  text-decoration: none;
}

.footer-beian a:hover {
  text-decoration: underline;
}

.footer-beian > * + *::before {
  content: '·';
  margin: 0 8px;
  opacity: 0.6;
}

.footer-shell a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ─── Scroll-reveal base ─── */
.js-reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger siblings */
.js-reveal-stagger > * {
  opacity: 0;
  transform: translateY(52px) scale(0.96);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-stagger.is-visible > *:nth-child(1)  { transition-delay: 0.04s; opacity: 1; transform: none; }
.js-reveal-stagger.is-visible > *:nth-child(2)  { transition-delay: 0.10s; opacity: 1; transform: none; }
.js-reveal-stagger.is-visible > *:nth-child(3)  { transition-delay: 0.16s; opacity: 1; transform: none; }
.js-reveal-stagger.is-visible > *:nth-child(4)  { transition-delay: 0.22s; opacity: 1; transform: none; }
.js-reveal-stagger.is-visible > *:nth-child(5)  { transition-delay: 0.28s; opacity: 1; transform: none; }
.js-reveal-stagger.is-visible > *:nth-child(6)  { transition-delay: 0.34s; opacity: 1; transform: none; }

/* ─── Hero entrance ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-up:nth-child(2) { animation-delay: 0.14s; }
.reveal-up:nth-child(3) { animation-delay: 0.26s; }

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Carousel dots ─── */
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 0;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dots button.active {
  width: 22px;
  background: var(--primary);
}

/* ─── Doctor card micro-interaction ─── */
.doctor-card {
  position: relative;
}

.doctor-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--secondary), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.doctor-card:hover::after,
.doctor-card:focus-visible::after {
  opacity: 1;
}

/* ─── Service card hover ─── */
.service-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(18, 35, 47, 0.12);
}

.service-card img {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Navbar scroll shadow ─── */
.site-header.scrolled {
  box-shadow: 0 10px 28px rgba(18, 35, 47, 0.08);
}

/* ─── Section divider shimmer ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(15, 140, 164, 0.18) 50%, transparent 100%);
  margin: 0;
  border: 0;
}

@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

/* ─── Gallery zoom ─── */
.gallery img {
  transition: transform 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.about-gallery img {
  transition: transform 0.4s ease;
}

.about-gallery img:hover {
  transform: scale(1.03);
}

/* ─── Accessibility: reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1024px) {
  .doctor-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-carousel {
    min-height: auto;
  }

  .carousel-slide img {
    height: auto;
    aspect-ratio: auto;
  }

  .split,
  .about-layout,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 74px 0;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: absolute;
    right: 4vw;
    top: 82px;
    width: min(320px, 90vw);
    border-radius: 0;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 8px;
    flex-direction: column;
    display: none;
  }

  .site-nav {
    position: absolute;
    right: 4vw;
    top: 82px;
    width: min(320px, 90vw);
    border-radius: 0;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    min-height: 46px;
  }

  .gallery,
  .about-gallery,
  .doctor-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-heading {
    text-align: left;
    margin: 0;
  }

  .contact-intro {
    margin-left: 0;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .contact-card {
    min-height: 360px;
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-action {
    width: 100%;
  }

  .hero {
    padding-top: 0;
  }

  .header-inner,
  .nav-shell {
    min-height: 80px;
  }

  .brand {
    max-width: 56vw;
  }

  .brand-logo {
    height: 42px;
    max-width: 100%;
  }

  .hero-carousel {
    min-height: auto;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 0;
  }

  .carousel-btn.prev {
    left: 14px;
  }

  .carousel-btn.next {
    right: 14px;
  }

  .carousel-dots {
    bottom: 16px;
  }

  .section-about {
    padding-top: 64px;
  }

  .about-section-head {
    margin-bottom: 32px;
  }

  .about-copy h3 {
    margin-bottom: 18px;
  }

  .about-copy p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .about-carousel {
    border-radius: 0;
  }
}

@media (hover: none) {
  .carousel-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
  }
}

.doctor-page {
  max-width: 960px;
}

.doctor-page-grid {
  margin-top: 0;
}

.doctor-layout {
  display: grid;
  gap: 20px;
}

.doctor-poster {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid #c8ecf2;
  box-shadow: var(--shadow);
}

.doctor-head {
  background: #fff;
  border: 1px solid #c8ecf2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.doctor-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid #bce7ef;
}

.doctor-summary h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.doctor-summary p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.doctor-skills,
.doctor-related {
  background: #fff;
  border: 1px solid #c8ecf2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.doctor-skills ul {
  margin: 0;
  padding-left: 20px;
}

.mini-doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-doctor {
  text-decoration: none;
  background: #f4fdff;
  border: 1px solid #caedf3;
  border-radius: 0;
  overflow: hidden;
  color: var(--ink);
}

.mini-doctor img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.mini-doctor span {
  display: block;
  padding: 8px;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .doctor-head {
    grid-template-columns: 1fr;
  }

  .mini-doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
