@import url("https://fonts.googleapis.com/css2?family=Gulzar&display=swap");
@import url("./mobile.css");

/* Bilingual layout additions. Keep language-specific presentation here. */

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 8px;
  padding-inline-start: 8px;
  border-inline-start: 1px solid rgba(16, 35, 31, 0.12);
}

.language-switcher a {
  min-width: 54px;
  text-align: center;
}

.language-switcher a[aria-current="true"] {
  color: var(--white);
  background: var(--green-dark);
}

html[lang="ur"] body {
  font-family: "Gulzar", "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  line-height: 2;
}

html[lang="ur"] .brand-text strong,
html[lang="ur"] .hero h1,
html[lang="ur"] .page-hero h1,
html[lang="ur"] .section h2,
html[lang="ur"] .value-card h3,
html[lang="ur"] .alumni-copy h3,
html[lang="ur"] .modal-title-block h2,
html[lang="ur"] .modal-story h3,
html[lang="ur"] .footer-wrap strong {
  font-family: "Gulzar", "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  letter-spacing: 0;
}

html[lang="ur"] .brand-text {
  line-height: 1.6;
}

html[lang="ur"] .brand-text small,
html[lang="ur"] .eyebrow,
html[lang="ur"] .section-kicker,
html[lang="ur"] .modal-label,
html[lang="ur"] .alumni-school-years,
html[lang="ur"] .profile-facts span {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ur"] .hero h1,
html[lang="ur"] .page-hero h1,
html[lang="ur"] .section h2 {
  line-height: 1.5;
}

html[lang="ur"] .hero-copy,
html[lang="ur"] .story-copy,
html[lang="ur"] .page-hero p:last-child,
html[lang="ur"] .alumni-intro > p:last-child,
html[lang="ur"] .alumni-summary,
html[lang="ur"] .modal-story p,
html[lang="ur"] .value-card p,
html[lang="ur"] .legacy-content p:not(.section-kicker),
html[lang="ur"] .footer-wrap p {
  line-height: 2;
}

html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(5, 36, 32, 0.9) 0%, rgba(5, 36, 32, 0.6) 45%, rgba(5, 36, 32, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 36, 32, 0.75) 0%, transparent 55%);
}

html[dir="rtl"] .alumni-card {
  text-align: right;
}

html[dir="rtl"] .alumni-arrow {
  margin-right: 0;
  margin-left: 10px;
  transform: scaleX(-1);
}

html[dir="rtl"] .legacy-circle.large {
  right: auto;
  left: -70px;
}

html[dir="rtl"] .legacy-circle.medium {
  right: auto;
  left: -10px;
}

html[dir="rtl"] .legacy-circle.small {
  right: auto;
  left: 55px;
}

html[dir="rtl"] .legacy-letter {
  right: auto;
  left: 92px;
}

html[dir="rtl"] .page-hero::after {
  right: auto;
  left: -180px;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .modal-title-block,
html[dir="rtl"] .modal-body {
  text-align: right;
}

/* Keep the profile hero clean: name + role only. */
.modal-title-block .modal-label {
  display: none;
}

/* A simple, prominent close glyph reads better than a floating circular button. */
.modal-close {
  width: auto;
  height: auto;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--white);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: none;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: transparent;
}

.modal-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .language-switcher {
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
    padding: 10px 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(16, 35, 31, 0.1);
  }

  html[lang="ur"] body {
    font-size: 17px;
    line-height: 1.95;
  }

  /* Gulzar has tall Nastaliq ascenders/descenders. Give the mobile header
     enough vertical room and do not clip the school name's glyphs. */
  html[lang="ur"] .nav-wrap {
    min-height: 86px;
  }

  html[lang="ur"] .brand-text {
    overflow: visible;
    line-height: 1;
  }

  html[lang="ur"] .brand-text strong {
    max-width: 210px;
    overflow: visible;
    padding-block: 6px 3px;
    font-size: 1.3rem;
    line-height: 1.8;
    text-overflow: clip;
    white-space: nowrap;
  }

  html[lang="ur"] .hero h1,
  html[lang="ur"] .page-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: 1.55;
  }

  html[lang="ur"] .section h2 {
    font-size: clamp(2.05rem, 9.5vw, 3rem);
    line-height: 1.55;
  }

  html[lang="ur"] .alumni-copy h3 {
    font-size: 1.9rem;
    line-height: 1.5;
  }

  html[lang="ur"] .hero-copy,
  html[lang="ur"] .story-copy,
  html[lang="ur"] .page-hero p:last-child,
  html[lang="ur"] .alumni-intro > p:last-child,
  html[lang="ur"] .alumni-summary,
  html[lang="ur"] .modal-story p,
  html[lang="ur"] .value-card p,
  html[lang="ur"] .legacy-content p:not(.section-kicker),
  html[lang="ur"] .footer-wrap p {
    line-height: 2.05;
  }

  .modal-close {
    width: auto;
    height: auto;
    padding: 8px;
    font-size: 38px;
  }
}
