:root {
  --bg: #0e0d12;
  --bg-soft: #16151c;
  --card: #1b1a22;
  --card-2: #201f29;
  --border: #2b2a35;
  --text: #f1efe9;
  --muted: #a7a2b8;
  --gold: #d4a950;
  --gold-2: #b8863b;
  --gold-soft: rgba(212, 169, 80, 0.12);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Vazirmatn", Tahoma, sans-serif;
  --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

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

button { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section, .section, #main-content { scroll-margin-top: 96px; }

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

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  max-width: calc(100% - 24px);
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--gold);
  color: #221a06;
  font-weight: 700;
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: translateY(0); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #221a06;
  box-shadow: 0 8px 26px rgba(212, 169, 80, 0.28);
}

.btn-gold:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(212, 169, 80, 0.4); }

.btn-outline {
  background: transparent;
  border-color: rgba(241, 239, 233, 0.3);
  color: var(--text);
}

.btn-outline:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.btn-sm { padding: 9px 22px; font-size: 0.85rem; }
.btn-lg { padding: 15px 38px; font-size: 1.05rem; }

button:disabled, .btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 18, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled { background: rgba(14, 13, 18, 0.95); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name { font-family: var(--display); font-size: 1.55rem; letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; }
.nav-links .nav-cta a.btn {
  padding: 9px 22px;
  color: #221a06;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-links .nav-cta a.btn::after { content: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(212, 169, 80, 0.12), transparent 60%),
    radial-gradient(45% 40% at 15% 80%, rgba(212, 169, 80, 0.06), transparent 70%),
    radial-gradient(45% 40% at 85% 80%, rgba(120, 90, 200, 0.08), transparent 70%),
    var(--bg);
}

.hero-inner { position: relative; z-index: 2; padding-block: 120px 80px; }

.hero-kicker {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.35;
  margin-bottom: 20px;
}

.grad-text {
  background: linear-gradient(120deg, #f3d38a, var(--gold) 45%, #f7e3ae);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  height: 44px;
  margin-top: 60px;
}

.eq span {
  width: 6px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--gold-2), var(--gold));
  opacity: 0.85;
  transform-origin: bottom;
  animation: bounce 1.1s ease-in-out infinite alternate;
}

.eq span:nth-child(1) { animation-delay: 0s;   height: 40%; }
.eq span:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.eq span:nth-child(3) { animation-delay: 0.3s;  height: 100%; }
.eq span:nth-child(4) { animation-delay: 0.45s; height: 55%; }
.eq span:nth-child(5) { animation-delay: 0.6s; height: 85%; }
.eq span:nth-child(6) { animation-delay: 0.75s; height: 45%; }
.eq span:nth-child(7) { animation-delay: 0.9s; height: 60%; }
.eq span:nth-child(8) { animation-delay: 1.05s; height: 90%; }
.eq span:nth-child(9) { animation-delay: 1.2s; height: 50%; }
.eq span:nth-child(10) { animation-delay: 1.2s; height: 75%; }
.eq span:nth-child(11) { animation-delay: 1.35s; height: 95%; }
.eq span:nth-child(12) { animation-delay: 1.5s; height: 60%; }

@keyframes bounce {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.float-note {
  position: absolute;
  color: rgba(212, 169, 80, 0.14);
  font-size: 2.4rem;
  user-select: none;
  z-index: 1;
  animation: floaty 9s ease-in-out infinite;
}

.float-note.n1 { top: 18%; right: 8%;  font-size: 3rem; animation-delay: 0s; }
.float-note.n2 { top: 30%; left: 10%; }
.float-note.n3 { top: 55%; right: 14%; font-size: 2rem; animation-delay: 2s; }
.float-note.n4 { top: 65%; left: 18%;  font-size: 2rem; animation-delay: 3s; }
.float-note.n5 { top: 22%; left: 26%;  font-size: 1.8rem; animation-delay: 4s; }
.float-note.n6 { top: 75%; right: 26%; font-size: 2.2rem; animation-delay: 5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(6deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(241, 239, 233, 0.35);
  border-radius: 999px;
  z-index: 2;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--gold);
  animation: hint 1.6s ease infinite;
}

@keyframes hint {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}

.section { padding: 110px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }

.kicker {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.ornament i {
  width: 46px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--gold-2));
}

.ornament i:last-child { background: linear-gradient(to right, transparent, var(--gold-2)); }

.ornament span { color: var(--gold); font-size: 1.1rem; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about-text h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--gold);
}

.about-text p { color: var(--muted); margin-bottom: 16px; }

.feature-list { margin-top: 26px; display: grid; gap: 14px; }

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8d4c8;
}

.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
}

.about-card {
  position: relative;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 38px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #f3d38a, var(--gold-2));
}

.quote-mark { font-size: 3.4rem; line-height: 1; color: var(--gold); opacity: 0.85; }

.about-card blockquote {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.8;
  margin: 10px 0 6px;
}

.quote-caption { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }

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

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 400;
}

.stat span { color: var(--muted); font-size: 0.82rem; }

.courses-head { max-width: 780px; }

.courses-intro {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
}

.course-board {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.course-group {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 34px;
  border-bottom: 1px solid var(--border);
}

.course-group:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.course-group:last-child { border-bottom: 0; }

.course-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.course-group-head > div { min-width: 0; }

.course-index {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 169, 80, 0.3);
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.15rem;
}

.course-group h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.5;
}

.course-count {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8d4c8;
  font-size: 0.92rem;
  line-height: 1.7;
}

.course-chips li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 24px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
  padding: 30px 26px;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #f3d38a, var(--gold-2));
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 169, 80, 0.45);
}

.article-card:focus-within { border-color: rgba(212, 169, 80, 0.45); }

.article-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.5rem;
}

.article-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.65;
}

.article-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.article-more:hover { color: #f3d38a; }

.article-more:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.article-more svg { flex: none; }

.article-page { padding: 140px 0 100px; }

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 860px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 0.85rem;
}

.article-breadcrumb a { color: var(--gold); }
.article-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-breadcrumb span { overflow-wrap: anywhere; }

.article-shell {
  max-width: 860px;
  margin-inline: auto;
  padding: 52px 56px;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-head { text-align: center; margin-bottom: 40px; }

.article-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.article-content {
  color: #d8d4c8;
  font-size: 1.06rem;
  line-height: 2.2;
  overflow-wrap: anywhere;
}

.article-content p { margin-bottom: 24px; }
.article-content p:last-child { margin-bottom: 0; }

.article-quote {
  margin: 0 0 30px;
  padding: 22px 26px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 169, 80, 0.25);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.95;
}

.article-foot {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-start;
}

.cta-band {
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(212, 169, 80, 0.16), transparent 65%),
    var(--bg-soft);
  border-block: 1px solid var(--border);
  padding: 70px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 6px;
}

.cta-inner p { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(212, 169, 80, 0.45); }

.c-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.c-value { color: #d8d4c8; font-size: 0.95rem; }

.c-phone {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  margin: -6px -10px;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  transition: color 0.25s ease;
}

.c-phone:hover { color: var(--gold); }

.c-hours { display: grid; gap: 2px; }

.contact-instagram .btn { margin-top: 14px; padding-inline: 16px; }
.contact-instagram .btn svg { flex: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 20px;
  border: 1px solid rgba(212, 169, 80, 0.45);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.c-sub { color: var(--muted); font-size: 0.85rem; }

.c-hint { color: var(--gold); font-size: 0.8rem; margin-top: auto; padding-top: 12px; }

.contact-address .btn { margin-top: 14px; }

.site-footer {
  background: #0a0910;
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-text { color: var(--muted); font-size: 0.9rem; }

.socials { display: flex; gap: 12px; }

.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

.copyright {
  color: #a7a2b8;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 22px;
  width: 100%;
}

.to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 169, 80, 0.5);
  background: rgba(27, 26, 34, 0.9);
  backdrop-filter: blur(8px);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 90;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover:not(:disabled) { background: var(--gold); color: #221a06; }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

.reveal.reveal-pending { opacity: 0; transform: translateY(26px); }
.contact-card.reveal:not(.reveal-pending):hover { transform: translateY(-6px); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .course-group { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 28px; }
}

@media (max-width: 768px) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .nav { height: auto; flex-direction: column; gap: 20px; padding-block: 18px; }
  html.js .nav-toggle { display: flex; }

  .nav-links {
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 26px 20px 30px;
    gap: 20px;
  }

  html:not(.js) .nav-links { width: 100%; }

  html.js .nav-links {
    position: fixed;
    top: 76px;
    inset-inline: 0;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 99;
  }

  html.js .nav-links.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section { padding: 80px 0; }
  .course-board { border-radius: 20px; }
  .course-group { padding: 22px 20px; }
  .course-group-head { gap: 12px; }
  .course-index { width: 38px; height: 38px; font-size: 1rem; }
  .course-group h3 { font-size: 1.2rem; }
  .course-chips { gap: 8px; }
  .course-chips li { padding: 6px 12px; font-size: 0.88rem; }
  .hero-inner { padding-block: 130px 90px; }
  .cta-inner { justify-content: center; text-align: center; }
  .toast { bottom: 84px; }
  .article-page { padding: 120px 0 80px; }
  .article-shell { padding: 34px 24px; border-radius: 20px; }
  .article-head { margin-bottom: 30px; }
  .article-content { font-size: 1rem; line-height: 2.05; }
  .article-card { min-height: 0; }
  .article-foot { justify-content: center; }
}

@media (max-width: 600px) {
  /* Reserve space below the footer so the fixed back-to-top button never covers copyright text. */
  .site-footer { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal.reveal-pending { opacity: 1; transform: none; }
  .btn:hover,
  .article-card:hover,
  .contact-card:hover, .contact-card.reveal:hover,
  .socials a:hover { transform: none !important; }
}
