:root {
  --bg: #f7f4ea;
  --surface: #fffdf7;
  --surface-2: #f6ecd2;
  --text: #15241b;
  --muted: #5f6b63;
  --brand: #0f5c47;
  --brand-2: #c79f3b;
  --brand-3: #12392d;
  --shadow: 0 18px 60px rgba(18, 57, 45, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #f8f5ec, #f0ead6 45%, #fbfaf5);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
iframe { border: 0; width: 100%; height: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 234, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 57, 45, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  transition: padding 0.28s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: gap 0.28s ease;
}
.brand > div { display: grid; }
.brand span,
.brand div span { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.brand-badge {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  /*background: linear-gradient(135deg, var(--brand), #1a7b60);*/
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: width 0.28s ease, height 0.28s ease, border-radius 0.28s ease;
}
.brand-badge img {
  /*width: calc(100% - 14px);*/
  height: calc(100% - 14px);
  object-fit: contain;
  object-position: center;
}
.brand-badge-tall {
  width: 64px;
  height: 104px;
  border-radius: 20px;
}
.topbar.is-scrolled .brand-badge-tall {
  width: 40px;
  height: 64px;
  border-radius: 16px;
}
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lang-switch a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(18, 57, 45, 0.09);
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a.active { background: var(--brand); color: #fff; }
.topbar.is-scrolled .nav { padding: 14px 0; }
.topbar.is-scrolled .brand { gap: 14px; }
.topbar.is-scrolled .brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}
.hero { padding: 56px 0 30px; }
.hero-compact { padding-top: 40px; }
.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}
.card {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(18, 57, 45, 0.06);
}
.hero-copy { padding: 42px; }
.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(199, 159, 59, 0.14);
  color: var(--brand-3);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.hero p { font-size: 1.05rem; color: var(--muted); margin: 0 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.22s transform, 0.22s background;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #1d7d62); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: rgba(15, 92, 71, 0.18); }
.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}
.hero-points li {
  background: #fff;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 57, 45, 0.06);
  font-weight: 700;
}
.hero-media { position: relative; min-height: 560px; }
.small-media { min-height: 380px; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 57, 45, 0.1), rgba(18, 57, 45, 0.42));
  z-index: 1;
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-credit {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--brand-3);
}
.logo-strip {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.94);
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  border-radius: 24px;
}
.logo-cluster {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.logo-cluster img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(18, 57, 45, 0.08);
}
.logo-cluster strong { display: block; }
.logo-cluster span { display: block; color: var(--muted); font-size: 0.92rem; }
.stats,
.section { padding: 24px 0 10px; }
.stats-grid,
.feature-grid,
.testimonial-grid,
.curriculum-grid,
.facts,
.course-grid,
.social-links {
  display: grid;
  gap: 18px;
}
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat,
.feature,
.testimonial,
.fact,
.cta-panel,
.info-panel,
.course-card,
.media-card,
.social-panel {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(18, 57, 45, 0.06);
}
.stat strong { display: block; font-size: 2rem; color: var(--brand); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 10px; }
.section-intro { color: var(--muted); max-width: 760px; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.feature-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; align-items: stretch; direction: ltr; }
.feature-grid-ar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; align-content: start; direction: rtl; }
.feature-grid-en { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; align-content: start; direction: ltr; }
.feature-image-placeholder { 
  display: grid; 
  place-items: center; 
  min-height: 100%; 
  background: linear-gradient(135deg, rgba(15, 92, 71, 0.08), rgba(199, 159, 59, 0.12)); 
  border: 2px dashed rgba(15, 92, 71, 0.2); 
  direction: rtl; 
  overflow: hidden;
}
.feature-image-fit {
  place-items: start;
  min-height: auto;
}
.feature-image-fit img {
  width: 100%;
  height: auto;
}
.feature-placeholder-inner { text-align: center; display: grid; gap: 12px; max-width: 320px; }
.feature-placeholder-inner i { font-size: 3rem; color: var(--brand); }
.placeholder-badge { display: inline-flex; justify-self: center; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.86); color: var(--brand-3); font-weight: 800; }
.feature h3,
.testimonial h3,
.course-card h3,
.info-panel h3 { margin: 0.2rem 0 0.5rem; font-size: 1.05rem; }
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 92, 71, 0.12), rgba(199, 159, 59, 0.2));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--brand);
}
.facts { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; }
.fact .label { color: var(--muted); font-size: 0.92rem; }
.fact .value { font-weight: 800; margin-top: 6px; }
.curriculum-grid { grid-template-columns: 1fr 0.92fr; align-items: start; }
.curriculum-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.curriculum-list li {
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(18, 57, 45, 0.06);
  font-weight: 700;
}
.info-panel { display: grid; gap: 18px; background: linear-gradient(180deg, #fffdf7, #f6f0e3); }
.video-card { display: grid; gap: 14px; }
.video-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.video-shell { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.video-shell.video-shell-portrait { aspect-ratio: 9 / 16; }
.video-shell video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-shell.video-crop-center video { object-position: center center; }
.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.testimonial p,
.feature p,
.info-panel p,
.course-card p,
.social-panel p { margin: 0; color: var(--muted); }
.cta-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  margin: 26px 0 24px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  color: #fff;
}
.cta-panel p { color: rgba(255, 255, 255, 0.84); }
.course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-card ul { margin: 12px 0 0; padding-inline-start: 18px; color: var(--muted); }

.course-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.course-link:hover,
.course-link:focus-visible {
  color: var(--brand-3);
}
.course-link:focus-visible {
  outline: 2px solid rgba(15, 92, 71, 0.32);
  outline-offset: 4px;
  border-radius: 6px;
}
.modal-open { overflow: hidden; }
.course-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.course-modal.is-open { display: flex; }
.course-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 16, 0.58);
}
.course-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  z-index: 1;
}
.course-modal__dialog h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.course-modal__dialog p {
  white-space: pre-wrap;
  line-height: 1.9;
  color: var(--muted);
}
.course-modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 92, 71, 0.1);
  color: var(--brand-3);
  font-size: 1.6rem;
  cursor: pointer;
}

.course-card ul.two-column-list { columns: 2; column-gap: 24px; padding-inline-start: 20px; }
.course-card ul.two-column-list li { break-inside: avoid; margin-top: 0; margin-bottom: 8px; }
.course-card li + li { margin-top: 6px; }
.course-meta {
  display: inline-flex;
  background: rgba(15, 92, 71, 0.08);
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.level-card { background: linear-gradient(180deg, #fffdf7, #f7f0df); }
.teacher-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 92, 71, 0.08);
  color: var(--brand-3);
  font-weight: 700;
}
.wide-note { margin-bottom: 18px; }
.social-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.social-copy { display: grid; gap: 14px; }
.social-copy p { margin: 0; }
.social-copy-row { display: flex; align-items: stretch; gap: 20px; }
.social-copy-logo { width: auto; height: clamp(88px, 11vw, 136px); object-fit: contain; align-self: center; border-radius: 20px; background: #fff; padding: 10px; box-shadow: 0 8px 24px rgba(18, 57, 45, 0.08); }
.social-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: min(100%, 560px);
}
.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(18, 57, 45, 0.08);
  text-decoration: none;
  font-weight: 800;
}
.social-link i { font-size: 1.1rem; color: var(--brand); }

.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(18, 57, 45, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }
.faq-answer p { margin: 0; }

.footer { padding: 28px 0 48px; color: var(--muted); }
.footer-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 57, 45, 0.07);
  border-radius: 24px;
  padding: 22px;
}
.footer-card-waag { display: grid; gap: 20px; }
.footer-waag-main { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.footer-waag-logo { width: 180px; max-width: 100%; object-fit: contain; }
.footer-waag-copy strong { display: block; color: var(--brand-3); font-size: 1.1rem; margin-bottom: 8px; }
.footer-waag-copy p { margin: 0; }
.footer-address { margin-top: 10px !important; }
.social-links-waag { grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.lang-grid a {
  background: #fff;
  padding: 14px;
  border-radius: 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(18, 57, 45, 0.06);
}
.cc-copyright{
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 1024px) {
  .hero-wrap,
  .curriculum-grid,
  .cta-panel,
  .course-grid,
  .social-panel,
  .feature-showcase,
  .footer-waag-main { grid-template-columns: 1fr; }
  .feature-grid,
  .feature-grid-ar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid-en { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 400px; }
  .showcase-media { min-height: 400px; }
  .social-links,
  .social-links-waag { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .social-copy-row { align-items: center; }
}
@media (max-width: 768px) {
  .topbar { position: static; }
  .hero-copy { padding: 28px; }
  .nav { padding: 16px 0; }
  .brand { gap: 12px; }
  .brand-badge { width: 56px; height: 56px; }
  .brand-badge-tall { width: 44px; height: 72px; }
  .hero-points,
  .curriculum-list,
  .lang-grid,
  .course-grid,
  .social-links,
  .social-links-waag,
  .feature-grid-ar { grid-template-columns: 1fr; }
  .feature-grid-en { grid-template-columns: 1fr; }
  .feature-grid,
  .stats-grid,
  .facts { grid-template-columns: 1fr; }
  .social-copy-row { flex-direction: column; align-items: flex-start; }
  .social-copy-logo { height: 88px; }
  .course-card ul.two-column-list { columns: 1; }
  .logo-strip { position: static; border-radius: 0; padding: 18px; }
  .hero h1 { font-size: 2.2rem; }
  .photo-credit { position: static; border-radius: 0; }
}



.nav-wrap { display: grid; gap: 14px; }
.section-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 18px;
}
.section-switch__item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,236,210,.86));
  border: 1px solid rgba(18, 57, 45, 0.08);
  box-shadow: 0 10px 28px rgba(18, 57, 45, 0.08);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section-switch__item:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(18,57,45,.12); }
.section-switch__item.active {
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  color: #fff;
  border-color: transparent;
}
.section-switch__overline {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-2);
  font-weight: 800;
}
.section-switch__item.active .section-switch__overline { color: rgba(255,255,255,.72); }
.section-switch__label { font-size: 1.02rem; font-weight: 800; }
.section-switch__desc { color: var(--muted); font-size: .9rem; }
.section-switch__item.active .section-switch__desc { color: rgba(255,255,255,.86); }
.page-hero-simple { padding: 36px 42px; }
.faculty-section { padding-top: 8px; }
.faculty-stats { margin-bottom: 18px; }
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.faculty-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}
.faculty-portrait {
  background: linear-gradient(180deg, rgba(15,92,71,.08), rgba(199,159,59,.18));
  padding: 24px;
  display: grid;
  place-items: center;
}
.faculty-portrait img { width: 100%; max-width: 190px; }
.faculty-copy { padding: 26px; }
.faculty-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.faculty-heading h2 { margin: 0 0 6px; font-size: 1.35rem; }
.faculty-dept, .faculty-extra { color: var(--muted); margin: 0 0 14px; }
.faculty-confidence {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 92, 71, 0.08);
  color: var(--brand-3);
  font-weight: 700;
  font-size: .86rem;
}
.faculty-meta {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(18,57,45,.08);
}
.faculty-meta strong { display: block; margin-bottom: 8px; }
.faculty-links { display: flex; flex-wrap: wrap; gap: 10px; }
.faculty-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(18,57,45,.1);
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
}
@media (max-width: 960px) {
  .section-switch,
  .faculty-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .faculty-card { grid-template-columns: 1fr; }
  .faculty-portrait img { max-width: 150px; }
}
