/* ============================================
   معبر بيلاروسيا — Design Tokens
   ============================================ */
:root {
  /* Color */
  --forest:       #163A2E;   /* primary deep green */
  --forest-deep:  #0E271F;   /* darkest green, footer/CTA */
  --forest-mid:   #1F4C3B;   /* mid green, cards on dark */
  --gold:         #C6A155;   /* accent — seals, prices, hover */
  --gold-soft:    #E7D9AE;   /* light gold tint */
  --gold-line:    #B8935F;
  --paper:        #F1EEE2;   /* warm greige background */
  --paper-raised: #FBF9F2;   /* card background, lighter than paper */
  --ink:          #182620;   /* near-black, green-tinted text */
  --ink-soft:     #4B584F;   /* secondary text */
  --line:         #DAD4C0;   /* hairline borders on paper */
  --whatsapp:     #25D366;
  --telegram:     #2AABEE;

  /* Type */
  --font-display: 'Amiri', 'Georgia', serif;
  --font-body: 'Tajawal', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  /* Elevation — forest-tinted, not generic gray */
  --shadow-sm: 0 1px 2px rgba(14,39,31,0.05), 0 2px 8px rgba(14,39,31,0.05);
  --shadow-md: 0 8px 20px rgba(14,39,31,0.09), 0 2px 6px rgba(14,39,31,0.06);
  --shadow-lg: 0 22px 44px rgba(14,39,31,0.14), 0 8px 16px rgba(14,39,31,0.08);
  --shadow-gold: 0 10px 24px rgba(198,161,85,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scroll reveal — subtle rise + fade, orchestrated once per element */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Some WebKit/Safari versions mis-render `aspect-ratio` + `overflow:hidden`
   containers with absolutely-positioned children when a `transform` is
   applied to that same element (as .reveal does). .about-visual relies on
   exactly that combination for its cropped photo, so it opts out of the
   transform and only fades in, avoiding the broken/oversized image bug. */
.about-visual.reveal { transform: none; }
.about-visual.reveal.is-visible { transform: none; }
.process-grid .process-item:nth-child(2) { transition-delay: 0.08s; }
.process-grid .process-item:nth-child(3) { transition-delay: 0.16s; }
.process-grid .process-item:nth-child(4) { transition-delay: 0.24s; }
.uni-grid .uni-card:nth-child(3n+2) { transition-delay: 0.06s; }
.uni-grid .uni-card:nth-child(3n+3) { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.3; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--gold-line);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-line);
  display: inline-block;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 238, 226, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--forest);
  color: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--forest-mid); box-shadow: 0 10px 24px rgba(22,58,46,0.28); }

.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: var(--shadow-gold); }

.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--paper-raised); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(241,238,226,0.4);
  color: var(--paper-raised);
}
.btn-outline-light:hover { background: rgba(241,238,226,0.12); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { box-shadow: 0 10px 24px rgba(37,211,102,0.35); }

.btn-telegram {
  background: var(--telegram);
  color: #fff;
}
.btn-telegram:hover { box-shadow: 0 10px 24px rgba(42,171,238,0.35); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper-raised);
  padding-block: 90px 120px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(198,161,85,0.35) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p.lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(241,238,226,0.82);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
}
.hero-stat span {
  font-size: 0.82rem;
  color: rgba(241,238,226,0.7);
}

/* Seal — signature element */
.seal-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal {
  width: min(340px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(198,161,85,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 60s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
}
.seal-inner {
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(198,161,85,0.7);
  background: radial-gradient(circle at 35% 30%, rgba(198,161,85,0.18), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-reverse 60s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .seal-inner { animation: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

.seal-core {
  text-align: center;
}
.seal-core .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
}
.seal-core .label {
  font-size: 0.78rem;
  color: rgba(241,238,226,0.75);
  display: block;
  margin-top: 4px;
}

/* ============================================
   Section shared
   ============================================ */
.section { padding-block: 90px; }
.section-head {
  max-width: 640px;
  margin-bottom: 50px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--forest);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.section-alt { background: var(--paper-raised); }

/* ============================================
   Who we are
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,39,31,0.15) 0%, rgba(15,39,31,0.85) 100%),
              linear-gradient(160deg, rgba(198,161,85,0.35), transparent 55%);
  z-index: 1;
}
.about-visual-badge {
  position: relative;
  z-index: 2;
  background: rgba(241,238,226,0.95);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: var(--forest);
}
.about-visual-badge strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: block;
}
.about-visual-badge span { font-size: 0.85rem; color: var(--ink-soft); }

.about-copy p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.02rem; }
.about-copy p:last-of-type { margin-bottom: 0; }

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.fact-item {
  border-top: 2px solid var(--gold);
  padding-top: 12px;
}
.fact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
}
.fact-item span { font-size: 0.82rem; color: var(--ink-soft); }

/* ============================================
   Universities
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: space-between;
  align-items: center;
}
.filter-tabs, .filter-lang {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tabs button, .filter-lang button {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink-soft);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-tabs button.active,
.filter-lang button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper-raised);
}
.filter-tabs button:hover:not(.active),
.filter-lang button:hover:not(.active) {
  border-color: var(--gold-line);
  color: var(--forest);
}

.uni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.uni-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.uni-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-lg);
}
.uni-card:hover .uni-card-photo { transform: scale(1.06); }

.uni-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.uni-city {
  font-size: 0.8rem;
  color: var(--gold-line);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.uni-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--forest-deep);
  white-space: nowrap;
}

.uni-card h3 {
  font-size: 1.2rem;
  color: var(--forest);
  min-height: 2.6em;
}

.uni-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.uni-programs span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.uni-price-table {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.uni-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}
.uni-price-row .lang { color: var(--ink-soft); }
.uni-price-row .price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest);
}
.uni-price-row .price small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.uni-price-row .price.estimate {
  color: var(--gold-line);
}
.uni-price-estimate-note {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.price-cell.estimate {
  color: var(--gold-line);
}

.uni-card .btn { margin-top: auto; justify-content: center; }
.uni-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.uni-card-actions .btn {
  flex: 1;
  margin-top: 0;
  padding-inline: 10px;
  padding-block: 11px;
  font-size: 0.82rem;
}

.placeholder-note {
  margin-top: 36px;
  padding: 16px 20px;
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--forest-deep);
  font-size: 0.88rem;
}

/* ============================================
   Process
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 22px;
  right: calc(12.5% + 13px);
  left: calc(12.5% + 13px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-line) 0 8px, transparent 8px 16px);
  opacity: 0.6;
}
.process-item {
  position: relative;
  padding-top: 62px;
  text-align: center;
}
.process-item::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1.5px solid var(--gold-line);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.process-item h4 {
  color: var(--forest);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.process-item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
@media (max-width: 720px) {
  .process-grid::before { display: none; }
  .float-contact { bottom: 18px; left: 14px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 21px; height: 21px; }
}

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--paper-raised);
  padding-block: 70px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(198,161,85,0.3) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.2;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(241,238,226,0.75);
  max-width: 50ch;
  margin: 0 auto 34px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--forest);
  color: rgba(241,238,226,0.85);
  padding-block: 60px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(241,238,226,0.15);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--paper-raised);
  margin-bottom: 14px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(241,238,226,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--gold); background: rgba(198,161,85,0.15); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(241,238,226,0.55);
}

/* ============================================
   Floating contact buttons
   ============================================ */
.float-contact {
  position: fixed;
  bottom: 26px;
  left: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  transition: transform 0.2s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 26px; height: 26px; }
.float-btn.whatsapp { background: var(--whatsapp); }
.float-btn.telegram { background: var(--telegram); }

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 22px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--forest-mid); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .back-to-top { width: 42px; height: 42px; bottom: 20px; right: 16px; } }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .seal-wrap { order: -1; }
  .seal { width: 220px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn span.long { display: none; }
  .header-actions .btn-telegram, .header-actions .btn-whatsapp { display: none; }
  .lang-toggle-label { display: none; }
  .brand-sub { display: none; }
  .hero { padding-block: 60px 80px; }
  .hero-stats { gap: 22px; }
  .section { padding-block: 60px; }
  .uni-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .fact-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   University detail page
   ============================================ */
.uni-link {
  color: inherit;
  transition: color 0.2s ease;
}
.uni-link:hover { color: var(--gold-line); }

.breadcrumb {
  padding-block: 22px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--forest); font-weight: 700; }

.uni-hero {
  background: var(--forest);
  color: var(--paper-raised);
  padding-block: 50px 60px;
  position: relative;
  overflow: hidden;
}
.uni-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(198,161,85,0.3) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.22;
}
.uni-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 34px;
  align-items: center;
}
.uni-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(198,161,85,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, rgba(198,161,85,0.18), transparent 65%);
}
.uni-photo-placeholder .initials {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}
.uni-hero-tag {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.uni-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 10px;
}
.uni-hero .uni-hero-en {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(241,238,226,0.65);
  margin-bottom: 14px;
}
.uni-hero .lead { color: rgba(241,238,226,0.85); max-width: 60ch; }

.uni-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.uni-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.uni-stat-strip .stat {
  border-top: 2px solid var(--gold);
  padding-top: 10px;
}
.uni-stat-strip .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
}
.uni-stat-strip .stat span { font-size: 0.8rem; color: var(--ink-soft); }

.uni-block { margin-bottom: 42px; }
.uni-block h2 {
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 16px;
}
.uni-block p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 14px; }

.ranking-note {
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--forest-deep);
  font-size: 0.92rem;
  border-inline-start: 3px solid var(--gold);
}

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  color: var(--gold-line);
  font-weight: 700;
  flex-shrink: 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.program-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin-top: 8px;
}
.program-table th, .program-table td {
  text-align: right;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.program-table th {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.program-table td.price {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 700;
}
.program-table td.dim { color: var(--ink-soft); }

/* Sidebar sticky CTA card */
.uni-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: 1.05rem;
  color: var(--forest);
  margin-bottom: 8px;
}
.sidebar-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

.sidebar-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--gold-line); }

.related-strip {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-strip a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink);
}
.related-strip a:hover { border-color: var(--gold-line); color: var(--forest); }
.related-strip a span.city { color: var(--ink-soft); font-size: 0.78rem; }

@media (max-width: 860px) {
  .uni-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .uni-photo-placeholder { margin-inline: auto; }
  .uni-hero-tag { justify-content: center; }
  .uni-body-grid { grid-template-columns: minmax(0, 1fr); }
  .uni-sidebar { position: static; }
  .uni-stat-strip { grid-template-columns: 1fr 1fr; }
}

/* Keep phone numbers / Latin digits left-to-right inside Arabic (RTL) text */
.ltr-num {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}

/* ============================================
   Contact / email form
   ============================================ */
.contact-form {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(198,161,85,0.18);
}
.contact-form .btn { align-self: flex-start; }
.form-status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}
.form-status.success { color: #1F6B3D; }
.form-status.error { color: #A13F2B; }

/* Specialization groups (by faculty) */
.spec-group {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: var(--paper-raised);
}
.spec-group h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold-line);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.spec-group ul { display: flex; flex-direction: column; gap: 8px; }
.spec-group li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-inline-start: 16px;
  position: relative;
}
.spec-group li::before {
  content: "•";
  color: var(--gold-line);
  position: absolute;
  right: 0;
}

/* ============================================
   English language mode — font pairing
   ============================================ */
body.lang-en {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}
body.lang-en .seal-core .num { font-size: 2.2rem; }

/* Language toggle button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.lang-toggle-btn:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.lang-toggle-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Real logo image in header brand */
.brand-mark-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }

/* University photo (real image, replaces placeholder when available) */
.uni-photo-real {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.uni-card-photo-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 4px;
}
.uni-card-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
  transition: transform 0.4s ease;
}
.uni-card-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(198,161,85,0.22), var(--forest) 75%);
}
.uni-card-photo-fallback span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Detail-page hero photo when a real photo replaces the placeholder circle */
.uni-photo-placeholder.has-photo {
  border-style: solid;
  overflow: hidden;
  padding: 0;
}
.uni-photo-placeholder.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Founder section */
.founder-card {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.founder-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.founder-eyebrow-sm {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-line);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  display: block;
}
.founder-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); margin-bottom: 2px; }
.founder-title { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; }
.founder-bio { font-size: 0.88rem; color: var(--ink-soft); }

.founder-video-block {
  margin-top: 20px;
}
.founder-video-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-line);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.founder-video {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--forest);
  display: block;
}
@media (max-width: 640px) {
  .founder-video { max-width: 280px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .founder-card { flex-direction: column; text-align: center; }
}


.uni-prep-heading { margin-bottom: 2px; }
.uni-prep-heading .price-note { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }
