/* ============================================================
   WRO Kuwait — Season 2027 stylesheet
   ============================================================ */

:root {
  /* WRO brand gradients (from current site) */
  --wro-red-1: #e62243;
  --wro-red-2: #c1267d;
  --wro-blue-1: #0099ff;
  --wro-blue-2: #006699;
  --wro-green-1: #92c11f;
  --wro-green-2: #019039;
  --wro-yellow-1: #ffd500;
  --wro-yellow-2: #ff9933;

  /* WRO Kuwait primary — rose */
  --rose-1: #e62243;
  --rose-2: #c1267d;
  --rose-grad: linear-gradient(to right, var(--rose-1), var(--rose-2));

  --bg: #0c0a18;
  --bg-soft: #161026;
  --surface: #1e1733;
  --surface-2: #271f40;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f2fa;
  --text-dim: #b3accc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --container: 1120px;

  --font-latin: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 14px; }
#achievements, #news, #timeline, #seasons, #categories, #wro-learn, #partners, #faq, #newsletter { scroll-margin-top: 72px; }


body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  line-height: 1.6;
  min-height: 100vh;
}
body.ar { font-family: var(--font-arabic); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0; /* logos never get squished by the links row */
}
.nav__brand img { height: 44px; width: auto; }
.nav__brand-name {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active {
  color: var(--text);
  background: linear-gradient(to right, var(--wro-red-1), var(--wro-red-2));
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.lang-btn:hover { background: var(--surface-2); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 6px 10px;
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-block: 72px 88px;
  overflow: hidden;
  background:
    linear-gradient(rgba(12, 10, 24, 0.35), rgba(12, 10, 24, 0.72)),
    url("../assets/img/kuwait-bg.jpg") center / cover no-repeat;
}

.hero__logo { height: 90px; width: auto; margin-inline: auto; margin-bottom: 8px; }
.hero__country {
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.hero__season {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.hero__theme-label { color: var(--text-dim); font-size: 1rem; }
.hero__theme {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin-block: 6px 28px;
}

.badge {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.badge--soon { background: var(--rose-grad); }
.badge--open { background: linear-gradient(to right, var(--wro-green-1), var(--wro-green-2)); }
.badge--closed { background: linear-gradient(to right, #5a5470, #3c374f); }

.countdown { margin-block: 8px 30px; }
.countdown__label { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 12px; }
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.countdown__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 84px;
}
.countdown__num { font-size: 1.6rem; font-weight: 800; display: block; }
.countdown__unit { font-size: 0.78rem; color: var(--text-dim); }

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  border: none;
  transition: transform 0.15s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn--primary {
  background: linear-gradient(to right, var(--wro-red-1), var(--wro-red-2));
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn--green {
  background: linear-gradient(to right, var(--wro-green-1), var(--wro-green-2));
  color: #fff;
}

/* ---------- Unified card behavior ----------
   Every card on the site rests on a neutral border and,
   on hover, lifts and shows the rose border — same as the
   age-group cards. */
.join-card,
.age-card,
.timeline-card,
.cat-card,
.news-card,
.stat-card,
.season-card,
.partner-card,
.step-card,
.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}
.join-card:hover,
.age-card:hover,
.timeline-card:hover,
.cat-card:hover,
.news-card:hover,
.stat-card:hover,
.season-card:hover,
.partner-card:hover,
.step-card:hover,
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose-2);
}

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
.section--soft { background: var(--bg-soft); } /* dark purple */
.section--black { background: #07070d; }

/* Light sections — brighten the page rhythm. Cards inside inherit the
   overridden variables automatically. */
.section--light {
  --surface: #ffffff;
  --surface-2: #ececf1;
  --border: rgba(20, 15, 45, 0.12);
  --text: #1a1530;
  --text-dim: #5b5575;
  background: #e9e9ef; /* gray */
  color: var(--text);
}
.section--light .join-card img { filter: invert(1); opacity: 0.75; }
/* Yellow tracks: darker amber on gray sections for readability */
.section--light .cat-card--robostarter,
.section--light .cat-card--robomission,
.section--white .cat-card--robostarter,
.section--white .cat-card--robomission { --track-1: #e09600; --track-2: #e06d00; }

/* ---------- WRO Learn ---------- */
.learn-logo { height: 92px; width: auto; margin: 0 auto 18px; }
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 940px;
  margin: 8px auto 28px;
  text-align: center;
}
.learn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.learn-card:hover { transform: translateY(-4px); border-color: var(--rose-2); }
.learn-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.learn-card h3 {
  margin: 14px 0 6px;
  font-size: 1.02rem;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.learn-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 0 18px 18px;
}
@media (max-width: 720px) {
  .learn-grid { grid-template-columns: 1fr; }
}

/* ---------- Parallax bands ---------- */
.parallax-band {
  height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  .parallax-band { background-attachment: scroll; height: 220px; }
}

.section__title {
  text-align: center;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.section__subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 0.96rem;
}

/* ---------- Season intro banner (top of timeline section) ---------- */
.season-intro { margin-bottom: 36px; }
.season-intro__content {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: start;
  padding: 0;
  max-width: 860px;
  margin-inline: auto;
}
.season-intro__logo { height: 130px; width: auto; flex: 0 0 auto; }
.season-intro__text { flex: 1; }
@media (max-width: 720px) {
  .season-intro__content { flex-direction: column; text-align: center; gap: 18px; }
}
.season-intro__content h3 {
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.season-intro__content .theme {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 6px 0 14px;
}
.season-intro__content p:last-child {
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* ---------- Timeline ---------- */
.timelines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.timeline-card { padding: 18px 22px; }
.timeline-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.timeline__item {
  display: flex;
  gap: 12px;
  padding-block: 5px;
  align-items: baseline;
}
.timeline__date {
  flex: 0 0 92px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timeline__label { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Who can join ---------- */
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}
@media (max-width: 720px) {
  .join-grid { grid-template-columns: repeat(2, 1fr); }
}
.join-card { padding: 26px 14px; }
.join-card img { height: 64px; margin-inline: auto; margin-bottom: 14px; }
.join-card span {
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Age groups ---------- */
.ages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}
@media (max-width: 720px) {
  .ages-grid { grid-template-columns: repeat(2, 1fr); }
}
.age-card { padding: 26px 14px; }
.age-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.age-card p {
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.age-card .age-born {
  background: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.cat-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cat-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cat-card__head img { height: 56px; width: 56px; object-fit: contain; }
.cat-card__head h3 { font-size: 1.25rem; }
.cat-card__body { padding: 20px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.cat-card__desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.cat-specs { font-size: 0.9rem; flex: 1; }
.cat-specs li {
  display: flex;
  gap: 10px;
  padding-block: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.cat-specs li:last-child { border-bottom: none; }
.cat-specs .k { flex: 0 0 130px; color: var(--text-dim); }
.cat-specs .v { font-weight: 500; }

/* ---------- Photo strips (local competition moments) ---------- */
.photo-strip { padding-block: 0 0; }
.photo-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-strip__grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s;
}
.photo-strip__grid img:hover { transform: scale(1.02); }

.photo-band {
  position: relative;
  height: 320px;
  background: center / cover no-repeat;
  background-attachment: fixed;
  display: grid;
  place-items: center;
  text-align: center;
}
@media (max-width: 900px) {
  .photo-band { background-attachment: scroll; }
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(12, 10, 24, 0.55), rgba(12, 10, 24, 0.75));
}
.photo-band > div { position: relative; padding-inline: 20px; }
.photo-band h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 6px;
}
.photo-band p { color: var(--text-dim); }

/* ---------- Category card links ---------- */
.cat-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cat-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.15s, filter 0.2s;
}
.cat-link:hover { transform: translateY(-2px); filter: brightness(1.12); }
.cat-link--video {
  background: var(--rose-grad);
  color: #fff;
}
.cat-link--rules {
  border: 1.5px solid var(--border);
  color: var(--text-dim);
}
.cat-link--rules:hover { color: var(--text); border-color: var(--rose-2); }

/* ---------- Track colors (WRO Kuwait mapping) ---------- */
.cat-card--robostarter { --track-1: #ffd500; --track-2: #ff9933; }
.cat-card--robomission { --track-1: #ffd500; --track-2: #ff9933; }
.cat-card--robosport { --track-1: #92c11f; --track-2: #019039; }
.cat-card--future-innovators { --track-1: #e62243; --track-2: #c1267d; }
.cat-card--future-engineers { --track-1: #0099ff; --track-2: #006699; }

/* Yellow gradient buttons need dark text for contrast */
.cat-card--robostarter .cat-link--video,
.cat-card--robomission .cat-link--video { color: #221a00; }

.cat-card__head h3 {
  font-size: 1.12rem;
  background: linear-gradient(to right, var(--track-1, var(--rose-1)), var(--track-2, var(--rose-2)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cat-card .cat-link--video {
  background: linear-gradient(to right, var(--track-1, var(--rose-1)), var(--track-2, var(--rose-2)));
}
.cat-card .cat-link--rules:hover { border-color: var(--track-1, var(--rose-2)); }
.cat-card:hover { border-color: var(--track-1, var(--rose-2)); }

/* ---------- In-card video player ---------- */
.cat-video {
  position: relative;
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.cat-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.cat-video iframe { width: 100%; height: 100%; border: 0; }
.cat-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cat-video__play span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(to right, var(--track-1, var(--rose-1)), var(--track-2, var(--rose-2)));
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.cat-video:hover .cat-video__play span { transform: scale(1.1); }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  padding: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.news-card__img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}
.news-card__content { flex: 1; min-width: 0; }

/* Light page variant (whole page on gray, dark header/footer stay) */
.page--light {
  --surface: #ffffff;
  --surface-2: #ececf1;
  --border: rgba(20, 15, 45, 0.12);
  --text: #1a1530;
  --text-dim: #5b5575;
  background: #e9e9ef;
  color: var(--text);
}

/* News page: filters, full stories, share, press links */
.news-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.news-filters select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 8px 16px;
  font: inherit;
  font-size: 0.85rem;
}
.news-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  scroll-margin-top: 80px;
  transition: border-color 0.3s;
}
.news-item.is-highlighted { border-color: var(--rose-1); }
.news-item__img {
  width: 200px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}
.news-item__content { flex: 1; min-width: 0; }
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.news-item h2 { font-size: 1.15rem; margin-bottom: 8px; }
.news-item p { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 10px; line-height: 1.7; }
.news-tag {
  background: var(--rose-grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.news-share {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  margin-inline-start: auto;
  transition: color 0.2s, border-color 0.2s;
}
.news-share:hover { color: var(--text); border-color: var(--rose-2); }
.news-copied { display: none; color: var(--wro-green-1); font-size: 0.78rem; }
.news-copied.is-visible { display: inline; }
.news-press {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 0.85rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.news-press__label { color: var(--text-dim); font-weight: 600; }
.news-press a {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  transition: border-color 0.2s;
}
.news-press a:hover { border-color: var(--rose-2); }
@media (max-width: 720px) {
  .news-item { flex-direction: column; }
  .news-item__img { width: 100%; height: 170px; }
}

/* (legacy featured-story styles kept for the home rotator) */
.news-featured {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.news-featured:hover { transform: translateY(-3px); border-color: var(--rose-2); }
.news-featured img {
  width: 42%;
  height: 250px;
  object-fit: cover;
  flex: 0 0 auto;
}
.news-featured__content { padding: 24px 26px; }
.news-featured__content h2 { font-size: 1.3rem; margin-bottom: 8px; }
.news-featured__content p { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 720px) {
  .news-featured { flex-direction: column; align-items: stretch; }
  .news-featured img { width: 100%; height: 180px; }
}

/* News article view */
.article { max-width: 760px; margin-inline: auto; padding-block: 30px 60px; }
.article__img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.article h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 16px; }
.article p { color: var(--text-dim); margin-bottom: 14px; font-size: 0.98rem; line-height: 1.75; }

/* Home page: single rotating highlight + side button */
.news-rotator {
  display: flex;
  gap: 20px;
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
}
.news-rotator .news-card {
  flex: 1;
  opacity: 1;
  transition: opacity 0.35s;
}
.news-rotator .news-card.is-fading { opacity: 0; }
.news-rotator__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.news-dots { display: flex; gap: 6px; justify-content: center; }
.news-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.news-dots span.is-active { background: var(--rose-1); }
@media (max-width: 720px) {
  .news-rotator { flex-direction: column; }
}
.news-card__date {
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.news-card h3 { font-size: 1rem; margin-bottom: 4px; }
.news-card p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Achievements ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { padding: 28px 16px; }
.stat-card .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .label { color: var(--text-dim); font-size: 0.9rem; }
.stat-card--rank { border-color: rgba(230, 34, 67, 0.35); }

/* ---------- Past championships ---------- */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.season-card {
  padding: 22px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.season-card__logo {
  height: 84px;
  width: 84px;
  object-fit: contain;
  flex: 0 0 auto;
}
.season-card__body { flex: 1; min-width: 0; }
.season-card__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.season-card .year {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.season-card .theme { font-weight: 600; }
.season-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.season-card .btn { align-self: flex-start; padding: 10px 22px; font-size: 0.9rem; }

/* ---------- Partners logo strip (main partners) ---------- */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 44px;
  margin-bottom: 30px;
}
.partners-row img {
  max-height: 34px;
  width: auto;
  max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.partners-row a:hover img { opacity: 1; }
.partners-row .pname {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
/* On gray sections the logos render dark instead of white */
.section--light .partners-row img,
.section--white .partners-row img { filter: brightness(0); opacity: 0.7; }
.section--light .partners-row a:hover img,
.section--white .partners-row a:hover img { opacity: 1; }
.section--light .partners-row img[src*="WRO-UPS"],
.section--white .partners-row img[src*="WRO-UPS"] { filter: none; opacity: 1; }

/* ---------- Partners (educational: descriptive cards) ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.partner-card {
  padding: 26px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
  min-height: 120px;
}
.partner-card img { max-height: 56px; width: auto; }
.partner-card .name { font-weight: 600; font-size: 0.95rem; }
.partner-card .desc { color: var(--text-dim); font-size: 0.85rem; }
.partners-cta { text-align: center; }

/* ---------- Social highlights ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.social-embed { border-radius: var(--radius); overflow: hidden; }
.social-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.btn--yt { background: #ff0000; color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--text-dim); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary {
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.faq-item[open] summary::after { color: var(--rose-1); }
.faq-item .answer { padding: 0 22px 18px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.newsletter form {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.newsletter input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 13px 22px;
  font: inherit;
}
.newsletter input:focus { outline: 2px solid var(--rose-2); outline-offset: -1px; }
/* Phones: Subscribe button drops below the email field */
@media (max-width: 560px) {
  .newsletter form { flex-direction: column; }
  .newsletter form .btn { width: 100%; }
}
.newsletter .msg { margin-top: 14px; font-size: 0.92rem; display: none; }
.newsletter .msg.ok { display: block; color: var(--wro-green-1); }
.newsletter .msg.err { display: block; color: var(--rose-1); }

/* ---------- Footer social icons ---------- */
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: border-color 0.2s, transform 0.2s;
}
.footer__social a:hover { border-color: var(--rose-2); transform: translateY(-2px); }

.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* ---------- Guide steps (Start a Team) ---------- */
.steps { max-width: 780px; margin-inline: auto; }
.step-card { padding: 28px 30px; margin-bottom: 18px; }
.step-card h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-card p { color: var(--text-dim); font-size: 0.96rem; }
.page-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 34px 0 80px; }

/* ---------- Volunteers roles ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.role-card { padding: 28px 24px; }
.role-card h3 {
  margin-bottom: 8px;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.role-card p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Gallery page ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid img.wide { grid-column: 1 / -1; height: 320px; }

/* ---------- Season report page ---------- */
.season-hero {
  position: relative;
  background: center / cover no-repeat;
  min-height: 230px;
  display: flex;
  align-items: center;
}
.season-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 8, 20, 0.72), rgba(10, 8, 20, 0.85));
}
.season-hero__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 24px;
  width: 100%;
}
.season-hero__logo {
  height: 110px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.5));
}
.season-hero__text { flex: 1; color: #fff; }
.season-hero__text .year {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.season-hero__text .theme { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.season-hero__text p { color: #cfc9e0; max-width: 560px; font-size: 0.88rem; }
.season-hero__tracks { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.track-icon { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-dim); }
.season-hero .track-icon { color: #e8e4f5; }
.section--light .track-icon img,
.section--white .track-icon img { filter: brightness(0.2); }
.track-icon img { width: auto; }
@media (max-width: 720px) {
  .season-hero__content { flex-direction: column; text-align: center; }
  .season-hero__text p { margin-inline: auto; }
  .season-hero__tracks { justify-content: center; }
}
.report-overview__tracks { display: flex; gap: 20px; flex-wrap: wrap; padding-block: 10px; }
.report-overview__sub { font-weight: 700; color: var(--text); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* Overview two-card layout */
.overview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}
.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.overview-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.overview-meta { max-width: 960px; margin: 20px auto 0; }
@media (max-width: 720px) { .overview-cards { grid-template-columns: 1fr; } }

/* Score tabs (track colors) */
.score-tab.is-active { background: var(--tab-color); color: #14100a; border-color: transparent; font-weight: 700; }
.score-pane .table-wrap { margin-bottom: 10px; }

/* Kuwait Delegation rows */
.intl-list { display: grid; gap: 18px; max-width: 980px; margin-inline: auto; }
.intl-row {
  display: flex;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: stretch;
  transition: transform .2s, border-color .2s;
}
.intl-row:hover { transform: translateY(-3px); border-color: var(--rose-2); }
.intl-row__img { width: 280px; object-fit: cover; flex: 0 0 auto; }
.intl-row__body { padding: 18px 22px 18px 0; flex: 1; }
.intl-row__flag { font-size: 1.5rem; vertical-align: middle; margin-inline-end: 6px; }
.intl-row__event { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 4px; }
.intl-row__team { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; }
.intl-row__tracks { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.intl-row__ages { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 6px; }
@media (max-width: 720px) {
  .intl-row { flex-direction: column; }
  .intl-row__img { width: 100%; height: 170px; }
  .intl-row__body { padding: 16px 18px; }
}

/* Gallery marquee */
.gallery-marquee { overflow: hidden; }
.gallery-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.gallery-marquee__track img {
  height: 200px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.gallery-marquee:hover .gallery-marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* TBD demographics */
.demo-bar--tbd {
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(127,127,127,0.12) 8px, rgba(127,127,127,0.12) 16px);
}

/* SDG official icon overlay */
.sdg-tile { position: relative; overflow: hidden; }
.sdg-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Demographics bars */
.demo-list { max-width: 720px; margin-inline: auto; display: grid; gap: 22px; }
.demo-item__label { font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.demo-bar {
  display: flex;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.demo-bar span { display: block; height: 100%; }
.demo-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 0.82rem; color: var(--text-dim); }
.demo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }

/* International delegation cards */
.intl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin-inline: auto;
}
.intl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.intl-card:hover { transform: translateY(-4px); border-color: var(--rose-2); }
.intl-card img { width: 100%; height: 150px; object-fit: cover; }
.intl-card__body { padding: 16px 18px; }
.intl-card__event { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 4px; }
.intl-card__team { font-weight: 700; font-size: 0.95rem; }
.intl-card__result {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Media cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 18px;
}
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.media-card:hover { transform: translateY(-3px); border-color: var(--rose-2); }
.media-card img { width: 100%; height: 130px; object-fit: cover; }
.media-card span { display: block; padding: 12px 14px; font-size: 0.85rem; }

/* SDG tiles */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}
.sdg-tile {
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
}
.sdg-tile .n { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.sdg-tile .name { font-size: 0.75rem; font-weight: 600; margin-top: 6px; line-height: 1.35; }

.report-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  margin: 26px 0 12px;
}
.report-subtitle img { height: 26px; width: auto; }
.report-video { max-width: 720px; margin-inline: auto; }
.report-video .cat-video { margin-top: 0; }

/* Results iframe (2026 onward) */
.results-iframe { max-width: 980px; margin-inline: auto; }
.results-iframe iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* Partner chip logos */
.report-chip__logo { height: 22px; display: inline-block; vertical-align: middle; margin-inline-end: 8px; }
.report-chip { display: inline-flex; align-items: center; }

.report-sec { margin-bottom: 14px; }
.report-overview {
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
}
.report-overview__row { padding-block: 5px; color: var(--text-dim); font-size: 0.95rem; }
.report-medals { text-align: center; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.report-milestones { max-width: 760px; margin-inline: auto; }
.report-milestones li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 8px 14px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.93rem;
}
.report-milestones .date {
  flex: 0 0 86px;
  font-weight: 800;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.report-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin-inline: auto;
}
.report-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.report-chip b { color: var(--text); font-weight: 700; }
.report-chip--sdg {
  background: var(--rose-grad);
  color: #fff;
  border: none;
  font-weight: 700;
}
.report-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin-inline: auto;
}
.report-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.report-quote p { color: var(--text); font-size: 0.93rem; font-style: italic; margin-bottom: 12px; }
.report-quote footer { color: var(--text-dim); font-size: 0.82rem; }
.report-next {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.report-sec .table-wrap { margin-bottom: 26px; }

/* ---------- Season page ---------- */
.season-head { text-align: center; padding-block: 56px 26px; }
.season-head .year {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.season-head .theme { font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
.season-head p { color: var(--text-dim); margin-top: 10px; max-width: 640px; margin-inline: auto; }
.season-section-title { font-size: 1.15rem; font-weight: 800; margin: 38px 0 16px; text-align: center; }

/* ---------- Forms (registration) ---------- */
.page-head {
  text-align: center;
  padding-block: 40px 10px;
}
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
.page-head p { color: var(--text-dim); margin-top: 8px; }

.notice {
  max-width: 720px;
  margin: 24px auto 0;
  background: rgba(193, 38, 125, 0.12);
  border: 1px solid rgba(230, 34, 67, 0.4);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.92rem;
  text-align: center;
}

.form-card {
  max-width: 760px;
  margin: 36px auto 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-section + .form-section { margin-top: 34px; }
.form-section h2 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; color: var(--text-dim); }
.form-field input,
.form-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(20, 15, 45, 0.18);
  border-radius: var(--radius-sm);
  color: #1a1530;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
}
.form-field input::placeholder { color: rgba(26, 21, 48, 0.4); }
.form-field select option { background: #ffffff; color: #1a1530; }
.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--rose-2);
  outline-offset: -1px;
}

.member-row > * { min-width: 0; }
.member-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.member-row .remove-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}
.member-row .remove-btn:hover { color: var(--wro-red-1); border-color: var(--wro-red-1); }

.add-member-btn {
  background: none;
  border: 1.5px dashed var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.9rem;
  width: 100%;
}
.add-member-btn:hover { color: var(--text); border-color: var(--wro-green-1); }

.fee-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 26px;
}
.fee-box .amount { font-size: 1.5rem; font-weight: 800; color: var(--wro-green-1); }

.form-error { color: #ff8fa3; font-size: 0.9rem; margin-top: 14px; display: none; }
.form-error.is-visible { display: block; }

.form-submit { margin-top: 22px; width: 100%; }

.success-card {
  text-align: center;
  padding: 48px 30px;
}
.success-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--wro-green-1), var(--wro-green-2));
}
.success-card h2 { margin-bottom: 10px; }
.success-card p { color: var(--text-dim); max-width: 460px; margin-inline: auto; }

/* ---------- Results ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.tab.is-active {
  background: var(--rose-grad);
  color: #fff;
  border-color: transparent;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 80px;
}
.results-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.results-table th,
.results-table td {
  padding: 14px 18px;
  text-align: start;
  font-size: 0.94rem;
}
.results-table thead th {
  background: var(--bg-soft);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.results-table tbody tr { border-top: 1px solid var(--border); }
.results-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.results-table .best { font-weight: 700; color: var(--wro-green-1); }
.rank-medal { font-size: 1.1rem; }

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wro-red-1);
  margin-inline-end: 8px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Footer ---------- */
.footer {
  background: #080614;
  border-top: 1px solid var(--border);
  padding-block: 44px 22px;
  color: var(--text-dim);
  font-size: 11px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer__brand img { height: 43px; margin-bottom: 16px; }
.footer h4 { color: var(--text); margin-bottom: 10px; font-size: 12px; }
.footer li { padding-block: 4px; }
.footer a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  font-size: 11px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; font-size: 0.95rem; }
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .member-row > * { min-width: 0; }
.member-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .photo-strip__grid { grid-template-columns: 1fr; }
  .photo-strip__grid img { height: 200px; }
}


/* ============================================================

/* ---------- Homepage hero: Educators' Challenge ad ---------- */
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  direction: ltr; /* same logo order in EN and AR */
}
.hero-logos img { width: auto; }
/* Phones: the fixed heights make the pair wider than the screen — scale to fit */
@media (max-width: 640px) {
  .hero-logos { gap: 18px; }
  .hero-logos img { height: auto !important; max-height: 64px; max-width: 45%; }
}

/* Challenge pages with few nav buttons (no ☰ menu): wrap instead of overflowing */
@media (max-width: 720px) {
  .page-edch .nav:not(:has(.nav__toggle)) { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .page-edch .nav:not(:has(.nav__toggle)) > div { flex-wrap: wrap; justify-content: center; }
}

/* Challenge landing nav: pill buttons on desktop, ☰ dropdown on mobile */
.page-edch .nav__links { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.page-edch .nav__links a.btn { padding: 8px 22px; font-size: 0.9rem; color: var(--text); }
@media (max-width: 900px) {
  .page-edch .nav__links a.btn {
    border: none;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .page-edch .nav__links .lang-btn { margin-top: 8px; }
}


/* Smooth cross-page transition (progressive enhancement) */
@view-transition { navigation: auto; }

/* ---------- Educators' Challenge (event pages) ---------- */
/* ---------- Hero video background ---------- */
.hero--video { position: relative; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* neutral scrim only — video keeps its original colors */
.hero--video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(12, 10, 24, 0.25), rgba(12, 10, 24, 0.45));
}
.hero--video > .container {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* ---------- Educational Challenge ---------- */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: end;
  max-width: 1000px;
  margin: 0 auto 26px;
}
.podium-card { text-align: center; padding-block: 22px; }
.podium-card .medal { font-size: 2.4rem; line-height: 1; margin-bottom: 10px; }
.podium-card h3 { margin-bottom: 8px; }
.prize-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: start;
  width: fit-content;
  margin-inline: auto;
}
.prize-list li { padding-inline-start: 18px; position: relative; }
.prize-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e62243, #c1267d);
}
.podium-card a[data-faq-link] {
  color: #e62243;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.podium-card::after {
  content: "";
  display: block;
  margin: 16px auto 0;
  height: 8px;
  width: 60%;
  border-radius: 6px;
  background: linear-gradient(90deg, #e62243, #c1267d);
  opacity: 0.35;
}
.podium-card--first { border-color: #e62243; padding-block: 38px; }
.podium-card--first::after { height: 18px; opacity: 1; }
.podium-card--second::after { height: 12px; opacity: 0.6; }
.notice--big { font-size: 1.05rem; padding: 20px 26px; text-align: center; }
.prize-photo { width: 100%; border-radius: 12px; margin-top: 16px; }
.prize-photo--empty {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 2px dashed rgba(230, 34, 67, 0.45);
  color: var(--muted, #9a93b0);
  font-size: 0.8rem;
}
@media (max-width: 560px) {
  .podium { grid-template-columns: 1fr; align-items: stretch; }
  .podium-card--first { order: 1; }
  .podium-card--second { order: 2; }
  .podium-card--third { order: 3; }
}
.roles-grid--4 { grid-template-columns: repeat(4, 1fr); max-width: 1150px; }
.roles-grid.roles-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .roles-grid.roles-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .roles-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roles-grid--4 { grid-template-columns: 1fr; } }
.aud-card { text-align: center; }
.aud-card img { height: 56px; margin: 0 auto 14px; }
.section--soft .aud-card img,
.section--black .aud-card img { filter: none; }
.section--light .aud-card img,
.section--white .aud-card img { filter: brightness(0.2); }
.expert-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--rose-2);
}
.edch-list { max-width: 720px; margin-inline: auto; }
.edch-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
[dir="rtl"] .edch-list li { padding: 9px 30px 9px 0; }
.edch-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  font-weight: 800;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.edch-list__note::before { content: "ℹ" !important; }

.section--white {
  --surface: #f6f6f9;
  --surface-2: #ececf1;
  --border: rgba(20, 15, 45, 0.12);
  --text: #1a1530;
  --text-dim: #5b5575;
  background: #ffffff;
  color: var(--text);
}
.section--white .join-card img { filter: invert(1); opacity: 0.75; }

.score-grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 640px) { .score-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ============================================================
   Educators' Challenge — event theme (RoboSports green)
   ============================================================ */
.page-edch {
  --edch-1: #92c11f;   /* WRO RoboSports green */
  --edch-2: #019039;
  --rose-1: var(--edch-1);
  --rose-2: var(--edch-2);
  --rose-grad: linear-gradient(to right, var(--edch-1), var(--edch-2));
  --wro-red-1: var(--edch-1);
  --wro-red-2: var(--edch-2);
}
.page-edch .podium-card--first { border-color: var(--edch-2); }
.page-edch .podium-card::after,
.page-edch .prize-list li::before { background: linear-gradient(90deg, var(--edch-1), var(--edch-2)); }
.page-edch .prize-photo--empty { border-color: rgba(1, 144, 57, 0.5); }
.page-edch .podium-card a[data-faq-link] { color: var(--edch-2); }
.page-edch .notice {
  background: rgba(1, 144, 57, 0.1);
  border-color: rgba(1, 144, 57, 0.45);
}
.page-edch .join-card:hover,
.page-edch .role-card:hover,
.page-edch .stat-card:hover,
.page-edch .news-card:hover { border-color: var(--edch-2); }
.page-edch .form-field input:focus,
.page-edch .form-field select:focus { outline-color: var(--edch-2); }
.page-edch .expert-photo { border-color: var(--edch-2); }

.edch-step {
  text-align: center;
  padding: 30px 22px;
  display: block;
}
.edch-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-1), var(--rose-2));
}

.edch-step__date {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--rose-2);
}
.edch-step__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.score-group { text-align: center; margin: 24px 0 14px; font-size: 1.02rem; }
.score-group:first-of-type { margin-top: 0; }
.score-grid--2 { grid-template-columns: repeat(2, 1fr) !important; max-width: 560px; margin-inline: auto; }

.form-field input[type="file"] {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.85rem;
}
.form-field input[type="file"]::file-selector-button {
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  margin-inline-end: 12px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(to right, var(--rose-1), var(--rose-2));
}

/* Challenge partners — per-logo sizing (+30%) and light-gray treatment */
[data-edch-partners] img { max-height: 44px; }
[data-edch-partners] img[src*="kfh"] { max-height: 48px; }
[data-edch-partners] img[src*="ku-white"] { max-height: 66px; }
[data-edch-partners] img[src*="WRO-UPS"] { max-height: 66px; }
[data-edch-partners] img[src*="soroptimist"] { max-height: 56px; }
/* white logos -> darken to gray; colored logos -> desaturate, keep detail */
.section--light [data-edch-partners] img,
.section--white [data-edch-partners] img {
  filter: brightness(0) !important;
  opacity: 0.35 !important;
}
.section--light [data-edch-partners] img[src*="WRO-UPS"],
.section--white [data-edch-partners] img[src*="WRO-UPS"],
.section--light [data-edch-partners] img[src*="soroptimist"],
.section--white [data-edch-partners] img[src*="soroptimist"] {
  filter: grayscale(1) !important;
  opacity: 0.55 !important;
}
.section--light [data-edch-partners] a:hover img,
.section--white [data-edch-partners] a:hover img { opacity: 0.75 !important; }

/* Section print-to-PDF on the challenge guide */
@media print {
  .header, .hero, footer, .no-print { display: none !important; }
  body { background: #fff !important; }
  .section { background: #fff !important; color: #1a1530 !important; padding-block: 10px; }
  body[data-print] section.section { display: none; }
  body[data-print="g-rules"] #g-rules,
  body[data-print="g-plan"] #g-plan,
  body[data-print="g-judging"] #g-judging { display: block !important; }
  .stat-card { border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- Challenge guide page ---------- */
.guide-nav {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(12, 10, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.guide-nav__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: safe center;
}
.guide-nav__inner::-webkit-scrollbar { display: none; }
.guide-nav__inner a {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #f4f2fa;
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  transition: background 0.2s;
}
.guide-nav__inner a:hover { background: rgba(255, 255, 255, 0.1); }
.deadline-card { text-align: center; padding: 24px 18px; }
.deadline-card .medal { font-size: 1.9rem; margin-bottom: 8px; }
.guide-intro { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 14px; text-align: center; }
.edch-list .g { color: var(--text-dim); font-size: 0.88rem; font-weight: 400; margin-top: 3px; }
.table-scroll { overflow-x: auto; margin-top: 14px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.guide-table th, .guide-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; vertical-align: top; }
.guide-table th { background: var(--surface-2); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.guide-table a { color: var(--rose-2); text-decoration: underline; text-underline-offset: 2px; }
.guide-table__total td { font-weight: 700; background: var(--surface-2); }
.page-edch [id] { scroll-margin-top: 130px; }
.to-top {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--rose-1), var(--rose-2));
  color: #fff;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.to-top.is-visible { display: flex; }
@media print {
  .guide-nav, .to-top { display: none !important; }
  .guide-table th { background: #eee !important; color: #000; }
  .guide-table, .guide-table th, .guide-table td { border-color: #999 !important; }
  .edch-list li { break-inside: avoid; }
}

.deadline-card__date {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--rose-1), var(--rose-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.deadline-card__label { display: block; color: var(--text-dim); font-size: 0.95rem; margin-top: 6px; }
.phase-banner {
  background: linear-gradient(90deg, var(--rose-1), var(--rose-2));
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  margin: 34px 0 10px;
  font-size: 1.02rem;
}

.guide-table .cell-sub { color: var(--text-dim); font-size: 0.8rem; font-weight: 600; margin-top: 4px; white-space: nowrap; }

.det-tables { display: grid; gap: 18px; }
@media (min-width: 900px) { .det-tables { grid-template-columns: 1fr 1fr; } .det-tables .table-scroll:nth-child(3) { grid-column: 1 / -1; max-width: 560px; margin-inline: auto; width: 100%; } }

/* ---------- Judges' scoring form ---------- */
.jf-criteria { margin-top: 20px; display: grid; gap: 12px; }
.jf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 15, 45, 0.12);
  border-radius: var(--radius-sm);
  background: #fff;
}
.jf-row__info { display: flex; flex-direction: column; gap: 3px; }
.jf-row__hint { color: var(--text-dim); font-size: 0.8rem; max-width: 420px; }
.jf-row__score { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; font-weight: 700; color: var(--text-dim); }
.jf-row__score input {
  width: 74px;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(20, 15, 45, 0.18);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #1a1530;
}
.jf-row__score input:focus { outline: 2px solid var(--rose-2); outline-offset: -1px; }
.jf-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--rose-1), var(--rose-2));
  color: #fff;
  font-size: 1.05rem;
}
.form-card textarea {
  background: #ffffff;
  border: 1px solid rgba(20, 15, 45, 0.18);
  border-radius: var(--radius-sm);
  color: #1a1530;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
@media (max-width: 560px) {
  .jf-row { flex-direction: column; align-items: stretch; }
  .jf-row__score { justify-content: flex-end; }
}

.guide-table .q { display: block; font-style: italic; color: var(--text-dim); font-size: 0.84rem; margin-top: 3px; }

/* Competition Elements: 4 across on desktop, 2x2 on medium and small */
#g-plan .roles-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { #g-plan .roles-grid--4 { grid-template-columns: repeat(2, 1fr) !important; } }

.msg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .msg-grid { grid-template-columns: 1fr; } }
.msg-card { padding: 28px; }
.msg-card h3 { margin-bottom: 12px; }
.msg-card p { font-size: 0.93rem; color: var(--text-dim); }
.msg-card__sign { margin-top: 14px; font-weight: 700; color: var(--text) !important; font-size: 0.88rem !important; }

.msg-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.msg-card__head h3 { margin-bottom: 0; }
.msg-card__photo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-2);
  flex: 0 0 auto;
}
.msg-card__name { font-size: 0.95rem; }
.msg-card__sign { line-height: 1.5; }
.msg-card__sign span:not(.msg-card__name) { font-weight: 500; color: var(--text-dim); }
.ai-disc { color: var(--text-dim); font-size: 0.72rem; line-height: 1.6; max-width: 760px; margin-inline: auto; }
.hero__guideline {
  font-size: 0.62em;
  font-weight: 700;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.print-header { display: none; }
@media print {
  .print-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: #3d3d46;
    border-radius: 10px;
    padding: 14px 0;
    margin-bottom: 16px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .print-header img { height: 58px; }
  .print-header__collab { height: 48px !important; }
}

@media print {
  .ai-disc-title { break-before: page; page-break-before: always; }
}

.jf-entity-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.jf-entity-info > div {
  background: #fff;
  border: 1px solid rgba(20, 15, 45, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.jf-entity-info__label { display: block; color: var(--text-dim); font-size: 0.78rem; margin-bottom: 3px; }
@media (max-width: 640px) { .jf-entity-info { grid-template-columns: 1fr; } }
.jf-ai .faq-item .answer .guide-table { font-size: 0.84rem; }

.jf-entity-info__logo-card {
  background: #fff;
  border: 1px solid rgba(20, 15, 45, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.jf-entity-info__logo-card img { max-height: 56px; max-width: 90%; object-fit: contain; }
.jf-entity-info__logo-card img[src*="join/"] { filter: brightness(0.25); } /* demo type icons are light line-art */

/* ---------- Challenge scoreboard ---------- */
.sb { margin-top: 20px; }
.sb-row {
  display: grid;
  grid-template-columns: 52px 56px 1fr 64px 84px 72px;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(20, 15, 45, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.sb-row--head {
  background: transparent;
  border: none;
  padding-block: 4px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.sb-rank { font-size: 1.25rem; font-weight: 800; text-align: center; color: var(--text-dim); }
.sb-row--head .sb-rank { font-size: 0.72rem; }
.sb-logo-col { display: flex; justify-content: center; }
.sb-logo { max-height: 40px; max-width: 48px; object-fit: contain; }
.sb-logo[src*="join/"] { filter: brightness(0.25); }
.sb-name { font-weight: 700; }
.sb-score { text-align: center; font-weight: 600; color: var(--text-dim); }
.sb-score--total {
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(to right, var(--rose-1), var(--rose-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sb-row--head .sb-score--total { background: none; -webkit-text-fill-color: currentColor; color: var(--text-dim); font-size: 0.72rem; }
.sb-row--gold { border-color: #d4a017; box-shadow: 0 4px 18px rgba(212, 160, 23, 0.18); }
.sb-row--silver { border-color: #9aa2ad; }
.sb-row--bronze { border-color: #b0713b; }
@media (max-width: 560px) {
  .sb-row { grid-template-columns: 40px 40px 1fr 44px 54px 52px; padding: 8px 10px; gap: 6px; font-size: 0.85rem; }
  .sb-logo { max-height: 30px; }
  .sb-rank { font-size: 1rem; }
}

.sb-pod__logo { max-height: 68px; max-width: 70%; object-fit: contain; margin: 16px auto 0; }
.sb-pod__logo[src*="join/"] { filter: brightness(0.25); }
.sb-pod__name { font-weight: 700; margin-top: 10px; }
.sb-pod__score {
  margin-top: 6px;
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(to right, var(--rose-1), var(--rose-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Read-only zone on the judges' form: entity info + AI results */
.jf-ai {
  background: #ececf1;
  border: 1px solid rgba(20, 15, 45, 0.08);
  border-radius: var(--radius);
  padding: 6px 18px 18px;
  margin-top: 20px;
}
.jf-ai .score-group:first-child { margin-top: 14px; }
.jf-ai .stat-card { background: #fff; }
.jf-ai .notice { background: #fff; }
.jf-ai .faq-item { background: #fff; }

.nav__collab { height: 42px; width: auto; }
/* Brand lockup never mirrors: WRO left, divider, KFH right — in both languages */
.nav__brand { direction: ltr; }

.ts-item { margin-top: 16px; }
.ts-guidance { display: block; color: var(--text-dim); font-size: 0.82rem; margin: 2px 0 6px; }

.jf-sub {
  background: #fff;
  border: 1px solid rgba(20, 15, 45, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.jf-sub__row { margin-bottom: 10px; }
.jf-sub__row strong { display: block; font-size: 0.95rem; }

/* Judge login + session bar (judge-form) */
.jf-login__hint { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 14px; }
.jf-session {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(20, 15, 45, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-top: 24px;
  font-size: 0.9rem;
}
#jf-judge[readonly] { background: #ececf1; color: var(--text-dim); cursor: default; }

/* Judges list (admin-judging) */
.aj-judges { max-width: 980px; margin: 0 auto; }
.aj-judges__table td, .aj-judges__table th { font-size: 0.88rem; }

/* Homepage hero — Educators' Challenge with the WRO×KFH background,
   using the event's RoboSports green inside the hero only */
.hero--edch {
  --rose-1: #92c11f;
  --rose-2: #019039;
  --rose-grad: linear-gradient(to right, #92c11f, #019039);
  --wro-red-1: #92c11f;
  --wro-red-2: #019039;
  background:
    linear-gradient(rgba(12, 10, 24, 0.35), rgba(12, 10, 24, 0.72)),
    url("../assets/img/kuwait-bg.jpg") center / cover no-repeat;
}
.hero--edch .countdown { margin: 4px auto 46px; }
.hero--edch .countdown__num {
  background: linear-gradient(to right, #92c11f, #019039);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ---------- Feedback stars & choices ---------- */
.fb-stars { display: flex; gap: 4px; flex: 0 0 auto; }
.fb-star {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: rgba(20, 15, 45, 0.2);
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s, transform 0.15s;
}
.fb-star:hover { transform: scale(1.15); }
.fb-star.is-on { color: #ffd500; }
.fb-choice { display: flex; gap: 22px; flex-wrap: wrap; padding-block: 6px; }
.fb-choice label { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #1a1530; }
.fb-choice input { accent-color: #019039; width: 17px; height: 17px; }

/* ---------- AI judging admin console ---------- */
.aj-card {
  background: #fff;
  border: 1px solid rgba(20, 15, 45, 0.12);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.aj-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.aj-card__totals { display: flex; gap: 16px; align-items: center; color: var(--text-dim); font-size: 0.9rem; }
.aj-total strong {
  font-size: 1.2rem;
  background: linear-gradient(to right, var(--rose-1), var(--rose-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aj-badge {
  display: inline-block;
  margin-inline-start: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(230, 160, 0, 0.15);
  color: #9a6b00;
}
.aj-badge--ok { background: rgba(1, 144, 57, 0.12); color: #01712e; }
.aj-summary { color: var(--text-dim); font-size: 0.88rem; margin-top: 8px; }
.aj-table td, .aj-table th { font-size: 0.82rem; }
.aj-reason { color: var(--text-dim); }
.aj-adjust {
  width: 58px;
  text-align: center;
  font-weight: 700;
  padding: 6px;
  border: 1px solid rgba(20, 15, 45, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1a1530;
}
.aj-actions { margin-top: 12px; text-align: end; }

.aj-meta { display: block; color: var(--text-dim); font-size: 0.8rem; margin-top: 2px; }
.aj-answer {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 5px;
  padding-inline-start: 10px;
  border-inline-start: 3px solid rgba(1, 144, 57, 0.35);
  white-space: pre-wrap;
}

/* Full-width console layout */
.container--fluid { max-width: none; padding-inline: 34px; }
@media (max-width: 700px) { .container--fluid { padding-inline: 16px; } }

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  transform: none !important;
  filter: grayscale(0.4);
}

.aj-raw { font-style: normal; color: var(--text-dim); font-size: 0.78rem; }

@media print {
  #g-judging [data-i18n="edch.scoreAi"] { break-before: page; page-break-before: always; }
}
