@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════════════
   PAGE BACKGROUND
   Ported from ClinicViewDetails/src/components/ClinicNetwork.jsx - the
   layered purple gradient, blurred glow blobs and faint grid texture.
   ══════════════════════════════════════════════════════════════════════ */
body {
  font-family: "Poppins", sans-serif;
  color: #111;
  background: linear-gradient(
    160deg,
    #faf7ff 0%,
    #f3e8ff 20%,
    #ede9fe 40%,
    #ddd6fe 70%,
    #faf7ff 100%
  );
  background-attachment: fixed;
  position: relative;
}

/* glow blobs + grid, drawn behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

/* purple glows, top-left / top-right / bottom */
body::before {
  inset: 0;
  background:
    radial-gradient(500px circle at -10% -10%, rgba(124, 58, 237, 0.2), transparent 60%),
    radial-gradient(450px circle at 108% 12%, rgba(167, 139, 250, 0.2), transparent 60%),
    radial-gradient(600px circle at 30% 115%, rgba(196, 181, 253, 0.2), transparent 60%),
    radial-gradient(300px circle at 100% 100%, rgba(253, 186, 116, 0.1), transparent 60%);
}

/* faint 60px grid + light shine from the top */
body::after {
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent 30%),
    linear-gradient(to right, rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size:
    100% 100%,
    60px 60px,
    60px 60px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}

/* ── HERO  ← HeroSection.jsx ──────────────────────────────────────────
   Solid near-black extrabold heading, as on the live React page (its
   `gradient-text` class is never defined, so no gradient is applied).   */
h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin: 14px 0 14px;
}

@media (min-width: 768px) {
  h1 {
    font-size: 38px;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 46px;
  }
}

/* the "750+ verified clinics in 55 cities" badge pill above the heading */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 20px auto 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  animation: stats-pulse 2s ease-in-out infinite;
}

@keyframes stats-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* subtitle under the heading */
.hero-tagline {
  text-align: center;
  max-width: 30rem;
  margin: 0 auto;
  color: #6d28d9;
  font-size: 17px;
  font-weight: 500;
}

/* ── PROMO PILLS  ← PromoBar.jsx ────────────────────────────────────── */
.offer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  background: none;
  border-radius: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Tablet */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 576px) {
  h1 {
    font-size: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.muted {
  color: #666;
  font-size: 14px;
}
.ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.rating {
  border: 1px solid #e5e7eb;
  padding: 10px;
  border-radius: 10px;
}
.btns {
  display: flex;
  gap: 10px;
}
.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #28397c;
  color: #fff;
  cursor: pointer;
}
.btn:hover {
  opacity: 0.92;
}
#pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.page-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.active {
  background: #4f46e5;
  color: #fff;
}

.card {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef1f6;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-body {
  padding: 18px;
}

.clinic-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  height: 52px;
  overflow: hidden;
  margin-bottom: 14px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.icon {
  color: #28397c;
  font-size: 18px;
  min-width: 18px;
  margin-top: 2px;
}

.location-text {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.address-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  max-height: 44px;
  overflow: hidden;
}

.distance {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 6px 0 12px;
}

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.rating-box {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
}

.rating-label {
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.star {
  color: #f59e0b;
  font-size: 10px;
}

.rating-value {
  font-size: 6px;
  font-weight: 700;
  color: #111827;
}

.review-count {
  font-size: 6px;
  color: #6b7280;
}

.btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  width: 50%;
  border: none;
  background: #28397c;
  color: #fff;
  padding: 11px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #1f2d63;
}

@media (max-width: 576px) {
  .btns {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .ratings-grid {
    grid-template-columns: 1fr;
  }
}

/* Add in public/style.css */

#pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* pagination  ← ClinicNetwork.jsx */
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  color: #111;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: #faf5ff;
}

.page-btn.active {
  background: linear-gradient(to right, #6d28d9, #5b21b6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.3);
  transform: scale(1.1);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .page-btn {
    padding: 3px 5px;
    font-size:10px;
    border: none;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
  }
}

/*  LOCATION DROPDOWN */

/* ── SEARCH AREA  ← SearchCard.jsx ────────────────────────────────────
   No card behind it: on the live React page the label and controls sit
   directly on the page gradient (its `glass` class is never defined).   */
.filter-wrap {
  font-family: "Poppins", sans-serif;
  position: relative;
  display: flex;
  justify-content: flex-start;
  max-width: 53rem;
  margin: 46px auto 26px;
  padding: 26px 0 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* the "SELECT LOCATION" caption above the row */
.filter-wrap::before {
  content: "Select Location";
  position: absolute;
  top: 0;
  left: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d28d9;
}

.select-box {
  position: relative;
  width: 100%;
  max-width: 430px;
  overflow: visible;
}

.location-select {
  font-family: "Poppins", sans-serif;
  width: 100%;
  height: 56px;
  padding: 0 46px 0 48px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.03);

  transition: all 0.25s ease;
}

.location-select:hover {
  border-color: #8b5cf6;
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px rgba(139, 92, 246, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.04);
}

.location-select:focus {
  border-color: #6366f1;
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.05);
}

.location-select option {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}

/* LEFT ICON */
.select-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6366f1;
  font-size: 18px;
  pointer-events: none;
  z-index: 5; /* important */
  opacity: 1;
}

.arrow-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  pointer-events: none;
  z-index: 5; /* important */
  opacity: 1;
}

.location-select {
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.location-select:hover + .arrow-icon {
  opacity: 1;
}

/* optional hover color */
.select-box:hover .select-icon {
  color: #4f46e5;
}

.select-box:hover .arrow-icon {
  color: #4f46e5;
}

/* MOBILE */
@media (max-width: 768px) {
  .filter-wrap {
    margin: 18px 0 14px;
    padding: 0 12px;
  }

  .select-box {
    max-width: 100%;
  }

  .location-select {
    height: 52px;
    font-size: 15px;
    border-radius: 14px;
    padding: 0 42px 0 44px;
  }

  .select-icon {
    left: 14px;
    font-size: 16px;
  }

  .arrow-icon {
    right: 14px;
  }
}

/* CHANGE CITY - pill + button */

.filter-wrap {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
}

/* white pill with a small purple dot, as on the live page */
.city-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px;
  background: #ffffff;
  color: #6d28d9;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.06);
}

/* the location-dot icon is replaced by a plain purple dot */
.city-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  font-size: 0;
}

.change-city-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  background: #ffffff;
  color: #6d28d9;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.06);
}

.change-city-btn:hover {
  background: #faf5ff;
  border-color: #c4b5fd;
}

.change-city-btn i {
  transition: transform 0.3s ease;
}

.change-city-btn:hover i {
  transform: rotate(180deg);
}

/* CHANGE CITY - modal */

.city-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 50, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.city-modal-overlay.hidden {
  display: none;
}

.city-modal {
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.city-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
}

.city-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.city-modal-header p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.city-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.city-modal-close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.city-modal-body {
  padding: 20px 24px 8px;
  overflow-y: auto;
  flex: 1;
}

.city-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  background: #faf5ff;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  margin-bottom: 16px;
}

.city-search-box i {
  color: #a855f7;
  font-size: 14px;
}

.city-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #111827;
}

.city-list-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a855f7;
  text-transform: uppercase;
}

.city-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #f3f0ff;
  border-radius: 12px;
}

.city-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f0ff;
  transition: background 0.15s ease;
}

.city-list-item:last-child {
  border-bottom: none;
}

.city-list-item:hover {
  background: #faf5ff;
}

.city-list-item.selected {
  background: #f3f0ff;
}

.city-list-item .city-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #d8b4fe;
  flex-shrink: 0;
}

.city-list-item .city-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
}

.city-list-item .city-locations {
  display: block;
  font-size: 12px;
  color: #8b5cf6;
  margin-top: 2px;
}

.city-list-loading,
.city-list-empty {
  padding: 20px 16px;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.continue-city-btn {
  margin: 16px 24px 22px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.continue-city-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.continue-city-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.3);
}

/* ── "or" divider + landmark search  ← SearchCard.jsx ───────────────── */
.search-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 53rem;
  margin: 20px auto;
}

.search-divider::before,
.search-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #ddd6fe,
    transparent
  );
}

.search-divider span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.search-label {
  display: block;
  max-width: 53rem;
  margin: 0 auto 10px;
  padding-left: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d28d9;
}

.search-city {
  color: #f97316;
}

.clinic-search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 53rem;
  margin: 0 auto;
}

/* the magnifier only - "> i" keeps this off the x inside the clear button */
.clinic-search-box > i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #a78bfa;
  font-size: 15px;
  pointer-events: none;
}

.clinic-search-box input {
  width: 100%;
  height: 56px;
  padding: 0 48px 0 50px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  outline: none;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.06);
  transition: border-color 0.2s ease;
}

.clinic-search-box input::placeholder {
  color: #c4b5fd;
}

.clinic-search-box input:focus {
  border-color: #c4b5fd;
}

/* the x that clears the box */
.clinic-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: #c4b5fd;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clinic-search-clear:hover {
  background: #f3e8ff;
  color: #6d28d9;
}

.search-empty {
  max-width: 53rem;
  margin: 18px auto 0;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

/* Google's autocomplete dropdown, restyled to match the page */
.pac-container {
  margin-top: 6px;
  border: 1px solid #f3e8ff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(124, 58, 237, 0.14);
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.pac-item {
  padding: 10px 16px;
  border-top: 1px solid #f8f5ff;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover,
.pac-item-selected {
  background: #faf5ff;
}

.pac-item-query {
  font-size: 14px;
  color: #1f2937;
}

.pac-matched {
  color: #6d28d9;
}

/* ── "Available Clinics" section header  ← Clinics.jsx ──────────────── */
.clinics-header {
  margin: 34px 0 22px;
}

.clinics-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2d1b69;
}

.clinics-header p {
  margin-top: 10px;
  color: #4b5563;
}

@media (max-width: 576px) {
  .clinics-header h2 {
    font-size: 24px;
  }
}

/* cards  */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 340px);
  /* justify-content: center; */

  column-gap: 30px;
  row-gap: 30px;

  margin-top: 18px;
}

/* CARD  ← ClinicCard.jsx
   NOTE: location.js paginates by setting card.style.display = "block", so
   .card must stay a block box - never make it flex here.                */
.card {
  position: relative;
  width: 350px;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 10px 35px rgba(124, 58, 237, 0.1);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* soft glow in the top-right corner, grows on hover */
.card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(233, 213, 255, 0.3);
  filter: blur(40px);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(124, 58, 237, 0.16);
}

.card:hover::before {
  transform: scale(1.25);
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 20px;
}

/* TITLE */
.clinic-title {
  font-size: 18px;
  font-weight: 700;
  color: #28397c;
  margin-bottom: 14px;
  line-height: 1.35;
  min-height: 52px;
}

/* ROWS */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.icon {
  color: #28397c;
  font-size: 18px;
  min-width: 18px;
  margin-top: 2px;
}

.location-text {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.address-text {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.distance {
  margin: 8px 0 12px;
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

/* RATINGS */
.ratings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 8px 0;
}

.rating-box {
  border: 1px solid #f3e8ff;
  border-radius: 12px;
  padding: 10px;
  background: rgba(250, 245, 255, 0.7);
}

.rating-label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.star {
  color: #f59e0b;
  font-size: 13px;
}

.rating-value {
  font-size: 16px;
  font-weight: 700;
  color: #28397c;
}

.review-count {
  font-size: 10px;
  color: #6b7280;
}

/* BUTTONS - outlined "Clinic Details" + filled "Book Appointment" */
.btns {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.btn {
  flex: 1;
  width: 50%;
  border: 1px solid #28397c;
  background: #ffffff;
  color: #28397c;
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #28397c;
  color: #ffffff;
}

.btn--book {
  border-color: transparent;
  background: linear-gradient(to right, #28397c, #1d2a5f);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(40, 57, 124, 0.2);
}

.btn--book:hover {
  background: linear-gradient(to right, #28397c, #1d2a5f);
  color: #ffffff;
  transform: scale(1.02);
}

.btn--book:active {
  transform: scale(0.98);
}

/* MOBILE */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 14px;
  }

  .card {
    width: 100%;
  }

  .card-body {
    padding: 16px;
  }

  .clinic-title {
    font-size: 18px;
    min-height: auto;
  }

  .ratings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* IMPORTANT: side by side buttons on mobile */
  .btns {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .btn {
    width: 50%;
    font-size: 13px;
    padding: 11px 8px;
  }
}

/* ADD TO public/style.css */

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #f3f4f6;
  font-family: "Poppins", sans-serif;
}

.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
}

.nav-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  cursor: pointer;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-menu a {
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.desktop-menu a:hover {
  color: #7e22ce;
}

.book-btn {
  border: none;
  background: linear-gradient(to right, #7e22ce, #581c87);
  color: #fff;
  padding: 12px 24px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.book-btn:hover {
  transform: scale(1.05);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #f3e8ff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-toggle i {
  font-size: 20px;
  color: #7e22ce;
}

.mobile-menu {
  border-top: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 24px 20px;
}

.hidden {
  display: none !important;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.mobile-menu a:hover {
  background: #faf5ff;
  color: #7e22ce;
}

.mobile-book {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
}

/* FOOTER */
.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #2e1065, #4c1d95, #5b21b6);
  color: #fff;
  padding: 80px 0 40px;
}

@media (min-width: 768px) {
  .footer {
    background: linear-gradient(to right, #3b0764, #581c87, #6b21a8);
  }
}

.footer-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}

.footer-glow-1 {
  top: 0;
  left: 0;
  width: 288px;
  height: 288px;
  background: rgba(168, 85, 247, 0.2);
}

.footer-glow-2 {
  bottom: 0;
  right: 0;
  width: 384px;
  height: 384px;
  background: rgba(249, 115, 22, 0.1);
}

.footer-container {
  position: relative;
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 32px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .footer-grid {
    gap: 64px;
  }
}

.footer-brand {
  grid-column: span 1;
}

.footer-logo-box {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.footer-logo-box img {
  width: 128px;
  height: auto;
}

.footer-desc {
  color: #fff;
  line-height: 2;
  font-size: 14px;
}

@media (min-width: 640px) {
  .footer-desc {
    font-size: 16px;
  }
}

.footer h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-title {
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 4px;
  background: #f97316;
  border-radius: 999px;
}

.footer ul {
  list-style-type: none;
}

.footer li {
  margin-bottom: 16px;
}

.footer a {
  color: rgba(233, 213, 255, 0.7);
  font-size: 14px;
  display: inline-block;
  transition: color 0.3s, transform 0.3s;
  list-style-type: none;
  text-decoration: none;
}

@media (min-width: 640px) {
  .footer a {
    font-size: 16px;
  }
}

.footer a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 64px;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  color: rgba(233, 213, 255, 0.6);
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .footer-bottom p {
    text-align: left;
  }
}

.footer-break {
  display: block;
}

@media (min-width: 640px) {
  .footer-break {
    display: none;
  }
}

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.socials a.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.3s;
}

.social-linkedin:hover {
  background: #3b82f6;
}

.social-instagram:hover {
  background: #ec4899;
}

.social-facebook:hover {
  background: #1877f2;
}

/* NAVBAR MOBILE */
@media (max-width: 1279px) {
  .desktop-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* FOOTER RESPONSIVE GRID (mobile-first, matches sm:grid-cols-2 lg:grid-cols-4) */
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* OFFER BAR
   No coloured bar: PromoBar.jsx renders the two pills straight onto the
   page gradient. (This rule used to repaint the purple-pink band and, being
   later in the file, it overrode the one near the top.) */

.offer-bar {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 12px 16px 0;
  border-radius: 0;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: none;
}

/* pills sitting on the page gradient, as in PromoBar.jsx
   (bg-white/15 + border-white/25 - almost invisible on the light purple) */
.offer-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #6d28d9;
  padding: 6px 16px;
  border-radius: 999px;
  text-align: center;
  transition: background 0.2s ease;
}

.offer-chip:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* the sparkle / tag icons in front of each offer */
.offer-chip i {
  font-size: 14px;
  color: #6d28d9;
}

/* DESKTOP = SINGLE LINE */
.offer-main {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  display: inline;
  white-space: nowrap;
}

.offer-sub {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-left: 6px;
  display: inline;
  white-space: nowrap;
  opacity: 1;
}

/* MOBILE = TWO LINES */
@media (max-width: 768px) {
  /* stays inline, like PromoBar.jsx - it used to be pinned below the navbar */
  .offer-bar {
    position: static;
    border-radius: 0;
    padding: 10px 12px 0;
    gap: 10px;
    margin: 0;
  }

  .offer-chip {
    min-width: auto;
    padding: 6px 14px;
  }

  .offer-main {
    display: inline;
    font-size: 13px;
    white-space: normal;
  }

  .offer-sub {
    display: inline;
    font-size: 13px;
    margin-left: 5px;
    white-space: normal;
    opacity: 1;
  }

  /* the offer bar is no longer fixed, so no clearance is needed */
  .page {
    padding-top: 24px;
  }
}



/* Main Section */
.para-description{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:40px;
  /* background:#ffffff; */
  /* border-radius:20px; */
  /* box-shadow:0 10px 30px rgba(0,0,0,0.08); */
  /* border:1px solid #e7eef8; */
  /* transition:0.3s ease; */
}

/* Hover Effect */
.para-description:hover{
  transform:translateY(-4px);
  /* box-shadow:0 14px 35px rgba(0,0,0,0.10); */
}

/* Heading */
.para-description h2{
  font-size:34px;
  line-height:1.3;
  color:#0d2c54;
  margin-bottom:25px;
  font-weight:700;
}

/* Paragraph */
.para-description p{
  font-size:18px;
  line-height:1.9;
  color:#444;
  margin-bottom:18px;
}

/* Highlighted Location */
.location{
  color:#0077ff;
  font-weight:700;
}

/* Tablet */
@media(max-width:992px){
  .para-description{
    padding:30px;
    /* margin:30px 20px; */
  }

  .para-description h2{
    font-size:28px;
  }

  .para-description p{
    font-size:17px;
  }
}

/* Mobile */
@media(max-width:576px){
  .para-description{
    padding:22px;
    border-radius:14px;
    /* margin:20px 15px; */
  }

  .para-description h2{
    font-size:22px;
    line-height:1.4;
    margin-bottom:18px;
  }

  .para-description p{
    font-size:15px;
    line-height:1.8;
    margin-bottom:14px;
  }
}





/* OFFER NOTES */

.offer-notes{
  width:100%;
  max-width:1100px;
  margin:18px auto 8px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px 16px;
}

.offer-notes-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  flex-wrap:wrap;
}

.offer-notes-title{
  font-family:"Poppins",sans-serif;
  font-size:14px;
  font-weight:700;
  color:#111827;
  margin:0;
}

.offer-notes-text{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  color:#4b5563;
  font-size:14px;
  line-height:1.6;
  font-family:"Poppins",sans-serif;
}

.offer-notes-text span{
  display:inline;
}

/* MOBILE */
@media(max-width:768px){

  .offer-notes{
    margin:14px 12px 8px;
    padding:12px;
    border-radius:12px;
  }

  .offer-notes-row{
    flex-direction:column;
    gap:4px;
  }

  .offer-notes-title,
  .offer-notes-text{
    font-size:13px;
  }
}



/* testimonials.css */

/* ── TESTIMONIALS  ← Testimonials.jsx ────────────────────────────────
   No background of its own: the section sits on the page gradient, as in
   the React version. (It used to paint its own blue band, which clashed
   with the purple ClinicNetwork background.)                            */
.testimonials-section{
  position:relative;
  z-index:1;
  padding:30px 0 60px;
  font-family:Poppins,sans-serif;
  background:none;
}

.testimonials-container{
  width:95%;
  max-width:1320px;
  margin:auto;
}

.testimonials-header{
  text-align:center;
  margin:40px 0 50px;
}

/* text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 */
.testimonials-header h2{
  font-size:30px;
  font-weight:700;
  color:#111827;
  line-height:1.2;
  margin-bottom:16px;
}

@media (min-width:640px){
  .testimonials-header h2{
    font-size:36px;
  }
}

@media (min-width:1024px){
  .testimonials-header h2{
    font-size:48px;
  }
}

/* text-lg sm:text-xl text-gray-600 */
.testimonials-header p{
  font-size:18px;
  color:#4b5563;
  max-width:48rem;
  margin:0 auto;
}

@media (min-width:640px){
  .testimonials-header p{
    font-size:20px;
  }
}

/* WRAPPER */
.testimonials-wrapper{
  position:relative;
}

/* NAV BUTTONS */
.nav-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid #e2e8f0;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.1);
  font-size:20px;
  cursor:pointer;
  z-index:20;
  color:#374151;
  transition:background .2s ease;
}

.nav-btn.left{
  left:24px;
}

.nav-btn.right{
  right:24px;
}

.nav-btn:hover{
  background:#faf5ff;
  color:#6d28d9;
}

@media (max-width:640px){
  .nav-btn{
    width:36px;
    height:36px;
    font-size:16px;
  }

  .nav-btn.left{
    left:2px;
  }

  .nav-btn.right{
    right:2px;
  }
}

/* COVERFLOW STAGE  <- Testimonials.jsx
   Portrait 9:16 cards: the centre one is full size, the neighbours are
   scaled down, rotated and dimmed. location.js assigns the position class. */
.testimonial-stage{
  position:relative;
  height:550px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  perspective:1200px;
}

.testimonial-card{
  position:absolute;
  width:300px;
  height:533px;
  border-radius:18px;
  cursor:pointer;
  will-change:transform,opacity;
  transition:transform .5s cubic-bezier(.34,1.2,.64,1),
    opacity .4s ease, filter .4s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.testimonial-card__inner{
  position:relative;
  width:100%;
  height:100%;
  border-radius:18px;
  overflow:hidden;
  background:#ede9fe;
}

.testimonial-card__inner img,
.testimonial-card__inner iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border:none;
}

/* position states */
.testimonial-card--center{
  transform:translateX(0) scale(1) rotateY(0deg);
  opacity:1;
  z-index:10;
  cursor:default;
  box-shadow:0 28px 64px rgba(0,0,0,.18), 0 0 0 2px rgba(124,58,237,.2);
}

.testimonial-card--left-1{
  transform:translateX(-255px) scale(.78) rotateY(18deg);
  opacity:.68;
  z-index:5;
  filter:brightness(.7);
}

.testimonial-card--right-1{
  transform:translateX(255px) scale(.78) rotateY(-18deg);
  opacity:.68;
  z-index:5;
  filter:brightness(.7);
}

.testimonial-card--hidden{
  transform:scale(.55);
  opacity:0;
  z-index:1;
  pointer-events:none;
}

/* play button - only on the centre card */
.testimonial-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.25);
  cursor:pointer;
}

.testimonial-card:not(.testimonial-card--center) .testimonial-play{
  display:none;
}

.testimonial-play__btn{
  width:66px;
  height:66px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff;
  font-size:1.6rem;
  padding-left:4px;
  box-shadow:0 6px 24px rgba(124,58,237,.55);
}

/* dots */
.testimonial-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:28px;
}

.testimonial-dot{
  height:8px;
  width:8px;
  border-radius:100px;
  border:none;
  background:#cbd5e1;
  cursor:pointer;
  padding:0;
  transition:all .35s cubic-bezier(.34,1.2,.64,1);
}

.testimonial-dot.active{
  width:28px;
  background:#7c3aed;
}

/* MOBILE */
@media(max-width:640px){

  .testimonials-section{
    padding:20px 0 40px;
  }

  .testimonials-header h2{
    font-size:30px;
  }

  .testimonials-header p{
    font-size:16px;
  }

  .testimonial-stage{
    height:350px;
  }

  .testimonial-card{
    width:190px;
    height:338px;
  }

  .testimonial-card--left-1{
    transform:translateX(-133px) scale(.76) rotateY(18deg);
  }

  .testimonial-card--right-1{
    transform:translateX(133px) scale(.76) rotateY(-18deg);
  }

  .testimonial-play__btn{
    width:52px;
    height:52px;
    font-size:1.25rem;
  }

  .testimonial-dots{
    margin-top:16px;
  }
}