/* Mamata Hospital — Medisch index2 blue theme */
:root {
  --primary: #00b3ff;
  --primary-dark: #009adb;
  --navy: #004274;
  --navy-deep: #023969;
  --text: #333333;
  --heading: #222222;
  --muted: #6c757d;
  --light: #ebf5f5;
  --white: #ffffff;
  --border: #eaeaea;
  --grey: #aaaaaa;
  --danger: #e12454;
  --success: #1aa35a;
  --shadow: 0 10px 30px rgba(0, 66, 116, 0.08);
  --container: 1170px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: 0.35s;
}

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif;
  color: var(--heading);
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

.container {
  width: min(100% - 30px, var(--container));
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-4 { width: 33.333%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }
.col-8 { width: 66.666%; padding: 0 15px; }
.col-9 { width: 75%; padding: 0 15px; }

.ptb-100 { padding: 100px 0; }
.pt-100 { padding-top: 100px; }
.pb-70 { padding-bottom: 70px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }

.hex-bg {
  background-image: url("../images/hex-pattern.svg");
  background-repeat: repeat;
  background-size: 140px;
}

/* Buttons — page2-btn style */
.btn {
  display: inline-block;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #fff;
  background: var(--navy);
  transition: 0.45s;
}

.btn::before,
.btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--primary);
  z-index: -1;
  transition: 0.45s;
}

.btn::before { top: 0; transform: translateY(-100%); }
.btn::after { bottom: 0; transform: translateY(100%); }

.btn:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn:hover::after { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
}

.btn-primary::before,
.btn-primary::after {
  background: var(--navy);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white::before,
.btn-white::after {
  background: var(--navy);
}

.btn-white:hover { color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline::before,
.btn-outline::after {
  display: none;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h5 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.section-heading h2,
.section-heading h4 {
  font-size: 36px;
  position: relative;
  padding-bottom: 18px;
  display: inline-block;
}

.section-heading h2 span,
.section-heading h4 span,
.title-line span {
  color: var(--primary);
}

.section-heading h2::before,
.section-heading h4::before,
.title-line::before {
  content: "";
  width: 90px;
  height: 2px;
  background: var(--grey);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.section-heading h2::after,
.section-heading h4::after,
.title-line::after {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--primary);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.title-left {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 22px;
  font-size: 32px;
}

.title-left::before {
  content: "";
  width: 60px;
  height: 2px;
  background: var(--grey);
  position: absolute;
  left: 0;
  bottom: 0;
}

.title-left::after {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--primary);
  position: absolute;
  left: 0;
  bottom: 0;
}

.title-left span { color: var(--primary); }

/* Header */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
}

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

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-list {
  display: flex;
  gap: 10px;
}

.social-list a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.social-list a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 62px;
  width: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav {
  display: flex;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--heading);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}

.search-btn {
  background: none;
  border: 0;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 66, 116, 0.92);
  z-index: 2000;
  place-items: center;
}

.search-overlay.open { display: grid; }

.search-overlay form {
  width: min(560px, 90%);
  position: relative;
}

.search-overlay input {
  width: 100%;
  padding: 18px 60px 18px 20px;
  border: 0;
  font-size: 18px;
}

.search-overlay button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 56px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Page banner */
.page-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background: #d9eef8 url("../images/page-banner.png") left center / cover no-repeat;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(217, 238, 248, 0.15) 0%, rgba(235, 245, 245, 0.88) 46%, rgba(235, 245, 245, 0.96) 100%),
    url("../images/hex-pattern.svg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 140px;
}

.page-banner .container {
  position: relative;
  z-index: 2;
  text-align: right;
}

.page-banner h1 {
  font-size: 48px;
  margin-bottom: 8px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 15px;
}

.breadcrumb a { color: var(--navy); font-weight: 700; }
.breadcrumb span { color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #e8f7ff 0%, #f4fcff 100%);
  overflow: hidden;
  padding: 70px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hex-pattern.svg");
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 30px;
}

.hero-copy {
  padding: 40px 0 90px;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-copy p {
  max-width: 540px;
  margin-bottom: 28px;
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual img {
  max-height: 560px;
  margin-left: auto;
  object-fit: contain;
  object-position: bottom;
}

.hero-badge {
  position: absolute;
  left: 8%;
  bottom: 22%;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 40px;
  box-shadow: 0 12px 30px rgba(0, 179, 255, 0.4);
}

/* Feature strip */
.feature-strip {
  background: var(--primary);
  color: #fff;
  margin-top: -1px;
}

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

.feature-card {
  padding: 42px 28px;
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.4s;
}

.feature-card:last-child { border-right: 0; }

.feature-card i {
  font-size: 42px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h5 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 15px;
}

.feature-card:hover {
  background: var(--navy);
}

/* About home */
.about-home {
  padding: 100px 0;
}

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

.about-photo img {
  width: 100%;
  object-fit: cover;
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--grey);
}

.counter {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.counter-icon {
  width: 58px;
  height: 58px;
  border: 1px solid var(--primary);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.counter strong {
  display: block;
  font-size: 24px;
  color: var(--heading);
}

.counter span {
  font-size: 13px;
  color: var(--muted);
}

/* Emergency */
.emergency {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}

.emergency-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  align-items: center;
}

.emergency-video {
  min-height: 220px;
  background: url("../images/gallery-1.png") center / cover no-repeat;
  position: relative;
}

.emergency-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 66, 116, 0.45);
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  z-index: 1;
}

.emergency-copy {
  padding: 40px 40px;
}

.emergency-copy h3,
.emergency-copy p,
.emergency-copy h2 {
  color: #fff;
}

.emergency-copy h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.emergency-copy h2 {
  font-size: 34px;
  margin: 0;
}

.emergency-figure img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* Services */
.services {
  padding: 100px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--border);
  background: #fff;
  transition: 0.4s;
}

.service-card i {
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card h6 {
  font-size: 22px;
}

.service-card:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.service-card:hover h6,
.service-card:hover i,
.service-card:hover a,
.service-card:hover p {
  color: #fff;
}

.more-link {
  color: var(--primary);
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

.service-actions {
  text-align: center;
  margin-top: 40px;
}

/* Doctors */
.doctors-home {
  padding: 100px 0;
  background: var(--light);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doctor-card {
  background: #fff;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}

.doctor-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
}

.doctor-meta {
  background: var(--navy);
  color: #fff;
  padding: 18px 12px;
}

.doctor-meta h6 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 20px;
}

.doctor-meta span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.doctor-card-plus {
  position: relative;
}

.plus-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}

/* Gallery */
.gallery-wrap {
  position: relative;
  background: url("../images/hospital-exterior.png") center / cover no-repeat;
  padding: 90px 0 200px;
}

.gallery-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #004274c9;
}

.gallery-wrap .section-heading,
.gallery-wrap h2,
.gallery-wrap h5 {
  color: #fff;
  position: relative;
}

.gallery-wrap .section-heading h2::before { background: rgba(255,255,255,0.5); }
.gallery-wrap .section-heading h2::after { background: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -150px;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  max-height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 16px;
  background: #023969bf;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: 0.4s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Testimonials */
.testimonials {
  background: var(--light);
  padding: 90px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.testimonial-photo img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
}

.quote-slider {
  position: relative;
}

.quote {
  display: none;
}

.quote.active { display: block; }

.quote p {
  font-size: 18px;
  font-style: italic;
}

.quote strong {
  display: block;
  margin-top: 16px;
  color: var(--navy);
}

.slider-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.slider-nav button {
  width: 50px;
  height: 50px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.slider-nav button:hover { background: var(--navy); }

.testimonial-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--primary);
  padding: 28px 24px;
}

.testi-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testi-top img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.stars { color: #f5b301; }

/* Family CTA */
.family-cta {
  background: var(--primary) url("../images/hex-pattern.svg");
  padding: 90px 0;
  text-align: center;
}

.family-cta h2 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 12px;
}

.family-cta p {
  color: #fff;
  max-width: 680px;
  margin: 0 auto 28px;
}

.family-cta .btn {
  margin: 6px;
}

.newsletter-box form {
  max-width: 280px;
}

.newsletter-box .form-success {
  font-size: 13px;
  padding: 10px 12px;
}

/* Blog cards */
.blog-section {
  padding: 100px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-body {
  padding: 22px;
}

.blog-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.blog-body h5 {
  font-size: 20px;
  min-height: 48px;
}

.date-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  text-align: center;
  line-height: 1.15;
  font-weight: 700;
}

.img-wrap { position: relative; }

/* Footer */
.site-footer {
  background: var(--navy) url("../images/hex-pattern.svg");
  color: #fff;
  padding: 90px 0 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr 1.1fr;
  gap: 30px;
}

.site-footer h4 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 22px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover { color: var(--primary); }

.footer-logo {
  height: 58px;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links i {
  margin-right: 8px;
  color: var(--primary);
}

.recent-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.recent-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post h6 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 4px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
}

.newsletter-box {
  margin-top: 18px;
}

.newsletter-box h5 {
  color: #fff;
  margin-bottom: 10px;
}

.input-box .form-group input {
  padding-left: 14px;
}

.input-box {
  display: flex;
  max-width: 280px;
  align-items: stretch;
}

.input-box .form-group {
  flex: 1;
  margin: 0;
}

.input-box .error-text {
  position: absolute;
  left: 0;
  bottom: -18px;
  font-size: 11px;
}

.input-box input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  background: #47779b;
  color: #fff;
}

.input-box input::placeholder { color: rgba(255,255,255,0.75); }

.input-box button {
  width: 48px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-bottom a {
  margin-left: 14px;
}

/* Forms */
.form-card {
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card-head {
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  font-size: 22px;
  font-weight: 700;
}

.form-card-body {
  padding: 30px;
  background: #f4f8fb;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  position: relative;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #dce6ee;
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
}

.form-group.no-label input,
.form-group.no-label select,
.form-group.no-label textarea {
  padding-left: 42px;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group i.field-icon {
  position: absolute;
  left: 14px;
  top: 42px;
  color: var(--grey);
}

.form-group.no-label i.field-icon { top: 16px; }

.error-text {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin-top: 4px;
  display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--danger);
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
}

.check-row input { margin-top: 4px; }

.form-success {
  display: none;
  background: #e8f8ee;
  border: 1px solid #b6e4c6;
  color: var(--success);
  padding: 16px 18px;
  margin-bottom: 18px;
  font-weight: 700;
}

.form-success.show { display: block; }

/* About page extras */
.about-intro {
  padding: 90px 0;
}

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

.hours-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: var(--primary);
  color: #fff;
  padding: 22px 24px;
  min-width: 220px;
}

.hours-card h5 { color: #fff; margin-bottom: 10px; }
.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.img-frame { position: relative; }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mv-card {
  border: 1px solid var(--primary);
  padding: 32px 24px;
  background: #fff;
  text-align: center;
}

.mv-card i {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 12px;
}

.stats-bar {
  background: var(--navy) url("../images/hex-pattern.svg");
  padding: 70px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat i {
  width: 70px;
  height: 70px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 26px;
}

.stat strong {
  display: block;
  font-size: 32px;
}

.stat span { color: rgba(255,255,255,0.85); }

.emergency-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.emergency-panel {
  background: var(--primary);
  color: #fff;
  padding: 60px 50px;
}

.emergency-panel h3,
.emergency-panel p { color: #fff; }

.emergency-panel i {
  font-size: 48px;
  margin-bottom: 16px;
}

.emergency-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* Team page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: #eef7ff;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dceef7;
  color: var(--navy);
  font-weight: 700;
}

.pagination .current,
.pagination a:hover {
  background: var(--primary);
  color: #fff;
}

/* Blog layout */
.blog-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  padding: 80px 0;
}

.blog-layout.right-sidebar {
  grid-template-columns: 1fr 320px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.widget {
  background: #fff;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.widget-head {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
}

.widget-body { padding: 16px; }

.widget input[type="search"],
.widget input[type="text"] {
  width: 100%;
  border: 1px solid #dce6ee;
  padding: 10px 12px;
}

.cat-list li,
.archive-list li {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.cat-list a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary);
  margin-right: 8px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: #e8f6ff;
  color: var(--primary);
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 3px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.insta-grid img {
  width: 100%;
  height: 84px;
  object-fit: cover;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

blockquote {
  background: var(--primary);
  color: #fff;
  padding: 24px 28px;
  margin: 24px 0;
  font-size: 18px;
  font-style: italic;
  border: 0;
}

.author-box {
  display: flex;
  gap: 18px;
  background: #e8f6ff;
  padding: 22px;
  margin: 30px 0;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.comment {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.comment img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.share-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 80px 0;
}

.info-stack {
  display: grid;
  gap: 18px;
}

.info-card {
  background: #eef6fb;
  padding: 26px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-card i {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 20px;
}

/* Legal */
.legal-content {
  padding: 80px 0;
}

.legal-content h2 {
  font-size: 28px;
  margin-top: 28px;
}

.legal-content h3 {
  font-size: 22px;
  margin-top: 20px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content li { margin-bottom: 8px; }

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.subscribe-panel {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 40px;
}

/* Video modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  place-items: center;
}

.video-modal.open { display: grid; }

.video-modal iframe {
  width: min(860px, 92vw);
  height: min(484px, 52vw);
  border: 0;
}

/* Responsive */
@media (max-width: 1199px) {
  .hero-copy h1 { font-size: 42px; }
  .emergency-grid { grid-template-columns: 180px 1fr 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .col-3, .col-4, .col-6, .col-8, .col-9 { width: 50%; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-wrap {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-wrap.open { display: flex; }
  .main-nav { flex-direction: column; }
  .hero-grid,
  .about-grid,
  .testimonial-grid,
  .intro-grid,
  .emergency-block,
  .blog-layout,
  .blog-layout.right-sidebar,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: 360px; }
  .feature-grid,
  .service-grid,
  .doctor-grid,
  .gallery-grid,
  .blog-grid,
  .mv-grid,
  .stats-grid,
  .team-grid,
  .posts-grid,
  .testimonial-cards {
    grid-template-columns: 1fr 1fr;
  }
  .emergency-grid { grid-template-columns: 1fr; }
  .emergency-figure { display: none; }
  .page-banner { min-height: 220px; }
  .page-banner .container { text-align: left; }
  .page-banner h1 { font-size: 36px; }
}

@media (max-width: 767px) {
  .col-3, .col-4, .col-6, .col-8, .col-9 { width: 100%; }
  .feature-grid,
  .service-grid,
  .doctor-grid,
  .gallery-grid,
  .blog-grid,
  .mv-grid,
  .stats-grid,
  .team-grid,
  .posts-grid,
  .testimonial-cards,
  .form-grid,
  .footer-grid,
  .counters {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 { font-size: 32px; }
  .ptb-100, .about-home, .services, .doctors-home, .blog-section { padding: 60px 0; }
  .header-inner { min-height: 72px; }
  .logo img { height: 48px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { margin-left: 0; margin-right: 12px; }
}
