/* The homepage shares the school's blue palette and its locally hosted typeface. */
.home-page {
  --home-ink: #101f42;
  --home-blue: #123f9e;
  --home-accent: #159cdb;
  --home-muted: #435574;
  --home-line: #d7e3f0;
  font-family: var(--font-fa);
  color: var(--home-ink);
}
.home-page ::selection { color: #071d4b; background: #bce6fc; }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page summary:focus-visible {
  outline: 3px solid #138bd2;
  outline-offset: 4px;
}
.home-page .site-header { background: #fff; border-bottom: 1px solid #e9eff6; box-shadow: none; }
.home-page .site-header .nav { max-width: 1400px; min-height: 80px; gap: 24px; }
.home-page .site-header .brand { flex-shrink: 0; gap: 11px; }
.home-page .site-header .brand img { width: 48px; height: 48px; }
.home-page .site-header .brand-name { max-width: 205px; color: var(--home-ink); font-size: .78rem; font-weight: 600; line-height: 1.4; }
.home-page .site-header .brand-name strong { display: block; color: var(--home-ink); font-size: 1.23rem; line-height: 1.25; }
.home-page .site-header .nav-links { margin-inline-start: auto; gap: clamp(1rem, 2vw, 2rem); }
.home-page .site-header .nav-links a { color: var(--home-ink); font-size: .9rem; font-weight: 650; }
.home-current .site-header .nav-links a:first-child { color: var(--home-blue); }
.home-page .site-header .nav-links .btn-primary { color: #fff; background: var(--home-blue); border-radius: 999px; }
.home-page .site-header .language-switcher { background: #f6f9fd; }
.home-page .site-footer { margin-top: 0; }
.home-design .home-hero { overflow: hidden; padding: 0 clamp(20px, 3vw, 44px) clamp(28px, 3vw, 44px); background: linear-gradient(155deg, #fff 30%, #eaf5ff 100%); }
.home-design .home-hero-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 32px); align-items: center; max-width: 1600px; min-height: 570px; margin-inline: auto; }
.home-design .home-intro { position: relative; z-index: 1; min-width: 0; padding: 64px 0; }
.home-design h1 { max-width: 100%; margin: 0 0 24px; color: var(--home-ink); font-family: var(--font-fa); font-size: clamp(2.1rem, 3.3vw, 3.25rem); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.home-design h1 span { text-decoration: underline; text-decoration-color: var(--home-accent); text-decoration-thickness: 4px; text-underline-offset: .18em; }
.home-design .home-intro > p { max-width: 48ch; margin: 0; color: var(--home-muted); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.75; text-wrap: pretty; }
.home-design .home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-design .home-button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 54px; padding: 12px 22px; border: 1px solid var(--home-blue); border-radius: 12px; font-size: .95rem; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.home-design .home-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #123f9e20; }
.home-design .home-button-primary { background: var(--home-blue); color: #fff; }
.home-design .home-button-primary:hover { background: #0b307c; color: #fff; }
.home-design .home-button-outline { background: #fff; color: var(--home-blue); }
.home-design .home-button-outline:hover { background: #f1f7ff; color: var(--home-blue); }
.home-design .home-secondary-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; font-size: .9rem; font-weight: 650; }
.home-design .home-secondary-links a { color: #245398; text-decoration: underline; text-decoration-color: #9ebde3; text-underline-offset: 4px; }
.home-design .home-secondary-links a:hover { color: #0b307c; text-decoration-color: currentColor; }
.home-design .home-picture { display: block; align-self: center; width: 100%; height: auto; border-radius: 20px; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.home-design [dir="rtl"] h1 { line-height: 1.55; letter-spacing: normal; }
.home-design [dir="rtl"] .home-intro > p { line-height: 2; }
@media (max-width: 900px) {
  .home-page .site-header .nav { gap: 10px; }
  .home-page .site-header .nav-links { margin-inline-start: 0; }
  .home-design .home-hero-layout { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .home-design .home-intro, .home-design [dir="rtl"] .home-intro { padding: 56px 4px 38px; }
  .home-design .home-picture, .home-design [dir="rtl"] .home-picture { border-radius: 18px; }
}
@media (max-width: 640px) {
  .home-page .site-header .brand-name { font-size: .74rem; }
  .home-page .site-header .brand-name strong { font-size: 1.1rem; }
  .home-design .home-intro, .home-design [dir="rtl"] .home-intro { padding-top: 44px; }
  .home-design h1 { font-size: clamp(2rem, 7.5vw, 2.6rem); }
  .home-design .home-button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .home-design .home-button { transition: none; }
  .home-design .home-button:hover { transform: none; }
}
.home-contact { padding: clamp(52px, 7vw, 90px) clamp(20px, 3vw, 44px); background: transparent; }
.home-contact-inner { max-width: 1400px; margin-inline: auto; }
.home-contact h2 { margin: 0 0 32px; color: var(--home-ink); font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.4; }
.home-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr .8fr; gap: 32px; }
.home-contact h3 { margin: 0 0 10px; color: var(--home-ink); font-size: .95rem; font-weight: 750; line-height: 1.6; }
.home-contact p, .home-contact li { margin: 0; color: var(--home-muted); font-size: .95rem; line-height: 1.85; overflow-wrap: anywhere; }
.home-contact p + h3 { margin-top: 20px; }
.home-contact ul { list-style: none; padding: 0; margin: 0; }
.home-contact a { display: inline-block; color: #245398; text-decoration: underline; text-decoration-color: #9ebde3; text-underline-offset: 4px; }
.home-contact a:hover { color: #0b307c; text-decoration-color: currentColor; }
.home-contact .home-contact-ltr { text-align: start; unicode-bidi: isolate; }
html[data-public-language="fa"] .home-contact { direction: rtl; text-align: right; }
html[data-public-language="fa"] .home-contact .home-contact-ltr { text-align: right; }
@media (max-width: 900px) { .home-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .home-contact-grid { grid-template-columns: 1fr; gap: 24px; } .home-contact h2 { margin-bottom: 24px; } }

/* Contact details sit within the existing navy footer. */
.home-page .home-contact { padding-top: 12px; padding-bottom: 42px; }
.home-page .home-contact h2, .home-page .home-contact h3 { color: #fff; }
.home-page .home-contact p, .home-page .home-contact li { color: #d1ddef; }
.home-page .home-contact a { color: #d9ecff; text-decoration-color: #72a8d6; }
.home-page .home-contact a:hover { color: #fff; text-decoration-color: #fff; }
.home-current .site-footer > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: calc(100% - 2 * clamp(20px, 3vw, 44px));
  max-width: 1400px;
  padding: 22px 0 0;
  border-top: 1px solid #ffffff30;
}
.home-current .site-footer > .container .brand-name { font-size: .95rem; font-weight: 700; }
.home-current .site-footer > .container p { margin: 0; color: #c6d1e3; font-size: .85rem; }
html[data-public-language="fa"] .home-current .site-footer > .container { direction: rtl; text-align: right; }
@media (max-width: 640px) { .home-current .site-footer > .container { align-items: flex-start; flex-direction: column; } }

.home-contact-map { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; font-size: .9rem; font-weight: 650; }
