/* Homepage hero and automatic education slider. */

.hero {
  min-height: 0;
  display: block;
  overflow: hidden;
  background: var(--green-dark);
  color: var(--white);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 680px;
}

.hero-copy-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(36px, 5vw, 84px);
  background:
    radial-gradient(circle at 15% 10%, rgba(211, 166, 76, 0.16), transparent 28%),
    linear-gradient(145deg, #0b4f4a 0%, #0b403c 100%);
}

.hero-copy-panel h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.hero-actions {
  margin-top: 34px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #dceae5;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 5.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 20px 0 45px rgba(11, 79, 74, 0.08);
}

html[lang="ur"] .hero-copy-panel h1 {
  font-family: "Gulzar", "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  font-size: clamp(3rem, 4.9vw, 5.4rem);
  line-height: 1.65;
  letter-spacing: 0;
}

html[lang="ur"] .hero-copy {
  line-height: 2.15;
}

html[dir="rtl"] .hero-slider::after {
  box-shadow: inset -20px 0 45px rgba(11, 79, 74, 0.08);
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
  }

  /* On phones the artwork and copy are one compact visual, not stacked sections. */
  .hero-shell {
    position: relative;
    display: block;
    min-height: 560px;
  }

  .hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-slide img {
    object-position: center center;
  }

  /* Keep the artwork visible through the lower text area. */
  .hero-slider::after,
  html[dir="rtl"] .hero-slider::after {
    box-shadow: none;
    background: linear-gradient(
      180deg,
      rgba(5, 36, 32, 0) 0%,
      rgba(5, 36, 32, 0.04) 32%,
      rgba(5, 36, 32, 0.28) 48%,
      rgba(5, 36, 32, 0.58) 64%,
      rgba(5, 36, 32, 0.78) 100%
    );
  }

  .hero-copy-panel {
    position: absolute;
    inset: 0;
    z-index: 3;
    min-height: 0;
    justify-content: flex-end;
    padding: 195px 18px 22px;
    background: transparent;
  }

  .hero-copy-panel h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 7.8vw, 2.4rem);
    line-height: 1.08;
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 16px;
  }

  html[lang="ur"] .hero-copy-panel h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.3rem);
    line-height: 1.38;
  }

  html[lang="ur"] .hero-copy {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.75;
  }
}

@media (max-width: 390px) {
  .hero-shell {
    min-height: 535px;
  }

  .hero-copy-panel {
    padding: 180px 15px 18px;
  }

  html[lang="ur"] .hero-copy-panel h1 {
    font-size: clamp(1.8rem, 7.2vw, 2.1rem);
  }
}