:root {
--bg: #f7f2e8;
  --surface: #ffffff;
  --surface-soft: #eef7f5;
  --text: #18313a;
  --muted: #5a6a70;
  --primary: #0e6670;
  --primary-dark: #09323a;
  --brand-blue: #1e57a6;
  --accent: #f5c46b;
  --accent-dark: #c96f3f;
  --border: #dfe7e9;
  --shadow: 0 18px 45px rgba(8, 38, 46, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 64px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 70, 90, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.logo img {
  width: 124px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 999px;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar nav a {
  position: relative;
  text-decoration: none;
  color: #253b43;
  font-weight: 600;
  padding: 8px 3px;
  font-size: 1.08rem;
  transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.navbar nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
  background: rgba(14, 102, 112, 0.06);
}

.navbar nav a:hover::after {
  width: 100%;
}

.navbar nav a.nav-active {
  color: var(--primary);
}

.navbar nav a.nav-active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 8px 3px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #253b43;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.resources-active .nav-dropdown-toggle {
  color: var(--primary);
  transform: translateY(-1px);
  background: rgba(14, 102, 112, 0.06);
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown.resources-active .nav-dropdown-toggle::after {
  width: 100%;
}

.nav-dropdown-icon {
  display: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border-radius: 18px;
  border: 1px solid rgba(223, 231, 233, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(8, 38, 46, 0.14);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 5;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #253b43;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  color: var(--primary);
  background: rgba(14, 102, 112, 0.08);
  transform: translateX(3px);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-notification {
  gap: 8px;
}

.nav-notification span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #c93d45;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(96.5vh - 76px);
  box-sizing: border-box;
  padding: 18px 7% 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.48fr);
  gap: 46px;
  align-items: stretch;
}

.hero-gallery-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-gallery-bg {
  width: 100%;
  height: 100%;
  background-image: url("img3.jpeg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.34) 42%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

.hero-gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.58);
  color: #05282e;
  box-shadow: 0 12px 28px rgba(8, 38, 46, 0.14);
  backdrop-filter: blur(6px);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
}

.hero-gallery-btn:hover {
  border-color: rgba(14, 102, 112, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.06);
}

.hero-gallery-prev {
  left: 22px;
}

.hero-gallery-next {
  right: 22px;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: static;
}

.hero-content {
  max-width: 560px;
  padding: 52px 34px 48px;
  text-align: center;
  justify-self: start;
  margin-left: 0;
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  align-self: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) padding-box,
    linear-gradient(90deg, rgba(225, 27, 34, 0.18), rgba(30, 87, 166, 0.16)) border-box;
  border: 4px solid transparent;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 24px 52px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  width: 100%;
}

.hero-tagline,
.services-tagline,
.section-kicker,
.hero-card-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.section-kicker,
.services-tagline {
  color: #b66335;
}

.hero-tagline,
.hero-card-label {
  color: #ffe7a8;
}

.hero h1 {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  font-size: clamp(1.55rem, 2.15vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
  white-space: normal;
  font-family: "Aptos Display", "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

.hero-headline-line {
  display: inline;
  position: relative;
  z-index: 1;
}

.hero-headline-sub {
  margin-top: 0;
  margin-left: 0.3em;
}

.hero-emphasis {
  color: #c93d45;
  text-shadow: 0 0 10px rgba(201, 61, 69, 0.24);
}

.hero-copy {
  font-size: 0.96rem;
  line-height: 1.6;
  width: min(62ch, 54vw);
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  align-self: flex-start;
  text-align: left;
}

.hero-actions {
  margin-top: 38px;
  padding-top: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
}

.hero-actions .btn {
  min-width: 0;
  padding: 0 16px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 190px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #e11b22, #1e57a6) border-box;
  color: var(--brand-blue);
  border: 2px solid transparent;
}

.secondary {
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #e11b22, #1e57a6) border-box;
  color: var(--brand-blue);
  border: 2px solid transparent;
}

.primary:hover {
  background: linear-gradient(90deg, #e7f0ff 0%, #f7dddd 100%) padding-box,
    linear-gradient(90deg, #e11b22, #1e57a6) border-box;
  color: #1f2a2f;
  box-shadow: 0 16px 30px rgba(22, 51, 99, 0.1);
}

.secondary:hover {
  background: linear-gradient(90deg, #e7f0ff 0%, #f7dddd 100%) padding-box,
    linear-gradient(90deg, #e11b22, #1e57a6) border-box;
  color: #1f2a2f;
  box-shadow: 0 16px 30px rgba(22, 51, 99, 0.1);
}

.tertiary {
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #e11b22, #1e57a6) border-box;
  color: var(--brand-blue);
  border: 2px solid transparent;
  font-size: 1.05rem;
  min-width: 206px;
}

.tertiary:hover {
  background: linear-gradient(90deg, #e7f0ff 0%, #f7dddd 100%) padding-box,
    linear-gradient(90deg, #e11b22, #1e57a6) border-box;
  color: #1f2a2f;
  box-shadow: 0 16px 30px rgba(22, 51, 99, 0.1);
}

.hero-highlights {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-items: start;
}

.hero-highlights div {
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-highlight-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-highlight-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.96);
}

.hero-highlight-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-highlight-text {
  min-width: 0;
}

.hero-highlights strong {
  display: block;
  font-size: 0.96rem;
}

.hero-highlights span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.hero-card {
  justify-self: end;
  align-self: center;
  width: min(100%, 430px);
  margin-top: 40px;
  margin-right: -18px;
  padding: 18px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)) padding-box,
    linear-gradient(135deg, rgba(184, 29, 42, 0.12), rgba(30, 87, 166, 0.08)) padding-box,
    linear-gradient(90deg, rgba(225, 27, 34, 0.16), rgba(30, 87, 166, 0.14)) border-box;
  border: 4px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 22px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(3px);
  text-align: center;
}

.hero-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.hero-card p {
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hero-card-divider {
  margin: 14px 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-card-label-emergency {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(184, 29, 42, 0.18);
  color: #ffd9dd;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(184, 29, 42, 0.18) inset;
  width: fit-content;
  margin: 0 auto 10px;
}

.hero-card-label,
.card-link {
  justify-content: center;
}

.about,
.services,
.doctor,
.appointment,
.testimonials,
.faq {
  padding: 72px 7%;
}

.doctor {
  padding-bottom: 40px;
}

.about,
.doctor,
.appointment {
  background: var(--surface);
}

.about-gallery {
  position: relative;
  padding-top: 24px;
  padding-bottom: 88px;
  background: #fff1e6;
}

.about-gallery-stage {
  position: relative;
  min-height: 440px;
  padding: 76px 5% 72px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  border: 4px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(238, 247, 247, 0.06)) padding-box,
    linear-gradient(90deg, rgba(209, 18, 32, 0.36), rgba(30, 87, 166, 0.3)) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 45px rgba(8, 38, 46, 0.1);
}

.about-gallery-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.about-gallery-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(238, 247, 247, 0.14));
}

.services,
.testimonials {
  background: var(--surface-soft);
}

.faq {
  background: linear-gradient(180deg, #f7eee1, #eef5f7);
  text-align: center;
}

.faq h2 {
  color: var(--accent-dark);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.about .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 16px;
}

.doctor-heading {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 54px;
}

.services .section-kicker,
.services h2,
.services .section-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: var(--brand-blue);
}

.services .section-kicker {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  font-weight: 700;
  color: #b66335;
}

.about h2,
.services h2,
.doctor h2,
.appointment h2,
.testimonials h2,
.faq h2 {
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  line-height: 1.15;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.about .section-heading h2 {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--primary);
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.35;
  text-align: center;
}

.doctor .section-kicker {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
}

.doctor .section-heading h2 {
  color: var(--primary);
}

.doctor .section-text {
  margin-left: auto;
  margin-right: auto;
  color: var(--primary);
}

.about .section-kicker {
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.about .section-text {
  margin-left: auto;
  margin-right: auto;
  color: var(--brand-blue);
}

.testimonials {
  text-align: center;
}

.resources {
  padding: 72px 7%;
  background: linear-gradient(180deg, #f6fbfb, #eef5f5);
  scroll-margin-top: 90px;
}

.resources-heading {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 28px;
}

.resources-heading .section-text {
  margin-left: auto;
  margin-right: auto;
}

.resources-grid,
.resource-article-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card,
.resource-article {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  border-radius: 24px;
  border: 4px solid transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 18px 42px rgba(8, 38, 46, 0.08);
  transition: transform 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.resource-card:hover,
.resource-article:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 56px rgba(8, 38, 46, 0.14),
    0 0 20px rgba(30, 87, 166, 0.12),
    0 0 16px rgba(225, 27, 34, 0.08);
}

.resource-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(225, 27, 34, 0.34), rgba(30, 87, 166, 0.26)) border-box;
}

.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(5, 40, 46, 0.05), rgba(5, 40, 46, 0.36));
  z-index: 0;
  pointer-events: none;
}

.resource-card-visual-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(201, 111, 63, 0.34), rgba(14, 102, 112, 0.28)) border-box;
}

.resource-card-visual-third {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(30, 87, 166, 0.32), rgba(15, 91, 102, 0.28)) border-box;
}

.resource-card > * {
  position: relative;
  z-index: 1;
}

.gallery-preview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.gallery-preview-card::before {
  display: block;
  z-index: 1;
}

.gallery-preview-card > :not(img) {
  position: relative;
  z-index: 2;
}

.resource-tag,
.resource-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.resource-meta {
  background: rgba(15, 91, 102, 0.08);
  color: var(--primary);
}

.resource-card h3,
.resource-article h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.resource-card h3 {
  color: #ffffff;
}

.resource-card p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.home-gallery-card {
  min-height: 285px;
  animation: galleryCardFloat 5.8s ease-in-out infinite;
}

.home-gallery-card:nth-child(2) {
  animation-delay: 0.7s;
}

.home-gallery-card:nth-child(3) {
  animation-delay: 1.4s;
}

.home-gallery-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: galleryImageDrift 9s ease-in-out infinite alternate;
}

.home-gallery-card:nth-child(2) img {
  animation-delay: 1s;
}

.home-gallery-card:nth-child(3) img {
  animation-delay: 2s;
}

.home-gallery-card::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 40, 46, 0.08), rgba(5, 40, 46, 0.72)),
    radial-gradient(circle at top right, rgba(30, 87, 166, 0.28), transparent 42%);
}

.home-gallery-card > :not(img) {
  position: relative;
  z-index: 2;
}

.home-gallery-card:hover {
  animation-play-state: paused;
}

.home-gallery-card:hover img {
  animation-play-state: paused;
  transform: scale(1.14);
}

@keyframes galleryCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes galleryImageDrift {
  0% {
    transform: scale(1.08) translateX(-8px);
  }
  100% {
    transform: scale(1.14) translateX(8px);
  }
}

.resource-article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(243, 248, 249, 0.985)) padding-box,
    linear-gradient(135deg, rgba(15, 91, 102, 0.18), rgba(30, 87, 166, 0.16)) border-box;
}

.resource-article p {
  color: var(--muted);
  line-height: 1.72;
}

.blog-see-more,
.blog-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #1d5b6a;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.blog-detail-section {
  background: linear-gradient(180deg, #f6fbfb, #ffffff);
}

.blog-detail {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 38, 46, 0.09);
}

.blog-detail h1 {
  margin: 8px 0 20px;
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.blog-detail-body h3 {
  margin: 28px 0 10px;
  color: #1d5b6a;
  font-size: 1.2rem;
}

.blog-detail-body p,
.blog-detail-body li {
  color: var(--muted);
  line-height: 1.78;
}

.blog-detail-body p + p,
.blog-detail-body ul + p,
.blog-detail-body ol + p {
  margin-top: 14px;
}

.blog-detail-body ul,
.blog-detail-body ol {
  margin: 10px 0 18px 22px;
}

.page-section {
  padding: 64px 7%;
  background: var(--surface);
}

.page-section-soft {
  background: linear-gradient(180deg, #f8fbfb, #eef7f5);
}

.page-section-warm {
  background: linear-gradient(180deg, #fff7ef, #f8fbfb);
}

.content-heading {
  max-width: 860px;
  margin: 0 auto 26px;
  text-align: center;
}

.content-heading h2 {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.18;
}

.content-heading p {
  color: var(--muted);
  line-height: 1.72;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.content-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  padding: 24px;
  border: 1px solid rgba(15, 91, 102, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 249, 0.97)) padding-box,
    linear-gradient(135deg, rgba(30, 87, 166, 0.16), rgba(225, 27, 34, 0.1)) border-box;
  box-shadow: 0 16px 36px rgba(8, 38, 46, 0.07);
}

.content-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.7;
}

.content-card ul {
  padding-left: 18px;
}

.content-card li + li {
  margin-top: 8px;
}

.content-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(30, 87, 166, 0.1);
  color: var(--brand-blue);
  font-weight: 800;
}

.login-section {
  min-height: calc(100vh - 260px);
  background: linear-gradient(180deg, #f8fbfb, #eef7f5);
}

.login-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 520px;
  margin: 0 auto;
}

.login-panel {
  padding: 30px;
  border: 4px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 249, 0.96)) padding-box,
    linear-gradient(135deg, rgba(30, 87, 166, 0.22), rgba(225, 27, 34, 0.12)) border-box;
  box-shadow: 0 18px 42px rgba(8, 38, 46, 0.08);
  text-align: center;
}

.login-panel-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 239, 0.94)) padding-box,
    linear-gradient(135deg, rgba(225, 27, 34, 0.18), rgba(14, 102, 112, 0.22)) border-box;
}

.login-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.login-panel h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1.45rem;
}

.login-panel p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.login-error {
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #ffe7e9;
  color: #9b0409;
  font-weight: 800;
  text-align: center;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(15, 91, 102, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.login-form button {
  min-height: 46px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #e11b22, #1e57a6);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.receptionist-dashboard {
  background: linear-gradient(180deg, #f7fbfb, #edf6f5);
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 60px;
  padding: 6px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  isolation: isolate;
  background: linear-gradient(90deg, #ffffff, #f2faf9);
  border-bottom: 1px solid rgba(29, 91, 106, 0.12);
  box-shadow: 0 10px 24px rgba(8, 38, 46, 0.06);
}

.panel-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.panel-logo img {
  width: 86px;
  height: auto;
  display: block;
}

.panel-workspace-title {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: max-content;
  max-width: 46vw;
  margin: 0;
  color: #123f49;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.panel-notification,
.panel-logout {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.panel-notification {
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(29, 91, 106, 0.16);
  background: #f7fbfb;
  color: #24515b;
}

.panel-bell {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-notification strong {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dcefed;
  border: 1px solid rgba(29, 91, 106, 0.12);
  color: #1d5b6a;
  font-size: 0.78rem;
}

.panel-logout {
  padding: 0 16px;
  border: 1px solid rgba(29, 91, 106, 0.16);
  background: #ffffff;
  color: #24515b;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-topbar h2 {
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

.dashboard-topbar p:last-child {
  color: var(--muted);
  margin-top: 8px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.dashboard-stat,
.dashboard-panel {
  border: 1px solid rgba(29, 91, 106, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(8, 38, 46, 0.055);
}

.dashboard-stat {
  padding: 18px;
}

.dashboard-stat strong {
  display: block;
  color: #1d5b6a;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.receptionist-shell {
  position: relative;
}

.receptionist-content {
  display: block;
}

.admin-content {
  display: grid;
  gap: 22px;
}

.admin-shell .dashboard-stats,
.admin-shell .admin-module-grid,
.admin-shell .receptionist-management,
.admin-shell .content-management,
.admin-shell .admin-dashboard-layout {
  margin-bottom: 0;
}

.receptionist-nav-check {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.receptionist-nav-toggle {
  position: fixed;
  left: 18px;
  top: 78px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid rgba(29, 91, 106, 0.16);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(8, 38, 46, 0.16);
  cursor: pointer;
}

.receptionist-nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #1d5b6a;
}

.receptionist-sidebar {
  position: fixed;
  top: 70px;
  left: 18px;
  z-index: 45;
  width: min(280px, calc(100vw - 36px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(29, 91, 106, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(8, 38, 46, 0.2);
  transform: translateX(calc(-100% - 28px));
  transition: transform 0.24s ease;
}

.receptionist-nav-check:checked ~ .receptionist-dashboard .receptionist-sidebar {
  transform: translateX(0);
}

.receptionist-sidebar h3 {
  margin-bottom: 14px;
  color: var(--primary-dark);
}

.receptionist-nav {
  display: grid;
  gap: 10px;
}

.receptionist-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(29, 91, 106, 0.07);
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.dashboard-panel {
  padding: 22px;
}

.dashboard-panel h3 {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.dashboard-form,
.dashboard-filter {
  display: grid;
  gap: 12px;
}

.dashboard-form input,
.dashboard-form select,
.dashboard-form textarea,
.dashboard-filter input,
.dashboard-filter select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(15, 91, 102, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.dashboard-form textarea {
  min-height: 104px;
  resize: vertical;
}

.dashboard-form button,
.dashboard-filter button,
.inline-action-form button {
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: #1d5b6a;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.dashboard-filter {
  grid-template-columns: minmax(220px, 320px) auto;
  align-items: end;
  justify-content: start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-filter label {
  color: var(--primary-dark);
  font-weight: 800;
}

.dashboard-filter input {
  margin-top: 8px;
}

.dashboard-filter select {
  margin-top: 8px;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-module {
  min-height: 150px;
}

.admin-module p {
  color: var(--muted);
  line-height: 1.65;
}

.admin-dashboard-layout {
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
}

.admin-filter {
  grid-template-columns: minmax(180px, 260px) minmax(200px, 280px) auto;
}

.content-management {
  margin-bottom: 24px;
}

.receptionist-management {
  margin-bottom: 24px;
}

.receptionist-management-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.receptionist-table-wrap {
  border-radius: 16px;
  background: rgba(29, 91, 106, 0.04);
}

.receptionist-table {
  min-width: 620px;
}

.content-management-heading {
  margin-bottom: 18px;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-content-section {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-content-section h3 {
  color: var(--primary-dark);
}

.admin-content-form {
  padding: 14px;
  border-radius: 16px;
  background: rgba(29, 91, 106, 0.06);
}

.admin-content-form input[type="file"] {
  padding: 10px;
}

.content-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 800;
}

.content-check input {
  width: auto;
}

.content-edit-list {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.content-edit-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 91, 102, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.content-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-doctor-list {
  display: grid;
  gap: 12px;
}

.admin-doctor-list article {
  padding: 14px;
  border-radius: 16px;
  background: rgba(29, 91, 106, 0.06);
}

.admin-doctor-list strong,
.admin-doctor-list span,
.admin-doctor-list small {
  display: block;
}

.admin-doctor-list strong {
  color: var(--primary-dark);
}

.admin-doctor-list span {
  margin-top: 5px;
  color: var(--muted);
}

.admin-doctor-list small {
  margin-top: 8px;
  color: #1d5b6a;
  font-weight: 800;
}

.dashboard-tabs {
  display: inline-flex;
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
  background: rgba(29, 91, 106, 0.08);
}

.dashboard-tabs a {
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.dashboard-tabs a.is-active {
  background: #ffffff;
  color: #1d5b6a;
  box-shadow: 0 8px 18px rgba(8, 38, 46, 0.08);
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(15, 91, 102, 0.12);
  text-align: left;
  vertical-align: top;
}

.dashboard-table th {
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.dashboard-table td,
.dashboard-table small {
  color: var(--muted);
}

.dashboard-table td:first-child,
.dashboard-table td:nth-child(2) {
  color: var(--text);
  font-weight: 800;
}

.inline-action-form button {
  min-height: 34px;
  padding: 0 12px;
  background: #6b7f86;
  font-size: 0.86rem;
}

.action-stack {
  display: grid;
  gap: 8px;
  align-items: start;
}

.compact-select {
  width: 100%;
  min-width: 132px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 91, 102, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.table-action-link,
.table-file-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 91, 106, 0.1);
  color: #1d5b6a;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.muted-cell {
  color: var(--muted);
  font-size: 0.9rem;
}

.management-form,
.upload-prescription-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.management-form textarea,
.management-form button,
.upload-prescription-form button {
  grid-column: 1 / -1;
}

.consultancy-list {
  display: grid;
  gap: 12px;
}

.consultancy-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(29, 91, 106, 0.06);
}

.consultancy-item strong,
.consultancy-item span,
.consultancy-item a {
  display: block;
}

.consultancy-item span {
  margin-top: 4px;
  color: var(--muted);
}

.consultancy-item a {
  margin-top: 8px;
  color: #1d5b6a;
  overflow-wrap: anywhere;
}

.patient-record-table {
  min-width: 980px;
}

.dashboard-empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(29, 91, 106, 0.07);
  color: var(--muted);
  font-weight: 700;
}

.consolidated-list {
  display: grid;
  gap: 10px;
}

.consolidated-date-heading {
  margin: 10px 0 2px;
  color: #1d5b6a;
  font-size: 0.95rem;
  font-weight: 900;
}

.consolidated-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(29, 91, 106, 0.06);
}

.consolidated-item strong,
.consolidated-item span {
  display: block;
}

.consolidated-item strong {
  color: var(--primary-dark);
}

.consolidated-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(29, 91, 106, 0.12);
  color: var(--muted);
  font-weight: 800;
}

.history-pagination div {
  display: flex;
  gap: 8px;
}

.history-pagination a,
.history-pagination .is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(29, 91, 106, 0.14);
  text-decoration: none;
  font-weight: 900;
}

.history-pagination a {
  color: #ffffff;
  background: #1d5b6a;
}

.history-pagination .is-disabled {
  color: rgba(93, 114, 120, 0.7);
  background: rgba(29, 91, 106, 0.06);
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-photo-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 91, 102, 0.2);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 38, 46, 0.09);
}

.gallery-photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-photo-card video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-photo-card div {
  padding: 18px 20px 20px;
}

.gallery-photo-card h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.gallery-photo-card p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-map {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(15, 91, 102, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 38, 46, 0.09);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 0;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(14, 102, 112, 0.96), rgba(30, 87, 166, 0.92));
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(8, 38, 46, 0.14);
}

.page-cta h2 {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.page-cta p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.page-cta .btn {
  background: #ffffff;
  color: var(--brand-blue);
}

.testimonials .section-kicker {
  display: block;
  width: 100%;
  font-size: 1.02rem;
  margin-bottom: 16px;
  color: var(--accent-dark);
}

.testimonials h2 {
  color: var(--primary);
}

.section-text {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
}

.appointment .section-text {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--primary);
}

.appointment h2 {
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.about-grid,
.service-grid,
.doctor-grid,
.testimonial-grid,
.stats {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-gallery-stage .about-grid {
  width: 100%;
}

.about-card,
.service-card,
.doctor-card,
.testimonial-card,
.stat-box,
.faq-item,
.success-message,
.appointment-form {
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-card,
.service-card,
.testimonial-card,
.stat-box,
.faq-item {
  background: var(--surface);
}

.about-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 4px solid transparent;
  background:
    linear-gradient(180deg, rgba(252, 254, 255, 0.42), rgba(235, 243, 247, 0.34)) padding-box,
    linear-gradient(90deg, rgba(209, 18, 32, 0.36), rgba(30, 87, 166, 0.3)) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.32s ease, box-shadow 0.32s ease, background 0.32s ease, border-color 0.32s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(225, 27, 34, 0.2), rgba(30, 87, 166, 0.18));
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
  z-index: -1;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(245, 196, 107, 0.14), transparent 38%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.42), rgba(230, 240, 246, 0.34)) padding-box,
    linear-gradient(90deg, rgba(209, 18, 32, 0.36), rgba(30, 87, 166, 0.3)) border-box;
}

.about-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.42), rgba(238, 244, 247, 0.34)) padding-box,
    linear-gradient(90deg, rgba(209, 18, 32, 0.36), rgba(30, 87, 166, 0.3)) border-box;
}

.about-card h3,
.service-card h3,
.faq-item h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.about-card h3 {
  text-align: center;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 58px rgba(8, 38, 46, 0.16),
    0 0 24px rgba(30, 87, 166, 0.18),
    0 0 20px rgba(225, 27, 34, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(238, 245, 249, 0.4)) padding-box,
    linear-gradient(90deg, rgba(225, 27, 34, 0.34), rgba(30, 87, 166, 0.32)) border-box;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card:hover::after {
  opacity: 1;
}

.about-card p,
.service-card p,
.doctor p,
.testimonial-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.72;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.service-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 4px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(236, 244, 247, 0.97)) padding-box,
    linear-gradient(90deg, rgba(225, 27, 34, 0.15), rgba(30, 87, 166, 0.13)) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 18px 42px rgba(8, 38, 46, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  animation: serviceFloat 6s ease-in-out infinite;
}

.service-card h3 {
  margin-bottom: 14px;
  text-align: center;
}

.service-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.service-list li {
  margin: 0;
}

.service-list li + li {
  margin-top: 0;
}

.service-card:nth-child(2) {
  animation-delay: 0.5s;
}

.service-card:nth-child(3) {
  animation-delay: 1s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(30, 87, 166, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(225, 27, 34, 0.18), rgba(30, 87, 166, 0.16));
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.service-card:hover {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 24px 56px rgba(8, 38, 46, 0.14),
    0 0 22px rgba(30, 87, 166, 0.16),
    0 0 18px rgba(225, 27, 34, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 247, 249, 0.99)) padding-box,
    linear-gradient(90deg, rgba(225, 27, 34, 0.22), rgba(30, 87, 166, 0.2)) border-box;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  opacity: 1;
}

@keyframes serviceFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.doctor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.doctor-heading {
  max-width: 900px;
}

.doctor-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  min-width: 0;
}

.doctor-section-note {
  min-height: 360px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 249, 245, 0.94));
  border: 1px solid rgba(30, 87, 166, 0.12);
  box-shadow: 0 14px 30px rgba(8, 38, 46, 0.06);
  color: #213b42;
  font-size: clamp(0.86rem, 0.95vw, 0.94rem);
  font-weight: 500;
  line-height: 1.58;
  text-align: justify;
  text-align-last: left;
}


.doctor-section-note p {
  margin: 0 0 12px;
}

.doctor-section-note p:last-child {
  margin-bottom: 0;
}

.doctor-section-note-spacer {
  visibility: hidden;
}

/* ── Stacked doctor rows (doctors.php redesign) ── */
.doctor-rows {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.doctor-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border: 4px solid transparent;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.998), rgba(242,248,249,0.985)) padding-box,
    linear-gradient(135deg, rgba(9,50,58,0.24), rgba(30,87,166,0.2)) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.36),
    0 20px 46px rgba(8,38,46,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.doctor-row:hover {
  transform: translateY(-6px);
  box-shadow:
    0 26px 60px rgba(8,38,46,0.14),
    0 0 26px rgba(30,87,166,0.16);
}

/* Doctor 2: flip so photo is on the right */
.doctor-row-reverse {
  grid-template-columns: 1fr 320px;
}

.doctor-row-reverse .doctor-row-photo {
  order: 2;
}

.doctor-row-reverse .doctor-row-info {
  order: 1;
  border-left: none;
  border-right: 1px solid rgba(30,87,166,0.08);
}

.doctor-row-photo {
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.doctor-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.doctor-row-info {
  padding: 34px 36px;
  border-left: 1px solid rgba(30,87,166,0.08);
  background:
    linear-gradient(180deg, rgba(251,253,253,0.98), rgba(241,247,248,0.98));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.doctor-row-info h3 {
  font-size: 1.65rem;
  color: var(--primary-dark);
  margin: 0 0 6px;
}

.doctor-row-info .doctor-role {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.doctor-row-info .doctor-bio {
  margin: 0 0 16px;
}

.doctor-achievement {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid #1d5b6a;
  border-radius: 10px;
  background: rgba(29, 91, 106, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.65;
}

.doctor-row-info .doctor-badges {
  margin: 0 0 20px;
}

.doctor-section-note-inline {
  min-height: 0;
  margin-top: 4px;
}

.doctor-read-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.doctor-collapsible {
  max-height: 118px;
  overflow: hidden;
  position: relative;
}

.doctor-collapsible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(247,251,252,0), rgba(247,251,252,0.98));
  pointer-events: none;
}

.doctor-read-toggle:checked + .doctor-collapsible {
  max-height: none;
}

.doctor-read-toggle:checked + .doctor-collapsible::after {
  display: none;
}

.doctor-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #1d5b6a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.doctor-read-more:hover {
  background: #113f49;
  transform: translateY(-1px);
}

.doctor-read-more-close {
  display: none;
}

.doctor-read-toggle:checked + .doctor-collapsible + .doctor-read-more .doctor-read-more-open {
  display: none;
}

.doctor-read-toggle:checked + .doctor-collapsible + .doctor-read-more .doctor-read-more-close {
  display: inline;
}

@media (max-width: 900px) {
  .doctor-row,
  .doctor-row-reverse {
    grid-template-columns: 1fr;
  }

  .doctor-row-reverse .doctor-row-photo {
    order: 1;
  }

  .doctor-row-reverse .doctor-row-info {
    order: 2;
    border-right: none;
    border-top: 1px solid rgba(30,87,166,0.08);
  }

  .doctor-row-photo {
    min-height: 260px;
    max-height: 340px;
  }

  .doctor-row-info {
    border-left: none;
    border-top: 1px solid rgba(30,87,166,0.08);
    padding: 26px 24px;
  }
}

.doctor-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 72px;
  align-items: stretch;
}

.doctor-intro-card {
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  border: 4px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(242, 248, 249, 0.98)) padding-box,
    linear-gradient(135deg, rgba(233, 102, 74, 0.22), rgba(232, 123, 156, 0.18)) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 18px 42px rgba(8, 38, 46, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.doctor-intro-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(233, 102, 74, 0.18), rgba(232, 123, 156, 0.16));
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.doctor-intro-card h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  text-align: center;
}

.doctor-intro-card p {
  color: var(--muted);
  line-height: 1.7;
}

.doctor-intro-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 56px rgba(8, 38, 46, 0.13),
    0 0 24px rgba(233, 102, 74, 0.16),
    0 0 18px rgba(232, 123, 156, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 249, 0.99)) padding-box,
    linear-gradient(135deg, rgba(233, 102, 74, 0.38), rgba(232, 123, 156, 0.34)) border-box;
}

.doctor-intro-card:hover::after {
  opacity: 1;
}

.doctor-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  min-height: 100%;
  position: relative;
  isolation: isolate;
  border: 4px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(242, 248, 249, 0.985)) padding-box,
    linear-gradient(135deg, rgba(9, 50, 58, 0.24), rgba(30, 87, 166, 0.2)) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    0 20px 46px rgba(8, 38, 46, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.doctor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(30, 87, 166, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.doctor-card::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(9, 50, 58, 0.18), rgba(30, 87, 166, 0.16));
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.doctor-card img {
  width: 100%;
  height: 100%;
  min-height: 282px;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(240, 247, 248, 0.95), rgba(255, 255, 255, 0.95));
}

.doctor-card > div {
  padding: 30px 30px 26px;
  min-height: 282px;
  background:
    linear-gradient(180deg, rgba(251, 253, 253, 0.98), rgba(241, 247, 248, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.75));
  text-align: left;
  border-left: 1px solid rgba(30, 87, 166, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  text-align: center;
}

.doctor-bio {
  margin-top: 10px;
}

.doctor-chip {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 91, 102, 0.085);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.doctor-card .doctor-bio {
  text-align: left;
}

.doctor-badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.doctor-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2f8f8, #edf7f7);
  border: 1px solid rgba(30, 87, 166, 0.08);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.doctor-badges-compact {
  gap: 8px;
}

.doctor-badges-compact span {
  padding: 7px 11px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.doctor-badges-below {
  margin: 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 249, 0.9));
  border: 1px solid rgba(30, 87, 166, 0.12);
  box-shadow: 0 16px 36px rgba(8, 38, 46, 0.07);
}

.doctor-badges-spacer {
  visibility: hidden;
}


.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 26px 60px rgba(8, 38, 46, 0.15),
    0 0 26px rgba(30, 87, 166, 0.18),
    0 0 20px rgba(9, 50, 58, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 249, 0.99)) padding-box,
    linear-gradient(135deg, rgba(9, 50, 58, 0.38), rgba(30, 87, 166, 0.34)) border-box;
}

.doctor-card:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(242, 248, 249, 0.985)) padding-box,
    linear-gradient(135deg, rgba(30, 87, 166, 0.16), rgba(9, 50, 58, 0.18)) border-box;
}

.doctor-card:nth-child(even)::before {
  background: linear-gradient(180deg, rgba(30, 87, 166, 0.08), transparent 42%);
}

.doctor-card:nth-child(even) > div {
  background:
    linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(240, 246, 247, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.75));
}

.doctor-card:nth-child(even) .doctor-chip {
  background: rgba(30, 87, 166, 0.08);
}

.doctor-card:nth-child(even) .doctor-badges span {
  background: linear-gradient(180deg, #eef6fb, #e8f2f9);
}

.doctor-card:nth-child(even):hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 248, 249, 0.99)) padding-box,
    linear-gradient(135deg, rgba(9, 50, 58, 0.36), rgba(30, 87, 166, 0.38)) border-box;
}

.doctor-card:hover::before {
  opacity: 1;
}

.doctor-card:hover::after {
  opacity: 1;
}

.stats {
  padding: 32px 7% 56px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: linear-gradient(180deg, #fffdf8, #f7fbfb);
}

.stat-box {
  text-align: center;
  padding: 24px 18px;
  background: linear-gradient(180deg, #ffffff, #fbf8f1);
}

.stat-box h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-box p {
  color: var(--muted);
  font-weight: 600;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f9fbfb);
  border-width: 2px;
  border-color: rgba(15, 91, 102, 0.32);
}

.testimonial-card h4 {
  margin-top: 18px;
  color: var(--primary-dark);
}

.faq-box {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 20px;
}

.faq-question {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  background: transparent;
  transform: none;
}

.faq-question:focus-visible {
  outline: none;
  box-shadow: none;
}

.faq-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(225deg) translateY(-1px);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}

.faq-answer > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.faq-item.is-open .faq-answer {
  max-height: 180px;
  opacity: 1;
  margin-top: 14px;
}

.appointment {
  text-align: center;
}

.appointment-form {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 24px;
  border: 3px solid rgba(201, 111, 63, 0.58);
  background: var(--surface);
  display: grid;
  gap: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 18px 45px rgba(8, 38, 46, 0.12);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  color: #05282e;
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: rgba(5, 40, 46, 0.82);
}

.online-options {
  display: none;
}

.online-options.is-visible {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  padding: 14px;
  border: 1px solid rgba(15, 91, 102, 0.14);
  border-radius: 18px;
  background: rgba(14, 102, 112, 0.06);
  justify-self: start;
}

.online-time-slot {
  min-height: 44px;
  background: #ffffff;
}

.payment-reference {
  grid-column: 1 / 2;
}

.payment-confirmation {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #24515b;
  font-weight: 800;
}

.payment-confirmation input {
  width: 18px;
  height: 18px;
  accent-color: #1d5b6a;
}

.online-qr-box {
  padding: 10px 12px;
  border: 1px solid rgba(15, 91, 102, 0.16);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.online-qr-box p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.fake-qr {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border: 5px solid #ffffff;
  background:
    linear-gradient(90deg, #082026 7px, transparent 7px) 0 0 / 15px 15px,
    linear-gradient(#082026 7px, transparent 7px) 0 0 / 15px 15px,
    linear-gradient(45deg, transparent 42%, #1e57a6 42% 58%, transparent 58%) 0 0 / 18px 18px,
    #f7fbfb;
  box-shadow: 0 10px 24px rgba(8, 38, 46, 0.12);
}

.callback {
  padding: 20px 7% 35px;
  background: linear-gradient(180deg, #fff, #f8fbfb);
}

.callback-heading {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  text-align: center;
}

.callback h2 {
  color: var(--primary);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1;
  font-weight: 400;
}

.callback .section-kicker {
  font-size: clamp(1.5rem, 2.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 10px;
  text-transform: none;
}

.callback .section-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #000;
}

.callback-form {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 14px;
  border: 3px solid rgba(201, 111, 63, 0.58);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 18px 45px rgba(8, 38, 46, 0.12);
  background: linear-gradient(180deg, #ffffff, #f9fbfb);
}

.callback-form input,
.callback-form select,
.callback-form textarea {
  color: #05282e;
}

.callback-form input::placeholder,
.callback-form textarea::placeholder {
  color: rgba(5, 40, 46, 0.82);
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.1);
}

button {
  min-height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

button:hover {
  background: #c96b49;
  transform: translateY(-1px);
}

.navbar .nav-dropdown-toggle {
  min-height: 0;
  padding: 8px 3px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #253b43;
  font: inherit;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.4;
}

.navbar .nav-dropdown-toggle:hover {
  color: var(--primary);
  background: rgba(14, 102, 112, 0.06);
}

.appointment-form button,
.callback-form button {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) padding-box,
    linear-gradient(135deg, var(--accent-dark), #b66335) border-box;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(146, 69, 42, 0.18);
}

.appointment-form button::before,
.callback-form button::before {
  content: "";
  position: absolute;
  inset: 2px 8px auto;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.appointment-form button::after,
.callback-form button::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -45%;
  width: 34%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(24deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.appointment-form button:hover,
.callback-form button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)) padding-box,
    linear-gradient(135deg, #c96b49, var(--accent-dark)) border-box;
}

.appointment-form button:hover::after,
.callback-form button:hover::after {
  left: 112%;
}

.success-message {
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 16px 20px;
  background: #f7efe4;
  color: #7a4e22;
  text-align: left;
}

footer {
  padding: 18px 7% 34px;
  text-align: center;
  background: #082026;
  color: #e7f7f7;
}

footer h3 {
  margin-bottom: 10px;
}

footer p + p {
  margin-top: 5px;
  color: rgba(231, 247, 247, 0.82);
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-credit img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}

.floating-contact a {
  text-decoration: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-contact a:hover {
  transform: translateY(-2px);
}

.whatsapp-btn {
  background: #19a866;
}

.call-btn {
  background: var(--primary);
}

.floating-contact svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 520px;
    width: 100%;
    justify-self: center;
    margin-top: 0;
  }

  .dashboard-layout,
  .dashboard-stats,
  .admin-module-grid,
  .admin-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receptionist-management-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    grid-column: 1 / -1;
  }

  .hero-content {
    justify-self: center;
    margin-left: 0;
    min-height: auto;
  }

  .about-grid,
  .service-grid,
  .doctor-intro-grid,
  .doctor-grid,
  .testimonial-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 7% 18px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(0, 70, 90, 0.08);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .navbar nav a {
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 14px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    gap: 0;
    transition: max-height 0.22s ease, opacity 0.22s ease, margin-top 0.22s ease;
  }

  .nav-dropdown-menu a {
    padding: 12px 0 12px 14px;
    min-height: 0;
    border-radius: 0;
    border-left: 2px solid rgba(14, 102, 112, 0.15);
  }

  .nav-dropdown-menu a:hover {
    transform: none;
  }

  .nav-dropdown.resources-open .nav-dropdown-menu {
    margin-top: 4px;
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar.nav-open nav {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-card img {
    min-height: 230px;
    max-height: 320px;
  }

  .doctor-column {
    grid-template-rows: auto;
  }

  .doctor-section-note-spacer {
    display: none;
  }
}

@media (max-width: 640px) {
  .navbar {
    min-height: 60px;
    padding: 0 5%;
  }

  .logo img {
    width: 100px;
  }

  .hero,
  .about,
  .services,
  .doctor,
  .appointment,
  .testimonials,
  .faq,
  .stats {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero h1 {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    font-size: 1.55rem;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    white-space: normal;
    text-wrap: balance;
  }

  .hero-content {
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
    max-width: 62ch;
  }

  .hero-highlights,
  .about-grid,
  .service-grid,
  .doctor-intro-grid,
  .doctor-grid,
  .testimonial-grid,
  .login-panel-grid,
  .resources-grid,
  .resource-article-grid,
  .content-grid,
  .content-grid-two,
  .gallery-photo-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .page-cta {
    align-items: flex-start;
  }

  .hero-actions {
    margin-top: 30px;
    padding-top: 0;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-card {
    padding: 22px;
  }

  .dashboard-topbar,
  .dashboard-filter {
    grid-template-columns: 1fr;
  }

  .panel-header {
    padding-left: 5%;
    padding-right: 5%;
  }

  .panel-logo img {
    width: 96px;
  }

  .panel-header-actions {
    gap: 8px;
  }

  .panel-notification {
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .panel-logout {
    padding: 0 14px;
  }

  .dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-layout,
  .dashboard-stats,
  .admin-module-grid,
  .admin-content-grid,
  .receptionist-management-grid,
  .admin-filter,
  .management-form,
  .upload-prescription-form,
  .consultancy-item,
  .consolidated-item {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs {
    width: 100%;
  }

  .dashboard-tabs a {
    flex: 1;
    text-align: center;
  }

  .online-options.is-visible {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .appointment-form {
    padding: 22px;
  }

  .callback {
    padding-left: 5%;
    padding-right: 5%;
  }

  .callback-form {
    padding: 22px;
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
  }

  .floating-contact a {
    width: 48px;
    height: 48px;
  }
}

.hero-headline-line,
.hero-headline-sub {
  display: inline !important;
}

.faq-item {
  text-align: left;
}

.faq-answer {
  text-align: left;
}

.faq-answer > p {
  text-align: left;
}

/* ── Panel page navigation active state ─────────────────── */
.receptionist-nav a.nav-active {
  background: var(--accent, #c0392b);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
}

/* ── Dashboard module quick-links ───────────────────────── */
.module-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent, #c0392b);
  text-decoration: none;
  letter-spacing: .02em;
}
.module-link:hover { text-decoration: underline; }

/* ── Panel page wrapper ──────────────────────────────────── */
.panel-page { width: 100%; }

/* ── Quick tips list ─────────────────────────────────────── */
.tips-list {
  padding-left: 1.2rem;
  line-height: 2;
  color: var(--muted, #777);
  font-size: .92rem;
}
