:root {
  --blue: #287df0;
  --blue2: #105ed4;
  --mint: #10bdb2;
  --yellow: #ffcf67;
  --ink: #172947;
  --muted: #6b7c92;
  --paper: #ffffff;
  --bg: #f8fbff;
  --soft: #eff7ff;
  --line: #e5edf7;
  --shadow: 0 20px 70px rgba(22, 66, 119, 0.09);
  --radius: 24px;
  --display: "Manrope", "Tajawal", sans-serif;
  --body: "DM Sans", "Tajawal", sans-serif;
}
[data-theme="dark"] {
  --blue: #62a4ff;
  --blue2: #438ff3;
  --mint: #50d6ca;
  --yellow: #ffd984;
  --ink: #ecf5ff;
  --muted: #aec0d3;
  --paper: #1b2b40;
  --bg: #101c2c;
  --soft: #22354c;
  --line: #354861;
  --shadow: 0 20px 65px rgba(0, 0, 0, 0.18);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body,
button,
input,
textarea,
select {
  font-family: var(--body);
}
button,
input,
textarea,
select {
  font-size: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--mint);
}
p {
  line-height: 1.8;
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin: 0;
}
h1 {
  font-size: clamp(48px, 5.4vw, 82px);
  font-weight: 800;
}
h2 {
  font-size: clamp(31px, 3.55vw, 49px);
  font-weight: 800;
}
h3 {
  font-size: 23px;
}
small {
  font-size: 12px;
}
.container {
  width: min(1180px, calc(100% - 72px));
  margin-inline: auto;
}
.section {
  padding: 108px 0;
}
.section-sm {
  padding: 72px 0;
}
.section-title {
  max-width: 740px;
  margin: 0 auto 45px;
  text-align: center;
}
.section-title p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 16px;
}
.section-title.left {
  text-align: start;
  margin: 0 0 34px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.145em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow:before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--mint);
  border-radius: 8px;
}
.muted {
  color: var(--muted);
}
.highlight {
  color: var(--blue);
}
.mint {
  color: var(--mint);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.space-between {
  justify-content: space-between;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(29, 76, 127, 0.035);
  overflow: hidden;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 0;
  border-radius: 100px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  color: #fff;
  background: #287df0;
  box-shadow: 0 10px 24px rgba(40, 125, 240, 0.23);
}
.btn-primary:hover {
  background: #1269df;
}
.btn-light {
  background: #fff;
  color: #172947;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-white-outline {
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.26);
  color: #173754;
  backdrop-filter: blur(7px);
}
.btn-yellow {
  background: var(--yellow);
  color: #24344d;
}
.btn-sm {
  padding: 11px 19px;
  font-size: 12px;
}
.arrow {
  font-size: 18px;
  line-height: 1;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 100px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon.lg {
  width: 25px;
  height: 25px;
}
.top-header {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: 0;
  padding-top: 24px;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    padding 0.25s;
}
.top-header.inner {
  position: sticky;
  background: var(--paper);
  padding: 12px 0;
  box-shadow: 0 3px 25px rgba(30, 70, 118, 0.08);
}
.top-header.scrolled {
  position: fixed;
  padding: 10px 0;
  background: var(--paper);
  box-shadow: 0 5px 35px rgba(30, 70, 118, 0.1);
  animation: drop 0.28s ease;
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 10px 16px 10px 23px;
  box-shadow: 0 9px 40px rgba(33, 73, 116, 0.095);
  backdrop-filter: blur(18px);
}
[dir="rtl"] .nav-shell {
  padding: 10px 23px 10px 16px;
}
.top-header.inner .nav-shell,
.top-header.scrolled .nav-shell {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  min-height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue);
  position: relative;
  color: white;
  font-weight: 900;
  font-size: 24px;
  overflow: hidden;
  transform: rotate(-8deg);
}
.logo-mark:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--yellow);
  top: -7px;
  right: -5px;
}
.logo-text strong {
  display: block;
  letter-spacing: -0.055em;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 800;
}
.logo-text small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.19em;
  margin-top: 3px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-inline: auto;
}
.nav-link {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: #4e6078;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #287df0;
}
.nav-link.active:after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
  margin: 4px auto -9px;
}
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  min-width: 205px;
  background: var(--paper);
  padding: 8px;
  border-radius: 13px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 12px 13px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}
.dropdown-menu a:hover {
  background: var(--soft);
  color: var(--blue);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.utility {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 9px;
}
.utility:hover {
  background: var(--soft);
}
.mobile-trigger {
  display: none;
  border: 0;
  background: var(--soft);
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: var(--ink);
}
.mobile-menu {
  display: none;
}
.hero {
  height: min(850px, 100svh);
  min-height: 680px;
  position: relative;
  overflow: hidden;
  background: #dcecf7;
}

.hero-bottom {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-media,
.hero-video,
.hero-poster,
.hero-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media {
  opacity: 0;
  transition: opacity 1.05s;
  pointer-events: none;
}
.hero-media.active {
  opacity: 1;
}
.hero-video {
  object-fit: cover;
  object-position: center center;
}
.hero-poster {
  object-fit: cover;
}
.hero-tint {
  z-index: 1;
  background: linear-gradient(90deg, rgba(247, 252, 255, 0.98) 0%, rgba(246, 251, 255, 0.94) 25%, rgba(245, 251, 255, 0.71) 45%, rgba(237, 249, 255, 0.1) 86%), linear-gradient(0deg, rgba(225, 244, 255, 0.89) 0%, transparent 28%);
}
[dir="rtl"] .hero-tint {
  background: linear-gradient(270deg, rgba(247, 252, 255, 0.98) 0%, rgba(246, 251, 255, 0.94) 25%, rgba(245, 251, 255, 0.71) 45%, rgba(237, 249, 255, 0.1) 86%), linear-gradient(0deg, rgba(225, 244, 255, 0.89) 0%, transparent 28%);
}
.hero .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-content {
  max-width: 660px;
  padding-top: 66px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1d719b;
  font-weight: 800;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid #e4f3fd;
  border-radius: 100px;
  padding: 10px 16px;
  margin-bottom: 27px;
}
.hero-eyebrow:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #08bbaf;
  box-shadow: 0 0 0 5px #d7f7ee;
}
.hero h1 {
  color: #142946;
  font-size: clamp(38px, 4.2vw, 62px);
  max-width: 750px;
  line-height: 1.11;
}
.hero h1 em {
  font-style: normal;
  color: #287df0;
}
.hero p {
  color: #536a83;
  font-size: 17px;
  max-width: 520px;
  margin: 25px 0 29px;
  line-height: 1.95;
}
.hero-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 47px;
  align-items: center;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #18344d;
  font-size: 13px;
  font-weight: 700;
}
.stat-icon {
  height: 43px;
  width: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(51, 114, 173, 0.1);
  color: #287df0;
}

.hero-dots,
.hero-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-dots button {
  width: 36px;
  height: 5px;
  border-radius: 7px;
  background: #9dbfd3;
  border: 0;
  padding: 0;
  transition: 0.3s;
}
.hero-dots button.active {
  width: 59px;
  background: #287df0;
}
.hero-controls button {
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #24415f;
  backdrop-filter: blur(10px);
}
.hero-controls button:hover {
  background: white;
}
.hero-index {
  font-size: 12px;
  font-weight: 800;
  color: #315774;
  margin-inline-end: 10px;
}
.hero-dots-label {
  font-size: 12px;
  font-weight: 800;
  color: #315774;
  margin-inline-end: 12px;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 38px;
  background: var(--bg);
  clip-path: polygon(0% 70%, 20% 85%, 45% 54%, 70% 85%, 100% 58%, 100% 100%, 0% 100%);
}
.welcome-strip {
  background: var(--bg);
  padding: 34px 0;
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.welcome-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 9px;
}
.welcome-item .feature-ic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: #e9f4ff;
  color: #287df0;
  flex-shrink: 0;
}
.welcome-item:nth-child(2) .feature-ic {
  background: #e2fbf6;
  color: #0ba99c;
}
.welcome-item:nth-child(3) .feature-ic {
  background: #fff5dc;
  color: #c28a1b;
}
.welcome-item:nth-child(4) .feature-ic {
  background: #f0edff;
  color: #7f61d0;
}
.welcome-item strong {
  display: block;
  font-size: 14px;
}
.welcome-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.learning {
  background: var(--paper);
}
.learning-card {
  min-height: 404px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #deedfa;
}
.learning-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  transition: transform 0.65s;
}
.learning-card:hover img {
  transform: scale(1.055);
}
.learning-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 39, 68, 0.85), rgba(13, 39, 68, 0.05) 83%);
}
.learning-card .content {
  position: absolute;
  bottom: 33px;
  left: 36px;
  right: 36px;
  color: #fff;
  z-index: 2;
}
.learning-card .content p {
  font-size: 14px;
  margin: 10px 0 21px;
  max-width: 375px;
  color: #eaf2ff;
}
.learning-card .content .eyebrow {
  color: #e7fcff;
  margin-bottom: 9px;
}
.learning-card .content h3 {
  font-size: 34px;
}
.learning-card .eyebrow:before {
  background: var(--yellow);
}
.course-card {
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.course-img {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}
.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.course-card:hover .course-img img {
  transform: scale(1.06);
}
.tag {
  display: inline-flex;
  padding: 8px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
  border-radius: 100px;
  background: #e9f5ff;
  color: #2471d8;
}
.tag.green {
  background: #e8faf4;
  color: #099a8e;
}
.tag.gold {
  background: #fff5dc;
  color: #ab7a1e;
}
.course-img .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  box-shadow: 0 6px 20px #0000000e;
}
.course-body {
  padding: 22px 23px;
}
.course-body h3 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
.course-body p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
  min-height: 52px;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.course-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecf5ff;
  color: #287df0;
  font-size: 20px;
}
.section-courses {
  background: var(--bg);
}
.section-footer {
  text-align: center;
  margin-top: 38px;
}
.levels-section {
  background: #e8f7ff;
  background: linear-gradient(110deg, #e8f8ff, #f1fffb 60%, #fff9e9);
  color: #17304c;
}
.levels-section .section-title p {
  color: #577087;
}
.level-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.level {
  border-radius: 19px;
  background: white;
  padding: 24px 15px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(20, 96, 161, 0.06);
}
.level:nth-child(2),
.level:nth-child(5) {
  transform: translateY(-9px);
}
.level b {
  font-size: 27px;
  display: block;
  color: #287df0;
}
.level:nth-child(2n) b {
  color: #10adac;
}
.level:nth-child(3n) b {
  color: #d08d26;
}
.level span {
  font-size: 12px;
  display: block;
  font-weight: 700;
  margin-top: 7px;
  color: #48617b;
}
.about-intro {
  background: var(--paper);
}
.about-visual {
  position: relative;
  padding: 0 44px 36px 0;
  min-height: 490px;
}
.about-visual > img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  border-radius: 35px;
}
.about-blob {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 24px;
  padding: 25px;
  background: var(--yellow);
  color: #1c3451;
  box-shadow: var(--shadow);
  max-width: 222px;
}
.about-blob strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
}
.about-blob small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 30px;
}
.check-list li {
  display: flex;
  gap: 11px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 14px;
}
.check-mark {
  display: grid;
  place-items: center;
  background: #ddf8f1;
  color: #159e8e;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  font-weight: 900;
}
.teacher-card {
  position: relative;
  overflow: visible;
  text-align: center;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.teacher-card:hover {
  transform: translateY(-10px);
}

.teacher-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center 27%;
  position: relative;
  z-index: 2;
  transition: transform 0.55s ease;
}

.teacher-card:hover img {
  transform: translateY(-7px) scale(1.035);
}

/* Brush stroke information panel */
.teacher-card .body {
  top: -5px;
  --paint: #ffcf67;
  position: relative;
  z-index: 3;
  background: var(--paint);
  padding: 29px 22px 30px;
  margin-top: -2px;
  isolation: isolate;

  clip-path: polygon(2% 4%, 17% 1%, 37% 4%, 62% 0%, 84% 3%, 99% 1%, 97% 13%, 100% 20%, 98% 39%, 100% 63%, 97% 79%, 99% 94%, 81% 97%, 64% 95%, 42% 100%, 21% 96%, 1% 99%, 4% 85%, 0% 70%, 3% 51%, 0% 31%, 4% 17%);

  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.teacher-card .body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.35) 38%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
}

.teacher-card:hover .body::before {
  transform: translateX(120%);
}

.teacher-card .body::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 5px;
  left: -14px;
  top: 17px;
  background: #287cf0;
  border-radius: 60%;
  transform: rotate(-5deg);
  opacity: 0.85;
  transition: width 0.4s ease;
}

.teacher-card:hover .body::after {
  width: 135px;
}

.teacher-card h3 {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  color: #10254b;
  margin: 0;
  transition: transform 0.35s ease;
}

.teacher-card:hover h3 {
  transform: translateY(-3px);
}

.teacher-card p {
  position: relative;
  color: #586477;
  font-size: 13px;
  margin: 9px 0 16px;
}

.teacher-card .chip {
  position: relative;
  display: inline-block;
  color: #287cf0;
  background: #eff7ff;
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.teacher-card:hover .chip {
  background: #287cf0;
  color: #fff;
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 7px 16px rgba(40, 124, 240, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .teacher-card,
  .teacher-card img,
  .teacher-card .body,
  .teacher-card .body::before,
  .teacher-card .body::after,
  .teacher-card h3,
  .teacher-card .chip {
    transition: none;
  }
}

.spotlight {
  background: var(--paper);
}
.spotlight-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #e9f6ff;
  min-height: 430px;
}
.spotlight-feature > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.spotlight-copy {
  padding: 55px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spotlight-copy h2 {
  color: #183451;
  font-size: clamp(30px, 3.4vw, 47px);
}
.spotlight-copy p {
  color: #536e85;
  font-size: 15px;
  margin: 17px 0 22px;
}
.quote-symbol {
  color: #ffc34d;
  font-size: 60px;
  font-weight: 900;
  line-height: 0.8;
  margin-bottom: 18px;
}
.blog-card .image {
  height: 204px;
  object-fit: cover;
  width: 100%;
}
.blog-card .body {
  padding: 25px;
}
.blog-card h3 {
  font-size: 18px;
  line-height: 1.45;
}
.blog-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 17px;
}
.text-link {
  font-size: 13px;
  color: var(--blue);
  font-weight: 800;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.cta-band {
  border-radius: 35px;
  background: linear-gradient(110deg, #2779ed 5%, #2e9fdb 65%, #13b7af 100%);
  color: #fff;
  padding: 54px 63px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-band:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 32px solid #ffffff16;
  border-radius: 100%;
  right: 25%;
  top: -160px;
}
.cta-band > div {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: 37px;
  max-width: 570px;
}
.cta-band p {
  color: #e3f7ff;
  margin-top: 10px;
}
.footer {
  background: #eaf4fd;
  border-top: 1px solid #e0effb;
  padding: 70px 0 0;
  color: #243a55;
}
.footer .logo-text strong {
  color: #203b58;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 55px;
}
.footer-col h4 {
  font-size: 14px;
  margin: 7px 0 23px;
  font-weight: 900;
}
.footer-col p {
  font-size: 13px;
  color: #638098;
  line-height: 1.9;
  margin: 20px 0;
}
.footer-links {
  display: grid;
  gap: 13px;
}
.footer-links a {
  font-size: 13px;
  color: #59738d;
}
.footer-links a:hover {
  color: #287df0;
}
.footer-bottom {
  border-top: 1px solid #cfdfef;
  margin-top: 60px;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #698198;
  font-size: 12px;
}
.foot-social {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}
.social-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d8eafb;
  color: #287df0;
  font-weight: 800;
}
.page-banner {
  background: linear-gradient(115deg, #f8fbff, #f5fffd 68%, #fff8e9);
  padding: 95px 0 82px;
  position: relative;
  overflow: hidden;
}
.page-banner:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 55px solid #d0ebff63;
  border-radius: 50%;
  right: -130px;
  top: -200px;
}
.page-banner .container {
  position: relative;
  z-index: 1;
}
.page-banner h1 {
  font-size: clamp(39px, 4.5vw, 62px);
  color: #17304b;
  max-width: 850px;
}
.page-banner p {
  font-size: 16px;
  color: #59748b;
  max-width: 660px;
  margin-top: 18px;
}
.breadcrumbs {
  font-size: 12px;
  font-weight: 800;
  color: #3884c7;
  margin-bottom: 23px;
}
.breadcrumbs span {
  color: #829caf;
  margin: 0 9px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}
.filter {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 11px 19px;
  border-radius: 100px;
}
.filter.active,
.filter:hover {
  background: #287df0;
  border-color: #287df0;
  color: #fff;
}
.teacher-page .teacher-card img {
  height: 300px;
}
.teacher-info .role {
  color: var(--blue);
  font-weight: 800;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 35px 0;
}
.info-tile {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
  padding: 24px;
}
.info-tile .icon {
  color: var(--blue);
  width: 25px;
  height: 25px;
}
.info-tile strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 14px;
}
.info-tile p {
  font-size: 13px;
  color: var(--muted);
}
.story-card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
}
.story-card .body {
  padding: 26px;
}
.story-card h3 {
  font-size: 20px;
  margin: 8px 0 10px;
}
.story-card p {
  font-size: 13px;
  color: var(--muted);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 45px;
}
.detail-cover {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 25px;
}
.detail-box {
  padding: 27px;
  position: sticky;
  top: 112px;
}
.detail-box .btn {
  width: 100%;
  margin-top: 25px;
}
.detail-list {
  list-style: none;
  margin: 21px 0;
  padding: 0;
}
.detail-list li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.detail-list li:last-child {
  border: 0;
}
.detail-list span {
  color: var(--muted);
}
.detail-section {
  padding: 30px 0;
}
.detail-section h3 {
  margin-bottom: 16px;
}
.detail-section p {
  color: var(--muted);
  font-size: 15px;
}
.form-wrap {
  max-width: 850px;
  margin: 0 auto;
}
.form-card {
  padding: 38px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 13px;
  font-weight: 800;
}
.field input,
.field select,
.field textarea {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  min-height: 50px;
}
.field textarea {
  resize: vertical;
  min-height: 135px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #77b9ff;
  border-color: transparent;
}
.form-note {
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 22px;
}
.notice {
  border: 1px solid #bae5dd;
  background: #e8fbf5;
  color: #167467;
  border-radius: 13px;
  padding: 17px;
  margin-top: 20px;
  font-size: 14px;
}
.quiz-wrap {
  max-width: 850px;
  margin: auto;
}
.quiz-card {
  padding: 33px;
}
.quiz-step {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 18px;
}
.progress {
  height: 7px;
  border-radius: 30px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 35px;
}
.progress span {
  display: block;
  background: var(--mint);
  height: 100%;
  border-radius: 30px;
  transition: width 0.25s;
}
.quiz-question {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 24px;
}
.quiz-answers {
  display: grid;
  gap: 11px;
}
.quiz-answer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-align: start;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 600;
}
.quiz-answer.selected {
  border: 2px solid #287df0;
  background: var(--soft);
}
.quiz-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}
.faq {
  max-width: 850px;
  margin: auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.faq-item summary:after {
  content: "+";
  font-size: 20px;
  color: var(--blue);
}
.faq-item[open] summary:after {
  content: "−";
}
.faq-item p {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 14px;
}
.about-split {
  align-items: center;
}
.contact-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
  align-items: start;
}
.contact-card {
  padding: 28px;
}
.contact-line {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 23px 0;
}
.contact-line .stat-icon {
  flex-shrink: 0;
}
.contact-line strong {
  font-size: 14px;
}
.contact-line p {
  color: var(--muted);
  font-size: 13px;
}
.empty-note {
  border: 1px dashed var(--line);
  background: var(--paper);
  border-radius: 20px;
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
#toast {
  position: fixed;
  z-index: 10000;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 110px);
  opacity: 0;
  pointer-events: none;
  background: #183955;
  color: white;
  padding: 15px 26px;
  border-radius: 13px;
  box-shadow: var(--shadow);
  transition: 0.4s;
  font-size: 14px;
  text-align: center;
  max-width: 90vw;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.appear {
  animation: appear 0.55s ease both;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--soft);
  color: var(--blue);
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 100px;
  font-weight: 800;
}
.article-copy p {
  margin: 18px 0;
  color: var(--muted);
}
.article-copy h3 {
  margin: 25px 0 11px;
}
.article-feature {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 24px;
  margin: 23px 0;
}
.note-box {
  background: var(--soft);
  padding: 22px 24px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}
.demo-bar {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  color: #49617c;
  border: 1px solid #dceaf7;
  box-shadow: 0 5px 25px rgba(20, 59, 99, 0.13);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
[dir="rtl"] .demo-bar {
  right: auto;
  left: 20px;
}
@keyframes drop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes appear {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
[data-theme="dark"] .nav-shell {
  background: rgba(27, 43, 64, 0.94);
  border-color: #40556e;
}
[data-theme="dark"] .nav-link {
  color: #d8e5f1;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--blue);
}
[data-theme="dark"] .hero-tint {
  background: linear-gradient(90deg, rgba(15, 28, 44, 0.97), rgba(17, 32, 49, 0.86) 32%, rgba(15, 28, 44, 0.48) 61%, rgba(15, 28, 44, 0.08)), linear-gradient(0deg, rgba(15, 28, 44, 0.92), transparent 30%);
}
[dir="rtl"][data-theme="dark"] .hero-tint {
  background: linear-gradient(270deg, rgba(15, 28, 44, 0.97), rgba(17, 32, 49, 0.86) 32%, rgba(15, 28, 44, 0.48) 61%, rgba(15, 28, 44, 0.08)), linear-gradient(0deg, rgba(15, 28, 44, 0.92), transparent 30%);
}
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero-stat,
[data-theme="dark"] .hero-dots-label,
[data-theme="dark"] .hero-index {
  color: #f0f7ff;
}
[data-theme="dark"] .hero-eyebrow {
  background: #1b3044;
  color: #a7ecf2;
  border-color: #375269;
}
[data-theme="dark"] .hero-stat .stat-icon {
  background: #254464;
  color: #b9dafa;
}
[data-theme="dark"] .welcome-item .feature-ic {
  background: var(--soft);
  color: var(--blue);
}
[data-theme="dark"] .levels-section {
  background: linear-gradient(115deg, #183149, #203b45, #3b3629);
}
[data-theme="dark"] .levels-section .section-title h2,
[data-theme="dark"] .levels-section .section-title p {
  color: #f3f9ff;
}
[data-theme="dark"] .level {
  background: #243c54;
}
[data-theme="dark"] .level span {
  color: #d8e9f7;
}
[data-theme="dark"] .spotlight-feature {
  background: #203c52;
}
[data-theme="dark"] .spotlight-copy h2 {
  color: #eff7ff;
}
[data-theme="dark"] .spotlight-copy p {
  color: #c1d5e6;
}
[data-theme="dark"] .page-banner {
  background: linear-gradient(115deg, #19324a, #183932);
}
[data-theme="dark"] .page-banner h1 {
  color: #eef6ff;
}
[data-theme="dark"] .page-banner p {
  color: #b4cddd;
}
[data-theme="dark"] .footer {
  background: #17283e;
  border-color: #2c4561;
  color: #eff5fc;
}
[data-theme="dark"] .footer .logo-text strong {
  color: #f2f9ff;
}
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-col p,
[data-theme="dark"] .footer-bottom {
  color: #a8bfd4;
}
[data-theme="dark"] .footer-bottom {
  border-color: #35516e;
}
[data-theme="dark"] .notice {
  background: #143b34;
  border-color: #236351;
  color: #a5f2dd;
}
[data-theme="dark"] .course-more {
  background: #294463;
}
[data-theme="dark"] .logo-text small {
  color: #bbd1e2;
}
[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: "Tajawal", sans-serif;
  letter-spacing: 0;
}
[dir="rtl"] .nav-link {
  font-size: 13px;
}
[dir="rtl"] .course-img .tag {
  left: auto;
  right: 16px;
}
[dir="rtl"] .about-visual {
  padding: 0 0 36px 44px;
}
[dir="rtl"] .about-blob {
  right: auto;
  left: 0;
}
[dir="rtl"] .learning-card .content {
  left: 36px;
  right: 36px;
}
[dir="rtl"] .hero h1 {
  line-height: 1.22;
}
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}
[dir="rtl"] .spotlight-copy h2 {
  line-height: 1.4;
}
@media (max-width: 1150px) {
  .container {
    width: min(1050px, calc(100% - 48px));
  }
  .nav-menu {
    gap: 16px;
  }
  .nav-link {
    font-size: 11px;
  }
  .nav-actions > .btn {
    display: none;
  }
  .welcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .nav-menu {
    display: none;
  }
  .mobile-trigger {
    display: grid;
    place-items: center;
  }
  .nav-actions > .btn {
    display: inline-flex;
  }
  .mobile-menu.open {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
    max-height: 70vh;
    overflow: auto;
  }
  .mobile-menu a {
    display: block;
    padding: 13px 15px;
    font-weight: 800;
    font-size: 14px;
    border-radius: 10px;
  }
  .mobile-menu a:hover {
    background: var(--soft);
    color: var(--blue);
  }
  .mobile-subheading {
    font-size: 11px;
    color: var(--muted);
    padding: 14px 15px 5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
  .spotlight-copy {
    padding: 35px;
  }
  .hero {
    min-height: 680px;
  }
  .hero-content {
    max-width: 590px;
  }
  .about-visual > img {
    height: 410px;
  }
  .about-visual {
    min-height: 430px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-box {
    position: static;
  }
  .contact-split {
    grid-template-columns: 1fr 1.25fr;
  }
}
@media (max-width: 650px) {
  .container {
    width: calc(100% - 34px);
  }
  .section {
    padding: 70px 0;
  }
  .section-sm {
    padding: 48px 0;
  }
  .section-title {
    margin-bottom: 30px;
  }
  .nav-shell {
    padding: 8px 11px;
    min-height: 58px;
    border-radius: 14px;
    gap: 8px;
  }
  .top-header {
    padding-top: 13px;
  }
  .top-header.inner,
  .top-header.scrolled {
    padding: 8px 0;
  }
  .logo-mark {
    width: 35px;
    height: 35px;
    font-size: 21px;
  }
  .logo-text strong {
    font-size: 18px;
  }
  .logo-text small {
    font-size: 8px;
  }
  .nav-actions {
    gap: 2px;
  }
  .nav-actions > .btn {
    display: none;
  }
  .utility {
    padding: 8px 7px;
  }
  .utility.lang-toggle {
    font-size: 11px;
  }
  .mobile-trigger {
    width: 39px;
    height: 39px;
  }
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 90px; /* مسافة كافية في الأسفل لأزرار التحريك */
  }

  .hero .container {
    align-items: flex-start; /* محاذاة المحتوى للأعلى داخل المساحة */
    padding-bottom: 20px;
  }

  /* جعل شريط التحكم السفلي يتخذ وضعية طبيعية غير متداخلة */
  .hero-bottom {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 30px;
    padding: 0 17px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
  }
  .hero-tint {
    background: linear-gradient(0deg, rgba(246, 252, 255, 1) 0%, rgba(247, 252, 255, 0.98) 20%, rgba(247, 252, 255, 0.84) 47%, rgba(247, 252, 255, 0.08) 100%);
  }
  [dir="rtl"] .hero-tint {
    background: linear-gradient(0deg, rgba(246, 252, 255, 1), rgba(247, 252, 255, 0.98) 20%, rgba(247, 252, 255, 0.84) 47%, rgba(247, 252, 255, 0.08) 100%);
  }
  [data-theme="dark"] .hero-tint,
  [dir="rtl"][data-theme="dark"] .hero-tint {
    background: linear-gradient(0deg, rgba(15, 28, 44, 1), rgba(15, 28, 44, 0.95) 27%, rgba(15, 28, 44, 0.8) 47%, rgba(15, 28, 44, 0.05));
  }
  .hero-video,
  .hero-poster {
    object-position: center top;
  }

  .hero-content {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(39px, 10.5vw, 58px);
    line-height: 1.14;
  }
  .hero p {
    font-size: 14px;
    margin: 15px 0 22px;
    line-height: 1.75;
  }
  .hero-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    padding: 7px 12px;
  }
  .hero-buttons .btn {
    padding: 13px 17px;
    font-size: 11px;
  }
  .hero-stats {
    margin-top: 27px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .hero-stat {
    font-size: 11px;
    gap: 7px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .hero-dots-label {
    display: none;
  }
  .hero-controls button {
    width: 39px;
    height: 39px;
  }
  .hero-dots button {
    width: 22px;
  }
  .hero-dots button.active {
    width: 39px;
  }
  .welcome-strip {
    padding: 11px 0;
  }
  .welcome-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .welcome-item {
    padding: 13px 2px;
    gap: 10px;
  }
  .welcome-item .feature-ic {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }
  .welcome-item .feature-ic .icon {
    width: 19px;
    height: 19px;
  }
  .welcome-item strong {
    font-size: 11px;
  }
  .welcome-item span {
    font-size: 10px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .info-grid,
  .spotlight-feature,
  .contact-split {
    grid-template-columns: 1fr;
  }
  .learning-card {
    min-height: 350px;
  }
  .learning-card .content {
    bottom: 28px;
    left: 25px;
    right: 25px;
  }
  .learning-card .content h3 {
    font-size: 29px;
  }
  .level-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .level {
    padding: 18px 7px;
  }
  .level:nth-child(2),
  .level:nth-child(5) {
    transform: none;
  }
  .level b {
    font-size: 25px;
  }
  .level span {
    font-size: 10px;
  }
  .about-visual {
    padding: 0 17px 30px 0;
    min-height: 330px;
  }
  .about-visual > img {
    height: 340px;
    border-radius: 20px;
  }
  .about-blob {
    padding: 15px;
    max-width: 160px;
  }
  .about-blob strong {
    font-size: 20px;
  }
  .about-blob small {
    font-size: 10px;
  }
  .spotlight-feature > img {
    height: 260px;
  }
  .spotlight-copy {
    padding: 30px;
  }
  .spotlight-copy h2 {
    font-size: 31px;
  }
  .section-title h2 {
    font-size: 31px;
  }
  .teacher-card img {
    height: 310px;
  }
  .cta-band {
    padding: 34px 25px;
    display: block;
    border-radius: 23px;
  }
  .cta-band h2 {
    font-size: 29px;
  }
  .cta-band .btn {
    margin-top: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1/-1;
  }
  .footer {
    padding-top: 45px;
  }
  .footer-bottom {
    flex-direction: column;
    margin-top: 35px;
    padding-bottom: 50px;
  }
  .page-banner {
    padding: 60px 0 55px;
  }
  .page-banner h1 {
    font-size: 37px;
  }
  .page-banner p {
    font-size: 14px;
  }
  .course-img {
    height: 245px;
  }
  .form-card,
  .quiz-card {
    padding: 24px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-cover {
    height: 250px;
  }
  .quiz-question {
    font-size: 21px;
  }
  .demo-bar {
    bottom: 7px;
    right: 8px;
    font-size: 10px;
    padding: 7px 10px;
  }
  .hero-wave {
    height: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ExcelETA: authentic content additions; original components preserved */
.social-link {
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.social-link:hover {
  transform: translateY(-3px);
  background: #c5e5ff;
}
.social-link .icon {
  width: 19px;
  height: 19px;
}
.footer-col p a,
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.footer-col p a:hover,
.footer-bottom a:hover {
  color: var(--blue);
}
.footer-bottom .developer-credit {
  white-space: nowrap;
}
.footer-bottom .developer-credit a {
  font-weight: 800;
  color: var(--blue);
}
.program-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 225px;
}
.program-item .stat-icon {
  background: var(--soft);
  color: var(--blue);
}
.program-item h3 {
  font-size: 22px;
  margin: 0;
}
.program-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.schedule-section {
  background: var(--paper);
}
.schedule-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: var(--shadow);
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  background: var(--paper);
  text-align: start;
}
.schedule-table th {
  background: var(--soft);
  font-size: 13px;
  color: var(--ink);
  text-align: start;
  white-space: nowrap;
  padding: 21px 23px;
}
.schedule-table td {
  padding: 22px 23px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  vertical-align: top;
}
.schedule-table td strong {
  color: var(--ink);
}
.schedule-time {
  display: block;
  white-space: nowrap;
  line-height: 1.9;
  text-align: start;
}
.schedule-status {
  display: inline-flex;
  background: #e6f8f0;
  color: #198566;
  border-radius: 30px;
  font-weight: 800;
  padding: 7px 13px;
  font-size: 12px;
  white-space: nowrap;
}
[data-theme="dark"] .schedule-status {
  background: #194b40;
  color: #8de6c2;
}
.review-card {
  padding: 29px;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card .quote-glyph {
  font-family: Georgia, serif;
  color: var(--blue);
  font-size: 56px;
  line-height: 0.8;
}
.review-card p {
  line-height: 1.8;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.review-card strong {
  color: var(--ink);
  font-size: 13px;
}
.review-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 36px;
}
.review-links a {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.diploma-section {
  background: var(--bg);
}
.diploma-card {
  padding: 30px;
  overflow: hidden;
}
.diploma-card h3 {
  font-size: 25px;
  margin: 0 0 10px;
}
.diploma-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 25px;
}
.diploma-steps {
  display: grid;
  gap: 11px;
}
.diploma-step {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.diploma-step span {
  padding: 7px 10px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.diploma-step span.level-tag {
  background: #def5f0;
  color: #167568;
}
[data-theme="dark"] .diploma-step span.level-tag {
  background: #1b4a46;
  color: #a8eadd;
}
.placement-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(105deg, #e4f4ff, #edfbf4 70%, #fff9e5);
  border: 1px solid #deedf6;
  padding: 28px 32px;
  border-radius: 22px;
  margin-top: 28px;
}
.placement-highlight h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #194a70;
}
.placement-highlight p {
  font-size: 14px;
  color: #59758a;
  line-height: 1.8;
}
.placement-highlight .btn {
  flex-shrink: 0;
}
.policy-lead {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 33px;
  border-radius: 22px;
  margin-bottom: 27px;
}
.policy-lead h2 {
  font-size: 27px;
  margin: 15px 0;
}
.policy-lead p {
  color: var(--muted);
  line-height: 2.15;
  font-size: 15px;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.policy-card {
  padding: 28px;
  min-width: 0;
}
.policy-number {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--blue);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 17px;
}
.policy-card h3 {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.policy-card ul {
  padding: 0 21px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.policy-card li {
  margin: 9px 0;
}
.policy-journey {
  background: linear-gradient(120deg, #e9f7ff, #effcf5);
  border-radius: 22px;
  padding: 33px;
  margin-top: 26px;
  color: #164965;
}
.policy-journey h2 {
  font-size: 24px;
}
.policy-journey p,
.policy-journey li {
  font-size: 15px;
  line-height: 2;
}
.policy-journey ol {
  padding-inline-start: 24px;
}
.policy-journey li {
  margin: 12px 0;
}
.policy-ack {
  padding: 32px;
  margin-top: 28px;
}
.policy-ack h2 {
  font-size: 23px;
  margin-bottom: 18px;
}
.policy-ack > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}
.policy-form {
  margin-top: 24px;
}
.policy-sign-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 24px;
  margin-bottom: 8px;
}
#policy-sign {
  background: #fff;
  border: 2px dashed #9fcbe8;
  border-radius: 14px;
  display: block;
  touch-action: none;
  width: 100%;
  max-width: 850px;
  height: 185px;
  cursor: crosshair;
  margin-top: 13px;
}
.policy-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.policy-ack .form-note {
  line-height: 1.9;
  margin-top: 14px;
}
/* WhatsApp floating chat */
.wa-widget {
  position: fixed;
  z-index: 910;
  right: 22px;
  bottom: 22px;
  font-family: var(--body);
  direction: ltr;
}
.wa-fab {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #22c55e;
  color: #fff;
  border: 0;
  box-shadow: 0 9px 30px rgba(13, 122, 63, 0.24);
  border-radius: 100px;
  padding: 13px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.wa-fab:hover,
.wa-fab.active {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(13, 122, 63, 0.32);
}
.wa-fab .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
.wa-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 15px);
  width: min(360px, calc(100vw - 34px));
  background: #fff;
  border: 1px solid #d4e7dd;
  border-radius: 21px;
  box-shadow: 0 24px 72px rgba(13, 60, 41, 0.23);
  overflow: hidden;
  direction: inherit;
  animation: appear 0.22s ease both;
}
.wa-panel[hidden] {
  display: none !important;
}
.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0c8656;
  color: white;
  padding: 19px 16px;
}
.wa-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}
.wa-avatar .icon {
  width: 24px;
  height: 24px;
}
.wa-head-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wa-head-info strong {
  font-size: 16px;
}
.wa-head-info small {
  color: #e1fff0;
  font-size: 11px;
}
.wa-close {
  border: 0;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  color: #fff;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-left: auto;
}
.wa-close .icon {
  width: 16px;
  height: 16px;
}
.wa-body {
  padding: 20px 17px 18px;
  background: linear-gradient(135deg, #f2faf6, #eef9f3);
  color: #27433c;
}
.wa-time {
  font-size: 11px;
  color: #698279;
  font-weight: 800;
}
.wa-bubble {
  font-size: 14px;
  line-height: 1.85;
  background: #fff;
  padding: 15px;
  border-radius: 3px 15px 15px 15px;
  box-shadow: 0 2px 10px #12482d13;
  margin: 12px 0 18px;
}
.wa-start {
  background: #22b863;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 13px;
  text-align: center;
}
.wa-start:hover {
  background: #14994d;
  color: #fff;
}
.wa-start .icon {
  width: 18px;
  height: 18px;
}
[dir="rtl"] .wa-widget {
  direction: rtl;
  right: auto;
  left: 20px;
}
[dir="rtl"] .wa-panel {
  right: auto;
  left: 0;
}
[dir="rtl"] .wa-close {
  margin-left: 0;
  margin-right: auto;
}
[data-theme="dark"] .wa-panel {
  background: #fff;
  color: #27433c;
}
[data-theme="dark"] .wa-bubble {
  color: #27433c;
}
[data-theme="dark"] .placement-highlight,
[data-theme="dark"] .policy-journey {
  background: #213e51;
  border-color: #375369;
  color: #e1f2fb;
}
[data-theme="dark"] .placement-highlight h3,
[data-theme="dark"] .placement-highlight p {
  color: #e1f2fb;
}
@media (max-width: 700px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .placement-highlight {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .placement-highlight .btn {
    width: 100%;
  }
  .schedule-scroll {
    border-radius: 15px;
  }
  .policy-lead,
  .policy-card,
  .policy-ack,
  .policy-journey {
    padding: 23px;
  }
  .wa-widget {
    right: 14px;
    bottom: 14px;
  }
  .wa-fab {
    width: 51px;
    height: 51px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .wa-fab span {
    display: none;
  }
  .wa-panel {
    bottom: 65px;
  }
  .wa-fab .icon {
    width: 25px;
    height: 25px;
  }
  [dir="rtl"] .wa-widget {
    left: 14px;
  }
  .footer-bottom .developer-credit {
    white-space: normal;
  }
}
@media print {
  .wa-widget,
  .top-header,
  .hero,
  .footer,
  .policy-form-actions,
  .policy-ack .form-note {
    display: none !important;
  }
  .policy-card {
    break-inside: avoid;
  }
  .policy-grid {
    display: block;
  }
  .policy-card {
    margin: 15px 0;
  }
}

/* ExcelETA refinement: compact inner-page banner and adjacent results link */
.page-banner {
  padding: 20px 0 20px;
}
.page-banner h1 {
  font-size: clamp(32px, 3.45vw, 45px);
  line-height: 1.22;
}
.page-banner p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 9px;
}
.page-banner .breadcrumbs {
  margin-bottom: 12px;
}
.page-banner:after {
  width: 240px;
  height: 240px;
  border-width: 38px;
  top: -148px;
  right: -76px;
  pointer-events: none;
}
.page-banner + .section {
  padding-top: 64px;
}
.page-banner + .section-sm {
  padding-top: 45px;
}
.nav-actions .header-results {
  box-shadow: none;
  gap: 7px;
}
.nav-actions .header-results .icon {
  width: 15px;
  height: 15px;
}
.mobile-menu .mobile-results-link {
  color: var(--blue);
}
@media (min-width: 1151px) and (max-width: 1300px) {
  .nav-shell {
    gap: 12px;
  }
  .nav-menu {
    gap: 11px;
  }
  .nav-actions {
    gap: 4px;
  }
  .nav-actions .btn {
    padding: 10px 12px;
  }
  .logo-text strong {
    font-size: 19px;
  }
}
@media (max-width: 650px) {
  .page-banner {
    padding: 29px 0 30px;
  }
  .page-banner h1 {
    font-size: clamp(29px, 7vw, 34px);
  }
  .page-banner p {
    font-size: 13px;
    margin-top: 8px;
  }
  .page-banner .breadcrumbs {
    margin-bottom: 9px;
    font-size: 11px;
  }
  .page-banner + .section {
    padding-top: 40px;
  }
  .page-banner + .section-sm {
    padding-top: 34px;
  }
  .page-banner:after {
    width: 180px;
    height: 180px;
    border-width: 26px;
    top: -115px;
    right: -65px;
  }
}

/* ============================================================
   EXCELETA CREATIVE MOTION EDITION — non-destructive enhancement
   Pure CSS, RTL-aware, responsive, reduced-motion friendly.
   ============================================================ */
:root {
  --creative-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --creative-blue: #287df0;
}

/* Ink marker underline: highlights remain legible and selectable */
.section-title h2 .highlight,
.section-title h2 .mint,
.hero h1 em {
  position: relative;
  z-index: 0;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(transparent 76%, rgba(255, 207, 103, 0.62) 76%, rgba(255, 207, 103, 0.62) 93%, transparent 93%);
  background-repeat: no-repeat;
  transition: background-size 0.6s var(--creative-ease);
}
.section-title .eyebrow::before {
  transform: rotate(-12deg);
  transition:
    transform 0.4s var(--creative-ease),
    width 0.4s var(--creative-ease);
}
.section-title:hover .eyebrow::before {
  transform: rotate(0);
  width: 38px;
}

/* Hand-drawn animated button shine, without changing markup */
.btn {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.35s var(--creative-ease),
    box-shadow 0.35s ease,
    background 0.25s ease;
}
.btn:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 14px 28px rgba(40, 125, 240, 0.17);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn-primary:hover {
  box-shadow: 0 15px 32px rgba(40, 125, 240, 0.3);
}
.btn-yellow:hover {
  box-shadow: 0 13px 26px rgba(214, 151, 26, 0.22);
}

/* Playful underline for links */
.nav-link,
.text-link,
.footer-links a {
  transition:
    color 0.25s ease,
    transform 0.3s var(--creative-ease);
}
.text-link:hover {
  transform: translateX(5px);
}
[dir="rtl"] .text-link:hover {
  transform: translateX(-5px);
}
.nav-link:hover {
  text-shadow: 0 0 0.01px currentColor;
}

/* Teacher paint panel: varied torn edges and floating image */
.teacher-card {
  isolation: isolate;
  transition: transform 0.5s var(--creative-ease);
}
.teacher-card:hover {
  transform: translateY(-9px);
}
.teacher-card .body {
  --paint: #ffcf67;
  position: relative;
  overflow: hidden;
  background: var(--paint);
  transform-origin: center top;
}
.teacher-card:nth-child(even) .body {
  clip-path: polygon(0 5%, 14% 1%, 35% 3%, 55% 0, 78% 4%, 100% 1%, 97% 18%, 100% 35%, 98% 58%, 100% 79%, 97% 98%, 76% 95%, 55% 100%, 33% 96%, 11% 99%, 1% 96%, 3% 75%, 0 53%, 2% 29%);
}
.teacher-card:nth-child(3n) .body {
  --paint: #ffd47b;
}
.teacher-card .body::before {
  z-index: 0;
  pointer-events: none;
}
.teacher-card .body::after {
  pointer-events: none;
}
.teacher-card .body > * {
  position: relative;
  z-index: 1;
}
.teacher-card .chip {
  transition:
    transform 0.35s var(--creative-ease),
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.teacher-card:hover .chip {
  transform: translateY(-4px) rotate(-3deg);
}

/* Learning image: cinematic zoom and curved corner accent */
.learning-card {
  transition:
    transform 0.5s var(--creative-ease),
    box-shadow 0.5s ease;
}
.learning-card:hover {
  transform: translateY(-7px) rotate(-0.5deg);
  box-shadow: 0 24px 50px rgba(20, 70, 120, 0.18);
}
.learning-card img {
  transition: transform 0.85s var(--creative-ease);
}
.learning-card:hover img {
  transform: scale(1.09);
}
.learning-card .content h3 {
  transition: transform 0.45s var(--creative-ease);
}
.learning-card:hover .content h3 {
  transform: translateY(-5px);
}

/* Courses: cheerful accent stroke and springy arrow */
.course-card {
  position: relative;
  transition:
    transform 0.45s var(--creative-ease),
    box-shadow 0.45s ease;
}
.course-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 24px 50px rgba(29, 76, 127, 0.13);
}
.course-card .course-more {
  transition:
    transform 0.4s var(--creative-ease),
    background 0.3s,
    color 0.3s;
}
.course-card:hover .course-more {
  transform: rotate(-35deg) scale(1.12);
  background: var(--blue);
  color: #fff;
}
.course-img img {
  transition: transform 0.75s var(--creative-ease);
}
.course-card:hover .course-img img {
  transform: scale(1.09);
}
.course-img .tag {
  transition: transform 0.4s var(--creative-ease);
}
.course-card:hover .course-img .tag {
  transform: rotate(-5deg) translateY(-3px);
}

/* Levels: staircase layout preserved, tactile motion */
.level {
  transition:
    transform 0.45s var(--creative-ease),
    box-shadow 0.45s ease,
    border-radius 0.45s ease;
}
.level:hover {
  transform: translateY(-13px) rotate(-2deg);
  box-shadow: 0 20px 36px rgba(20, 96, 161, 0.14);
  border-radius: 28px 16px 28px 16px;
}
.level:nth-child(2):hover,
.level:nth-child(5):hover {
  transform: translateY(-20px) rotate(2deg);
}
.level b {
  transition: transform 0.4s var(--creative-ease);
}
.level:hover b {
  transform: scale(1.13) rotate(-4deg);
}

/* Welcome icons: playful paper-sticker motion */
.welcome-item .feature-ic {
  transition:
    transform 0.45s var(--creative-ease),
    border-radius 0.4s ease,
    box-shadow 0.4s ease;
}
.welcome-item:hover .feature-ic {
  transform: translateY(-6px) rotate(-9deg);
  border-radius: 30% 45% 34% 42%;
  box-shadow: 0 10px 20px rgba(40, 125, 240, 0.12);
}

/* About: yellow info note becomes a tactile sticky note */
.about-blob {
  transform: rotate(2deg);
  transition:
    transform 0.5s var(--creative-ease),
    box-shadow 0.5s ease;
}
.about-visual:hover .about-blob {
  transform: translateY(-8px) rotate(-3deg);
  box-shadow: 0 22px 38px rgba(20, 70, 120, 0.17);
}
.about-visual > img {
  transition: border-radius 0.6s var(--creative-ease);
}
.about-visual:hover > img {
  border-radius: 55px 22px 55px 22px;
}

/* Student spotlight, articles, stories and info tiles */
.spotlight-feature {
  transition: box-shadow 0.4s ease;
}
.spotlight-feature:hover {
  box-shadow: 0 25px 55px rgba(29, 76, 127, 0.11);
}
.spotlight-feature > img {
  transition: transform 0.7s var(--creative-ease);
}
.spotlight-feature:hover > img {
  transform: scale(1.025);
}
.blog-card,
.story-card,
.info-tile {
  transition:
    transform 0.4s var(--creative-ease),
    box-shadow 0.4s ease;
}
.blog-card:hover,
.story-card:hover,
.info-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(29, 76, 127, 0.1);
}
.blog-card .image,
.story-card img {
  transition: filter 0.4s ease;
}
.blog-card:hover .image,
.story-card:hover img {
  filter: saturate(1.12);
}

/* CTA: subtle hand-painted light streak */
.cta-band {
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 42%;
  height: 250%;
  left: -60%;
  top: -75%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.9s var(--creative-ease);
  pointer-events: none;
}
.cta-band:hover::before {
  left: 115%;
}

/* Filter chips and FAQ: tactile, but accessible */
.filter {
  transition:
    transform 0.3s var(--creative-ease),
    background 0.25s,
    color 0.25s,
    box-shadow 0.3s;
}
.filter:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 8px 17px rgba(40, 125, 240, 0.16);
}
.faq-item {
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(40, 125, 240, 0.08);
}
.faq-item summary::after {
  transition: transform 0.3s var(--creative-ease);
}
.faq-item[open] summary::after {
  transform: rotate(90deg);
}
.quiz-answer {
  transition:
    transform 0.25s var(--creative-ease),
    border-color 0.25s,
    background 0.25s;
}
.quiz-answer:hover {
  transform: translateX(4px);
  border-color: var(--blue);
}
[dir="rtl"] .quiz-answer:hover {
  transform: translateX(-4px);
}

/* Footer icons and form focus */
.social-dot {
  transition:
    transform 0.4s var(--creative-ease),
    background 0.3s,
    color 0.3s;
}
.social-dot:hover {
  transform: translateY(-5px) rotate(-8deg);
  background: var(--blue);
  color: #fff;
}
.field input,
.field select,
.field textarea {
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 5px rgba(40, 125, 240, 0.1);
}

/* Avoid over-motion on touch screens */
@media (hover: none) {
  .teacher-card:hover,
  .learning-card:hover,
  .course-card:hover,
  .level:hover,
  .blog-card:hover,
  .story-card:hover,
  .info-tile:hover,
  .btn:hover {
    transform: none;
  }
  .level:nth-child(2):hover,
  .level:nth-child(5):hover {
    transform: translateY(-9px);
  }
}
@media (max-width: 650px) {
  .teacher-card .body {
    padding-inline: 17px;
  }
  .cta-band::before {
    display: none;
  }
  .learning-card:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ======================================================
   ExcelETA • original-style compact level cards + modal
   Intentional scoped additions; all other styles preserved.
   ====================================================== */
.levels-section {
  padding-block: 82px 86px;
}
.levels-section .section-title {
  margin-bottom: 37px;
}
.levels-section .level-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.levels-section .level-trigger {
  color: #17304c;
  position: relative;
  overflow: hidden;
  min-height: 186px;
  width: 100%;
  padding: 24px 18px 17px;
  border: 1px solid rgba(40, 125, 240, 0.09);
  font-family: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  text-align: center;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.levels-section .level-trigger::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--level-tint);
  top: -39px;
  left: -28px;
  pointer-events: none;
  transition: transform 0.5s var(--creative-ease, ease);
  z-index: -1;
}
.levels-section .level-trigger:hover::before,
.levels-section .level-trigger:focus-visible::before {
  transform: scale(1.5);
}
.levels-section .level-trigger:nth-child(1) {
  --level-color: #287df0;
  --level-tint: #e9f4ff;
}
.levels-section .level-trigger:nth-child(2) {
  --level-color: #10adac;
  --level-tint: #e7faf5;
}
.levels-section .level-trigger:nth-child(3) {
  --level-color: #d08d26;
  --level-tint: #fff5dc;
}
.levels-section .level-trigger:nth-child(4) {
  --level-color: #287df0;
  --level-tint: #e9f4ff;
}
.levels-section .level-trigger .level-count {
  position: absolute;
  top: 15px;
  right: 17px;
  font-weight: 900;
  color: var(--level-color);
  opacity: 0.24;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.levels-section .level-trigger b {
  font-size: 32px;
  color: var(--level-color);
  line-height: 1.15;
}
.levels-section .level-trigger .level-short-name {
  font-size: 12px;
  color: #48617b;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 7px;
  max-width: 220px;
}
.levels-section .level-trigger .level-age {
  font-size: 11px;
  font-weight: 700;
  color: #6b7c92;
  margin-top: 5px;
}
.levels-section .level-trigger .level-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 900;
  color: var(--level-color);
  background: var(--level-tint);
  padding: 7px 11px;
  border-radius: 100px;
  line-height: 1;
  transition:
    background 0.28s,
    color 0.28s,
    transform 0.3s;
}
.levels-section .level-trigger .level-learn-more .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4px;
  transition: transform 0.3s;
}
.levels-section .level-trigger:hover .level-learn-more .icon {
  transform: translateX(4px);
}
.levels-section .level-trigger:focus-visible {
  outline: 3px solid var(--level-color);
  outline-offset: 5px;
}
/* Modal: one detailed panel only, without bloating the homepage. */
.levels-modal {
  position: fixed;
  margin: auto;
  inset: 0;
  width: min(674px, calc(100vw - 32px));
  max-height: min(90dvh, 790px);
  border: 0;
  padding: 0;
  border-radius: 24px;
  color: #17304c;
  background: white;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px rgba(14, 45, 83, 0.23);
}
.levels-modal::backdrop {
  background: rgba(17, 39, 64, 0.54);
  backdrop-filter: blur(5px);
}
.levels-modal[open] {
  animation: levels-modal-in 0.3s cubic-bezier(0.21, 0.9, 0.3, 1) both;
}
@keyframes levels-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.levels-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 2;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  color: #17304c;
  box-shadow: 0 4px 18px rgba(31, 70, 113, 0.08);
  transition:
    transform 0.24s,
    background 0.24s;
}
.levels-modal-close:hover {
  transform: rotate(90deg);
  background: white;
}
.levels-modal-close .icon {
  width: 19px;
  height: 19px;
}
.levels-modal-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 35px 27px;
  background: linear-gradient(115deg, #e9f5ff, #f1fffb 64%, #fff7e5);
}
.levels-modal-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -88px;
  width: 210px;
  height: 210px;
  border: 30px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  pointer-events: none;
}
.levels-modal-step {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #5a7692;
  font-weight: 900;
}
.levels-modal-mainline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 9px;
}
.levels-modal-mainline h2 {
  font-size: 46px;
  color: #287df0;
  font-weight: 900;
  line-height: 1;
}
.levels-modal-hero.tone-2 h2 {
  color: #10adac;
}
.levels-modal-hero.tone-3 h2 {
  color: #bf8428;
}
.levels-modal-age {
  font-size: 11px;
  font-weight: 900;
  color: #33637b;
  background: #fff;
  border-radius: 100px;
  padding: 7px 12px;
}
.levels-modal-hero h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #17304c;
}
.levels-modal-hero p {
  max-width: 520px;
  margin-top: 9px;
  color: #506981;
  font-size: 13px;
  line-height: 1.7;
}
.levels-modal-content {
  padding: 26px 35px 32px;
}
.levels-modal-info-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 11px;
}
.levels-modal-info {
  padding: 14px 15px;
  border-radius: 13px;
  background: #f5faff;
  border: 1px solid #e4effa;
}
.levels-modal-label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: #617791;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.levels-modal-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #17304c;
  margin-top: 5px;
}
.levels-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.levels-modal-tag {
  display: inline-flex;
  border-radius: 100px;
  background: #eaf8f5;
  color: #19746b;
  font-weight: 800;
  font-size: 10px;
  padding: 7px 10px;
  line-height: 1.3;
}
.levels-modal-skills-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 25px;
  margin-bottom: 11px;
}
.levels-modal-skill-count {
  background: #f0f6ff;
  color: #3d7cc2;
  padding: 5px 8px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 800;
}
.levels-modal-skills {
  display: grid;
  gap: 9px;
}
.levels-modal-skill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e8f0f8;
  border-radius: 13px;
  padding: 13px 14px;
}
.levels-modal-skill-icon {
  flex: 0 0 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #e8f4ff;
  color: #287df0;
  font-weight: 900;
  border-radius: 10px;
  font-size: 18px;
}
.levels-modal-skill:nth-child(2) .levels-modal-skill-icon {
  color: #00978d;
  background: #e5f8f3;
}
.levels-modal-skill:nth-child(3) .levels-modal-skill-icon {
  color: #be851e;
  background: #fff5df;
}
.levels-modal-skill h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}
.levels-modal-skill p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.65;
  color: #59708a;
}
.levels-modal-bottom {
  margin-top: 23px;
  display: flex;
  justify-content: center;
}
html.levels-modal-is-open {
  overflow: hidden;
}
[data-theme="dark"] .levels-section .level-trigger {
  color: var(--ink);
  background: #243c54;
  border-color: #37536f;
}
[data-theme="dark"] .levels-section .level-short-name {
  color: #d8e9f7;
}
[data-theme="dark"] .levels-section .level-age {
  color: #bbcedf;
}
[data-theme="dark"] .levels-section .level-trigger:nth-child(1),
[data-theme="dark"] .levels-section .level-trigger:nth-child(4) {
  --level-tint: #2d4c67;
}
[data-theme="dark"] .levels-section .level-trigger:nth-child(2) {
  --level-tint: #265350;
}
[data-theme="dark"] .levels-section .level-trigger:nth-child(3) {
  --level-tint: #504935;
}
[data-theme="dark"] .levels-modal {
  background: #1b2b40;
  color: #f2f8ff;
}
[data-theme="dark"] .levels-modal-hero {
  background: linear-gradient(115deg, #263e59, #214442 65%, #51472c);
}
[data-theme="dark"] .levels-modal-hero h3,
[data-theme="dark"] .levels-modal-hero p,
[data-theme="dark"] .levels-modal-step {
  color: #f0f7ff;
}
[data-theme="dark"] .levels-modal-age,
[data-theme="dark"] .levels-modal-close {
  background: #1b2b40;
  color: #edf5ff;
  border-color: #47627f;
}
[data-theme="dark"] .levels-modal-info,
[data-theme="dark"] .levels-modal-skill {
  background: #23364d;
  border-color: #35506b;
}
[data-theme="dark"] .levels-modal-info strong,
[data-theme="dark"] .levels-modal-skill h4 {
  color: #f0f7ff;
}
[data-theme="dark"] .levels-modal-info .levels-modal-label,
[data-theme="dark"] .levels-modal-skill p,
[data-theme="dark"] .levels-modal-skills-head .levels-modal-label {
  color: #aec8dd;
}
@media (max-width: 720px) {
  .levels-section {
    padding-block: 65px 70px;
  }
  .levels-section .section-title {
    margin-bottom: 29px;
  }
  .levels-section .level-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .levels-section .level-trigger {
    min-height: 162px;
    padding: 20px 8px 16px;
  }
  .levels-section .level-trigger:nth-child(2) {
    transform: translateY(-8px);
  }
  .levels-section .level-trigger b {
    font-size: 30px;
  }
  .levels-section .level-trigger .level-short-name {
    font-size: 11px;
  }
  .levels-section .level-trigger .level-learn-more {
    margin-top: 12px;
    font-size: 10px;
    padding: 7px 9px;
  }
  .levels-section .level-trigger:nth-child(2):hover {
    transform: translateY(-8px);
  }
  .levels-modal {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 900px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .levels-modal[open] {
    animation-name: levels-modal-mobile-in;
  }
  .levels-modal-hero {
    padding: 27px 21px 22px;
  }
  .levels-modal-content {
    padding: 19px 21px 28px;
  }
  .levels-modal-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .levels-modal-hero h3 {
    font-size: 17px;
  }
  .levels-modal-mainline h2 {
    font-size: 40px;
  }
  .levels-modal-close {
    top: 12px;
    right: 12px;
  }
}
@media (max-width: 380px) {
  .levels-section .level-row {
    gap: 9px;
  }
  .levels-section .level-trigger {
    min-height: 160px;
    padding-inline: 5px;
  }
  .levels-section .level-trigger .level-short-name {
    font-size: 10px;
  }
  .levels-modal-info-grid {
    grid-template-columns: 1fr;
  }
}
@keyframes levels-modal-mobile-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (hover: none) {
  .levels-section .level-trigger:hover,
  .levels-section .level-trigger:nth-child(2):hover,
  .levels-section .level-trigger:nth-child(5):hover {
    transform: none;
  }
  .levels-section .level-trigger:nth-child(2) {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .levels-modal[open] {
    animation: none;
  }
}

/* ==========================================================
   EXCELETA · EXPANDED COURSE PAGES
   Scoped styles for courses.php, courses.php and
   courses.php. No modal, no legacy diploma cards.
   ========================================================== */
.curriculum-page {
  --cur-ink: var(--ink);
  --cur-muted: var(--muted);
  background: var(--bg);
  isolation: isolate;
}
.curriculum-page .curriculum-intro {
  position: relative;
  padding: 42px 0 64px;
  background: linear-gradient(135deg, #f0f8ff, #f7fcff 50%, #fff7e9);
  overflow: hidden;
}
[data-theme="dark"] .curriculum-page .curriculum-intro {
  background: linear-gradient(135deg, #14273d, #1a3244 62%, #28313b);
}
.curriculum-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 52px;
  position: relative;
  z-index: 2;
}
.curriculum-page .curriculum-tabs .filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 21px;
  font-size: 13px;
  border: 1px solid var(--line);
}
.curriculum-page .curriculum-tabs .filter.active {
  box-shadow: 0 10px 26px rgba(40, 125, 240, 0.17);
}
.curriculum-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: 40px;
}
.curriculum-intro-copy {
  max-width: 760px;
}
.curriculum-intro-copy .eyebrow {
  margin-bottom: 18px;
}
.curriculum-intro-copy h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.13;
  color: var(--ink);
  letter-spacing: -0.055em;
}
.curriculum-intro-copy p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  max-width: 680px;
}
.curriculum-intro-art {
  height: 246px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: rotate(-10deg);
}
.curriculum-intro-art:before {
  content: "";
  position: absolute;
  inset: 3px 3% 0 0;
  background: radial-gradient(circle, #c8e7ff 0 1.5px, transparent 2px);
  background-size: 15px 15px;
  border-radius: 30px;
  opacity: 0.5;
}
.curriculum-intro-art > span {
  width: 83px;
  height: 85px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(21, 68, 125, 0.12);
  color: #173753;
  background: #ffcf67;
  border: 5px solid #fff;
  font-weight: 900;
  font-size: 18px;
  margin-left: -7px;
  transform: translateY(24px);
  animation: curriculum-bob 4.2s ease-in-out infinite;
}
.curriculum-intro-art > span:nth-child(2) {
  background: #c9f1ab;
  transform: translateY(-16px);
  animation-delay: -0.5s;
}
.curriculum-intro-art > span:nth-child(3) {
  background: #99dbfc;
  transform: translateY(14px);
  animation-delay: -1s;
}
.curriculum-intro-art > span:nth-child(4) {
  background: #e5caff;
  transform: translateY(-23px);
  animation-delay: -1.5s;
}
.curriculum-art-spark {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #10bdb2;
  left: 28px;
  top: 30px;
}
.curriculum-art-spark.two {
  width: 13px;
  height: 13px;
  background: #ffcf67;
  left: auto;
  right: 20px;
  bottom: 15px;
  top: auto;
}
@keyframes curriculum-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}
.curriculum-programmes {
  padding: 78px 0 90px;
}
.curriculum-overview {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 28px;
}
.curriculum-overview > div:first-child {
  max-width: 690px;
}
.curriculum-overview .eyebrow {
  margin-bottom: 10px;
}
.curriculum-overview h2 {
  font-size: clamp(27px, 3vw, 39px);
}
.curriculum-overview p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 15px;
}
.curriculum-overview-count {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: var(--blue);
}
.curriculum-overview-count strong {
  font: 900 54px/1 var(--display);
  letter-spacing: -0.08em;
}
.curriculum-overview-count small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  max-width: 70px;
  white-space: normal;
  line-height: 1.2;
}
.curriculum-jump-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0 38px;
}
.curriculum-jump {
  --tone: #d88b13;
  --tone-bg: #fff2cb;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px 16px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.curriculum-jump:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tone);
}
.curriculum-jump:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 28px rgba(24, 66, 119, 0.1);
  border-color: var(--tone);
}
.curriculum-jump-index {
  font: 800 11px var(--body);
  color: var(--tone);
  display: block;
  margin-bottom: 7px;
}
.curriculum-jump strong {
  font: 900 22px var(--display);
  display: block;
  color: var(--ink);
}
.curriculum-jump small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 5px;
  line-height: 1.35;
}
.curriculum-jump-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 15px;
  color: var(--tone);
}
.curriculum-stage {
  --tone: #d88b13;
  --tone-bg: #fff2cb;
  --tone-pale: #fffbef;
  scroll-margin-top: 105px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  margin: 0 0 26px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(31, 71, 116, 0.045);
}
.curriculum-tone-sun {
  --tone: #c88914;
  --tone-bg: #fff2ca;
  --tone-pale: #fffbef;
}
.curriculum-tone-lime {
  --tone: #518e22;
  --tone-bg: #e5f5d3;
  --tone-pale: #f8fdef;
}
.curriculum-tone-sky {
  --tone: #1689cb;
  --tone-bg: #d7efff;
  --tone-pale: #f2faff;
}
.curriculum-tone-violet {
  --tone: #8544bd;
  --tone-bg: #efddff;
  --tone-pale: #fbf5ff;
}
.curriculum-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 34px 39px 31px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, var(--tone-pale), var(--paper) 65%);
}
[data-theme="dark"] .curriculum-stage-top {
  background: var(--paper);
}
.curriculum-stage-order {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  color: var(--tone);
}
.curriculum-stage-order span {
  color: var(--muted);
}
.curriculum-title-row {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 8px;
}
.curriculum-large-level {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 108px;
  height: 103px;
  border-radius: 26px 26px 10px 26px;
  background: var(--tone-bg);
  color: var(--tone);
  font: 900 clamp(23px, 2.8vw, 34px)/1 var(--display);
  letter-spacing: -0.06em;
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}
.curriculum-stage:hover .curriculum-large-level {
  transform: rotate(0deg) scale(1.03);
}
.curriculum-name-block {
  max-width: 650px;
  min-width: 0;
}
.curriculum-age {
  display: inline-block;
  background: var(--paper);
  color: var(--tone);
  border: 1px solid var(--line);
  font-weight: 900;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.curriculum-name-block h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.045em;
  color: var(--ink);
}
.curriculum-name-block p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 9px;
}
.curriculum-vocab-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 16px 21px;
  background: var(--tone-bg);
  border-radius: 16px;
  min-width: 155px;
  transform: rotate(3deg);
  color: var(--tone);
  flex-shrink: 0;
}
.curriculum-vocab-stamp small {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 900;
}
.curriculum-vocab-stamp strong {
  font: 900 19px var(--display);
  line-height: 1.25;
}
.curriculum-stage-bottom {
  display: grid;
  grid-template-columns: minmax(245px, 0.72fr) minmax(0, 1.45fr);
}
.curriculum-stage-sidebar {
  padding: 30px 34px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.curriculum-section-label {
  font-size: 12px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.4;
}
.curriculum-frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.curriculum-frameworks > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.curriculum-frameworks > span b {
  color: var(--tone);
  font-weight: 900;
}
.curriculum-cambridge {
  background: var(--soft);
  border-radius: 14px;
  padding: 15px 17px;
}
.curriculum-cambridge span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 7px;
}
.curriculum-cambridge strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.curriculum-stage-cta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.curriculum-link {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  transition:
    transform 0.2s,
    background 0.2s;
}
.curriculum-link:hover {
  transform: translateY(-2px);
}
.curriculum-link .icon {
  width: 15px;
  height: 15px;
}
.curriculum-link-primary {
  background: #287df0;
  color: #fff;
}
.curriculum-link-primary:hover {
  background: #1269df;
  color: #fff;
}
.curriculum-link-outline {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.curriculum-skill-stack {
  padding: 27px 34px 29px;
  min-width: 0;
}
.curriculum-skill-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.curriculum-skill-heading > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.curriculum-skill-heading > span b {
  color: var(--tone);
  margin-left: 4px;
}
.curriculum-skill {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.curriculum-skill:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.curriculum-skill-symbol {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--tone-bg);
  color: var(--tone);
  font-weight: 900;
  font-size: 12px;
}
.curriculum-skill-copy h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.curriculum-skill-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 5px;
}
.curriculum-footnote {
  color: var(--muted);
  font-size: 12px;
  margin: 15px 0 0;
  line-height: 1.8;
}
.curriculum-last-cta {
  padding: 0 0 100px;
}
.curriculum-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 32px 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 23px;
}
.curriculum-cta-content h2 {
  font-size: clamp(25px, 2.7vw, 34px);
}
.curriculum-cta-content p {
  font-size: 14px;
  color: var(--muted);
  max-width: 570px;
  margin-top: 10px;
}
.curriculum-cta-content .eyebrow {
  margin-bottom: 12px;
}
.curriculum-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.curriculum-cta-buttons .btn {
  padding: 13px 16px;
}
@media (max-width: 1000px) {
  .curriculum-intro-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.55fr);
    gap: 24px;
  }
  .curriculum-intro-art {
    scale: 0.8;
    transform-origin: center;
  }
  .curriculum-stage-top {
    padding: 27px;
  }
  .curriculum-stage-sidebar {
    padding: 23px;
  }
  .curriculum-skill-stack {
    padding: 23px;
  }
  .curriculum-cta-content {
    align-items: flex-start;
    flex-direction: column;
  }
  .curriculum-cta-buttons {
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .curriculum-page .curriculum-intro {
    padding: 20px 0 44px;
  }
  .curriculum-tabs {
    margin: 0 0 32px;
  }
  .curriculum-intro-layout {
    display: block;
  }
  .curriculum-intro-art {
    display: none;
  }
  .curriculum-intro-copy h1 {
    font-size: clamp(32px, 8vw, 44px);
  }
  .curriculum-intro-copy p {
    font-size: 14px;
    line-height: 1.75;
  }
  .curriculum-programmes {
    padding: 45px 0 55px;
  }
  .curriculum-overview {
    align-items: flex-start;
  }
  .curriculum-overview-count {
    display: none;
  }
  .curriculum-jump-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 23px;
  }
  .curriculum-jump {
    padding: 13px;
  }
  .curriculum-jump strong {
    font-size: 20px;
  }
  .curriculum-jump small {
    font-size: 11px;
  }
  .curriculum-stage {
    border-radius: 18px;
    margin-bottom: 18px;
  }
  .curriculum-stage-top {
    padding: 22px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .curriculum-title-row {
    gap: 14px;
    margin-top: 10px;
  }
  .curriculum-large-level {
    width: 72px;
    height: 76px;
    border-radius: 17px 17px 7px 17px;
    font-size: 23px;
  }
  .curriculum-name-block h2 {
    font-size: 22px;
  }
  .curriculum-name-block p {
    font-size: 13px;
    margin-top: 7px;
  }
  .curriculum-vocab-stamp {
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    min-width: 0;
  }
  .curriculum-vocab-stamp strong {
    font-size: 13px;
  }
  .curriculum-stage-bottom {
    grid-template-columns: 1fr;
  }
  .curriculum-stage-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 13px;
    padding: 19px 18px;
  }
  .curriculum-skill-stack {
    padding: 19px 18px;
  }
  .curriculum-skill {
    padding: 13px 0;
    gap: 9px;
  }
  .curriculum-skill-copy p {
    font-size: 12.5px;
  }
  .curriculum-link {
    min-height: 40px;
  }
  .curriculum-cta-content {
    padding: 23px 20px;
  }
  .curriculum-cta-buttons {
    width: 100%;
  }
  .curriculum-last-cta {
    padding-bottom: 62px;
  }
}
@media (max-width: 380px) {
  .curriculum-page .curriculum-tabs .filter {
    padding: 9px 13px;
    font-size: 12px;
  }
  .curriculum-title-row {
    align-items: flex-start;
  }
  .curriculum-large-level {
    width: 63px;
    height: 70px;
    font-size: 21px;
  }
  .curriculum-name-block h2 {
    font-size: 20px;
  }
  .curriculum-jump small {
    font-size: 10px;
  }
  .curriculum-cta-buttons .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .curriculum-intro-art > span {
    animation: none !important;
  }
  .curriculum-jump,
  .curriculum-large-level {
    transition: none !important;
  }
}

/* ===============================================================
   EXCELETA EDITORIAL NEWS — SCOPED STYLES, SHARED IN ENGLISH/ARABIC
   =============================================================== */
.xn-news {
  --xn-accent: var(--blue, #287df0);
  --xn-ink: var(--ink, #172947);
  --xn-muted: var(--muted, #6b7c92);
  --xn-stroke: var(--line, #e5edf7);
  color: var(--xn-ink);
  overflow: clip;
}
.xn-news * {
  box-sizing: border-box;
}
.xn-news button,
.xn-news input {
  font-family: inherit;
}
.xn-news .container {
  max-width: 1180px;
}
.xn-news .xn-news-intro {
  padding: 48px 0 34px;
  background: linear-gradient(135deg, var(--paper, #fff) 0%, var(--bg, #f8fbff) 70%, var(--soft, #eff7ff) 100%);
}
.xn-news .xn-news-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--xn-accent);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.xn-news .xn-kicker-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--mint, #10bdb2);
  transform: rotate(-18deg);
  box-shadow: 5px 4px 0 var(--yellow, #ffcf67);
}
.xn-news .xn-news-edition {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--xn-muted);
  margin-inline-start: auto;
}
.xn-news .xn-news-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 21px;
}
.xn-news .xn-news-heading-row > div {
  max-width: 760px;
}
.xn-news .xn-news-heading-row h1 {
  font-size: clamp(35px, 4.1vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-weight: 850;
}
.xn-news .xn-news-heading-row p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 13px;
  color: var(--xn-muted);
}
.xn-news .xn-news-mark {
  font-weight: 900;
  font-size: 92px;
  line-height: 0.85;
  letter-spacing: -0.14em;
  color: var(--xn-accent);
  opacity: 0.13;
  user-select: none;
  padding-inline-end: 10px;
}
.xn-news .xn-news-mark span {
  color: var(--mint, #10bdb2);
}
.xn-news .xn-news-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--xn-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-top: 25px;
  border: 1px dashed var(--xn-stroke);
  border-radius: 100px;
  padding: 7px 13px;
  background: var(--paper);
}
.xn-news .xn-news-demo svg {
  width: 15px;
  height: 15px;
  color: var(--xn-accent);
}
.xn-news .xn-lead-section {
  padding: 34px 0 60px;
  background: var(--bg);
}
.xn-news .xn-section-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.xn-news .xn-section-line h2 {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.xn-news .xn-tiny-rule {
  height: 1px;
  background: var(--xn-stroke);
  flex: 1;
}
.xn-news .xn-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 17px;
  height: 490px;
}
.xn-news .xn-feature-side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 17px;
  min-height: 0;
}
.xn-news .xn-feature {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 0;
  border-radius: 20px;
  color: #fff;
  background: #26476b;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(28, 62, 108, 0.07);
}
.xn-news .xn-feature img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.xn-news .xn-feature:hover img {
  transform: scale(1.055);
}
.xn-news .xn-image-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 22, 43, 0.92), rgba(10, 22, 43, 0.2) 70%, rgba(10, 22, 43, 0.06));
}
.xn-news .xn-feature-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 34px;
}
.xn-news .xn-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  color: var(--xn-accent);
  background: var(--soft, #eff7ff);
  padding: 6px 10px;
  border-radius: 7px;
  line-height: 1.1;
}
.xn-news .xn-feature .xn-tag {
  background: var(--yellow, #ffcf67);
  color: #21364b;
}
.xn-news .xn-feature-date {
  margin-top: 15px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.82);
}
.xn-news .xn-feature h2 {
  margin-top: 9px;
  font-size: clamp(24px, 2.6vw, 37px);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 650px;
}
.xn-news .xn-feature-main p {
  margin-top: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  max-width: 560px;
}
.xn-news .xn-feature-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 850;
  margin-top: 17px;
  color: #fff;
}
.xn-news .xn-feature-action > span {
  font-size: 18px;
  transition: transform 0.2s;
}
.xn-news .xn-feature:hover .xn-feature-action > span {
  transform: translate(3px, -3px);
}
.xn-news .xn-feature-side .xn-feature-content {
  padding: 20px 22px;
}
.xn-news .xn-feature-side h2 {
  font-size: 20px;
  line-height: 1.35;
}
.xn-news .xn-feature-side .xn-feature-date {
  margin-top: 9px;
}
.xn-news .xn-feature-side .xn-feature-action {
  display: none;
}
.xn-news .xn-latest-section {
  padding: 18px 0 100px;
  background: var(--paper);
}
.xn-news .xn-latest-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin: 0 0 24px;
}
.xn-news .xn-latest-head .xn-section-line {
  margin-bottom: 8px;
}
.xn-news .xn-latest-head .xn-section-line .xn-tiny-rule {
  display: none;
}
.xn-news .xn-latest-head .xn-section-line h2 {
  font-size: 27px;
}
.xn-news .xn-latest-head p {
  font-size: 13px;
  color: var(--xn-muted);
  line-height: 1.6;
}
.xn-news .xn-result-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--xn-muted);
}
.xn-news .xn-news-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 15px 0 24px;
  border-top: 1px solid var(--xn-stroke);
}
.xn-news .xn-filter-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.xn-news .xn-filter {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 100px;
  color: var(--xn-muted);
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 800;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.xn-news .xn-filter:hover {
  background: var(--soft);
  color: var(--xn-ink);
  transform: translateY(-1px);
}
.xn-news .xn-filter.active {
  color: #fff;
  background: var(--xn-accent);
  box-shadow: 0 6px 20px rgba(40, 125, 240, 0.2);
}
.xn-news .xn-search-box {
  height: 40px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
  flex: 0 1 280px;
  border-radius: 10px;
  border: 1px solid var(--xn-stroke);
  background: var(--bg);
  padding: 0 12px;
  color: var(--xn-muted);
}
.xn-news .xn-search-box .icon {
  width: 16px;
  height: 16px;
}
.xn-news .xn-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--xn-ink);
}
.xn-news .xn-search-box:focus-within {
  outline: 2px solid var(--mint);
}
.xn-news .xn-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 22px;
}
.xn-news .xn-news-card {
  min-width: 0;
  border: 1px solid var(--xn-stroke);
  border-radius: 17px;
  overflow: hidden;
  background: var(--paper);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.xn-news .xn-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 38px rgba(27, 74, 127, 0.11);
  border-color: var(--soft);
}
.xn-news .xn-news-card-image {
  display: block;
  position: relative;
  aspect-ratio: 1.75;
  overflow: hidden;
  background: var(--soft);
}
.xn-news .xn-news-card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.xn-news .xn-news-card:hover img {
  transform: scale(1.055);
}
.xn-news .xn-card-image-note {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 850;
  color: #284057;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 9px;
  backdrop-filter: blur(6px);
}
.xn-news .xn-news-card-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 238px;
}
.xn-news .xn-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.xn-news .xn-card-meta time {
  font-size: 10px;
  font-weight: 650;
  color: var(--xn-muted);
}
.xn-news .xn-news-card-content h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 850;
  letter-spacing: -0.025em;
  margin-top: 15px;
}
.xn-news .xn-news-card-content h3 a:hover {
  color: var(--xn-accent);
}
.xn-news .xn-news-card-content p {
  color: var(--xn-muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xn-news .xn-article-link {
  font-size: 11px;
  font-weight: 850;
  color: var(--xn-accent);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 15px;
}
.xn-news .xn-article-link span {
  font-size: 17px;
}
.xn-news .xn-news-card[hidden] {
  display: none !important;
}
.xn-news .xn-load-row {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}
.xn-news .xn-load-row[hidden],
.xn-news .xn-empty[hidden] {
  display: none;
}
.xn-news .xn-empty {
  text-align: center;
  padding: 50px 15px;
}
.xn-news .xn-empty span {
  font-size: 42px;
  color: var(--xn-accent);
}
.xn-news .xn-empty p {
  font-size: 14px;
  color: var(--xn-muted);
}
/* Article Details */
.xn-news.xn-news-detail {
  background: var(--bg);
  min-height: 600px;
  padding: 30px 0 94px;
}
.xn-news .xn-detail-breadcrumb {
  font-size: 12px;
  color: var(--xn-muted);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.xn-news .xn-detail-breadcrumb a {
  font-weight: 850;
  color: var(--xn-accent);
}
.xn-news .xn-story-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 50px;
  align-items: start;
}
.xn-news .xn-story-main {
  min-width: 0;
}
.xn-news .xn-story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--xn-muted);
  font-weight: 650;
  font-size: 12px;
}
.xn-news .xn-story-meta .xn-tag {
  margin-inline-end: 4px;
}
.xn-news .xn-story-title {
  font-size: clamp(32px, 3.6vw, 49px);
  line-height: 1.27;
  letter-spacing: -0.045em;
  font-weight: 850;
  margin: 20px 0;
}
.xn-news .xn-story-lead {
  font-size: 17px;
  color: var(--xn-muted);
  line-height: 1.9;
  margin-bottom: 22px;
}
.xn-news .xn-story-author {
  font-size: 12px;
  color: var(--xn-muted);
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 23px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--xn-stroke);
}
.xn-news .xn-author-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--xn-accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  transform: rotate(-4deg);
}
.xn-news .xn-story-cover {
  margin: 0 0 32px;
}
.xn-news .xn-story-cover img {
  border-radius: 17px;
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  background: var(--soft);
}
.xn-news .xn-story-cover figcaption {
  font-size: 11px;
  color: var(--xn-muted);
  margin-top: 9px;
}
.xn-news .xn-story-prose p {
  font-size: 15px;
  line-height: 2.05;
  margin: 16px 0;
  color: var(--xn-ink);
}
.xn-news .xn-story-prose h2 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.025em;
  margin: 33px 0 12px;
}
.xn-news .xn-story-quote {
  border-inline-start: 4px solid var(--mint, #10bdb2);
  background: var(--soft);
  border-radius: 0 13px 13px 0;
  padding: 25px 25px;
  margin: 26px 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--xn-ink);
}
[dir="rtl"] .xn-news .xn-story-quote {
  border-radius: 13px 0 0 13px;
}
.xn-news .xn-story-disclaimer {
  border-radius: 12px;
  padding: 15px 17px;
  border: 1px dashed var(--xn-stroke);
  font-size: 12px !important;
  color: var(--xn-muted) !important;
  background: var(--paper);
}
.xn-news .xn-article-subsection {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--xn-stroke);
}
.xn-news .xn-article-subsection h2 {
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 7px;
}
.xn-news .xn-article-subsection > p {
  font-size: 12px;
  color: var(--xn-muted);
  margin-bottom: 21px;
  line-height: 1.7;
}
.xn-news .xn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.xn-news .xn-photo-button {
  display: block;
  padding: 0;
  border: 0;
  background: var(--soft);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1.25;
}
.xn-news .xn-photo-button:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 220px;
}
.xn-news .xn-photo-button img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition:
    transform 0.35s,
    filter 0.35s;
}
.xn-news .xn-photo-button:hover img {
  transform: scale(1.06);
  filter: brightness(0.83);
}
.xn-news .xn-photo-button::after {
  content: "＋";
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #18344d;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
}
.xn-news .xn-news-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: #14283f;
  object-fit: cover;
  display: block;
}
.xn-news .xn-video-caption {
  font-size: 11px;
  color: var(--xn-muted);
  margin-top: 9px;
}
.xn-news .xn-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.xn-news .xn-share-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--xn-stroke);
  background: var(--paper);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
  color: var(--xn-ink);
  min-height: 41px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.xn-news .xn-share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--xn-accent);
  color: var(--xn-accent);
}
.xn-news .xn-share-btn svg {
  width: 16px;
  height: 16px;
}
.xn-news .xn-share-btn.is-copied {
  background: var(--soft);
  color: var(--xn-accent);
}
.xn-news .xn-story-sidebar {
  position: sticky;
  top: 100px;
  min-width: 0;
}
.xn-news .xn-aside-card {
  background: var(--paper);
  border: 1px solid var(--xn-stroke);
  border-radius: 15px;
  padding: 22px;
  margin-bottom: 17px;
}
.xn-news .xn-aside-card h3 {
  font-size: 17px;
  font-weight: 850;
  margin-bottom: 18px;
}
.xn-news .xn-aside-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border-top: 1px solid var(--xn-stroke);
  padding: 14px 0;
  min-width: 0;
}
.xn-news .xn-aside-item img {
  width: 72px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.xn-news .xn-aside-item strong {
  font-size: 12px;
  line-height: 1.55;
  display: block;
}
.xn-news .xn-aside-item small {
  display: block;
  font-size: 10px;
  color: var(--xn-muted);
  margin-top: 6px;
}
.xn-news .xn-aside-item:hover strong {
  color: var(--xn-accent);
}
.xn-news .xn-aside-social p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--xn-muted);
}
.xn-news .xn-aside-social a {
  font-size: 12px;
  color: var(--xn-accent);
  font-weight: 800;
  margin-top: 10px;
  display: inline-block;
}
.xn-news .xn-comments-area {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--xn-stroke);
}
.xn-news .xn-comments-area h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.xn-news .xn-comments-intro {
  font-size: 12px !important;
  color: var(--xn-muted) !important;
  line-height: 1.8;
}
.xn-news .xn-comment-list {
  margin-top: 19px;
}
.xn-news .xn-comment-item {
  background: var(--paper);
  border: 1px solid var(--xn-stroke);
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 11px;
  display: flex;
  gap: 12px;
}
.xn-news .xn-comment-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--xn-accent);
  font-size: 15px;
  font-weight: 850;
}
.xn-news .xn-comment-head {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.xn-news .xn-comment-head strong {
  font-size: 13px;
}
.xn-news .xn-comment-head time {
  font-size: 10px;
  color: var(--xn-muted);
}
.xn-news .xn-comment-item p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.xn-news .xn-comment-form {
  background: var(--paper);
  border: 1px solid var(--xn-stroke);
  border-radius: 14px;
  padding: 20px;
  margin-top: 17px;
}
.xn-news .xn-comment-form input,
.xn-news .xn-comment-form textarea {
  border: 1px solid var(--xn-stroke);
  background: var(--bg);
  color: var(--xn-ink);
  padding: 12px 13px;
  border-radius: 10px;
  width: 100%;
  outline-offset: 3px;
  font-size: 13px;
}
.xn-news .xn-comment-form textarea {
  resize: vertical;
  min-height: 90px;
  margin-top: 10px;
  display: block;
}
.xn-news .xn-comment-form button {
  margin-top: 12px;
}
.xn-news .xn-comment-status {
  color: var(--xn-accent);
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
}
.xn-news .xn-fb-connection {
  margin-top: 20px;
  border: 1px solid var(--xn-stroke);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  background: var(--soft);
}
.xn-news .xn-fb-connection p {
  font-size: 12px;
  color: var(--xn-muted);
}
.xn-news .xn-fb-connection a {
  font-size: 12px;
  color: var(--xn-accent);
  font-weight: 850;
}
.xn-news .xn-loading {
  padding: 75px 0;
  font-size: 15px;
  color: var(--xn-muted);
}
.xn-news .xn-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--xn-accent);
  display: inline-block;
  margin-inline-end: 10px;
}
/* Lightbox */
.xn-lightbox {
  width: min(96vw, 1100px);
  height: min(94vh, 850px);
  max-width: none;
  max-height: none;
  background: #101a2d;
  border: 0;
  border-radius: 17px;
  padding: 18px;
  color: white;
  overflow: hidden;
}
.xn-lightbox::backdrop {
  background: rgba(6, 12, 26, 0.85);
  backdrop-filter: blur(5px);
}
.xn-lightbox:not([open]) {
  display: none;
}
.xn-lightbox .xn-lightbox-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.xn-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 90px);
  object-fit: contain;
  border-radius: 9px;
}
.xn-lightbox p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}
.xn-lightbox .xn-lightbox-close {
  position: absolute;
  top: 12px;
  right: 13px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 27px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.xn-lightbox .xn-photo-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.xn-lightbox .xn-photo-nav button {
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 50%;
  height: 33px;
  width: 33px;
  color: #fff;
}
.xn-lightbox .xn-photo-nav span {
  font-size: 12px;
}
[dir="rtl"] .xn-lightbox .xn-lightbox-close {
  right: auto;
  left: 13px;
}
@media (max-width: 1040px) {
  .xn-news .xn-story-shell {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 27px;
  }
  .xn-news .xn-filter-buttons {
    gap: 2px;
  }
  .xn-news .xn-filter {
    padding: 9px 12px;
  }
}
@media (max-width: 800px) {
  .xn-news .xn-feature-grid {
    height: auto;
    grid-template-columns: 1fr;
  }
  .xn-news .xn-feature-main {
    min-height: 380px;
  }
  .xn-news .xn-feature-side-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px;
  }
  .xn-news .xn-feature-side h2 {
    font-size: 18px;
  }
  .xn-news .xn-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xn-news .xn-story-shell {
    display: block;
  }
  .xn-news .xn-story-sidebar {
    position: static;
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .xn-news .xn-story-sidebar .xn-aside-card {
    margin-bottom: 0;
  }
}
@media (max-width: 560px) {
  .xn-news .container {
    width: calc(100% - 32px) !important;
  }
  .xn-news .xn-news-intro {
    padding: 34px 0 27px;
  }
  .xn-news .xn-news-edition {
    display: none;
  }
  .xn-news .xn-news-heading-row {
    margin-top: 13px;
  }
  .xn-news .xn-news-heading-row h1 {
    font-size: 34px;
  }
  .xn-news .xn-news-heading-row p {
    font-size: 13px;
  }
  .xn-news .xn-news-mark {
    display: none;
  }
  .xn-news .xn-news-demo {
    margin-top: 16px;
  }
  .xn-news .xn-lead-section {
    padding: 21px 0 34px;
  }
  .xn-news .xn-feature-grid {
    gap: 11px;
  }
  .xn-news .xn-feature-main {
    min-height: 335px;
  }
  .xn-news .xn-feature-content {
    padding: 22px;
  }
  .xn-news .xn-feature-main h2 {
    font-size: 25px;
  }
  .xn-news .xn-feature-main p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .xn-news .xn-feature-side-stack {
    grid-template-columns: 1fr;
    grid-template-rows: 190px 190px;
    gap: 11px;
  }
  .xn-news .xn-feature-side h2 {
    font-size: 20px;
  }
  .xn-news .xn-latest-section {
    padding-bottom: 65px;
  }
  .xn-news .xn-latest-head .xn-section-line h2 {
    font-size: 24px;
  }
  .xn-news .xn-latest-head > div:last-child {
    display: none;
  }
  .xn-news .xn-news-tools {
    align-items: stretch;
  }
  .xn-news .xn-filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }
  .xn-news .xn-filter {
    white-space: nowrap;
    flex: none;
  }
  .xn-news .xn-search-box {
    min-width: 0;
    flex: 1 1 100%;
    width: 100%;
  }
  .xn-news .xn-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .xn-news .xn-news-card-content {
    min-height: auto;
    padding: 17px 18px 20px;
  }
  .xn-news .xn-news-card-image {
    aspect-ratio: 1.75;
  }
  .xn-news .xn-story-title {
    font-size: 30px;
  }
  .xn-news .xn-story-lead {
    font-size: 15px;
  }
  .xn-news .xn-story-prose p {
    font-size: 14px;
  }
  .xn-news .xn-article-subsection h2 {
    font-size: 21px;
  }
  .xn-news .xn-gallery-grid {
    gap: 7px;
  }
  .xn-news .xn-photo-button:first-child {
    min-height: 165px;
  }
  .xn-news .xn-story-sidebar {
    grid-template-columns: 1fr;
  }
  .xn-news .xn-share-btn {
    flex: 1 1 43%;
  }
  .xn-news .xn-news-detail {
    padding-top: 20px;
  }
  .xn-news.xn-news-detail {
    padding: 18px 0 55px;
  }
  .xn-news .xn-story-quote {
    font-size: 17px;
    padding: 18px;
  }
  .xn-news .xn-news-detail .xn-story-cover img {
    border-radius: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xn-news .xn-feature img,
  .xn-news .xn-news-card,
  .xn-news .xn-news-card-image img,
  .xn-news .xn-share-btn {
    transition: none !important;
  }
}
/* Search: follows existing light cards, buttons and page-banner classes. */
.xs-search-page {
  max-width: 1050px;
}
.xs-search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.xs-search-form input {
  flex: 1;
  min-width: 210px;
  border: 1px solid #dbe5ef;
  background: var(--card, #fff);
  color: var(--text, #233044);
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
}
.xs-results-title {
  font-size: 23px;
  font-weight: 800;
  margin: 10px 0 20px;
}
.xs-results-list {
  display: grid;
  gap: 14px;
}
.xs-result {
  display: block;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.xs-result:hover {
  transform: translateY(-2px);
}
.xs-result h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 7px 0;
}
.xs-result p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted, #687588);
}
.xs-type {
  color: var(--blue, #276fd3);
  font-size: 12px;
  font-weight: 800;
}
.xs-empty {
  padding: 30px;
}

/* خلفية مشتركة لجميع بطاقات المعلمين */
.teacher-card .teacher-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

/* الدائرة الزرقاء الثابتة */
.teacher-card .teacher-visual::before {
  content: "";
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  top: 17%;
  left: 5%;
  border-radius: 50%;
  background: #287df0;
  z-index: 0;
}

/* الكرة الصفراء المتحركة */
.teacher-card .teacher-visual::after {
  content: "";
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  top: 8%;
  left: 8%;
  border-radius: 50%;
  background: #ffcf67;
  z-index: 1;
  animation: teacherYellowBall 12s linear infinite;
  will-change: transform;
}

/* صورة المعلم في المقدمة */
.teacher-card .teacher-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 2;
}

/* حركة دائمة داخل حدود المربع */
@keyframes teacherYellowBall {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(320%, 15%);
  }
  50% {
    transform: translate(315%, 325%);
  }
  75% {
    transform: translate(10%, 320%);
  }
}

/* احترام تفضيلات تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .teacher-card .teacher-visual::after {
    animation: none;
  }
}

/* حركة عشوائية للكرة الصفراء */
.teacher-card .teacher-visual::after {
    animation: none !important;

    transform: translate(
        var(--ball-x, 0%),
        var(--ball-y, 0%)
    );

    transition: transform var(--ball-time, 15s) linear;

    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .teacher-card .teacher-visual::after {
        transition: none !important;
    }
}
