/* =========================================================
   AMN Hospital — Design inspired by modern hospital sites
   (Holy Family Hospital style: navy, white, magenta accents)
   ========================================================= */

:root {
  --navy: #1a337e;
  --navy-dark: #12255c;
  --navy-deep: #0d1b45;
  --magenta: #e11d74;
  --magenta-dark: #c2185b;
  --sky: #eef3fb;
  --soft: #f5f7fb;
  --text: #1e2433;
  --muted: #5f6b7a;
  --white: #ffffff;
  --line: #e2e8f2;
  --shadow: 0 10px 30px rgba(26, 51, 126, 0.1);
  --radius: 16px;
  --transition: 0.35s ease;
  --font-display: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy-dark);
}

.section { padding: 80px 0; }
.section-soft { background: var(--soft); }

.section-label {
  display: inline-block;
  color: var(--magenta);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  color: var(--navy);
}

.section-text { color: var(--muted); max-width: 640px; }

.accent-link {
  color: var(--magenta);
  font-weight: 700;
}
.accent-link:hover { color: var(--magenta-dark); gap: 8px; }

/* Buttons */
.btn-amn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary-amn {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(26, 51, 126, 0.25);
}
.btn-primary-amn:hover {
  background: var(--magenta);
  color: #fff;
  transform: translateY(-2px);
}

.btn-magenta {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 8px 22px rgba(225, 29, 116, 0.28);
}
.btn-magenta:hover {
  background: var(--magenta-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-amn {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}
.btn-outline-amn:hover {
  background: #fff;
  color: var(--navy);
}

.btn-dark-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-dark-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-emergency {
  background: var(--magenta);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(225, 29, 116, 0.45);
  animation: emergencyPulse 2.4s ease-in-out infinite;
}
.btn-emergency:hover {
  background: var(--magenta-dark);
  color: #fff;
  animation: none;
}
@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 116, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(225, 29, 116, 0); }
}

/* Topbar — Holy Family style */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 42px;
}
.topbar-boardline {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 0;
}
.topbar-boardline:hover { color: #ffd0e6 !important; }
.topbar-right {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}
.topbar-links {
  display: flex;
  align-items: stretch;
}
.topbar-links > a,
.topbar-drop {
  display: inline-flex;
  align-items: stretch;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.topbar-links > a:first-child,
.topbar-links > .topbar-drop:first-child {
  border-left: none;
}
.topbar-links > a {
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.92) !important;
  padding: 0 14px;
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
}
.topbar-links > a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06);
}
.topbar-drop {
  position: relative;
}
.topbar-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.92);
  padding: 0 14px;
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
  height: 100%;
  min-height: 42px;
  cursor: pointer;
}
.topbar-drop-btn i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.topbar-drop:hover .topbar-drop-btn,
.topbar-drop.open .topbar-drop-btn {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.topbar-drop:hover .topbar-drop-btn i,
.topbar-drop.open .topbar-drop-btn i {
  transform: rotate(180deg);
}
.topbar-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(13, 27, 69, 0.18);
  padding: 8px 0;
  display: none;
  z-index: 1200;
  overflow: hidden;
}
.topbar-drop:hover .topbar-drop-menu,
.topbar-drop.open .topbar-drop-menu {
  display: block;
}
.topbar-drop-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--navy) !important;
  font-size: 0.86rem;
  font-weight: 650;
  border: 0 !important;
  white-space: nowrap;
}
.topbar-drop-menu a:hover {
  background: var(--sky);
  color: var(--magenta) !important;
}
.topbar-right .btn-emergency {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  align-self: center;
  border-radius: 3px;
}

/* Navbar — Holy Family style */
.site-header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(26, 51, 126, 0.08);
  z-index: 1030;
}
.navbar-amn {
  background: #fff;
  padding: 10px 0;
  box-shadow: none;
  transition: var(--transition);
}
.navbar-amn.scrolled {
  padding: 6px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.15;
}
.brand-logo span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7c9a;
  letter-spacing: 0.01em;
}
.brand-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
}

.navbar-amn .navbar-nav {
  gap: 2px;
}
.navbar-amn .navbar-collapse {
  flex-grow: 1;
}
@media (min-width: 992px) {
  .navbar-amn .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }
  .navbar-amn .navbar-nav {
    margin-right: 8px;
  }
  .header-actions {
    margin-left: 4px;
  }
}
.navbar-amn .nav-link {
  color: var(--navy) !important;
  font-weight: 650;
  padding: 10px 13px !important;
  font-size: 0.9rem;
  position: relative;
}
.navbar-amn .nav-link:hover,
.navbar-amn .nav-link.active {
  color: var(--magenta) !important;
}
.navbar-amn .nav-link::after { display: none; }
.navbar-amn .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: 0.15em;
  border: none;
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.btn-opd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-opd:hover {
  background: var(--magenta);
  color: #fff !important;
}

.nav-search-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.nav-search-btn:hover {
  background: var(--sky);
  color: var(--magenta);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 27, 69, 0.72);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  backdrop-filter: blur(4px);
}
.search-overlay.open { display: flex; }
.search-overlay-box {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-overlay-box input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}
.search-overlay-box input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 51, 126, 0.12);
}
.search-close {
  border: none;
  background: var(--sky);
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.navbar-toggler { border: none; box-shadow: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 51, 126, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero carousel — HFH style */
.hero-slider {
  position: relative;
  background: var(--navy-deep);
}
.hero-slider .carousel-item {
  min-height: 62vh;
  background-size: cover;
  background-position: center;
}
.hero-slider .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,27,69,0.88) 0%, rgba(26,51,126,0.55) 45%, rgba(26,51,126,0.2) 100%);
}
.hero-slider .carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0;
}
.hero-slider .carousel-caption .container { position: relative; z-index: 2; }
.hero-slider h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 12px;
  max-width: 640px;
}
.hero-slider h2 em {
  font-style: normal;
  color: #ff4fa3;
}
.hero-slider p {
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  opacity: 1;
}
.hero-slider .carousel-control-prev { left: 18px; }
.hero-slider .carousel-control-next { right: 18px; }

/* Quick action cards under hero */
.quick-actions {
  margin-top: -48px;
  position: relative;
  z-index: 5;
  padding-bottom: 20px;
}
.quick-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  height: 100%;
  transition: var(--transition);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.quick-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(26, 51, 126, 0.14);
}
.quick-card .qi {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.quick-card:hover .qi {
  background: var(--navy);
  color: #fff;
}
.quick-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.quick-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Trust + tabs */
.trust-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--navy);
}
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.pill-tabs .nav-link {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  background: #cfd6e6;
  color: #fff;
}
.pill-tabs .nav-link.active {
  background: var(--navy);
  color: #fff;
}

/* Specialty icon cards */
.spec-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  border: 1px solid var(--line);
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(26, 51, 126, 0.04);
}
.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.spec-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  transition: var(--transition);
}
.spec-card:hover .icon {
  background: var(--navy);
  color: #fff;
}
.spec-card h5 {
  font-size: 0.98rem;
  margin: 0;
  color: var(--navy);
}

/* Stats strip */
.stats-strip {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy) 50%, #243f96);
  color: #fff;
  padding: 48px 0;
}
.stats-strip .stat-item { text-align: center; }
.stats-strip .num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-strip .lbl {
  opacity: 0.85;
  font-weight: 600;
  font-size: 0.95rem;
}

/* About / legacy */
.legacy-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.legacy-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.legacy-body { padding: 36px; }

/* Patient care tiles */
.care-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  transition: var(--transition);
}
.care-tile:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.care-tile span {
  font-weight: 700;
  color: var(--navy);
}
.care-tile i { color: var(--magenta); }

/* Feature / why cards (compat) */
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  height: 100%;
  box-shadow: 0 4px 14px rgba(26, 51, 126, 0.04);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.feature-card:hover .feature-icon {
  background: var(--navy);
  color: #fff;
}

.feature-card.color-coral .feature-icon,
.feature-card.color-teal .feature-icon,
.feature-card.color-blue .feature-icon,
.feature-card.color-gold .feature-icon {
  background: var(--sky);
  color: var(--navy);
}

/* About visual */
.about-visual { position: relative; }
.about-visual img {
  border-radius: 18px;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  max-width: 210px;
  border-left: 4px solid var(--magenta);
}
.about-badge strong {
  display: block;
  font-size: 1.6rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--muted);
}
.check-list i { color: var(--magenta); margin-top: 3px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.stat-box {
  background: var(--sky);
  border-radius: 12px;
  padding: 16px;
  transition: var(--transition);
}
.stat-box:hover {
  background: var(--navy);
  color: #fff;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-box:hover .stat-number,
.stat-box:hover small { color: #fff; }
.stat-box small { color: var(--muted); font-weight: 600; }

/* Services / department photo cards */
.service-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(26, 51, 126, 0.06);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 51, 126, 0.14);
  border-color: transparent;
}
.service-card .thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.service-card:hover .thumb img { transform: scale(1.1); }
.service-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 27, 69, 0.35));
  pointer-events: none;
}
.service-body {
  padding: 28px 22px 22px;
  position: relative;
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-top: -52px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 22px rgba(26, 51, 126, 0.35);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--magenta);
  transform: scale(1.06);
}
.service-card h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-link {
  color: var(--magenta);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { color: var(--navy); gap: 10px; }

/* Photo specialty cards (homepage grid) */
.dept-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(26, 51, 126, 0.06);
  display: block;
}
.dept-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 51, 126, 0.14);
}
.dept-card .thumb {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.dept-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.dept-card:hover .thumb img { transform: scale(1.1); }
.dept-card .di {
  position: absolute;
  left: 16px;
  bottom: -22px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(26, 51, 126, 0.3);
  z-index: 2;
  transition: var(--transition);
}
.dept-card:hover .di { background: var(--magenta); }
.dept-card .body {
  padding: 34px 18px 18px;
}
.dept-card h4 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.dept-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Events & Blog cards */
.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(26, 51, 126, 0.06);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(26, 51, 126, 0.14);
}
.blog-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.08); }
.blog-date {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--magenta);
  color: #fff;
  border-radius: 12px;
  min-width: 58px;
  text-align: center;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(225, 29, 116, 0.35);
}
.blog-date span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}
.blog-body { padding: 22px; }
.blog-tag {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.blog-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.blog-body h3 a:hover { color: var(--magenta); }
.blog-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* Blog one-by-one slider */
.blog-slider {
  overflow: hidden;
  width: 100%;
}
.blog-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.blog-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}
.blog-slide .blog-card { height: 100%; }

.blog-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26, 51, 126, 0.08);
}
.blog-nav-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.blog-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.blog-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #c9d3e8;
  padding: 0;
  transition: var(--transition);
}
.blog-dots button.active {
  width: 28px;
  background: var(--magenta);
}

@media (max-width: 991.98px) {
  .blog-slide { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 575.98px) {
  .blog-slide { flex-basis: 100%; }
  .blog-track { gap: 16px; }
}

/* Process / emergency strip */
.process-wrap {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
  border-radius: 20px;
  padding: 48px 32px;
}
.process-wrap .section-label { color: #ff8fc4; }
.process-wrap h2, .process-wrap p { color: #fff; }
.process-item { text-align: center; padding: 12px; }
.process-num {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
  transition: var(--transition);
}
.process-item:hover .process-num {
  background: var(--magenta);
  border-color: var(--magenta);
}
.process-item h5 { color: #fff; margin-bottom: 6px; }
.process-item p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

.why-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  transition: var(--transition);
}
.why-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.why-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* Doctors */
.doctor-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 8px 22px rgba(26, 51, 126, 0.06);
}
.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(26, 51, 126, 0.14);
  border-color: rgba(225, 29, 116, 0.25);
}
.doctor-card .photo {
  position: relative;
  padding: 28px 20px 0;
  background:
    linear-gradient(180deg, #eef3fb 0%, #fff 72%);
  display: flex;
  justify-content: center;
}
.doctor-card .photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: linear-gradient(135deg, var(--navy), #2a4a9e);
  opacity: 0.95;
}
.doctor-card .photo img {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px rgba(26, 51, 126, 0.22);
  background: #f3f6fb;
  transition: transform 0.45s ease;
}
.doctor-card:hover .photo img { transform: scale(1.04); }
.doctor-social {
  position: absolute;
  inset: auto 0 14px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.doctor-card:hover .doctor-social {
  opacity: 1;
  transform: translateY(0);
}
.doctor-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
}
.doctor-body { padding: 16px 18px 22px; text-align: center; }
.doctor-body h4 {
  color: var(--navy);
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.doctor-body .role {
  color: var(--magenta);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
}
.doctor-body .timing {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
}
.doctor-body .btn-book-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.doctor-body .btn-book-doc:hover {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 575.98px) {
  .doctor-card .photo { padding: 22px 16px 0; }
  .doctor-card .photo::before { height: 72px; }
  .doctor-card .photo img {
    width: 140px;
    height: 140px;
    border-width: 4px;
  }
}

/* CTA */
.cta-banner {
  background:
    linear-gradient(110deg, rgba(13,27,69,0.92), rgba(26,51,126,0.85)),
    url("../images/banner/img2.jpg") center/cover;
  border-radius: 20px;
  padding: 48px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2, .cta-banner p { color: #fff; }

/* Forms */
.appt-form {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 11px 14px;
  min-height: 48px;
  font-family: var(--font-body);
}
.form-control:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 51, 126, 0.12);
}
.form-label { font-weight: 650; color: var(--navy-dark); }

/* Gallery */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 240px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(13,27,69,0.85));
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Page hero */
.page-hero {
  padding: 110px 0 70px;
  background:
    linear-gradient(110deg, rgba(13,27,69,0.92), rgba(26,51,126,0.8)),
    url("../images/banner/slide-4.jpg") center/cover;
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}
.breadcrumb-amn { justify-content: center; margin-top: 10px; }
.breadcrumb-amn .breadcrumb-item,
.breadcrumb-amn .breadcrumb-item a,
.breadcrumb-amn .breadcrumb-item.active,
.breadcrumb-amn .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.8);
}

/* Contact */
.contact-info-card {
  background: var(--sky);
  border-radius: 14px;
  padding: 22px;
  height: 100%;
  transition: var(--transition);
}
.contact-info-card:hover {
  background: var(--navy);
  color: #fff;
}
.contact-info-card:hover h5,
.contact-info-card:hover a,
.contact-info-card:hover p { color: #fff; }
.contact-info-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.map-frame {
  border: 0;
  width: 100%;
  height: 360px;
  border-radius: 16px;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding-top: 70px;
}
.footer h5 { color: #fff; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #ff8fc4; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 18px 0;
  font-size: 0.88rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* Back top */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(225, 29, 116, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 99;
  border: none;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Compat: old hero (inner pages don't use it much) */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(13,27,69,0.9), rgba(26,51,126,0.7)),
    url("../images/banner/slide-5.jpg") center/cover;
  position: relative;
}
.hero-content { padding: 100px 0 60px; position: relative; z-index: 2; }
.hero-brand { color: #fff !important; font-size: clamp(2rem, 4vw, 3rem); }
.hero-title { color: #ffb3d4 !important; }
.hero-text { color: rgba(255,255,255,0.88); }
.hero-hours {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: min(300px, calc(100% - 32px));
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  z-index: 3;
}
.hero-hours h5 { color: var(--navy); font-size: 1rem; }
.hero-hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}
.hero-hours .badge-open {
  background: #ffe3f0;
  color: var(--magenta);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}

@media (max-width: 991.98px) {
  .quick-actions { margin-top: -24px; }
  .hero-hours { position: relative; right: auto; bottom: auto; margin: 20px auto; }
  .hero-slider .carousel-item { min-height: 52vh; }
  .legacy-card img { min-height: 260px; }

  .navbar-amn .navbar-collapse {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-top: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .navbar-amn .nav-link {
    padding: 10px 12px !important;
    border-radius: 8px;
  }
  .navbar-amn .nav-link:hover,
  .navbar-amn .nav-link.active {
    background: var(--sky);
  }
  .navbar-amn .btn-magenta {
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 575.98px) {
  .section { padding: 52px 0; }
  .stat-grid { grid-template-columns: 1fr; }

  .brand-logo { gap: 8px; font-size: 1.05rem; }
  .brand-logo-img { width: 44px; height: 44px; }
  .brand-logo span { font-size: 0.62rem; max-width: 140px; white-space: normal; }

  .hero-slider .carousel-item { min-height: 68vh; }
  .hero-slider .carousel-caption .container {
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .hero-slider h2 {
    font-size: 1.55rem;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .hero-slider p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .hero-slider .carousel-caption .btn-amn {
    display: flex;
    width: 100%;
    margin: 0 0 10px !important;
  }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next {
    width: 36px;
    height: 36px;
  }
  .hero-slider .carousel-control-prev { left: 8px; }
  .hero-slider .carousel-control-next { right: 8px; }

  .quick-actions {
    margin-top: -28px;
    padding-bottom: 8px;
  }
  .quick-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 12px;
    gap: 10px;
  }
  .quick-card .qi {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .quick-card h4 { font-size: 0.9rem; }
  .quick-card p { font-size: 0.75rem; line-height: 1.4; }

  .trust-heading { font-size: 1.25rem; line-height: 1.35; }
  .pill-tabs { gap: 8px; }
  .pill-tabs .nav-link {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .dept-card .thumb { height: 160px; }
  .service-card .thumb { height: 170px; }
  .blog-thumb { height: 180px; }

  .stats-strip { padding: 36px 0; }
  .stats-strip .num { font-size: 1.7rem; }
  .stats-strip .lbl { font-size: 0.8rem; }

  .legacy-body { padding: 22px 18px; }
  .cta-banner { padding: 28px 18px; border-radius: 16px; }
  .appt-form { padding: 18px; border-radius: 14px; }

  .page-hero { padding: 90px 0 50px; }
  .page-hero h1 { font-size: 1.6rem; }

  .section-title { font-size: 1.45rem; }
  .process-wrap { padding: 28px 16px; border-radius: 16px; }

  #events-blog .row.mb-4 {
    text-align: center;
  }
  #events-blog .text-lg-end {
    text-align: center !important;
    margin-top: 12px;
  }

  .footer { padding-top: 48px; padding-bottom: 78px; }
  .footer-bottom { text-align: center; }

  .back-top {
    right: 14px;
    bottom: 78px;
    width: 42px;
    height: 42px;
  }

  /* Mobile bottom action bar */
  .mobile-action-bar {
    display: flex !important;
  }
}

/* Mobile sticky call bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(26, 51, 126, 0.12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.mobile-action-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky);
}
.mobile-action-bar a i { font-size: 1.15rem; }
.mobile-action-bar a.call {
  background: var(--navy);
  color: #fff;
}
.mobile-action-bar a.wa {
  background: #25d366;
  color: #fff;
}
.hero-slider .carousel-caption .container .btn-amn + .btn-amn {
  margin-left: 10px;
}
@media (max-width: 575.98px) {
  .hero-slider .carousel-caption .container .btn-amn + .btn-amn {
    margin-left: 0 !important;
  }
  .navbar-amn .container {
    flex-wrap: wrap;
  }
  .navbar-amn .brand-logo {
    max-width: calc(100% - 110px);
  }
}

/* Announcements */
.announce-ticker {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(26, 51, 126, 0.06);
}
.announce-ticker-label {
  flex: 0 0 auto;
  background: var(--magenta);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.announce-ticker-track {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #fff7fb, #eef3fb);
}
.announce-ticker-move {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: announceScroll 28s linear infinite;
  padding-left: 20px;
}
.announce-ticker-move span {
  color: var(--navy);
  font-weight: 650;
  font-size: 0.92rem;
  position: relative;
  padding-right: 40px;
}
.announce-ticker-move span::after {
  content: "•";
  position: absolute;
  right: 12px;
  color: var(--magenta);
}
@keyframes announceScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.announce-ticker:hover .announce-ticker-move {
  animation-play-state: paused;
}

.announce-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  height: 100%;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 8px 22px rgba(26, 51, 126, 0.06);
  overflow: hidden;
}
.announce-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--navy);
}
.announce-card.featured::before { background: var(--magenta); }
.announce-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(26, 51, 126, 0.12);
}
.announce-badge {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.announce-badge.camp { background: #0d9488; }
.announce-badge.info { background: var(--navy); }
.announce-badge.alert { background: #dc2626; }
.announce-date {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.announce-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.announce-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

@media (max-width: 575.98px) {
  .announce-ticker-label {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
  .announce-ticker-move span { font-size: 0.82rem; }
  .announce-card { padding: 18px 16px 18px 20px; }
}
