:root { --hatef-font: "Yekan", "Yekan Bakh", "IRANYekan", "B Yekan", Tahoma, Arial, sans-serif; }
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; }
body, button, input, textarea, select { font-family: var(--hatef-font); }
main, .section, .section header, .card, .card-body, .pathway article, .hero-copy { text-align: start; }
.site-header { padding: 0; }
.header-shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--page-max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
  direction: inherit;
}
.brand { margin: 0; flex: 0 0 auto; }
.custom-logo { max-width: min(230px, 22vw); }
#main-nav { margin-inline-start: auto; }
#main-nav .menu { align-items: center; }
.languages { flex: 0 0 auto; }
.languages ul { align-items: center; gap: 4px; }
.languages a {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: #496159;
}
.languages a[aria-current="page"] { background: #e7f5dc; color: #0f4d3f; }
.hero-copy { direction: inherit; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.stat-card {
  min-height: 104px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(15,77,63,.13);
  border-radius: 16px;
  background: linear-gradient(145deg,#fff,#f3faed);
}
.stat-card strong { color: #0f4d3f; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.1; }
.stat-card span { color: #52665d; font-size: clamp(.76rem, .9vw, .9rem); line-height: 1.55; }
.grid { align-items: stretch; }
.content-section .card { height: 100%; }
.content-section .card > a { height: 100%; display: flex; flex-direction: column; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 18px 22px 24px; }
.card-body h3, .card-body p { padding-inline: 0; }
.card-body h3 { min-height: 3.1em; margin-top: 0; }
.card-body p { flex: 1; margin-bottom: 0; padding-bottom: 0; }
.pathway .grid { align-items: stretch; }
.pathway article { height: 100%; display: flex; flex-direction: column; }
.pathway article p { flex: 1; }
.pathway article small { display: none; }
.pathway article:before { content: ""; width: 44px; height: 7px; margin-bottom: 18px; border-radius: 99px; background: linear-gradient(90deg,#69c83e,#f2b632); }
.section { padding-block: clamp(48px, 5vw, 76px); }
.content-section > header { position: relative; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(15,77,63,.13); }
.content-section > header:after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: clamp(72px,8vw,130px); height: 4px; border-radius: 99px; background: linear-gradient(90deg,#f2b632,#69c83e); }
.content-section > header h2 { letter-spacing: -.025em; line-height: 1.35; }
.content-section > header > a { padding: 8px 14px; border: 1px solid rgba(15,77,63,.18); border-radius: 999px; color: #0f4d3f; font-weight: 700; }
.footer-contact { display: inline-flex; padding: 10px 18px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; }
.section + .section { border-top: 1px solid rgba(15,77,63,.08); }
@media (max-width: 1060px) {
  #main-nav { display: none; position: absolute; top: 68px; inset-inline: 0; margin: 0; padding: 22px var(--gutter); background: #fff9ea; box-shadow: 0 16px 30px rgba(15,77,63,.12); }
  #main-nav.open { display: block; }
  #main-nav .menu { align-items: stretch; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  .header-shell { width: calc(100% - 36px); gap: 9px; }
  .custom-logo { max-width: 148px; max-height: 48px; }
  .languages a { min-width: 29px; height: 30px; font-size: .68rem; }
  .stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 82px; display: grid; grid-template-columns: 82px 1fr; align-items: center; }
  .card-body h3 { min-height: 0; }
}
@media (max-width: 900px) {
  .site-header .languages { display: block; position: static; padding: 0; background: transparent; box-shadow: none; }
}
