/* Home hero — slider + brand buttons (overlay layout in edu_overlay_banner.css) */

.edu-home-hero--corp {
  --hero-purple: #0B1426;
  --hero-purple-deep: #070D18;
  --hero-purple-light: #152238;
  --hero-orange: #f97316;
  --hero-orange-hover: #ea580c;
  background: #0B1426;
  box-shadow: 0 8px 24px rgba(11, 20, 38, 0.12);
}

.edu-home-hero__viewport {
  position: relative;
  z-index: 1;
  min-height: clamp(400px, 42vw, 540px);
  isolation: isolate;
}

.edu-home-hero--corp::before,
.edu-home-hero--corp::after {
  content: none !important;
  display: none !important;
}

.edu-home-hero__panel {
  display: none;
  position: relative;
  min-height: inherit;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.edu-home-hero__panel.is-active {
  display: block;
  visibility: visible;
  pointer-events: auto;
  animation: edu-hero-fade 0.55s ease;
}

.edu-home-hero--corp .edu-home-hero__visual-fallback,
.edu-home-hero--corp .edu-home-hero__visual-ring,
.edu-home-hero--corp .edu-home-hero__visual-icon {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.edu-home-hero__panel:not(.is-active) {
  display: none !important;
}

@keyframes edu-hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

html[dir="rtl"] .edu-home-hero__panel:not(.edu-home-hero__panel--photo) .edu-home-hero__shade {
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.18), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(11, 20, 38, 0.22), transparent 40%),
    linear-gradient(
      to left,
      rgba(11, 20, 38, 0.88) 0%,
      rgba(11, 20, 38, 0.35) 55%,
      transparent 100%
    );
}

html[dir="ltr"] .edu-home-hero__panel:not(.edu-home-hero__panel--photo) .edu-home-hero__shade {
  background:
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.18), transparent 42%),
    radial-gradient(circle at 15% 75%, rgba(11, 20, 38, 0.22), transparent 40%),
    linear-gradient(
      to right,
      rgba(11, 20, 38, 0.88) 0%,
      rgba(11, 20, 38, 0.35) 55%,
      transparent 100%
    );
}

.edu-home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.edu-home-hero__lead {
  margin: 0 0 32px;
  max-width: 52ch;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.edu-home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.edu-home-hero__btn:hover {
  transform: translateY(-2px);
}

.edu-home-hero__btn--primary {
  background: linear-gradient(135deg, var(--hero-orange) 0%, #fb923c 100%);
  color: #fff;
  border: 2px solid var(--hero-orange);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.4);
}

.edu-home-hero__btn--primary:hover {
  background: linear-gradient(135deg, var(--hero-orange-hover) 0%, var(--hero-orange) 100%);
  border-color: var(--hero-orange-hover);
  color: #fff;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.48);
}

.edu-home-hero__btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.edu-home-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--hero-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
}

html[dir="rtl"] .edu-home-hero__visual-fallback {
  right: clamp(20px, 8vw, 80px);
  left: auto;
}

html[dir="ltr"] .edu-home-hero__visual-fallback {
  left: clamp(20px, 8vw, 80px);
  right: auto;
}

.edu-home-hero__visual-fallback {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 280px);
  aspect-ratio: 1;
  display: none;
  place-items: center;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.edu-home-hero__panel--photo .edu-home-hero__visual-fallback {
  display: none !important;
}

.edu-home-hero__visual-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 2px dashed rgba(249, 115, 22, 0.45);
  animation: edu-hero-ring-spin 24s linear infinite;
}

@keyframes edu-hero-ring-spin {
  to { transform: rotate(360deg); }
}

.edu-home-hero__visual-icon {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 48px;
  color: #fff;
  background: linear-gradient(145deg, var(--hero-purple-light) 0%, var(--hero-orange) 100%);
  box-shadow:
    0 20px 40px rgba(11, 20, 38, 0.35),
    0 8px 24px rgba(249, 115, 22, 0.25);
}

.edu-home-hero__visual-fallback--1 .edu-home-hero__visual-icon {
  background: linear-gradient(145deg, #152238 0%, #f97316 100%);
}

.edu-home-hero__visual-fallback--2 .edu-home-hero__visual-icon {
  background: linear-gradient(145deg, #152238 0%, #fb923c 100%);
}

.edu-home-hero__visual-fallback--3 .edu-home-hero__visual-icon {
  background: linear-gradient(145deg, #152238 0%, #ea580c 100%);
}

.edu-home-hero__visual-fallback--4 .edu-home-hero__visual-icon {
  background: linear-gradient(145deg, #0B1426 0%, #f97316 100%);
}

.edu-home-hero__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.edu-home-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.edu-home-hero__dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, var(--hero-orange), #fbbf24);
}

@media (max-width: 900px) {
  .edu-home-hero__viewport,
  .edu-home-hero__panel-inner {
    min-height: clamp(420px, 72vw, 520px);
  }

  .edu-home-hero__title,
  .edu-home-hero__lead {
    text-align: center;
    margin-inline: auto;
    max-width: none;
  }

  .edu-home-hero__visual-fallback,
  .edu-home-hero__visual-ring,
  .edu-home-hero__visual-icon {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .edu-home-hero__actions {
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    margin-inline: auto;
  }

  .edu-home-hero__btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .edu-home-hero__viewport,
  .edu-home-hero__panel-inner {
    min-height: min(48vw, 220px) !important;
  }

  .edu-home-hero__panel-inner {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 12px 14px 40px;
  }

  .edu-home-hero__title,
  .edu-home-hero__lead {
    text-align: start;
    margin-inline: 0;
  }

  .edu-home-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: none;
    margin-inline: 0;
    width: 100%;
    gap: 8px;
  }

  .edu-home-hero__btn {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    max-width: none;
    min-height: 40px;
    font-size: 12px;
  }

  .edu-home-hero__btn--primary {
    flex: 1 1 100%;
  }

  .edu-home-hero__visual-fallback,
  .edu-home-hero__visual-ring,
  .edu-home-hero__visual-icon {
    display: none !important;
  }

  .edu-home-hero__dots {
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-home-hero__visual-ring {
    animation: none;
  }
}
