/* ============ HERO ============ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--gradient-hero); overflow: hidden; padding: 7rem 0 4rem;
}
.hero-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.3;
}
.hero-shape-1 { width: 500px; height: 500px; background: #38BDF8; top: -120px; right: -80px; animation: drift 20s infinite alternate; }
.hero-shape-2 { width: 400px; height: 400px; background: #34D399; bottom: -100px; left: -100px; animation: drift 25s infinite alternate-reverse; }
.hero-shape-3 { width: 300px; height: 300px; background: #FBBF24; top: 40%; left: 50%; animation: float 6s infinite; }

.hero-container { position: relative; z-index: 2; text-align: center; max-width: 960px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px); padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
  color: #fff; font-size: 0.9rem; font-weight: 500; margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-badge .material-icons-outlined { font-size: 18px; color: var(--accent-light); }

.hero-title { font-size: 3.5rem; color: #fff; margin-bottom: 1.25rem; font-weight: 800; line-height: 1.15; }
.hero-title .highlight {
  background: linear-gradient(135deg, #FBBF24, #F97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto; font-weight: 300; }

/* Search Box */
.search-box {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-radius: var(--radius-xl); padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.8);
}
.search-row {
  display: flex; gap: 0.75rem; align-items: stretch; flex-wrap: wrap;
}
.search-field {
  flex: 1; min-width: 160px; display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-main); border-radius: var(--radius-md); padding: 0 0.75rem;
  border: 2px solid transparent; transition: var(--transition);
}
.search-field:focus-within { border-color: var(--primary); background: #fff; }
.search-field .material-icons-outlined { color: var(--primary); font-size: 22px; flex-shrink: 0; }
.search-field select {
  flex: 1; border: none; background: transparent; padding: 0.85rem 0; font-size: 0.9rem;
  color: var(--text-main); cursor: pointer; appearance: none; -webkit-appearance: none;
}
.search-field select:focus { outline: none; }
.btn-search {
  padding: 0.85rem 2rem; min-width: 130px; font-size: 1rem; border-radius: var(--radius-md);
}

.hero-tags {
  display: flex; align-items: center; gap: 0.6rem; justify-content: center;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.hero-tags > span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.hero-tag {
  background: rgba(255,255,255,0.15); color: #fff; padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2); transition: var(--transition);
}
.hero-tag:hover { background: rgba(255,255,255,0.3); }

/* ============ STATS ============ */
.stats-section { margin-top: -3.5rem; position: relative; z-index: 10; padding-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-card {
  padding: 2rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gradient-primary);
}
.stat-icon { margin-bottom: 0.75rem; }
.stat-icon .material-icons-outlined { font-size: 32px; color: var(--primary); }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); display: inline; }
.stat-plus { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card p { color: var(--text-muted); font-weight: 500; margin-top: 0.25rem; }

/* ============ TOP HOSPITALS ============ */
.hospital-carousel {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.hosp-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border-light);
}
.hosp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hosp-card-img {
  height: 180px; overflow: hidden; position: relative;
}
.hosp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hosp-card:hover .hosp-card-img img { transform: scale(1.08); }
.hosp-card-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(15,23,42,0.7);
  color: #fff; padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(4px);
}
.hosp-card-body { padding: 1.25rem; }
.hosp-card-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.hosp-card-location {
  display: flex; align-items: center; gap: 0.25rem; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.6rem;
}
.hosp-card-location .material-icons-outlined { font-size: 16px; }
.hosp-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.75rem; border-top: 1px solid var(--border-light); margin-top: 0.75rem;
}
.hosp-card-rating { display: flex; align-items: center; gap: 0.35rem; }
.hosp-card-rating strong { color: var(--accent); font-size: 1rem; }
.hosp-card-rating span { color: var(--text-muted); font-size: 0.8rem; }
.hosp-card-fee { text-align: right; }
.hosp-card-fee small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.hosp-card-fee strong { color: var(--secondary); font-size: 1.05rem; }
.hosp-card-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.hosp-card-actions .btn { flex: 1; font-size: 0.85rem; padding: 0.6rem; }

/* ============ HOW IT WORKS ============ */
.how-section { background: #fff; border-radius: 40px; margin: 2rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 55px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0.2;
}
.step-card { text-align: center; position: relative; padding: 1.5rem; }
.step-num {
  position: absolute; top: 0; right: 1rem; font-size: 3.5rem; font-weight: 800;
  color: rgba(14,165,233,0.08); font-family: var(--font-heading);
}
.step-icon {
  width: 70px; height: 70px; border-radius: 50%; background: rgba(14,165,233,0.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
  transition: var(--transition);
}
.step-icon .material-icons-outlined { font-size: 32px; color: var(--primary); }
.step-card:hover .step-icon { background: var(--primary); transform: scale(1.1) rotate(5deg); }
.step-card:hover .step-icon .material-icons-outlined { color: #fff; }
.step-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ FEATURES ============ */
.features-section { padding-bottom: 4rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { padding: 2rem; text-align: center; }
.feature-icon-box {
  width: 60px; height: 60px; border-radius: var(--radius-md); margin: 0 auto 1.25rem;
  background: rgba(14,165,233,0.08); display: flex; align-items: center; justify-content: center;
}
.feature-icon-box .material-icons-outlined { font-size: 28px; color: var(--primary); }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ CTA ============ */
.cta-section {
  background: var(--gradient-hero); padding: 5rem 0; text-align: center;
  border-radius: 40px; margin: 0 1rem 3rem; color: #fff;
}
.cta-content h2 { font-size: 2.5rem; color: #fff; margin-bottom: 0.75rem; }
.cta-content p { font-size: 1.15rem; opacity: 0.85; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .search-row { flex-direction: column; }
  .search-field { min-width: auto; }
  .btn-search { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: -2rem; }
  .stat-number { font-size: 2rem; }
  .hospital-carousel { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-section { margin: 0 0.5rem 2rem; padding: 3rem 1rem; border-radius: 24px; }
  .cta-content h2 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .hero-badge { font-size: 0.8rem; padding: 0.4rem 1rem; }
  .stats-grid { gap: 0.75rem; }
  .stat-card { padding: 1.25rem 1rem; }
  .stat-number { font-size: 1.75rem; }
}
