/* OGF – Our Golden Future
   Colours are taken from the logo: sky blue, gold and violet, with a deep navy for text.
   Theme: "Sky" - soft sky-blue page with white cards (chosen 2026-11-05). */
:root {
  --blue: #33b4ee;
  --blue-dark: #1688c4;
  --gold: #f5c03c;
  --gold-soft: #fff1c9;
  --violet: #8a5cf5;
  --violet-soft: #f1ebff;
  --navy: #1e2b5c;
  --ink: #2a3358;
  --muted: #5d6585;
  --bg: #e6f4fc;
  --tint: #d3ecfa;
  --card: #ffffff;
  --line: #c9e2f2;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(30, 43, 92, 0.08);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 18px; line-height: 1.85; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.2em; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(51, 180, 238, 0.35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.95rem; box-shadow: none; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(230, 244, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.35rem; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.8rem; color: var(--muted); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--blue-dark); }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--violet-soft);
  color: var(--violet);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-toggle:hover { background: #e4d9ff; }
html[lang="ar"] .lang-toggle { font-family: var(--font); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 80px; overflow: hidden; background: linear-gradient(160deg, #d3ecfa 0%, #e6f4fc 55%, #efe8ff 100%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.hl {
  background: linear-gradient(transparent 62%, var(--gold) 62%);
  padding-inline: 2px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.hero-points li { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.hero-points li:nth-child(2)::before { background: var(--blue); }
.hero-points li:nth-child(3)::before { background: var(--violet); }

.hero-visual { position: relative; justify-self: center; max-width: 400px; width: 100%; }
.hero-visual img {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(30, 43, 92, 0.18);
  transform: rotate(-2deg);
}
html[dir="rtl"] .hero-visual img { transform: rotate(2deg); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-blue { width: 240px; height: 240px; background: var(--blue); opacity: 0.25; top: -30px; inset-inline-end: -60px; }
.blob-gold { width: 200px; height: 200px; background: var(--gold); opacity: 0.4; bottom: -40px; inset-inline-start: -60px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-gold { background: linear-gradient(180deg, #fff1c9, #fdf6e3); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.subtitle { font-size: 1.15rem; color: var(--muted); }

/* News & activities: the newest story is a large card (photo beside the text), older ones a grid */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-grid > * { min-width: 0; }
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.news-card[hidden] { display: none; }
.news-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.news-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--navy); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-cover:hover img { transform: scale(1.03); }
.news-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.news-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 4px 12px rgba(30, 43, 92, 0.2);
}
.news-text { padding: 26px 30px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.news-card:first-child .news-text { justify-content: center; padding: 36px 40px; }
.news-meta { margin: 0 0 8px; font-size: 0.9rem; font-weight: 700; color: var(--violet); }
.news-text h3 { font-size: 1.2rem; margin: 0 0 10px; }
.news-card:first-child .news-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.news-text > p:not(.news-meta) { color: var(--muted); margin: 0 0 14px; }
.news-highlights { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-weight: 700; color: var(--navy); }
.news-highlights li { background: var(--gold-soft); border-radius: 12px; padding: 8px 14px; }
.news-card:not(:first-child) .news-highlights { display: none; }
.news-all-wrap { text-align: center; margin-top: 28px; }
.news-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.news-photos a { border-radius: 14px; overflow: hidden; background: var(--tint); }
.news-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.news-photos .news-photo-wide { grid-column: 1 / -1; }
.news-photos .news-photo-wide img { aspect-ratio: auto; height: auto; }
.news-results { list-style: none; padding: 0 !important; }
.news-results li { background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; }
.news-org { font-size: 0.92rem; color: var(--muted) !important; border-inline-start: 3px solid var(--blue); padding-inline-start: 12px; }
.news-cta { font-weight: 700; color: var(--navy) !important; }
.news-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 880px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card:first-child { display: flex; }
  .news-card:first-child .news-text { padding: 24px; }
}

/* About */
.about-body { max-width: 820px; margin: 0 auto 48px; font-size: 1.08rem; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--blue);
}
.vm-mission { border-top-color: var(--violet); }
.vm-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.vm-card p { margin: 0; color: var(--muted); }

/* Courses */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -16px 0 36px; }
.filter {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.course-card[hidden] { display: none; }
.course-card:hover { transform: translateY(-3px); }
.course-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.tone-blue { background: #e3f4fd; }
.tone-gold { background: var(--gold-soft); }
.tone-violet { background: var(--violet-soft); }
.aud {
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 12px;
}
.aud-kids { background: #e3f4fd; color: var(--blue-dark); }
.aud-teachers { background: var(--violet-soft); color: var(--violet); }
.course-card h3 { font-size: 1.18rem; }
.course-card > p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.course-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.text-link { font-weight: 800; text-decoration: none; color: var(--blue-dark); }
.text-link:hover { text-decoration: underline; }

/* Course details window */
.course-dialog {
  width: min(860px, 100% - 32px);
  max-height: min(90vh, 100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(30, 43, 92, 0.35);
  overflow: auto;
}
.course-dialog::backdrop { background: rgba(30, 43, 92, 0.55); }
.dialog-close {
  position: sticky;
  top: 12px;
  float: inline-end;
  margin: 12px 12px 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--tint);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.dialog-close:hover { background: var(--line); }
.dialog-head { padding: 32px 36px 0; }
.dialog-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 12px; }
.dialog-body { padding: 8px 36px 8px; }
.dialog-foot {
  position: sticky;
  bottom: 0;
  padding: 16px 36px 24px;
  background: linear-gradient(transparent, var(--card) 30%);
}
.course-media { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.course-media > a, .course-media > video {
  flex: none;
  width: 170px;
  aspect-ratio: 9 / 13;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
}
.course-media > video { aspect-ratio: 9 / 16; object-fit: cover; width: 150px; }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-text h4 { font-size: 1.1rem; margin-top: 0.4em; }
.course-text p { color: var(--ink); }
.course-text ul { padding-inline-start: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.course-text .levels { list-style: none; padding: 0; }
.course-text .levels li { background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; }
.course-question { font-weight: 800; color: var(--blue-dark); font-size: 1.08rem; }
.course-goal { font-weight: 800; color: var(--navy); }
.closing {
  font-weight: 800;
  color: var(--navy);
  background: var(--tint);
  border-radius: 14px;
  padding: 14px 18px;
}

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.value-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.value h3 { font-size: 1.05rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.motto {
  margin: 48px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.motto p::before { content: "“"; color: var(--gold); font-size: 2.2em; line-height: 0; vertical-align: -0.35em; margin-inline-end: 4px; }
.motto p { margin: 0; }

/* Gallery: two full-width panels (posters above videos), each a slider with arrows.
   Both use the same number of items per view and the same frame shape, so every
   poster and video frame is exactly the same size. */
.media-panels { display: grid; gap: 24px; }
.media-panel {
  background: var(--card);
  border-radius: 24px;
  padding: 22px 26px 26px;
  box-shadow: var(--shadow);
}
.media-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.media-panel-head h3 { margin: 0; font-size: 1.3rem; }
.slider-count { font-weight: 700; font-size: 0.9rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; }

.slider { position: relative; }
.slider-track {
  --per-view: 4;
  --gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(30, 43, 92, 0.22);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.slider-btn:hover { background: var(--gold); }
.slider-btn:disabled { opacity: 0.35; cursor: default; background: #fff; }
/* Physical sides on purpose: the left arrow is always on the left, in English and Arabic. */
.slider-left { left: -18px; }
.slider-right { right: -18px; }

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 900 / 1280;
}
/* Videos are taller than the posters; they fill the same frame, trimming a little top and bottom. */
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }

/* Register */
.register { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.register-intro p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.register-logo { width: 200px; margin-top: 24px; opacity: 0.95; }
.register-form {
  background: var(--card);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.register-form[data-audience="teachers"] .only-kids,
.register-form:not([data-audience="teachers"]) .only-teachers { display: none; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.97rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.field input[type="text"], .field input[type="number"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fbfcff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
html[dir="rtl"] input[dir="ltr"] { text-align: right; }
.field.invalid input, .field.invalid select { border-color: #e0475b; background: #fff6f7; }
.radio-row { display: flex; gap: 24px; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600 !important; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-note { font-size: 0.88rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-status { margin: 10px 0 0; font-weight: 700; text-align: center; min-height: 1.4em; }
.form-status.error { color: #c62c40; }
.form-status.warn { color: #9a6a00; }
.form-status.ok { color: #1c8a4a; }

/* Footer */
.site-footer { background: #d3ecfa; border-top: 1px solid var(--line); padding: 48px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 18px; max-width: 460px; }
.footer-brand img { width: 88px; flex: none; }
.footer-brand p { margin: 0; font-weight: 700; color: var(--navy); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--blue-dark); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding: 18px 0 24px; font-size: 0.9rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .slider-track { --per-view: 3; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 4px; }
  .site-nav .btn { margin-top: 6px; }

  .hero { padding: 40px 0 64px; }
  .hero-inner, .register, .vm-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .course-grid { grid-template-columns: 1fr; }
  .register-logo { display: none; }
  .vm-card, .course-card, .register-form { padding: 24px 20px; }
  .slider-track { --per-view: 2; --gap: 10px; }
  .media-panel { padding: 18px 16px 20px; }
  .slider-btn { width: 38px; height: 38px; }
  .slider-left { left: -12px; }
  .slider-right { right: -12px; }
  .dialog-head { padding: 24px 20px 0; }
  .dialog-body { padding: 8px 20px; }
  .dialog-foot { padding: 14px 20px 20px; }
  .course-media > a { width: 140px; }
  .course-media > video { width: 124px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }

  /* Phone polish (2026-11-16) */
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 28px 0 48px; }
  .hero-inner { gap: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { max-width: 270px; }
  .blob-blue { width: 180px; height: 180px; inset-inline-end: -30px; }
  .blob-gold { width: 150px; height: 150px; inset-inline-start: -30px; }

  /* Values: one per row, icon beside the text, so the text is not squeezed */
  .values-grid { grid-template-columns: 1fr; gap: 12px; }
  .value { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-align: start; padding: 16px 18px; }
  .value-icon { grid-row: span 2; margin: 0; font-size: 1.8rem; }
  .value h3 { margin-bottom: 2px; }
  .motto { font-size: 1.12rem; margin-top: 32px; }

  /* Bigger finger targets */
  .text-link { display: inline-block; padding: 10px 0; }
  .footer-nav { gap: 0 22px; }
  .footer-nav a { display: inline-block; padding: 9px 0; }
  .radio { padding: 8px 0; }
  .filter { padding: 10px 20px; }

  /* Pop-up windows use almost the whole phone screen */
  .course-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; }
  .news-foot .btn-primary { flex: 1 1 100%; }
  .news-foot { gap: 8px; }
  .news-foot .btn-sm { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 0.8rem; white-space: nowrap; border-width: 1.5px; }
  .news-card:first-child .news-text { padding: 22px 20px 24px; }
}

@media (max-width: 360px) {
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-text small { font-size: 0.72rem; }
  .lang-toggle { padding: 8px 10px; }
  .header-inner { gap: 8px; }
  .news-foot .btn-sm { font-size: 0.74rem; padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .course-card, .slider-btn { transition: none; }
  .slider-track { scroll-behavior: auto; }
}
