/* Hero appointment slot picker */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.slot-btn {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.slot-btn:hover {
  border-color: var(--primary);
  background: #ecfeff;
}

.slot-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slot-note {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.availability-legend {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #64748b;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.availability-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.availability-legend .dot.good {
  background: #16a34a;
}

.availability-legend .dot.few {
  background: #eab308;
}

.availability-legend .dot.full {
  background: #dc2626;
}

.availability-days {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.availability-chip {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 5px 7px;
  min-width: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  cursor: pointer;
}

.availability-chip .w {
  font-size: 10px;
}

.availability-chip .d {
  font-size: 12px;
  font-weight: 700;
}

.availability-chip.good {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.1);
}

.availability-chip.few {
  border-color: rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.12);
}

.availability-chip.full {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.1);
}

.availability-chip.active {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.28);
}

/* HERO */
.hero {
  min-height: calc(100vh - 84px);
  padding-top: 48px;
  padding-bottom: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.13) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.09) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  border-radius: 50%;
}

/* Hero content colours on dark background */
.hero .hero-top-text .badge {
  background: #CCFBF1;
  color: #0D9488;
  border: 1px solid rgba(13, 148, 136, 0.20);
}

.hero .hero-top-text h1 {
  color: #111827;
}

.hero .hero-top-text h1 span {
  color: var(--primary);
}

.hero .hero-top-text p {
  color: var(--muted);
}

.hero .stat-item strong {
  color: var(--primary);
}

.hero .stat-item span {
  color: #6B7280;
}

.hero .hero-stats {
  border-top: 1px solid rgba(13, 148, 136, 0.14);
  padding-top: 20px;
}

.hero-top-text {
  text-align: center;
  margin-bottom: 12px;
  z-index: 2;
}

.hero-top-text .badge {
  display: inline-block;
  background: #CCFBF1;
  color: #0D9488;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-top-text h1 {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.hero-top-text h1 span {
  color: var(--primary);
}

.hero-top-text p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  z-index: 2;
}

.doctor-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-side.left {
  margin-right: -30px;
}

.doctor-side.right {
  margin-left: -30px;
}

.hero-row.expanded .doctor-side.left {
  margin-right: -60px;
  transform: translateX(-40px);
}

.hero-row.expanded .doctor-side.right {
  margin-left: -60px;
  transform: translateX(40px);
}

.doctor-imgs {
  display: flex;
  align-items: flex-end;
}

.doctor-side .doc-wrap {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doctor-imgs img {
  width: 100%;
  max-width: 220px;
  height: 300px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.92) 100%) border-box;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(13, 148, 136, 0.18));
  transition: transform .3s;
}

.doctor-imgs img:hover {
  transform: scale(1.03) translateY(-6px);
}

.doctor-imgs .doc-secondary {
  height: 250px;
  opacity: 0.88;
}

.left .doc-secondary {
  order: -1;
  margin-right: -20px;
}

.right .doc-secondary {
  order: 1;
  margin-left: -20px;
}

.doctor-name-plate {
  margin-top: 12px;
  background: white;
  border-radius: 14px;
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12);
  border-left: 4px solid var(--primary);
  min-width: 0;
  width: 100%;
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-name-plate h4 {
  font-size: 15px;
  font-weight: 700;
}

.doctor-name-plate p {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.3;
  max-width: 170px;
  margin: 0 auto;
  min-height: calc(1.3em * 2);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.doctor-name-plate .stars {
  font-size: 11px;
  color: #f5a623;
  margin-top: 2px;
}

.appt-form-wrap {
  width: 260px;
  background: white;
  border-radius: 24px;
  padding: 20px 18px;
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.15);
  position: relative;
  z-index: 10;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s ease;
  overflow: hidden;
}

.appt-form-wrap.wide {
  width: 360px;
  padding: 22px 20px;
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
  animation: fadeUp 0.35s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#p0.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.icon-ring {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

#p0 h3 {
  font-size: 17px;
  font-weight: 700;
}

#p0 p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.quick-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 4px 0;
}

.quick-info span {
  background: #f0fdfa;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #CCFBF1;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #e0eaf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: white;
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-dot.done {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #e0eaf5;
  transition: background 0.3s;
}

.step-line.done {
  background: var(--accent);
}

.step-label {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  font-weight: 500;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.panel-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.btn-back {
  width: 30px;
  height: 30px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-back:hover {
  background: #dceeff;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-group {
  flex: 1;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  margin-top: 6px;
  transition: opacity .2s, transform .2s;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.upi-section {
  margin-bottom: 14px;
}

.upi-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-fee {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 20px;
}

.qr-box {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

#qrcode {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

#qrcode canvas {
  border-radius: 6px;
}

.upi-copy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #e0eaf5;
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color .2s;
  margin-bottom: 4px;
}

.upi-copy-row:hover {
  border-color: var(--primary);
}

.upi-copy-row span {
  font-size: 12px;
  font-weight: 600;
}

.upi-copy-row i {
  color: var(--primary);
  font-size: 12px;
}

.copy-hint {
  font-size: 10px;
  color: var(--muted);
}

.copy-hint.copied {
  color: var(--green);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0eaf5;
}

.proof-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.proof-tab {
  flex: 1;
  padding: 8px;
  border: 1.5px solid #e0eaf5;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: white;
  font-family: var(--sans);
  transition: all .2s;
  text-align: center;
}

.proof-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.proof-content {
  display: none;
}

.proof-content.active {
  display: block;
  animation: fadeUp 0.25s ease;
}

.upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #f9fafb;
  position: relative;
}

.upload-area:hover {
  border-color: var(--primary);
  background: #eef5ff;
}

.upload-area.has-file {
  border-color: var(--accent);
  border-style: solid;
  background: #f0fdf9;
}

.upload-area input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-area i {
  font-size: 26px;
  color: #c8dff5;
  margin-bottom: 6px;
  display: block;
}

.upload-area.has-file i {
  color: var(--accent);
}

.upload-area p {
  font-size: 11px;
  color: var(--muted);
}

.upload-area .file-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.form-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.form-note i {
  color: var(--accent);
  margin-right: 3px;
}

#p3.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.done-ring {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green), #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

#p3 h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}

#p3 p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.done-details {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  width: 100%;
  text-align: left;
}

.done-details .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid #dceeff;
}

.done-details .row:last-child {
  border: none;
}

.done-details .row span:first-child {
  color: var(--muted);
}

.done-details .row span:last-child {
  font-weight: 600;
}

.btn-wa {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity .2s;
}

.btn-wa:hover {
  opacity: 0.9;
}

.btn-ghost {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1.5px solid #e0eaf5;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--sans);
  cursor: pointer;
  transition: all .2s;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.stat-item span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width:480px) {
  .doctor-name-plate {
    height: 64px;
  }

  .doctor-side .doc-wrap img {
    height: 160px;
  }
}

/* Tablet & mobile: stack all four doctor cards above the form in a 2-column grid */
@media (max-width: 1024px) {
  .hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    align-items: start;
    justify-items: center;
  }

  /* place left and right stacks in the first row, form spans full width on second row */
  .doctor-side.left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .doctor-side.right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  /* ensure each doc-wrap stacks inside its column and is centered */
  .doctor-side .doc-wrap {
    width: 92%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    text-align: center;
  }

  .doctor-side .doc-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: drop-shadow(0 8px 20px rgba(13, 148, 136, 0.12));
    border-radius: 6px;
    display: block;
    margin: 0 auto;
  }

  .doctor-name-plate {
    min-width: 0;
    width: 86%;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.08);
    margin: 6px auto 0 auto;
    text-align: center;
    height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  /* appointment form spans both columns below */
  .appt-form-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  /* reset side margins used on wide screens */
  .doctor-side.left,
  .doctor-side.right {
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Contact grid: two-column layout with horizontal gutter */
.contact-section {
  background: #fff;
  padding: 42px 10px;
}

.contact-main-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  column-gap: 36px;
  /* horizontal gutter */
  row-gap: 20px;
  align-items: start;
}

.contact-form-card,
.contact-map-card {
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  border: 1px solid #eef6f4;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.04);
}

.contact-map-card iframe {
  border-radius: 12px;
  display: block;
}

@media (max-width: 900px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .contact-map-card {
    order: 2;
  }

  .contact-form-card {
    order: 1;
  }
}


/* ════ FACILITIES SECTION (HOME) ════ */
.facilities-section {
  background: #fff;
  padding: 70px 24px;
}

.facilities-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.facilities-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 36px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 300px;
  gap: 16px;
}

.facility-card {
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform .3s;
}

.facility-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-card:hover {
  transform: scale(1.01);
}

.facility-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.10) 55%, transparent 100%);
  transition: background .3s;
}

.facility-card:hover::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

.fac-wide-left {
  grid-column: 1 / 3;
  grid-row: 1;
}

.fac-narrow-right {
  grid-column: 3 / 4;
  grid-row: 1;
}

.fac-narrow-left {
  grid-column: 1 / 2;
  grid-row: 2;
}

.fac-wide-right {
  grid-column: 2 / 4;
  grid-row: 2;
}

.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 24px;
  z-index: 1;
  color: #fff;
  /* subtle translucent background with blur for improved legibility */
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.25);
}

.facility-overlay h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.facility-overlay p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.55;
}

/* ════ SPECIALIST DEPARTMENTS SECTION ════ */
.depts-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
  padding: 70px 24px;
}

.depts-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.depts-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.depts-title span {
  color: var(--primary);
}

.depts-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.depts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.dept-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: default;
  border: 1px solid #e8f5f2;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.06);
}

.dept-card:hover {
  border-color: #7de6d5;
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 148, 136, 0.14);
}

.dept-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dept-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--primary);
  background: #e9fbf7;
  border: 1px solid #c6f5ec;
}

.dept-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.dept-icon-wrap img {
  width: 26px;
  height: 26px;
  display: block;
  filter: brightness(0) invert(1);
}

.dept-card h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  line-height: 1.3;
}

.dept-card p {
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  line-height: 1.5;
  min-height: 58px;
}

.dept-doc-count {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  background: #f3fffc;
  border: 1px solid #d8f7f0;
  border-radius: 10px;
  padding: 8px 10px;
}

.dept-doc-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  opacity: .85;
}

.dept-actions {
  width: 100%;
  padding-top: 6px;
}

.dept-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: gap .2s, color .2s;
}

.dept-actions a:hover {
  gap: 12px;
  color: var(--primary-dark);
}

/* ════ FAQ + BLOG SECTION ════ */
.faq-blog-section {
  background: #f9fafb;
  padding: 70px 24px;
  border-top: 1px solid #e5e7eb;
}

.faq-blog-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.faq-blog-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow .2s;
}

.faq-item[open] {
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.09);
}

.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 20px 18px;
}

/* Blog list */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.blog-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.blog-thumb {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.blog-text {
  flex: 1;
}

.blog-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.blog-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.blog-text p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.blog-view-all {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  text-align: center;
}

.blog-view-all a {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.blog-view-all a:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ════ HOW IT WORKS SECTION ════ */
.steps-section {
  background: linear-gradient(180deg, #f5fffe 0%, #ecfaf7 100%);
  padding: 70px 24px 80px;
}

.steps-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.steps-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 52px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

/* dashed connector line between steps */
.step-item:not(.last)::after {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(50% + 44px);
  right: calc(-50% + 44px);
  height: 2px;
  border-top: 2px dashed #5EEAD4;
  z-index: 0;
}

.step-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.step-box.filled {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.30);
}

.step-box.outlined {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.step-box.confirmed {
  background: #16a34a;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.30);
}

.step-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 160px;
}

/* ════ TESTIMONIALS SECTION ════ */
.testimonials-section {
  background: linear-gradient(175deg, #edfaf7 0%, #f5fffe 60%, #fafffe 100%);
  padding: 70px 10px 80px;
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.testimonials-title span {
  color: var(--primary);
}

.testimonials-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.testi-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 26px 24px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--teal-100);
}

.testi-card::after {
  content: '\201C';
  position: absolute;
  bottom: -22px;
  right: -8px;
  font-size: 180px;
  line-height: 1;
  color: rgba(13, 148, 136, 0.06);
  font-family: var(--serif);
  font-weight: 900;
  pointer-events: none;
  user-select: none;
}

.testi-text {
  position: relative;
  z-index: 1;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.13);
  border-bottom-color: var(--teal-300);
}

.testi-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.testi-author span {
  font-size: 12px;
  color: var(--muted);
}


/* ════ OUR DOCTORS SECTION (HOME) ════ */
.doctors-section {
  background: linear-gradient(160deg, #071c1c 0%, #0d3535 100%);
  padding: 70px 24px;
}

.doctors-section .doctors-title {
  color: #ffffff;
}

.doctors-section .doctors-title span {
  color: var(--teal-300);
}

.doctors-section .doctors-subtitle {
  color: rgba(255, 255, 255, 0.62);
}

.doctors-section .doctors-view-all {
  color: var(--teal-300);
}

.doctors-section .doctors-view-all:hover {
  color: #99F6E4;
}

.doctors-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.doctors-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.doctors-header-left {
  max-width: 560px;
}

.doctors-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.doctors-title span {
  color: var(--primary);
}

.doctors-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.doctors-view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 6px;
  transition: gap .2s;
}

.doctors-view-all:hover {
  gap: 12px;
  color: var(--primary-dark);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


.doctor-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #99F6E4;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.07);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.14);
}

.doctor-card-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(160deg, #0d3535 0%, #14b8a6 100%);
}

.doctor-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s;
}

.doctor-card:hover .doctor-card-img img {
  transform: scale(1.04);
}


.doctor-card-body {
  flex: 1 1 auto;
  padding: 16px 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.doctor-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
}

.doctor-qual {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.doctor-inst {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.doctor-inst i {
  color: var(--primary);
  font-size: 11px;
  flex-shrink: 0;
}

.doctors-section .doctors-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.doctors-section .doctors-swiper .swiper-slide .doctor-card {
  width: min(100%, 280px);
  height: 100%;
}

.doctors-section .doctor-card-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.doctors-section .btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.doctors-section .btn-readmore:hover {
  color: var(--accent);
  background: #f0fdfa;
}

.doctors-section .readmore-arrow {
  font-size: 16px;
  margin-left: 2px;
  transition: transform 0.2s;
  color: inherit;
}

.doctors-section .btn-readmore:hover .readmore-arrow {
  transform: translateX(3px);
}

@media (max-width: 900px) {

  .hero {
    min-height: calc(100vh - 72px);
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .hero-top-text {
    margin-bottom: 10px;
  }

  .hero-top-text h1 {
    font-size: clamp(22px, 6vw, 32px);
  }

  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .doctor-side {
    display: flex;
    margin: 0 !important;
    transform: none !important;
    width: 100%;
    max-width: 320px;
  }

  .doctor-imgs {
    justify-content: center;
  }

  .doctor-imgs img {
    height: 190px;
  }

  .doctor-imgs .doc-secondary {
    height: 160px;
  }

  .doctor-name-plate {
    margin-top: 8px;
    min-width: auto;
    width: 100%;
  }

  .appt-form-wrap {
    width: 100% !important;
  }

  .hero-stats {
    gap: 12px 16px;
    margin-top: 12px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-content.reverse {
    direction: ltr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctors-section-header {
    flex-direction: column;
    gap: 12px;
  }

  .facilities-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }

  .fac-wide-left,
  .fac-narrow-right,
  .fac-narrow-left,
  .fac-wide-right {
    grid-column: auto;
    grid-row: auto;
  }

  .steps-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .step-item:not(.last)::after {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .depts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-blog-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .reach-inner {
    grid-template-columns: 1fr;
  }

  .reach-map {
    height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 14px;
    padding-bottom: 20px;
    min-height: auto;
  }

  .hero-top-text {
    margin-bottom: 10px;
  }

  .hero-top-text h1 {
    font-size: clamp(20px, 6vw, 26px);
  }

  .hero-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 0 10px;
    align-items: start;
  }

  .doctor-side {
    display: flex !important;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    transform: none !important;
  }

  .doctor-side.left {
    grid-column: 1;
    grid-row: 1;
  }

  .doctor-side.right {
    grid-column: 2;
    grid-row: 1;
  }

  .appt-form-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
  }

  .doctor-imgs img {
    height: 130px;
  }

  .doctor-imgs .doc-secondary {
    height: 105px;
  }

  .left .doc-secondary {
    margin-right: -10px;
  }

  .right .doc-secondary {
    margin-left: -10px;
  }

  .doctor-name-plate {
    margin-top: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    border-left-width: 3px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .doctor-name-plate h4 {
    font-size: 10px;
  }

  .doctor-name-plate p {
    font-size: 9px;
    line-height: 1.3;
    max-width: 100%;
    margin: 0;
    min-height: calc(1.3em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }

  .doctor-name-plate .stars {
    font-size: 8px;
  }

  .hero-stats {
    gap: 10px 16px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .stat-item strong {
    font-size: 18px;
  }

  .facilities-section {
    padding: 26px 12px 12px;
  }

  .facilities-title {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .facilities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .facility-card {
    border-radius: 12px;
    width: calc(50% - 5px);
    min-height: 170px;
    flex: 0 0 calc(50% - 5px);
  }

  .facility-overlay {
    padding: 10px 10px;
  }

  .facility-overlay h3 {
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .facility-overlay p {
    font-size: 11px;
    line-height: 1.35;
  }

  /* Ensure any explicit placement is removed so cards flow in DOM order */
  .fac-wide-left,
  .fac-narrow-right,
  .fac-narrow-left,
  .fac-wide-right {
    grid-column: auto !important;
    grid-row: auto !important;
    width: calc(50% - 5px) !important;
    flex: 0 0 calc(50% - 5px) !important;
  }
}