/* 
 * Emergency Services Layout 
 * Adapted for Mahavir Hospital 
 */

.svc-page {
  --blue: #002d62;
  --blue-deep: #001e42;
  --blue-ink: #001530;
  --blue-tint: #eaf4fa;
  --blue-soft: #9bd4f0;
  --red: #d7263d;
  --red-hover: #b91d31;
  --surface: #f7fafc;
  --ink: #16242e;
  --ink-2: #41535f;
  --ink-3: #6b7c87;
  --line: #e1e9ee;
  --white: #ffffff;
  --r: 8px;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
}

.svc-page * {
  box-sizing: border-box;
}
.svc-page img {
  max-width: 100%;
  display: block;
  height: auto;
}
.svc-page a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
.svc-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.svc-page p {
  margin: 0 0 15px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.svc-page h1,
.svc-page h2,
.svc-page h3,
.svc-page h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 15px;
}

.svc-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .svc-wrap {
    padding: 0 20px;
  }
}

/* Buttons */
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--r);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  cursor: pointer;
  text-transform: capitalize;
}
.svc-btn-primary {
  background: var(--red);
  color: var(--white);
  border: none;
  box-shadow: 0 6px 18px rgba(215, 38, 61, 0.32);
}
.svc-btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  color: var(--white);
}
.svc-btn-white {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.svc-btn-white:hover {
  transform: translateY(-2px);
  color: var(--blue-deep);
  border-color: var(--blue-soft);
}

/* Sections & Headings */
.svc-s {
  padding: 80px 0;
}
.svc-s.alt {
  background: var(--surface);
}
.svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.svc-eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.svc-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}
.svc-h2 .t {
  color: var(--blue);
}
.svc-lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 700px;
  line-height: 1.6;
}
.svc-sec-head.center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}
.svc-sec-head.center .svc-eyebrow {
  justify-content: center;
}
.svc-sec-head.center .svc-lead {
  margin: 15px auto 0;
}
.svc-sec-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 50px;
}
.svc-sec-head.split .split-right {
  max-width: 500px;
}

/* Breadcrumb */
.full-width-breadcrumb {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.full-width-breadcrumb .svc-wrap {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.full-width-breadcrumb a {
  color: var(--blue);
}
.full-width-breadcrumb a:hover {
  color: var(--red);
  text-decoration: underline;
}
.full-width-breadcrumb span.sep {
  color: #a0b0b9;
  font-size: 12px;
}
.full-width-breadcrumb .cur {
  color: var(--ink);
}

/* Hero */
.svc-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-ink);
  color: #fff;
}
.svc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.svc-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 21, 48, 0.98) 0%,
    rgba(0, 30, 66, 0.9) 50%,
    rgba(0, 45, 98, 0.4) 100%
  );
}
.svc-hero .svc-wrap {
  position: relative;
  padding-top: 90px;
  padding-bottom: 100px;
}
.svc-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 18ch;
  color: #fff;
  line-height: 1.1;
}
.svc-hero h1 .t {
  color: var(--blue-soft);
}
.svc-hero p {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin-bottom: 40px;
  font-weight: 400;
}
.svc-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.svc-hero-crumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 10px;
  align-items: center;
}
.svc-hero-crumb a {
  color: #fff;
  text-decoration: none;
}
.svc-hero-crumb a:hover {
  text-decoration: underline;
  color: var(--red);
}
.svc-chips {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feature Bar */
.svc-facts {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  margin-top: -1px;
}
.svc-facts .svc-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.svc-fact {
  padding: 25px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
}
.svc-fact:first-child {
  border-left: 1px solid var(--line);
}
.svc-fact .ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.svc-fact .tx {
  display: flex;
  flex-direction: column;
}
.svc-fact .tx .l {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}
.svc-fact .tx .v {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
}

/* 2-Col Layouts (Intro, Why Choose Us, etc) */
.svc-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.svc-2col.rev {
  direction: rtl;
}
.svc-2col.rev > * {
  direction: ltr;
}
.svc-2col-img {
  position: relative;
}
.svc-2col-img img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 45, 98, 0.1);
  width: 100%;
  object-fit: cover;
}
.svc-2col-img::before {
  content: "";
  position: absolute;
  inset: -15px 15px 15px -15px;
  border: 2px dashed var(--blue-soft);
  border-radius: 20px;
  z-index: -1;
}
.svc-prose p:last-child {
  margin-bottom: 0;
}
.svc-jump {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.svc-jump a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
}

/* Tabs Additions */
.rx-utabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rx-utabbar {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rx-utab {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-3);
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}
.rx-utab:hover {
  color: var(--blue);
}
.rx-utab.on {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.rx-utab .ui {
  display: flex;
  align-items: center;
  color: var(--red);
}
.rx-utabpanel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.rx-utabpanel.on {
  display: block;
}
.rx-vp-ey {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}
.rx-utabpanel h3 {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 15px;
  font-weight: 700;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accordion (Image + Acc) */
.rx-acc2.stretch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.rx-acc2-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.rx-acc-item {
  border-bottom: 1px solid var(--line);
}
.rx-acc-item:last-child {
  border-bottom: none;
}
.rx-acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
}
.rx-acc-q h3 {
  font-size: 18px;
  margin: 0;
  flex: 1;
  padding: 0 15px;
  font-weight: 700;
}
.rx-acc-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
}
.rx-acc-fx {
  transition: 0.3s;
  color: var(--blue);
}
.rx-acc-item.open .rx-acc-fx {
  transform: rotate(180deg);
}
.rx-acc-item.open .rx-acc-q h3 {
  color: var(--blue);
}
.rx-acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 15px 0 40px;
}
.rx-acc-item.open .rx-acc-a {
  max-height: 500px;
  padding-bottom: 20px;
}

/* FAQ List */
.svc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.svc-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.svc-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.svc-faq-q .fx {
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  transition: 0.3s;
}
.svc-faq-item.open .svc-faq-q {
  color: var(--blue);
}
.svc-faq-item.open .fx {
  transform: rotate(45deg);
}
.svc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 25px;
}
.svc-faq-item.open .svc-faq-a {
  max-height: 500px;
  padding-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .svc-facts .svc-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
  .svc-sec-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media (max-width: 900px) {
  .rx-acc2.stretch {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .svc-s {
    padding: 60px 0;
  }
  .svc-hero .svc-wrap {
    padding-top: 60px;
    padding-bottom: 70px;
  }
  .svc-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .svc-2col-img::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .svc-facts .svc-wrap {
    grid-template-columns: 1fr;
  }
  .svc-fact {
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .svc-fact:last-child {
    border-bottom: none !important;
  }
  .svc-btn {
    justify-content: center;
    width: 100%;
  }
}
/* --- Added for Emergency Services Hero Layout --- */
.svc-hero-banner {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-between; 
  align-items: center; 
  gap: 40px; 
  text-align: left;
}
.svc-hero-banner-left {
  flex: 1 1 500px; 
  max-width: 700px;
}
.svc-hero-banner-left .svc-hero-crumb {
  justify-content: flex-start;
}
.svc-hero-banner-left h1,
.svc-hero-banner-left p {
  max-width: 100%;
}
.svc-hero-banner-left p {
  margin-inline: 0;
}
.svc-hero-banner-right {
  flex: 1 1 350px; 
  display: flex; 
  flex-direction: column; 
  gap: 30px; 
  padding-top: 20px;
}
.svc-hero-banner-right .svc-chips {
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  margin-bottom: 0;
}
.svc-hero-banner-right .svc-chip {
  width: fit-content;
}
.svc-hero-banner-right .svc-hero-btns {
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
}
