@charset "utf-8";
/* ═══════════════════════════════════════════
   RESPONSIVE ADDITIONS
   Extends style.css. All breakpoints below.
═══════════════════════════════════════════ */

/* ── Mobile hamburger button ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 6px;
  border: none;
  background: none;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--rose-light); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 2px;
  transition: all 0.32s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ── */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,40,28,0.45);
  z-index: 1998;
  backdrop-filter: blur(2px);
}
.mob-overlay.open { display: block; }

/* ── Mobile nav drawer (slides from right) ── */
.mob-nav {
  position: fixed;
  top: 0; right: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1999;
  padding: 0;
  transition: right 0.32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: -6px 0 32px rgba(0,0,0,0.18);
}
.mob-nav.open { right: 0; }

.mob-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  background: linear-gradient(90deg, var(--rose-dark) 0%, var(--rose) 100%);
}
.mob-nav-logo {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.mob-nav-logo span { display: block; font-size: 10px; color: rgba(255,255,255,0.7); font-weight: 400; letter-spacing: 0.08em; }
.mob-nav-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mob-nav-close:hover { background: rgba(255,255,255,0.28); }

.mob-nav-links { padding: 8px 0; }
.mob-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  border-bottom: 1px solid #f0f8f3;
  transition: color 0.18s, background 0.18s, padding-left 0.18s;
}
.mob-nav-links a i { color: var(--rose); width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.mob-nav-links a:hover { color: var(--rose); background: var(--cream); padding-left: 28px; }

.mob-nav-cta {
  margin: 16px 20px 24px;
}
.mob-nav-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rose);
  color: #fff !important;
  text-align: center;
  padding: 13px 20px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
}
.mob-nav-cta a:hover { background: var(--rose-dark); padding-left: 20px !important; }

/* Contact strip inside mobile nav */
.mob-nav-contact {
  margin: 0 20px 20px;
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--mid);
}
.mob-nav-contact div { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.mob-nav-contact div:last-child { margin-bottom: 0; }
.mob-nav-contact i { color: var(--rose); width: 14px; text-align: center; }
.mob-nav-contact a { color: var(--charcoal); text-decoration: none; font-weight: 500; }

/* OPD table scroll wrapper */
.opd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.opd-table-wrap .opd-table { min-width: 520px; }

/* Fix hospital-name-wrap hardcoded width */
.hospital-name-wrap { width: auto !important; }

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 1100px
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ann-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 992px  (tablet / hide desktop nav)
───────────────────────────────────────────── */
@media (max-width: 992px) {
  /* Header */
    header { padding: 14px 20px; gap: 0; justify-content: space-between; }
    header nav { display: none; }
    .hamburger { display: flex; }
 
  .logo-area { gap: 12px; }
  .hospital-name .h-name { font-size: 20px !important; line-height: 22px; }
  .hospital-name .odia { font-size: 22px !important; line-height: 22px !important; }
  .hospital-name .hindi { font-size: 20px !important; line-height: 20px !important; }
  .hospital-name-wrap { max-width: min(320px, calc(100vw - 200px)); overflow: hidden; }

  /* Top strip */
  .top-strip { padding: 7px 20px; font-size: 12px; }
  .top-strip .strip-right .strip-item:last-child { display: none; }

  /* Hero */
  .hero { height: 460px; }
  .hero-content h1 { font-size: 38px; }

  /* Facilities */
  .fac-top-row { grid-template-columns: 1fr; }
  .fac-yt-wrap { min-height: 260px; }
  .fac-thumb-grid { grid-template-rows: repeat(2, 130px); }
  .facilities-nav { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fac-tab { font-size: 12.5px; padding: 11px 8px; white-space: normal; }
  .facilities-section { padding: 56px 24px; }

  /* Body */
  .body-grid { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 56px 24px; }
  .stats-section { padding: 44px 24px; }
  .dmv-strip { padding: 56px 24px; }
  .reach-section { padding: 56px 24px; }
  footer { padding: 44px 24px 24px; }

  /* DMV */
  .dmv-inner { grid-template-columns: 1fr; gap: 24px; }
  .dmv-side-card { height: auto; }

  /* Reach */
  .reach-grid { grid-template-columns: 1fr; }

  /* Progs */
  .prog-card-body { grid-template-columns: 1fr; }
  .prog-desc-col { border-right: none; border-bottom: 1px solid #e8f4ed; }
  .prog-card-header { flex-direction: column; gap: 14px; }
  .prog-doctor-badge { min-width: 0; text-align: left; align-self: flex-start; }

  /* Doctors dept grid */
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 768px
───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Top strip: stack left/right */
  .top-strip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 16px; font-size: 11.5px; }
  .top-strip > div:first-child { gap: 16px; }
  .top-strip .strip-right { display: none; }

  /* Header */
  header { padding: 12px 16px; }
  .logo-icon { width: 58px; height: 58px; }
  .logo-icon img { height: 56px; }
  .hospital-name .h-name { font-size: 17px !important; line-height: 19px; }
  .hospital-name .odia { font-size: 18px !important; line-height: 20px !important; }
  .hospital-name .hindi { font-size: 18px !important; }
  .hospital-name .h-sub { font-size: 10px; letter-spacing: 0.08em; }
  .hospital-name-wrap { max-width: calc(100vw - 170px); height: 46px; }

  /* Hero */
  .hero { height: 380px; }
  .hero-content { left: 5%; max-width: 85%; top: 50%; }
  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
  .hero-btns a { padding: 11px 22px; font-size: 13.5px; }
  .hero-dots { right: 16px; }

  /* Ticker */
  .ticker-label { padding: 0 12px; font-size: 10px; }
  .ticker-track { padding-left: 120px; }
  .ticker-item { font-size: 12.5px; padding: 0 30px; }

  /* Section headings */
  .section-title { font-size: 30px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-num { font-size: 44px; }
  .stat-card { padding: 24px 16px; }

  /* Facilities nav */
  .facilities-nav { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fac-tab { font-size: 12px; padding: 10px 8px; }
  .fac-thumb-grid { grid-template-rows: repeat(2, 110px); }

  /* Ann tabs */
  .ann-prog-tabs { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  .ann-prog-tab { padding: 12px 10px; font-size: 14px; border-radius: 12px; }

  /* Ann grid */
  .ann-grid { grid-template-columns: 1fr; }

  /* Programs media col */
  .prog-media-col { flex-direction: column; padding: 14px 18px; }
  .prog-thumbs-panel { flex: none; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 90px); }
  .prog-yt-panel { flex: none; min-height: 210px; }
  .prog-enlarged-panel { flex: none; min-height: 200px; }

  /* Special grid */
  .special-grid {
    display: flex;
    flex-direction: column;
  }
  .special-card:nth-child(1) { grid-row: auto; }
  .special-card:nth-child(1) img { min-height: auto !important; height: 240px !important; }
  .special-card img[style] { height: 180px !important; }
  .special-video-placeholder { min-height: 200px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-socials { justify-content: center; }

  /* Programs detail overlay */
  .prog-detail-overlay.open { padding: 20px 12px; }
  .prog-detail-body { padding: 24px 18px; }
  .prog-detail-topbar { padding: 16px 22px; }
  .prog-detail-topbar h2 { font-size: 20px; }

  /* OPD note */
  .opd-note { flex-direction: column; align-items: flex-start; }

  /* DMV center card */
  .dmv-center-card { padding: 32px 24px; }
  .dmv-center-card blockquote { font-size: 17px; }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 576px  (mobile phones)
───────────────────────────────────────────── */
@media (max-width: 576px) {
  /* Top strip */
  .top-strip { padding: 6px 12px; font-size: 11px; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .top-strip > div:first-child { gap: 12px; }

  /* Header */
  header { padding: 10px 12px; }
  .logo-icon { width: 50px; height: 50px; }
  .logo-icon img { height: 48px; }
  .logo-area { gap: 10px; }
  /* Switch name rotation to display toggle so text is always visible */
  .hospital-name { position: relative !important; display: none !important; opacity: 1 !important; white-space: normal !important; transition: none !important; }
  .hospital-name.active { display: block !important; }
  .hospital-name-wrap { height: auto !important; overflow: visible !important; max-width: calc(100vw - 130px); }
  .hospital-name .h-name { font-size: 14px !important; line-height: 10px; }
  .hospital-name .odia { font-size: 14px !important; line-height: 10px !important; }
  .hospital-name .hindi { font-size: 14px !important; line-height: 10px !important; }
  .hospital-name .h-sub { font-size: 9px; letter-spacing: 0.04em; }

  /* Hero */
  .hero { height: 320px; }
  .hero-content { left: 4%; max-width: 90%; }
  .hero-content h1 { font-size: 24px; margin-bottom: 10px; }
  .hero-content p { font-size: 13.5px; margin-bottom: 16px; line-height: 1.55; }
  .hero-btns { gap: 10px; flex-wrap: wrap; }
  .hero-btns a { padding: 9px 18px; font-size: 13px; }
  .hero-tag { font-size: 10px; padding: 4px 12px; }

  /* Section */
  section { padding: 44px 16px; }
  .stats-section { padding: 36px 16px; }
  .dmv-strip { padding: 44px 16px; }
  .reach-section { padding: 44px 16px; }
  footer { padding: 36px 16px 20px; }
  .section-title { font-size: 26px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-num { font-size: 38px; }
  .stat-suffix { font-size: 22px; }
  .stat-card { padding: 20px 12px; }
  .stat-icon { font-size: 26px; margin-bottom: 8px; }
  .stat-label { font-size: 11.5px; }

  /* Facilities */
  .facilities-section { padding: 44px 16px; }
  .fac-tab { font-size: 11px; padding: 9px 6px; }
  .fac-text-col h3 { font-size: 24px; }
  .fac-points { grid-template-columns: 1fr; }
  .fac-thumb-grid { grid-template-rows: repeat(2, 100px); gap: 6px; }
  .fac-yt-wrap { min-height: 220px; }
  .fac-nav-btns { flex-direction: column; gap: 8px; }
  .fac-nav-btn { width: 100%; text-align: center; }

  /* Dept grid */
  .dept-grid { grid-template-columns: 1fr !important; }

  /* OPD table */
  .opd-table th, .opd-table td { padding: 10px 10px; font-size: 13.5px; }

  /* Body: welcome */
  .welcome-img-wrap img { height: 220px; }
  .welcome-text p { font-size: 15.5px; }

  /* Programs card */
  .prog-card-title { font-size: 20px; }
  .prog-meta-chip { font-size: 11.5px; padding: 4px 10px; }
  .prog-thumbs-panel { grid-template-rows: repeat(2, 80px); }

  /* Ann card */
  .ann-card-title { font-size: 18px; }
  .ann-card-desc { font-size: 14.5px; }

  /* Reach */
  .reach-img-wrap { height: 150px; }

  /* DMV */
  .dmv-center-card { padding: 24px 18px; }
  .dmv-center-card blockquote { font-size: 15.5px; }
  .dmv-center-icon { width: 56px; height: 56px; font-size: 22px; }
  .dmv-side-card { padding: 26px 20px; }
  .dmv-side-card h3 { font-size: 22px; }
  .dmv-side-card p { font-size: 15px; }

  /* Special */
  .special-overlay h4 { font-size: 17px; }
  .special-overlay p { font-size: 12px; }

  /* Docs section */
  #doctors { padding: 44px 16px; }
  #doctors > div { padding: 0; }

  /* Footer */
  .footer-grid { gap: 20px; }
  .footer-col h4 { font-size: 13px; }
  .footer-col a { font-size: 13px; }
  .footer-about p { font-size: 13.5px; }
  .footer-bottom { font-size: 11.5px; }

  /* Prog detail overlay */
  .prog-detail-overlay.open { padding: 14px 8px; }
  .prog-detail-body { padding: 18px 12px; }
  .prog-detail-topbar { padding: 14px 16px; }
  .prog-detail-topbar h2 { font-size: 17px; }
  .prog-view-more-btn { padding: 12px 24px; font-size: 14px; }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 400px  (small phones)
───────────────────────────────────────────── */
@media (max-width: 400px) {
  .hero { height: 280px; }
  .hero-content h1 { font-size: 20px; }
  .hero-content p { display: none; }
  .hero-btns a { padding: 8px 14px; font-size: 12px; }
  .hero-tag { display: none; }
  .stat-num { font-size: 32px; }
  .section-title { font-size: 22px; }
  .ticker-label { padding: 0 10px; font-size: 9px; }
  .ticker-track { padding-left: 100px; }
  .ticker-item { font-size: 11.5px; padding: 0 20px; }
  .logo-icon { width: 44px; height: 44px; }
  .logo-icon img { height: 42px; }
  .hospital-name .h-name { font-size: 13px !important; line-height: 17px; }
  .hospital-name .h-sub { font-size: 8.5px; }
  .hospital-name-wrap { max-width: calc(100vw - 120px); }
}

/* ─────────────────────────────────────────────
   CONTACT PAGE + REACH HEADING ROW
───────────────────────────────────────────── */

/* Reach heading row: stack tabs below title on smaller screens */
@media (max-width: 768px) {
  .reach-heading-row { flex-direction: column; gap: 14px; }
  .reach-lang-tabs { padding-top: 0; }
}

/* ≤ 1100px — info cards: 2 columns */
@media (max-width: 1100px) {
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 992px — tablet */
@media (max-width: 992px) {
  .page-hero { height: 240px; }
  .page-hero-content { padding: 0 30px; }
  .page-hero h1 { font-size: 38px; margin-bottom: 12px; }

  .contact-section { padding: 52px 24px; }
  .contact-lower { grid-template-columns: 1fr; gap: 32px; }
  .contact-map-wrap { min-height: auto; }
  .map-frame iframe { height: 320px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .page-hero { height: 200px; }
  .page-hero-content { padding: 0 20px; }
  .page-hero h1 { font-size: 30px; margin-bottom: 10px; }
  .breadcrumb-nav { font-size: 12.5px; }

  .contact-section { padding: 44px 20px; }
  .contact-info-grid { gap: 16px; }
  .contact-info-card { padding: 24px 16px; }
  .contact-form-wrap { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ≤ 576px — mobile */
@media (max-width: 576px) {
  .page-hero { height: 175px; }
  .page-hero h1 { font-size: 26px; }

  .contact-section { padding: 36px 14px; }
  .contact-info-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-info-card { padding: 20px 12px; }
  .contact-info-icon { width: 48px; height: 48px; font-size: 18px; }
  .contact-info-card h4 { font-size: 11px; }
  .contact-info-card p, .contact-info-card a { font-size: 13px; }

  .contact-form-wrap { padding: 22px 16px; }
  .contact-form-wrap h3 { font-size: 24px; }
  .map-frame iframe { height: 260px; }
  .map-header { padding: 14px 18px; }
  .map-header h4 { font-size: 13.5px; }
  .map-header p { font-size: 11.5px; }

  #backToTop { bottom: 18px; right: 18px; width: 40px; height: 40px; font-size: 15px; }
}

/* ≤ 400px — small phones */
@media (max-width: 400px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 22px; }
  .contact-form-wrap h3 { font-size: 21px; }
}

