/* ================================================================
   FERYN HOSPITAL — 4 HERO LAYOUTS
   ================================================================ */

/* ----------------------------------------------------------------
   HERO LAYOUT 1: Full-Screen Centered (image/gradient overlay)
   ---------------------------------------------------------------- */
.hero-layout-1 {
  min-height: 100vh; padding-top: 62px;
  background: var(--hero-grad);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}

.hero-layout-1 .hero-bg-decor {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Geometric floating shapes */
.hero-layout-1 .shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.hero-layout-1 .shape-1 { width: 500px; height: 500px; top: -150px; right: -150px; }
.hero-layout-1 .shape-2 { width: 300px; height: 300px; bottom: -80px; left: -80px; }
.hero-layout-1 .shape-3 { width: 180px; height: 180px; top: 25%; left: 8%; }

.hero-layout-1 .hero-content {
  position: relative; z-index: 2;
  max-width: 780px; padding: 0 20px;
}

.hero-layout-1 .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; padding: 7px 18px; border-radius: 50px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
  animation: fadeInDown 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

/* For minimal theme — dark text hero */
[data-theme="minimal"] .hero-layout-1 .hero-badge {
  background: var(--color-accent-pale);
  border-color: rgba(0,188,212,0.3);
  color: var(--color-primary);
}

.hero-layout-1 h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; color: var(--hero-text);
  line-height: 1.05; margin-bottom: 22px;
  animation: fadeInDown 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

[data-theme="minimal"] .hero-layout-1 h1 { color: var(--color-primary); }

.hero-layout-1 .hero-accent { color: var(--color-accent); }

.hero-layout-1 p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.8); font-weight: 300;
  max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
  animation: fadeInDown 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

[data-theme="minimal"] .hero-layout-1 p { color: var(--color-muted); }

.hero-layout-1 .hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeInDown 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
  margin-bottom: 60px;
}

.hero-layout-1 .hero-stats {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInDown 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

[data-theme="minimal"] .hero-layout-1 .hero-stats { border-top-color: var(--color-border); }

.hero-layout-1 .hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 32px; font-weight: 800; color: white; line-height: 1;
}

[data-theme="minimal"] .hero-layout-1 .hero-stat strong { color: var(--color-primary); }

.hero-layout-1 .hero-stat span { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }
[data-theme="minimal"] .hero-layout-1 .hero-stat span { color: var(--color-muted); }

/* Live badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 6px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 14px;
}

[data-theme="dark"] .live-badge { border-color: var(--color-accent); color: var(--color-accent); }
[data-theme="minimal"] .live-badge { background: var(--color-accent-pale); border-color: var(--color-accent); color: var(--color-primary); }

.live-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: pulseDot 1.2s ease infinite; }
[data-theme="dark"] .live-dot { background: var(--color-accent); }

/* ----------------------------------------------------------------
   HERO LAYOUT 2: Split (Text Left / Visual Right)
   ---------------------------------------------------------------- */
.hero-layout-2 {
  min-height: 100vh; padding-top: 62px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-layout-2 .hero-left {
  padding: 60px 5% 60px 8%;
}

.hero-layout-2 .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent-pale);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--color-primary);
  padding: 7px 16px; border-radius: 50px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

[data-theme="dark"] .hero-layout-2 .hero-badge { border-color: var(--color-border); }

.hero-layout-2 h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800; color: var(--color-primary);
  line-height: 1.07; margin-bottom: 20px;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

.hero-layout-2 .underline-word {
  position: relative; display: inline-block; color: var(--color-primary-lt);
}

.hero-layout-2 .underline-word::after {
  content: ''; position: absolute;
  bottom: 2px; left: 0; right: 0; height: 4px;
  background: var(--color-accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  animation: underlineIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.9s forwards;
}

@keyframes underlineIn { to { transform: scaleX(1); } }

.hero-layout-2 p {
  font-size: 17px; color: var(--color-muted); max-width: 420px;
  margin-bottom: 34px; line-height: 1.75; font-weight: 300;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

.hero-layout-2 .hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

.hero-layout-2 .hero-stat-row {
  display: flex; gap: 28px; flex-wrap: wrap;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

.hero-layout-2 .hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 28px; font-weight: 800; color: var(--color-primary);
}

.hero-layout-2 .hero-stat span { font-size: 12px; color: var(--color-muted); }
.hero-layout-2 .h-divider { width: 1px; background: var(--color-border); align-self: stretch; }

.hero-layout-2 .hero-right {
  height: 100vh; min-height: 600px;
  background: var(--hero-grad);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

[data-theme="minimal"] .hero-layout-2 .hero-right { background: linear-gradient(160deg, #1a73e8, #00bcd4); }

.hero-layout-2 .hero-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-layout-2 .hc1 { width: 360px; height: 360px; top: -80px; right: -80px; }
.hero-layout-2 .hc2 { width: 240px; height: 240px; bottom: 60px; left: -50px; }
.hero-layout-2 .hc3 { width: 140px; height: 140px; top: 40%; right: 12%; }

.hero-layout-2 .floating-cards {
  position: relative; z-index: 2; width: 100%; max-width: 320px;
  display: flex; flex-direction: column; gap: 14px; padding: 30px;
}

.hero-layout-2 .fcard {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 16px 18px;
  color: white; display: flex; align-items: center; gap: 12px;
  animation: slideInRight 0.7s cubic-bezier(0.22,1,0.36,1) both;
  transition: transform 0.3s;
}

.hero-layout-2 .fcard:hover { transform: translateX(-6px); }
.hero-layout-2 .fcard:nth-child(1) { animation-delay: 0.5s; }
.hero-layout-2 .fcard:nth-child(2) { animation-delay: 0.65s; margin-left: 18px; }
.hero-layout-2 .fcard:nth-child(3) { animation-delay: 0.8s; }
.hero-layout-2 .fcard:nth-child(4) { animation-delay: 0.95s; margin-left: 18px; }

.hero-layout-2 .fcard-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.hero-layout-2 .fcard strong { display: block; font-size: 13px; font-weight: 700; }
.hero-layout-2 .fcard span { font-size: 11px; opacity: 0.7; }

/* Open badge */
.hero-layout-2 .open-badge {
  position: absolute; top: 24px; left: 24px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,200,240,0.18); border: 1px solid var(--color-accent);
  color: var(--color-accent); padding: 5px 12px;
  border-radius: 50px; font-size: 11px; font-weight: 700; z-index: 3;
}

/* ----------------------------------------------------------------
   HERO LAYOUT 3: Centered with Floating Stat Badges
   ---------------------------------------------------------------- */
.hero-layout-3 {
  min-height: 100vh; padding-top: 62px;
  background: var(--hero-grad);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}

/* Mesh background */
.hero-layout-3::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 35%);
  pointer-events: none;
}

/* Grid lines */
.hero-layout-3::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

[data-theme="minimal"] .hero-layout-3::after,
[data-theme="warm"] .hero-layout-3::after { display: none; }

.hero-layout-3 .hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 20px;
}

.hero-layout-3 h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800; color: var(--hero-text);
  line-height: 1.05; margin: 20px 0;
  animation: scaleIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

[data-theme="minimal"] .hero-layout-3 h1 { color: var(--color-primary); }

.hero-layout-3 p {
  font-size: 17px; color: rgba(255,255,255,0.75);
  font-weight: 300; max-width: 500px; margin: 0 auto 36px; line-height: 1.75;
  animation: scaleIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}

[data-theme="minimal"] .hero-layout-3 p { color: var(--color-muted); }

.hero-layout-3 .hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: scaleIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s both;
}

/* Floating stat badges */
.stat-badge {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 14px 18px; color: white; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: floatBadge2 both;
}

[data-theme="minimal"] .stat-badge { background: white; border-color: var(--color-border); color: var(--color-text); box-shadow: var(--shadow-md); }
[data-theme="dark"] .stat-badge { background: var(--color-bg2); border-color: var(--color-border); color: var(--color-text); }

.stat-badge strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--color-accent); line-height: 1; }
[data-theme="minimal"] .stat-badge strong { color: var(--color-primary); }
[data-theme="dark"] .stat-badge strong { color: var(--color-primary); }

.stat-badge span { font-size: 11px; opacity: 0.75; display: block; margin-top: 3px; }
[data-theme="minimal"] .stat-badge span { color: var(--color-muted); }

.sb-1 { top: 22%; left: 5%; animation: floatCard 4s ease-in-out infinite; }
.sb-2 { top: 60%; left: 3%; animation: floatCard 5s ease-in-out 0.5s infinite; }
.sb-3 { top: 18%; right: 5%; animation: floatCard 4.5s ease-in-out 1s infinite; }
.sb-4 { top: 65%; right: 4%; animation: floatCard 3.8s ease-in-out 0.3s infinite; }

@keyframes floatCard {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ----------------------------------------------------------------
   HERO LAYOUT 4: Slider / Carousel
   ---------------------------------------------------------------- */
.hero-layout-4 {
  min-height: 100vh; padding-top: 62px;
  position: relative; overflow: hidden;
}

.hero-slider {
  height: calc(100vh - 62px);
  position: relative;
}

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 8%;
  opacity: 0; transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}

.slide.active { opacity: 1; pointer-events: all; }

.slide-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--hero-grad);
}

.slide:nth-child(1) .slide-bg { background: linear-gradient(135deg, var(--color-primary-dk), var(--color-primary)); }
.slide:nth-child(2) .slide-bg { background: linear-gradient(135deg, #0a3d62, var(--color-primary-dk)); }
.slide:nth-child(3) .slide-bg { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-lt)); }
.slide:nth-child(4) .slide-bg { background: linear-gradient(135deg, var(--color-primary-dk), #0a1628); }

[data-theme="warm"] .slide:nth-child(1) .slide-bg { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
[data-theme="warm"] .slide:nth-child(2) .slide-bg { background: linear-gradient(135deg, #2d6a4f, #52b788); }
[data-theme="warm"] .slide:nth-child(3) .slide-bg { background: linear-gradient(135deg, #1b4332, #2d4a3e); }
[data-theme="warm"] .slide:nth-child(4) .slide-bg { background: linear-gradient(135deg, #2d4a3e, #1b4332); }

.slide-content {
  position: relative; z-index: 2;
  max-width: 640px; color: white;
}

.slide-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 6px 16px; border-radius: 50px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px;
}

.slide-content h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px); font-weight: 800;
  line-height: 1.07; margin-bottom: 18px;
}

.slide-content p {
  font-size: 17px; opacity: 0.8; font-weight: 300;
  max-width: 480px; line-height: 1.7; margin-bottom: 32px;
}

.slide-content .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slide right visual */
.slide-visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  z-index: 2; display: flex; align-items: center; justify-content: center;
}

.slide-icon-big {
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  font-size: 90px;
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Slider controls */
.slider-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}

.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all 0.3s; border: none;
}

.slider-dot.active {
  width: 28px; border-radius: 4px; background: white;
}

.slider-arrows {
  position: absolute; bottom: 22px; right: 5%; display: flex; gap: 10px; z-index: 10;
}

.slider-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; backdrop-filter: blur(10px);
}

.slider-arrow:hover { background: rgba(255,255,255,0.3); transform: scale(1.05); }

/* Slide progress bar */
.slide-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.2); z-index: 10;
}

.slide-progress-bar {
  height: 100%; background: var(--color-accent);
  width: 0%; transition: width 0.1s linear;
}

/* ================================================================
   ANIMATIONS (shared)
   ================================================================ */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ================================================================
   RESPONSIVE — Hero layouts
   ================================================================ */
@media (max-width: 1024px) {
  .hero-layout-2 { grid-template-columns: 1fr; min-height: auto; }
  .hero-layout-2 .hero-left { padding: 60px 5% 40px; }
  .hero-layout-2 .hero-right { height: 400px; }
  .hero-layout-2 .floating-cards { flex-direction: row; flex-wrap: wrap; max-width: 100%; justify-content: center; padding: 20px; }
  .hero-layout-2 .fcard { flex: 0 0 calc(50% - 7px); }

  .sb-1, .sb-2, .sb-3, .sb-4 { display: none; }
}

@media (max-width: 768px) {
  .hero-layout-1 .hero-stats { gap: 20px; }
  .hero-layout-1 .hero-stat strong { font-size: 24px; }

  .hero-layout-2 .hero-right { height: 320px; }
  .hero-layout-2 h1, .hero-layout-1 h1, .hero-layout-3 h1 { font-size: 36px; }
  .hero-layout-2 .hero-stat-row { gap: 16px; }
  .hero-layout-2 .h-divider { display: none; }
  .hero-layout-2 .fcard { flex: 0 0 100%; }

  .slide-visual { display: none; }
  .slide { padding: 0 5%; }
  .hero-slider { height: calc(100vh - 66px); }
}

@media (min-width: 1024px) {
  .hero-layout-1, .hero-layout-2, .hero-layout-3, .hero-layout-4 { padding-top: 70px; }
  .hero-layout-2 .hero-right { height: calc(100vh - 70px); }
  .hero-slider { height: calc(100vh - 70px); }
}

@media (max-width: 480px) {
  .hero-layout-1 .hero-actions,
  .hero-layout-3 .hero-actions { flex-direction: column; align-items: center; }
  .hero-layout-2 .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
