:root {
  --blue: #4c7daa;
  --blue-deep: #1a4f84;
  --blue-soft: #6d94b7;
  --gold: #f1bb12;
  --text: #243746;
  --muted: #5f7180;
  --line: #d8e1ea;
  --white: #ffffff;
  --shell: #f7fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: #eef3f8;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(100%, 1577px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 30px;
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img,
.footer-brand-block img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand span,
.footer-brand-block span {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  color: #425767;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-deep);
}

.language-switcher {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.language-switcher span {
  font-size: 0.72rem;
  color: var(--muted);
}

.language-switcher select,
.journey-form input,
.journey-form select,
.journey-form textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.language-switcher select {
  min-width: 116px;
  padding: 8px 10px;
}

.contact-button,
.hero-cta,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-button:hover,
.hero-cta:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.contact-button {
  min-height: 44px;
  padding: 0 24px;
  color: var(--white);
  background: var(--blue-deep);
  box-shadow: 0 10px 20px rgba(26, 79, 132, 0.18);
}

.hero {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-soft) 100%);
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.hero-inner {
  max-width: 1160px;
  text-align: center;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.hero-title-top,
.hero-title-bottom,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
}

.hero-title-top {
  color: var(--white);
  font-size: clamp(3.7rem, 7vw, 6.2rem);
  line-height: 0.98;
}

.hero-title-bottom {
  color: var(--gold);
  font-size: clamp(3.3rem, 6.6vw, 5.8rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 930px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 34px auto 0;
  text-align: left;
}

.hero-pillar {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.hero-pillar-track {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-pillar-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-pillar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 46px;
}

.hero-cta {
  min-width: 214px;
  min-height: 68px;
  padding: 0 26px;
  font-size: 0.98rem;
}

.hero-cta-primary {
  background: var(--gold);
  color: #0f2235;
}

.hero-cta-secondary {
  border: 2px solid rgba(255, 255, 255, 0.95);
  color: var(--white);
  background: transparent;
}

.section {
  padding: 78px 30px;
  background: var(--white);
}

.section + .section {
  border-top: 1px solid #edf2f6;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 30px;
}

.section-heading.narrow {
  max-width: 720px;
}

.section-kicker {
  color: var(--blue-deep);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  color: #18384f;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.two-column-cards,
.feature-grid,
.process-grid {
  display: grid;
  gap: 22px;
}

.two-column-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid,
.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-linkout {
  margin-bottom: 26px;
}

.section-linkout-center {
  margin-top: 28px;
  margin-bottom: 0;
  text-align: center;
}

.section-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(26, 79, 132, 0.18);
  background: #eef5fb;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.institution-intro {
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #f9fbfe 0%, #f2f7fb 100%);
  box-shadow: 0 12px 28px rgba(40, 72, 103, 0.05);
}

.institution-intro h3 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #18384f;
}

.institution-intro p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.82;
}

.institution-intro p:last-child {
  margin-bottom: 0;
}

.subpage-hero {
  padding: 76px 30px;
  background: linear-gradient(180deg, #4d79a3 0%, #688daf 100%);
}

.subpage-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.subpage-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.04;
  color: var(--white);
}

.subpage-text {
  max-width: 860px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
}

.institution-page-section {
  background: var(--white);
}

.institution-intro-page {
  margin-bottom: 32px;
}

.institution-features-grid {
  margin-top: 6px;
}

.info-card,
.feature-card,
.stack-card,
.process-grid article,
.journey-form {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdff;
  box-shadow: 0 12px 28px rgba(40, 72, 103, 0.06);
}

.info-card,
.feature-card,
.stack-card,
.process-grid article {
  padding: 26px;
}

.info-card span,
.feature-card span,
.process-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue-deep);
  font-weight: 700;
}

.info-card h3,
.feature-card h3,
.stack-card h3,
.process-grid h3,
.footer-contact h3 {
  font-size: 1.5rem;
  line-height: 1.15;
  color: #18384f;
}

.info-card p,
.feature-card p,
.stack-card p,
.process-grid p,
.footer-contact p,
.form-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 28px;
}

.stack-cards {
  display: grid;
  gap: 18px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 28px;
}

.journey-form {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.tally-embed {
  overflow: hidden;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdff;
  box-shadow: 0 12px 28px rgba(40, 72, 103, 0.06);
}

.tally-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.form-hidden {
  display: none;
}

.journey-form label {
  display: grid;
  gap: 8px;
}

.journey-form span {
  color: #3d5568;
  font-size: 0.92rem;
  font-weight: 700;
}

.journey-form input,
.journey-form select,
.journey-form textarea {
  width: 100%;
  padding: 13px 14px;
}

.journey-form textarea {
  resize: vertical;
}

.submit-button {
  min-height: 52px;
  border: 0;
  background: var(--blue-deep);
  color: var(--white);
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 30px 46px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-brand-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact {
  min-width: 320px;
}

.footer-contact strong {
  color: #18384f;
}

[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  text-align: right;
}

[dir="rtl"] .site-header,
[dir="rtl"] .site-footer,
[dir="rtl"] .split-section,
[dir="rtl"] .form-section {
  direction: rtl;
}

@media (max-width: 1100px) {
  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .feature-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .split-section,
  .form-section {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .site-nav,
  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .two-column-cards,
  .hero-pillars,
  .feature-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 74px 18px;
  }

  .subpage-hero {
    padding: 56px 18px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    align-items: center;
  }

  .hero-title-top {
    font-size: 2.8rem;
  }

  .hero-title-bottom {
    font-size: 2.5rem;
  }

  .hero-cta {
    width: 100%;
  }
}
