:root {
  --ink: #0b0d10;
  --text: #24302c;
  --muted: #63716c;
  --line: #d9e0dd;
  --paper: #fbfcfa;
  --soft: #eef3f1;
  --emerald: #126b5f;
  --emerald-dark: #0d4f47;
  --brass: #c89135;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(10, 21, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.solid-header {
  background: rgba(11, 13, 16, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: var(--white);
  border-radius: 50%;
  overflow: hidden;
}

.brand-mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.nav-phone {
  display: none;
}

.nav-links a,
.call-link,
.menu-toggle {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.call-link:hover {
  color: var(--white);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.language-picker select {
  width: auto;
  min-height: 34px;
  padding: 6px 28px 6px 10px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.language-picker option {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.call-link {
  justify-self: end;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(4, 8, 8, 0.82) 0%, rgba(4, 8, 8, 0.62) 42%, rgba(4, 8, 8, 0.12) 100%);
}

.hero-content {
  position: relative;
  width: min(710px, calc(100% - 36px));
  margin: 0 0 clamp(44px, 9vw, 86px) clamp(18px, 5vw, 70px);
  padding-top: 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.hero-copy {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
  border: 1px solid transparent;
}

.primary-button {
  background: var(--emerald);
  color: var(--white);
}

.primary-button:hover {
  background: var(--emerald-dark);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-strip div {
  background: var(--white);
  padding: 22px clamp(18px, 4vw, 54px);
}

.summary-strip strong {
  display: block;
  color: var(--emerald);
  font-size: 28px;
  line-height: 1;
}

.summary-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(58px, 9vw, 104px) clamp(18px, 5vw, 70px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.section-copy {
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-note {
  width: min(760px, 100%);
  margin-top: -8px;
  color: var(--text);
  font-size: 16px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.country-grid span,
.language-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.language-grid span {
  justify-content: center;
  color: var(--ink);
}

.muted-section {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.university-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) minmax(160px, 220px) minmax(150px, 210px);
  gap: 12px;
  margin-bottom: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd8d4;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(18, 107, 95, 0.14);
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.university-card {
  display: flex;
  min-height: 356px;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(10, 21, 18, 0.05);
}

.card-top {
  display: grid;
  gap: 10px;
}

.university-card h3 {
  margin-bottom: 2px;
  font-size: 20px;
  line-height: 1.15;
}

.cost-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f3ef;
  color: var(--emerald-dark);
  font-size: 14px;
  font-weight: 900;
}

.card-brief {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.meta-line,
.language-line,
.department-line {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.department-line {
  margin-bottom: auto;
}

.result-line {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.text-link {
  color: var(--emerald);
  font-weight: 800;
  font-size: 14px;
}

.mini-apply {
  margin-left: auto;
  min-height: 36px;
  padding-inline: 13px;
  font-size: 13px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pagination button {
  min-width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.pagination button.active {
  border-color: var(--emerald);
  background: var(--emerald);
  color: var(--white);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(10, 21, 18, 0.06);
}

.testimonial-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--brass);
}

.testimonial-card p {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.testimonial-card div {
  display: grid;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.testimonial-card strong {
  color: var(--ink);
}

.testimonial-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.process-grid article {
  border-top: 3px solid var(--emerald);
  padding-top: 16px;
}

.process-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--brass);
  font-weight: 900;
}

.process-grid p {
  color: var(--muted);
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.apply-section h2 {
  color: var(--white);
}

.contact-panel {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-panel a {
  color: var(--white);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.form-status {
  min-height: 22px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 70px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--emerald);
  font-weight: 800;
}

.legal-page {
  padding-top: 66px;
}

.legal-hero {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 70px) clamp(36px, 6vw, 62px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.legal-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 6vw, 72px);
}

.legal-hero p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.legal-content {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 78px) 0;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--ink);
  font-size: 17px;
}

.legal-content a {
  color: var(--emerald);
  font-weight: 800;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(4, 8, 8, 0.82) 0%, rgba(4, 8, 8, 0.62) 42%, rgba(4, 8, 8, 0.12) 100%);
}

html[dir="rtl"] .hero-content {
  margin: 0 clamp(18px, 5vw, 70px) clamp(44px, 9vw, 86px) 0;
}

html[dir="rtl"] .mini-apply {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .footer-links,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .card-actions {
  direction: rtl;
}

@media (max-width: 980px) {
  .site-header.has-menu {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-header.has-menu .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header.has-menu .call-link {
    display: none;
  }

  .site-header.has-menu .nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    order: 3;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .site-header.has-menu.nav-open .nav-links {
    display: flex;
  }

  .site-header.has-menu .nav-links a,
  .site-header.has-menu .nav-phone {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
  }

  .site-header.has-menu .language-picker {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding-top: 10px;
  }

  .site-header.has-menu .language-picker select {
    width: min(230px, 58vw);
  }

  .country-grid,
  .language-grid,
  .university-grid,
  .process-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .two-column,
  .apply-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand span:last-child {
    max-width: 145px;
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .call-link {
    font-size: 12px;
    padding: 8px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(4, 8, 8, 0.42) 0%, rgba(4, 8, 8, 0.84) 100%);
  }

  .hero-content {
    margin: 0 18px 38px;
    width: auto;
  }

  .summary-strip,
  .country-grid,
  .language-grid,
  .university-grid,
  .process-grid,
  .testimonial-grid,
  .university-toolbar {
    grid-template-columns: 1fr;
  }

  .university-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
