
/* ============================================================
   Kaihan Curative Hospital — Shared Stylesheet
   Design System: Neumorphism + Accessible & Ethical Healthcare

   Brand Colors:
     Brand Blue   #0F2B8F
     Accent Blue  #2547C9
     Brand Red    #FF3C3C

   Fonts: Lora (headings) + Raleway (body)
============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #0F2B8F;
  --primary-light: #3C5FE0;
  --primary-dark: #0A1F66;
  --primary-ultra: #E8ECFA;

  --accent: #2547C9;
  --accent-light: #4C6FE0;
  --accent-dark: #1B357A;
  --accent-ultra: #E9EDFB;

  --emergency: #FF3C3C;
  --emergency-light: #FFE1E1;

  --bg: #EEF1FC;
  --surface: #FFFFFF;
  --bg-alt: #E9EDFC;

  --fore: #0D1B3D;
  --text-body: #33447A;
  --text-muted: #6B7A9E;
  --muted: #E7EAF6;

  --border: #C3CBEA;
  --shadow-dark: #CDD3EE;
  --shadow-light: #FFFFFF;

  --dark-bg: #0A1230;
  --dark-card: #0D1B3D;
  --dark-border: #1F2E5C;

  --grad-main: #0F2B8F;
  --grad-hero: #0D1B3D;
  --grad-cta: #0F2B8F;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--fore);
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.handwritten {
  font-family: 'Caveat', cursive;
}

.section-warm {
  background: var(--bg-alt);
}

/* ── Pull Quote ── */
.pull-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  font-family: 'Lora', serif;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--fore);
  line-height: 1.8;
}

/* ── Sticky Note ── */
.sticky-note {
  background: #FEF9C3;
  border-radius: .5rem .5rem .5rem 0;
  padding: .875rem 1.125rem;
  box-shadow: 3px 3px 10px rgba(0,0,0,.08);
  transform: rotate(1deg);
  display: inline-block;
}

/* ── Trust Badge ── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: .5rem;
  padding: .35rem .875rem;
  font-size: .8rem;
  font-weight: 600;
  color: #475569;
}

/* ── Offset Image ── */
.offset-img {
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}

.offset-img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ── FAQ Accordion ── */
details {
  border-bottom: 1px solid #E2E8F0;
}

details summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--fore);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
}

details[open] summary::after {
  content: '−';
}

details p {
  padding: 0 0 1.1rem;
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* ── Dot Connector ── */
.dot-line {
  border-top: 2px dashed var(--border);
  flex: 1;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', serif;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

/* ── Page Wrapper ── */
/* Content offset below fixed navigation */
.page-content {
  padding-top: 80px;
}

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section Spacing ── */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* ── Section Label ── */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

/* ── Section Title ── */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--fore);
  margin-bottom: 1rem;
}

.section-title span {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Subtitle ── */
.section-sub {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Neumorphic Card ── */
.neu-card {
  background: var(--bg);
  border-radius: 1.25rem;
  box-shadow:
    6px 6px 14px var(--shadow-dark),
    -6px -6px 14px var(--shadow-light);
  transition: box-shadow .25s ease, transform .25s ease;
}

.neu-card:hover {
  box-shadow:
    8px 8px 20px #b8cebc,
    -8px -8px 20px #ffffff;
  transform: translateY(-2px);
}

/* ── Icon Ring ── */
.icon-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  box-shadow:
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: .75rem;
  font-size: .9375rem;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,43,143,.25);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,43,143,.28);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-ultra);
}

.btn-sm {
  padding: .5rem 1.25rem;
  font-size: .8125rem;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

.badge-green {
  background: var(--primary-ultra);
  color: var(--primary);
}

.badge-purple {
  background: var(--accent-ultra);
  color: var(--accent);
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gradient Backgrounds ── */
.bg-gradient-hero {
  background: var(--grad-hero);
}

.bg-light-green {
  background: var(--primary-ultra);
}

/* ── Dark Surface ── */
.bg-dark {
  background: var(--dark-bg);
  color: #CBD5E1;
}

/* ── Trust Strip ── */
.trust-strip {
  background: var(--grad-hero);
  color: #fff;
  padding: 2.5rem 0;
}

.trust-strip .stat {
  text-align: center;
}

.trust-strip .stat-number {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
}

.trust-strip .stat-label {
  font-size: .8125rem;
  opacity: .85;
  margin-top: .2rem;
}

/* ── Form ── */
.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--fore);
  margin-bottom: .4rem;
}

.form-input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: .75rem;
  padding: .75rem 1rem;
  width: 100%;
  font-family: 'Raleway', sans-serif;
  font-size: .9375rem;
  color: var(--fore);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,43,143,.15);
}

.form-input::placeholder {
  color: #94A3B8;
}

/* ── Page Hero (Inner Pages) ── */
.page-hero {
  background: var(--grad-hero);
  padding: 5rem 0 4rem;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: .75rem;
}

.page-hero p {
  font-size: 1.0625rem;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .8125rem;
  opacity: .75;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── Checklist ── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--fore);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-ultra);
}

.check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--primary);
  stroke-width: 3;
}

/* ── Star Rating ── */
.stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: .05em;
}

/* ── Animations ── */
@keyframes blob {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

.blob {
  animation: blob 8s ease-in-out infinite;
}

.blob-delay {
  animation-delay: -4s;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(15,43,143,.45);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(15,43,143,0);
  }
}

.pulse-badge {
  animation: pulse-ring 2s ease-out infinite;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Glassmorphism Card ── */
.glass-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1.25rem;
  padding: 2rem;
}

/* ── Stat Card ── */
.stat-box {
  text-align: center;
}

.stat-box .number {
  font-family: 'Lora', serif;
  font-size: 2.25rem;
  font-weight: 700;
}

.stat-box .label {
  font-size: .8125rem;
  margin-top: .25rem;
  color: var(--text-muted);
}

/* ── Doctor Card ── */
.doctor-card {
  overflow: hidden;
}

.doctor-card .img-wrap {
  height: 220px;
  overflow: hidden;
}

.doctor-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .5s ease;
}

.doctor-card:hover .img-wrap img {
  transform: scale(1.05);
}

.doctor-card .body {
  padding: 1.5rem;
}

.doctor-card .name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fore);
}

.doctor-card .role {
  font-size: .875rem;
  margin: .2rem 0;
}

.doctor-card .exp {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Service Card ── */
.service-card {
  padding: 1.75rem;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fore);
  margin: 1rem 0 .5rem;
}

.service-card p {
  font-size: .875rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-card a {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--primary);
}

.service-card a:hover {
  color: var(--primary-dark);
}

/* ── Testimonial Card ── */
.testimonial-card {
  padding: 2rem;
  position: relative;
}

.quote-mark {
  font-family: 'Lora', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--primary-light);
  opacity: .25;
  position: absolute;
  top: .75rem;
  left: 1.25rem;
  pointer-events: none;
}

.testimonial-card blockquote {
  font-size: .9rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--text-body);
  margin: 2.5rem 0 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author .name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--fore);
}

.testimonial-author .meta {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Contact Info Card ── */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.contact-card .label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--fore);
  margin-bottom: .2rem;
}

.contact-card .value {
  font-size: .875rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* ── Emergency Box ── */
.emergency-box {
  border-radius: .875rem;
  padding: 1.25rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
}

.emergency-box .label {
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.emergency-box .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.emergency-box .note {
  font-size: .75rem;
  color: #64748B;
  margin-top: .1rem;
}

/* ── Social Icons ── */
.social-link {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-card);
  color: #94A3B8;
  transition: background .2s, color .2s;
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Grid Helpers ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-lg-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad-main);
  margin: 1rem 0 1.5rem;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Text Helpers ── */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.text-body {
  color: var(--text-body);
}

.text-fore {
  color: var(--fore);
}

.text-white {
  color: #fff;
}

.text-emergency {
  color: var(--emergency);
}

/* ── Spacing Helpers ── */
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* ── Flex Helpers ── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex-wrap {
  flex-wrap: wrap;
}

/* ── Success State ── */
.success-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-state .icon {
  margin-bottom: 1rem;
}

.success-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.success-state p {
  font-size: .9rem;
  color: var(--text-body);
}

/* ══════════════════════════════════════════
   RESPONSIVE — GENERAL
══════════════════════════════════════════ */

/* ── Large Tablet / Small Laptop ── */
@media (max-width: 1024px) {
  .grid-lg-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablet ── */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-lg-2 {
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-sm {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  [style*="gap:5rem"] {
    gap: 2.5rem !important;
  }

  [style*="gap:4rem"] {
    gap: 2rem !important;
  }

  [style*="gap:3rem"] {
    gap: 1.5rem !important;
  }

  .form-pair {
    grid-template-columns: 1fr !important;
  }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 .875rem;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }
}

/* ══════════════════════════════════════════
   HOMEPAGE RESPONSIVE
══════════════════════════════════════════ */

/* ── Hero Grid ── */
@media (max-width: 960px) {
  #hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 3rem 1rem !important;
    text-align: center;
  }

  #doctor-quote-widget {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left;
  }

  #quote-dots {
    justify-content: center;
  }

  #hero-grid div[style*="flex-wrap"] {
    justify-content: center;
  }

  #hero-grid .reveal:first-child > div[style*="flex-wrap"] {
    justify-content: center;
  }

  #carousel-wrapper {
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
  }
}

/* ── Stats Strip ── */
@media (max-width: 768px) {
  #stats-strip {
    grid-template-columns: repeat(2,1fr) !important;
  }

  #stats-strip > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

@media (max-width: 480px) {
  #stats-strip {
    grid-template-columns: 1fr !important;
  }
}

/* ── About Preview Grid ── */
@media (max-width: 960px) {
  #about-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}

/* ── Services Sticky Layout ── */
@media (max-width: 960px) {
  #services-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #services-layout > div:first-child {
    position: static !important;
  }
}

@media (max-width: 640px) {
  #services-cards {
    grid-template-columns: 1fr !important;
  }
}

/* ── Doctor Cards Grid ── */
@media (max-width: 1024px) {
  #doctors-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

@media (max-width: 500px) {
  #doctors-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Steps Grid ── */
@media (max-width: 900px) {
  #steps-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

@media (max-width: 500px) {
  #steps-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Testimonials ── */
@media (max-width: 960px) {
  #testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Final CTA ── */
@media (max-width: 768px) {
  #cta-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */

@media (max-width: 960px) {
  #about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  #story-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #accreditations-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* ══════════════════════════════════════════
   SERVICES PAGE
══════════════════════════════════════════ */

@media (max-width: 960px) {
  #services-main-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #services-main-layout > div:first-child {
    position: static !important;
  }
}

@media (max-width: 768px) {
  #services-emergency {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ══════════════════════════════════════════
   DOCTORS PAGE
══════════════════════════════════════════ */

@media (max-width: 1024px) {
  #doctors-page-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

@media (max-width: 500px) {
  #doctors-page-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 960px) {
  #doctors-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #nursing-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ══════════════════════════════════════════
   CONTACT & APPOINTMENT
══════════════════════════════════════════ */

@media (max-width: 768px) {
  #contact-emergency {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 540px) {
  .form-name-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */

@media (max-width: 960px) {
  #faq-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */

@media (max-width: 1024px) {
  #footer-top-grid {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 600px) {
  #footer-top-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE FIXES — PASS 2
══════════════════════════════════════════ */

/* ── Hero Grid: Mobile ── */
@media (max-width: 640px) {
  #hero-grid {
    padding: 1rem .875rem !important;
    gap: 1.25rem !important;
  }

  #hero-grid + * {
    margin-top: 0;
  }
}

/* ── Sections with 100vh ── */
@media (max-width: 640px) {
  section[style*="min-height:100vh"] {
    min-height: unset !important;
    padding-top: 72px;
    padding-bottom: 2rem;
  }
}

/* ── Live Badge ── */
@media (max-width: 960px) {
  #live-badge {
    display: none !important;
  }
}

/* ── Carousel Wrapper ── */
@media (max-width: 640px) {
  #carousel-wrapper {
    max-width: 100% !important;
    transform: none !important;
    padding-bottom: 0 !important;
  }

  #carousel-wrapper:hover {
    transform: none !important;
  }
}

/* ── Gap Overrides ── */
@media (max-width: 640px) {
  [style*="gap:5rem"] {
    gap: 1.5rem !important;
  }

  [style*="gap:4rem"] {
    gap: 1.5rem !important;
  }

  [style*="gap:3rem"] {
    gap: 1.25rem !important;
  }

  [style*="gap:2.5rem"] {
    gap: 1rem !important;
  }
}

/* ── Steps Grid ── */
@media (max-width: 768px) {
  #steps-grid {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

/* ── Testimonials ── */
@media (max-width: 768px) {
  #testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── FAQ Mobile ── */
@media (max-width: 640px) {
  #faq-grid {
    gap: 1.5rem !important;
  }
}

/* ── About Offset Images ── */
@media (max-width: 640px) {
  #about-grid img[style*="position:absolute"],
  #story-grid img[style*="position:absolute"] {
    position: static !important;
    width: 100% !important;
    margin-top: 1rem;
    height: 200px !important;
    object-fit: cover;
    border-radius: 1rem;
  }
}

/* ── Doctor Cards Mobile ── */
@media (max-width: 640px) {
  #doctors-grid > div {
    width: 100%;
  }
}

/* ── Buttons: Small Screens ── */
@media (max-width: 400px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  div[style*="flex-wrap:wrap"] {
    flex-direction: column;
  }
}

/* ── Section Padding: Small Phones ── */
@media (max-width: 480px) {
  .section {
    padding: 2rem 0 !important;
  }

  .section-sm {
    padding: 1.5rem 0 !important;
  }

  .container {
    padding: 0 .75rem !important;
  }
}

/* ── Stats Icons ── */
@media (max-width: 400px) {
  #stats-strip {
    font-size: .875rem;
  }

  #stats-strip [style*="font-size:2.25rem"] {
    font-size: 1.75rem !important;
  }
}

/* ══════════════════════════════════════════════════════
   NAVIGATION — SHARED HEIGHT
══════════════════════════════════════════════════════ */

#nav-root {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#nav-root header,
#nav-root .navbar,
#nav-root nav {
  min-height: 80px;
}

#nav-root .navbar a,
#nav-root nav a {
  font-size: 15px;
  padding: 12px 16px;
}

/* ══════════════════════════════════════════════════════
   KAIHAN CURATIVE HOSPITAL — CINEMATIC VIDEO HERO
   Replaces the old image slider
══════════════════════════════════════════════════════ */

/* Main Hero Section */
.kh-video-hero {
  position: relative;
  width: 100%;
  height: 650px;
  min-height: 480px;

  /* page-content already offsets the fixed 80px navigation.
     This adds the requested 72px breathing space on desktop. */
  margin: 72px 0 0;
  padding: 0 !important;

  overflow: hidden;
  background: #10193F;
  border-radius: 0;
  isolation: isolate;
}

/* Background Video */
.kh-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center;

  z-index: 0;
}

/* Dark Blue Video Overlay */
.kh-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(5, 15, 48, .65),
    rgba(15, 43, 143, .25),
    rgba(5, 15, 48, .35)
  );

  pointer-events: none;
}

/* Text Container */
.kh-video-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 25px;
  text-align: center;
  color: #fff;

  pointer-events: none;
}

/* Hospital Title */
.kh-video-content h1 {
  margin: 0 0 18px;
  color: #fff;

  font-size: clamp(35px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.2;

  text-shadow: 0 4px 22px rgba(0, 0, 0, .4);

  opacity: 0;
  transform: translateY(35px);

  animation:
    khVideoTitleIn .9s ease .4s forwards,
    khVideoTextOut 1s ease s forwards;
}



/* Welcome Text */
.kh-video-content .kh-welcome {
  margin: 0;
  color: #fff;

  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 12px;

  text-shadow: 0 3px 15px rgba(0, 0, 0, .4);

  opacity: 0;
  transform: translateY(35px);

  animation:
    khVideoWelcomeIn .9s ease 1.2s forwards,
    khVideoTextOut 1s ease 4s forwards;
}

/* Title Entrance Animation */
@keyframes khVideoTitleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Welcome Entrance Animation */
@keyframes khVideoWelcomeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide Text Animation */
@keyframes khVideoTextOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
  }
}

/* Sound Button */
.kh-video-sound {
  position: absolute;
  z-index: 5;

  right: 30px;
  bottom: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 19px;

  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50px;

  background: rgba(15, 43, 143, .85);
  color: #fff;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: .3s ease;
}

.kh-video-sound:hover {
  background: #0F2B8F;
  transform: translateY(-3px);
}

.kh-video-sound i {
  font-size: 17px;
}

/* ══════════════════════════════════════════════════════
   VIDEO HERO — TABLET
══════════════════════════════════════════════════════ */

@media (max-width: 800px) {
  .kh-video-hero {
    margin-top: 0;
    height: 580px;
    min-height: 450px;
  }

  .kh-video-content h1 {
    font-size: clamp(32px, 6vw, 55px);
  }

  .kh-video-content .kh-welcome {
    font-size: 25px;
    letter-spacing: 9px;
  }
}

/* ══════════════════════════════════════════════════════
   VIDEO HERO — MOBILE
══════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .kh-video-hero {
    margin-top: 0;
    height: 500px;
    min-height: 420px;
  }

  .kh-video-content {
    padding: 20px;
  }

  .kh-video-content h1 {
    font-size: clamp(30px, 8vw, 43px);
  }

  .kh-video-content .kh-welcome {
    font-size: 20px;
    letter-spacing: 8px;
  }

  .kh-video-sound {
    right: 15px;
    bottom: 18px;
    padding: 10px 15px;
  }
}

/* ══════════════════════════════════════════════════════
   ACCESSIBILITY — REDUCED MOTION
══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .kh-video-content h1,
  .kh-video-content .kh-welcome {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .kh-video-sound {
    transition: none;
  }
}
/* =========================================
   TEMPORARY NAVIGATION SPACING CORRECTION
   ========================================= */

/* Keep shared page spacing unchanged */
.page-content {
    padding-top: 80px;
}

/* Remove extra spacing from homepage video */
.kh-video-hero {
    margin-top: 0;
}

/* =====================================
   KAIHAN HERO VIDEO - MOBILE
===================================== */

@media (max-width: 767px) {

    .kh-video-hero {
        width: 100%;
        height: 480px;
        min-height: 0;
        margin-top: 0;
        overflow: hidden;
    }

    .kh-video-hero video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

}