:root {
    --yellow: #ffc20a;
    --yellow-soft: #ffe680;
    --yellow-pale: #fff8df;
    --black: #0d0d0d;
    --ink: #151515;
    --muted: #555;
    --line: #efbd00;
    --surface: #fff;
    --border: rgba(17, 17, 17, 0.1);
    --shadow: 0 14px 34px rgba(17, 17, 17, 0.1);
    --shadow-soft: 0 18px 48px rgba(17, 17, 17, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    --font-display: "Fredoka", "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--font-body);
    line-height: 1.5;
}

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

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}

.site-header .container {
    width: min(1600px, calc(100% - 48px));
}

.nav {
    display: flex;
    align-items: center;
    min-height: 70px;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 218px;
    height: 63px;
    object-fit: contain;
}

.brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0;
}

.nav-links a,
.nav-item > a {
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 70px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 14px;
}

.nav-links a:hover,
.nav-item > a:hover {
    color: #b88300;
}

.nav-links a.is-active {
    color: #111;
    box-shadow: inset 0 -4px 0 var(--yellow);
}

.nav-links .nav-lms-button {
    display: inline-flex;
    align-items: center;
    height: 42px;
    margin-left: 8px;
    padding: 0 16px;
    border: 2px solid var(--yellow);
    border-radius: 999px;
    background: var(--yellow);
    color: #111;
    line-height: 42px;
    box-shadow: 0 8px 18px rgba(239, 189, 0, 0.22);
}

.nav-links .nav-lms-button:hover {
    color: #111;
    background: #fff;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70px;
}

.has-menu > a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    color: currentColor;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: grid;
    min-width: 226px;
    padding: 0;
    background: #fff;
    border-top: 3px solid #ffde59;
    border-radius: 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu a {
    min-height: 42px;
    padding: 14px 16px;
    border-radius: 0;
    color: #333;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.6px;
    text-transform: none;
}

.submenu a:hover {
    background: var(--yellow-pale);
}

.nav-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0;
}

.nav-button,
.language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    color: var(--black);
    background: var(--yellow);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.nav-button-soft {
    background: #ffe08a;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 8px;
    padding: 0 13px;
    color: #000;
    background: #ddc11f;
    border: 1px solid #000;
    border-radius: 2px;
    line-height: 32px;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-pill .nav-icon,
.nav-pill {
    font-weight: 800;
}

.nav-pill:hover,
.nav-item:hover > .nav-pill,
.nav-item:focus-within > .nav-pill {
    color: #fff;
    background: #000;
    border-color: #fff;
}

.language-button {
    gap: 6px;
    padding: 0;
    background: transparent;
}

.search-button {
    position: relative;
    width: 42px;
    height: 70px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.search-button::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 10px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--black);
    border-radius: 50%;
}

.search-button::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 24px;
    width: 10px;
    height: 2px;
    background: var(--black);
    transform: rotate(45deg);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 46px;
    height: 46px;
    gap: 6px;
    margin-left: auto;
    background: #fff;
    border: 2px solid var(--yellow);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--black);
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.site-footer {
    padding: 18px 0;
    color: #fff;
    background: #111;
    border-top: 4px solid var(--yellow);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand,
.footer-links {
    display: flex;
    align-items: center;
}

.footer-brand {
    gap: 14px;
}

.footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand strong {
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1;
}

.footer-brand span,
.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.footer-brand span {
    font-weight: 700;
}

.footer-links a {
    font-weight: 400;
    text-decoration: none;
}

.footer-links a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.34);
    font-size: 14px;
    font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--yellow);
}

.footer-social a {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #111;
    background: var(--yellow);
    border-radius: 50%;
    transition: transform 160ms ease, background-color 160ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    background: #fff;
    transform: translateY(-2px);
}

.footer-social a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 4px;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.page {
    padding: 70px 0;
}

.page h1 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 56px);
}

.english-page {
    background: #fff;
}

.english-hero {
    position: relative;
    display: grid;
    min-height: clamp(430px, 48vw, 650px);
    overflow: hidden;
    background: #111;
}

.english-hero-media {
    position: absolute;
    inset: 0;
}

.english-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.32) 54%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.48) 100%);
}

.english-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.english-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: clamp(54px, 7vw, 96px) 0;
    color: #fff;
}

.english-hero-copy span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: var(--black);
    background: var(--yellow);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.english-hero-copy h1 {
    max-width: 920px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 70px);
    line-height: 1.04;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.english-overview-section,
.english-theme-section,
.english-resources-section,
.english-challenges-section {
    background: #fff;
}

.english-age-section {
    background: linear-gradient(180deg, #fffdf5 0%, #fff8df 100%);
}

.english-feature-card,
.english-theme-card,
.english-resource-card,
.english-challenge-grid article {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.english-feature-card::before,
.english-theme-card::before,
.english-resource-card::before,
.english-challenge-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--yellow);
}

.english-feature-grid {
    display: grid;
    gap: 22px;
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
}

.english-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
    gap: 22px;
    align-items: end;
    padding: clamp(28px, 4vw, 54px);
    background: linear-gradient(135deg, #fff 0%, #fff8df 100%);
}

.english-feature-card:nth-child(2)::before {
    background: #111;
}

.english-copy-card {
    display: grid;
    gap: 20px;
    max-width: 900px;
}

.english-copy-card p,
.english-theme-card p,
.english-challenge-grid p {
    margin: 0;
    color: #3d3d3d;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.6;
}

.english-feature-card img {
    align-self: end;
    width: min(220px, 22vw);
    justify-self: end;
    object-fit: contain;
}

.english-feature-card .english-feature-photo {
    width: 100%;
    max-width: 230px;
    aspect-ratio: 0.72;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(17, 17, 17, 0.14);
}

.english-age-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 24px;
    align-items: center;
}

.english-age-table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid rgba(239, 189, 0, 0.45);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.english-age-table th,
.english-age-table td {
    padding: 20px;
    border-top: 1px solid rgba(239, 189, 0, 0.35);
    border-left: 1px solid rgba(239, 189, 0, 0.35);
    font-size: clamp(16px, 1.3vw, 20px);
}

.english-age-table th:first-child,
.english-age-table td:first-child {
    border-left: 0;
}

.english-age-table th {
    border-top: 0;
    background: var(--yellow-soft);
    font-family: var(--font-display);
    font-size: clamp(19px, 1.8vw, 25px);
}

.english-age-table td:first-child {
    font-weight: 900;
}

.english-age-buttons {
    display: grid;
    gap: 16px;
}

.english-age-buttons a,
.resource-actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px 0 22px;
    color: var(--black);
    background: var(--yellow-soft);
    border-radius: 999px;
    box-shadow: inset 0 -7px 0 rgba(239, 189, 0, 0.6);
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.english-age-buttons a::after,
.resource-actions a::after {
    content: ">";
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    background: var(--yellow);
    border-radius: 50%;
}

.english-age-buttons a:hover,
.resource-actions a:hover {
    background: #ffe98d;
    box-shadow: inset 0 -5px 0 rgba(239, 189, 0, 0.7), 0 12px 24px rgba(17, 17, 17, 0.12);
    transform: translateY(-3px);
}

.english-theme-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 56px) clamp(120px, 11vw, 170px);
    border-color: rgba(239, 189, 0, 0.36);
}

.english-theme-card h3 {
    max-width: 900px;
    margin: 0 auto 24px;
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
    text-align: center;
}

.english-theme-card p {
    max-width: 940px;
    margin: 18px auto 0;
    text-align: center;
}

.english-theme-decor {
    pointer-events: none;
}

.english-theme-decor img {
    position: absolute;
    margin: 0;
    object-fit: contain;
}

.english-theme-books-bee {
    left: clamp(20px, 6vw, 92px);
    bottom: 18px;
    width: min(190px, 18vw);
}

.english-theme-writing-bee {
    right: clamp(20px, 5vw, 68px);
    bottom: 18px;
    width: min(150px, 14vw);
}

.english-resource-stack {
    display: grid;
    gap: 28px;
}

.english-resource-card {
    padding: clamp(24px, 4vw, 42px);
}

.english-resource-card:nth-child(2)::before {
    background: #111;
}

.english-resource-card:nth-child(3)::before {
    background: #ffd85c;
}

.english-resource-card header {
    margin-bottom: 24px;
    text-align: center;
}

.english-resource-card header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1;
}

.english-resource-card header p {
    margin: 8px 0 0;
    color: #333;
    font-size: clamp(18px, 1.45vw, 22px);
    font-style: italic;
}

.resource-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 28px;
    align-items: start;
}

.resource-media-list {
    display: grid;
    gap: 22px;
}

.resource-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.resource-item img {
    width: 150px;
    aspect-ratio: 0.68;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.13);
}

.resource-item span {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.resource-item h4,
.skills-box h4,
.guidance-box h4,
.english-challenge-grid h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 1.8vw, 28px);
    line-height: 1.12;
}

.resource-item p {
    margin: 14px 0 0;
    color: #343434;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.45;
}

.resource-item .resource-author {
    margin-top: 4px;
    font-style: italic;
}

.resource-support {
    display: grid;
    gap: 18px;
}

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

.resource-access-note {
    margin: 0;
    padding: 13px 16px;
    border: 2px solid rgba(239, 189, 0, 0.42);
    border-radius: 14px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 900;
    line-height: 1.28;
    text-align: center;
}

.resource-actions a {
    min-height: 54px;
    padding: 0 14px 0 18px;
    font-size: clamp(19px, 1.8vw, 25px);
}

.resource-actions a::after {
    width: 34px;
}

.skills-box,
.guidance-box {
    padding: 24px;
    background: #fff;
    border: 2px solid var(--yellow);
    border-radius: var(--radius-md);
}

.skills-box ul {
    margin: 12px 0 0;
    padding-left: 22px;
    color: #303030;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.45;
}

.guidance-box {
    background: var(--yellow-soft);
}

.guidance-box h4 {
    text-align: center;
}

.guidance-box p {
    margin: 8px 0 0;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.45;
}

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

.english-challenge-grid article {
    min-height: 220px;
    padding: 32px;
    text-align: center;
}

.english-challenge-grid article:first-child {
    grid-column: 1 / -1;
}

.english-challenge-grid article:nth-child(2)::before,
.english-challenge-grid article:nth-child(5)::before {
    background: #111;
}

.english-challenge-grid h3 {
    margin-bottom: 14px;
}

.math-page {
    background: #fff;
}

.math-hero {
    position: relative;
    display: grid;
    min-height: clamp(430px, 48vw, 650px);
    overflow: hidden;
    background: #111;
}

.math-hero-media {
    position: absolute;
    inset: 0;
}

.math-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.26) 58%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.math-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.math-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: clamp(54px, 7vw, 96px) 0;
    color: #fff;
}

.math-hero-copy span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: var(--black);
    background: var(--yellow);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.math-hero-copy h1 {
    max-width: 860px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(36px, 4.3vw, 68px);
    line-height: 1.04;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.math-overview-section,
.math-level-section,
.math-challenges-section {
    background: #fff;
}

.math-age-section,
.math-sustainability-section {
    background: linear-gradient(180deg, #fffdf5 0%, #f4ffe8 100%);
}

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

.math-overview-grid article,
.math-level-card,
.math-challenge-grid article,
.math-sustainability-panel {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.math-overview-grid article::before,
.math-level-card::before,
.math-challenge-grid article::before,
.math-sustainability-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--yellow);
}

.math-overview-grid article {
    padding: clamp(24px, 3vw, 36px);
}

.math-overview-grid p,
.math-challenge-grid p,
.math-sustainability-panel p {
    margin: 0;
    color: #3d3d3d;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.6;
}

.math-level-stack {
    display: grid;
    gap: 28px;
}

.math-level-card {
    padding: clamp(26px, 4vw, 46px);
}

.math-level-card header {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 26px;
    text-align: center;
}

.math-level-card header p,
.math-level-card header span {
    margin: 0;
    color: #333;
    font-size: clamp(17px, 1.3vw, 20px);
}

.math-level-card header p {
    font-style: italic;
}

.math-level-card h3,
.math-level-card h4,
.math-challenge-grid h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.12;
}

.math-level-card h3 {
    font-size: clamp(34px, 3.4vw, 52px);
}

.math-level-card h4 {
    color: #3f9b0b;
    font-size: clamp(26px, 2.7vw, 42px);
}

.math-level-content {
    display: grid;
    gap: 24px;
    align-items: stretch;
}

.math-topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.math-topic-list li {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 12px 16px;
    background: #f8fbf3;
    border: 1px solid rgba(91, 151, 14, 0.24);
    border-radius: 14px;
    color: #202020;
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 800;
}

.math-level-visual {
    display: grid;
    place-items: center;
    min-height: clamp(190px, 24vw, 320px);
    margin: 0 auto;
    width: min(100%, 920px);
}

.math-level-visual img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.math-accent-black .math-level-visual {
    min-height: clamp(230px, 28vw, 380px);
}

.math-accent-black .math-level-visual img {
    max-height: 380px;
}

.math-skills-box {
    display: grid;
    align-content: center;
    padding: 24px;
    background: var(--yellow-soft);
    border: 2px solid var(--yellow);
    border-radius: var(--radius-md);
}

.math-skills-box h5 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.1;
    text-align: center;
}

.math-skills-box ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.math-skills-box li {
    min-height: 58px;
    display: grid;
    place-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    color: #202020;
    font-weight: 900;
    text-align: center;
}

.math-accent-blue::before {
    background: #57a6c7;
}

.math-accent-blue h4 {
    color: #1c789c;
}

.math-accent-black::before {
    background: #111;
}

.math-accent-black h4 {
    color: #111;
}

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

.math-challenge-grid article {
    min-height: 230px;
    padding: 32px;
    text-align: center;
}

.math-challenge-grid article:first-child {
    grid-column: 1 / -1;
}

.math-challenge-grid article:nth-child(3)::before,
.math-challenge-grid article:nth-child(5)::before {
    background: #111;
}

.math-challenge-grid h3 {
    margin-bottom: 14px;
    font-size: clamp(24px, 2vw, 32px);
}

.math-sustainability-panel {
    display: grid;
    gap: 28px;
    padding: clamp(26px, 4vw, 48px);
    border-color: rgba(91, 151, 14, 0.28);
}

.math-sustainability-panel ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.math-sustainability-panel li {
    display: flex;
    align-items: center;
    min-height: 62px;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid rgba(91, 151, 14, 0.24);
    border-radius: 14px;
    color: #202020;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 700;
}

.math-sustainability-panel li span {
    flex: 0 0 auto;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 1.35em;
    line-height: 1;
}

.partners-page {
    background: #fff;
}

.partners-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 194, 10, 0.94) 0%, rgba(255, 224, 111, 0.9) 58%, rgba(255, 248, 223, 0.96) 100%),
        url("/assets/images/community/world-map-light.png") center / min(1500px, 100vw) auto no-repeat;
}

.partners-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: clamp(26px, 5vw, 72px);
    align-items: center;
    min-height: clamp(430px, 46vw, 610px);
    padding: clamp(54px, 7vw, 96px) 0;
}

.partners-hero-copy {
    display: grid;
    justify-items: start;
}

.partners-hero-copy span,
.partner-section-heading span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: #fff;
    background: #111;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partners-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 104px);
    line-height: 0.95;
}

.partners-hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #191919;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 900;
    line-height: 1.25;
}

.partners-hero-visual {
    display: grid;
    place-items: center;
}

.partners-hero-visual img {
    width: min(330px, 30vw);
    object-fit: contain;
    filter: drop-shadow(0 22px 28px rgba(17, 17, 17, 0.2));
}

.partners-jump {
    position: sticky;
    top: 70px;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
}

.partners-jump .container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 12px;
    padding-bottom: 12px;
}

.partners-jump a {
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #111;
    background: var(--yellow-pale);
    border: 1px solid rgba(239, 189, 0, 0.42);
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.partners-jump a:hover {
    background: var(--yellow-soft);
}

.partner-intro-section,
.partner-support-section {
    background: #fff;
}

.partner-section,
.partner-groups-section {
    background: linear-gradient(180deg, #fffdf5 0%, #fff8df 100%);
}

.partner-regional-section {
    background: #fff;
}

.partner-copy-panel,
.partner-type-grid article,
.partner-list-card,
.partner-feature-grid article,
.partner-final-cta {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.partner-copy-panel::before,
.partner-type-grid article::before,
.partner-list-card::before,
.partner-feature-grid article::before,
.partner-final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--yellow);
}

.partner-copy-panel {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto 28px;
    padding: clamp(26px, 4vw, 44px);
    text-align: center;
}

.partner-copy-panel p,
.partner-section-heading p,
.partner-list-card p,
.partner-feature-grid p,
.partner-final-cta p {
    margin: 0;
    color: #3d3d3d;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.58;
}

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

.partner-type-grid article {
    display: grid;
    gap: 20px;
    padding: clamp(26px, 4vw, 42px);
}

.partner-type-grid article:nth-child(2)::before,
.partner-feature-grid article:nth-child(3n)::before {
    background: #111;
}

.partner-type-grid h3,
.partner-list-card h3,
.partner-feature-grid h3,
.partner-section-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.12;
}

.partner-type-grid h3,
.partner-section-heading h2 {
    font-size: clamp(32px, 3.2vw, 52px);
}

.partner-type-grid h4 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(22px, 1.8vw, 28px);
    line-height: 1.15;
}

.partner-type-grid p {
    margin: 0;
    color: #363636;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.52;
}

.partner-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.partner-section-grid.reverse {
    grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

.partner-section-grid.reverse .partner-section-heading {
    order: 2;
}

.partner-section-heading {
    display: grid;
    gap: 16px;
    align-content: start;
}

.partner-list-card {
    display: grid;
    gap: 22px;
    padding: clamp(26px, 4vw, 42px);
}

.partner-list-card h3 {
    font-size: clamp(26px, 2.4vw, 38px);
}

.partner-list-card ul,
.partner-feature-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-list-card ul {
    display: grid;
    gap: 12px;
}

.partner-list-card li {
    position: relative;
    padding: 13px 16px 13px 42px;
    background: #fffdf2;
    border: 1px solid rgba(239, 189, 0, 0.34);
    border-radius: 14px;
    color: #202020;
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 800;
}

.partner-list-card li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 12px;
    aspect-ratio: 1;
    background: var(--yellow);
    border: 2px solid #111;
    border-radius: 50%;
    transform: translateY(-50%);
}

.partner-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.partner-feature-grid.groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-feature-grid article {
    min-height: 180px;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 28px;
}

.partner-feature-grid h3 {
    font-size: clamp(22px, 1.8vw, 28px);
}

.partner-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding: 28px;
}

.partner-final-cta p {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.16;
}

.discover-page {
    background: #fff;
}

.discover-hero {
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 223, 0.92) 58%, rgba(255, 224, 111, 0.78) 100%),
        url("/assets/images/community/world-map-light.png") center / min(1500px, 100vw) auto no-repeat;
}

.discover-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: clamp(450px, 48vw, 660px);
    padding: clamp(54px, 7vw, 96px) 0;
}

.discover-hero-copy {
    display: grid;
    justify-items: start;
}

.discover-hero-copy span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: #fff;
    background: #111;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discover-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(42px, 5.6vw, 86px);
    line-height: 1;
}

.discover-hero-copy p {
    max-width: 840px;
    margin: 22px 0 0;
    color: #2a2a2a;
    font-size: clamp(19px, 1.8vw, 27px);
    font-weight: 800;
    line-height: 1.32;
}


.discover-jump {
    position: sticky;
    top: 70px;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
}

.discover-jump .container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 12px;
    padding-bottom: 12px;
}

.discover-jump a {
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #111;
    background: var(--yellow-pale);
    border: 1px solid rgba(239, 189, 0, 0.42);
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.discover-jump a:hover {
    background: var(--yellow-soft);
}

.discover-overview-section,
.discover-benefits-section,
.discover-awards-section,
.discover-faq-section {
    background: #fff;
}

.discover-steps-section,
.discover-age-section,
.discover-prizes-section {
    background: linear-gradient(180deg, #fffdf5 0%, #fff8df 100%);
}

.discover-overview-grid,
.discover-benefit-grid,
.discover-age-grid,
.discover-award-grid,
.discover-prize-grid,
.discover-faq-list {
    display: grid;
    gap: 22px;
}

.discover-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discover-benefit-grid,
.discover-age-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discover-award-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.discover-prize-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.discover-faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discover-overview-grid article,
.discover-benefit-grid article,
.discover-age-grid article,
.discover-award-grid article,
.discover-table-card,
.discover-faq-list article,
.discover-final-cta {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.discover-overview-grid article::before,
.discover-benefit-grid article::before,
.discover-age-grid article::before,
.discover-award-grid article::before,
.discover-table-card::before,
.discover-faq-list article::before,
.discover-final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--yellow);
}

.discover-overview-grid article,
.discover-benefit-grid article,
.discover-age-grid article,
.discover-award-grid article,
.discover-table-card,
.discover-faq-list article,
.discover-final-cta {
    padding: clamp(24px, 3vw, 36px);
}

.discover-overview-grid article:nth-child(2)::before,
.discover-benefit-grid article:nth-child(2)::before,
.discover-age-grid article:nth-child(2)::before,
.discover-award-grid article:nth-child(3n)::before,
.discover-faq-list article:nth-child(even)::before {
    background: #111;
}

.discover-overview-grid h3,
.discover-benefit-grid h3,
.discover-age-grid h3,
.discover-award-grid h3,
.discover-table-card h2,
.discover-faq-list h3,
.discover-final-cta h2 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.12;
}

.discover-overview-grid h3,
.discover-benefit-grid h3,
.discover-age-grid h3,
.discover-table-card h2,
.discover-final-cta h2 {
    font-size: clamp(26px, 2.4vw, 38px);
}

.discover-award-grid h3,
.discover-faq-list h3 {
    font-size: clamp(22px, 1.8vw, 28px);
}

.discover-overview-grid p,
.discover-age-grid p,
.discover-age-grid span,
.discover-award-grid p,
.discover-table-card p,
.discover-faq-list p,
.discover-final-cta p {
    margin: 12px 0 0;
    color: #3d3d3d;
    font-size: clamp(16px, 1.22vw, 18px);
    line-height: 1.54;
}

.discover-benefit-grid ul,
.discover-step-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.discover-benefit-grid ul {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.discover-benefit-grid li {
    position: relative;
    padding-left: 28px;
    color: #343434;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.45;
}

.discover-benefit-grid li::before {
    content: "";
    position: absolute;
    top: 0.42em;
    left: 0;
    width: 11px;
    aspect-ratio: 1;
    background: var(--yellow);
    border: 2px solid #111;
    border-radius: 50%;
}

.discover-step-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.discover-step-list li {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 170px;
    padding: 22px 14px;
    background: #fff;
    border: 1px solid rgba(239, 189, 0, 0.42);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    color: #202020;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.discover-step-list span,
.discover-award-number {
    display: grid;
    place-items: center;
    width: 44px;
    aspect-ratio: 1;
    color: #111;
    background: var(--yellow);
    border: 2px solid #111;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.discover-step-list span {
    margin: 0 auto;
}

.discover-pathway-callout {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    max-width: 980px;
    margin: 24px auto 0;
    padding: 16px 24px;
    background: #fff;
    border: 3px solid var(--yellow);
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
}

.discover-pathway-callout img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.discover-pathway-callout h3 {
    margin: 0;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.05;
    text-shadow: 2px 2px 0 rgba(17, 17, 17, 0.35);
}

.discover-pathway-callout p {
    margin: 6px 0 0;
    color: #1f1f1f;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.38;
}

.discover-award-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.discover-award-icon-frame {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    padding: 14px;
    overflow: hidden;
    background: #fff8df;
    border: 2px solid rgba(239, 189, 0, 0.82);
    border-radius: 22px;
    box-shadow: inset 0 -7px 0 rgba(239, 189, 0, 0.28), 0 12px 24px rgba(17, 17, 17, 0.08);
}

.discover-award-icon {
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    opacity: 0.96;
}

.discover-award-grid article:nth-child(3n) .discover-award-icon-frame {
    background: #fff;
    border-color: #111;
    box-shadow: inset 0 -7px 0 rgba(17, 17, 17, 0.08), 0 12px 24px rgba(17, 17, 17, 0.08);
}

.discover-age-grid article {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding-bottom: 0;
}

.discover-age-card-copy {
    position: relative;
    z-index: 1;
}

.discover-age-grid article img {
    align-self: center;
    width: min(190px, 58%);
    max-height: 210px;
    object-fit: contain;
    margin: auto auto 0;
}

.discover-age-grid article:nth-child(2) img {
    width: min(205px, 62%);
}

.discover-age-grid article:nth-child(3) img {
    width: min(215px, 64%);
}

.discover-age-grid strong {
    display: inline-flex;
    margin-top: 10px;
    padding: 7px 13px;
    color: #111;
    background: var(--yellow-soft);
    border-radius: 999px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.discover-age-grid span {
    display: block;
    font-weight: 800;
}

.discover-table-card {
    overflow-x: auto;
}

.discover-table-card table {
    width: 100%;
    min-width: 520px;
    margin-top: 18px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(239, 189, 0, 0.42);
    border-radius: 14px;
}

.discover-table-card th,
.discover-table-card td {
    padding: 14px;
    border-top: 1px solid rgba(239, 189, 0, 0.32);
    border-left: 1px solid rgba(239, 189, 0, 0.32);
    color: #202020;
    font-size: 15px;
    line-height: 1.35;
    vertical-align: top;
}

.discover-table-card th:first-child,
.discover-table-card td:first-child {
    border-left: 0;
}

.discover-table-card th {
    border-top: 0;
    background: var(--yellow-soft);
    font-family: var(--font-display);
    font-size: 17px;
}

.discover-final-cta {
    display: grid;
    justify-items: center;
    max-width: 900px;
    margin: 28px auto 0;
    text-align: center;
}

.home-section {
    position: relative;
    padding: clamp(52px, 6vw, 82px) 0;
}

.home-section + .home-section {
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.home-section + .home-section::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: min(180px, 34vw);
    height: 5px;
    background: var(--yellow);
    border-radius: 999px;
    transform: translateX(-50%);
}

.section-jump-card {
    position: fixed;
    top: 126px;
    left: max(14px, calc((100vw - 1620px) / 2 + 18px));
    z-index: 30;
    display: grid;
    width: 178px;
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding: 14px 12px 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.11);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-12px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.section-jump-card.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.section-jump-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 4px;
    background: var(--yellow);
    border-radius: 0 0 999px 999px;
}

.section-jump-card strong {
    margin: 2px 4px 8px;
    color: var(--black);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.1;
}

.section-jump-card a {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 9px;
    color: #313131;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.section-jump-card a:hover,
.section-jump-card a.is-active {
    color: var(--black);
    background: var(--yellow-pale);
    transform: translateX(3px);
}

.section-jump-card a.is-active {
    box-shadow: inset 3px 0 0 var(--yellow);
}

.subject-section,
.how-section,
.pathway-section,
.key-dates-section,
.benefits-section {
    background: #fff;
}

.age-section,
.concepts-section,
.rounds-section,
.workshops-section,
.memories-section {
    background: linear-gradient(180deg, #fffdf5 0%, #fff8df 100%);
}

.section-title {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-title.left {
    max-width: none;
    text-align: left;
}

.section-title h2 {
    display: inline-block;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 4px solid var(--yellow);
    color: var(--black);
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.08;
}

.section-title p {
    margin: 12px 0 0;
    color: #383838;
    font-size: clamp(17px, 1.6vw, 21px);
    font-style: italic;
    line-height: 1.35;
}

.button,
.card-button,
.pathway-grid a,
.global-final-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    color: var(--black);
    background: var(--yellow);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(255, 194, 10, 0.28);
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transform: translateY(0);
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.button::after,
.card-button::after {
    content: ">";
    margin-left: 12px;
    transition: transform 180ms ease;
}

.button-secondary,
.card-button {
    background: #fff;
    border: 2px solid var(--yellow);
    box-shadow: none;
}

.card-button.yellow {
    background: var(--yellow);
    border-color: #fff;
}

.button:hover,
.button:focus-visible,
.card-button:hover,
.card-button:focus-visible,
.pathway-grid a:hover,
.pathway-grid a:focus-visible,
.global-final-card a:hover,
.global-final-card a:focus-visible {
    color: var(--black);
    background: #ffd85c;
    border-color: var(--black);
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.16), 0 8px 20px rgba(255, 194, 10, 0.28);
    transform: translateY(-3px);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.card-button:hover,
.card-button:focus-visible {
    background: var(--black);
    color: #fff;
}

.button:hover::after,
.button:focus-visible::after,
.card-button:hover::after,
.card-button:focus-visible::after {
    transform: translateX(4px);
}

.button:focus-visible,
.card-button:focus-visible,
.pathway-grid a:focus-visible,
.global-final-card a:focus-visible,
.menu-toggle:focus-visible,
.search-button:focus-visible {
    outline: 3px solid rgba(255, 194, 10, 0.45);
    outline-offset: 4px;
}

.ym-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 34px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 223, 0.92) 58%, rgba(255, 224, 111, 0.78) 100%),
        url("/assets/images/community/world-map-light.png") center / min(1500px, 100vw) auto no-repeat;
}

.ym-hero .container {
    width: min(1180px, calc(100% - 48px));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.76fr);
    align-items: center;
    gap: 42px;
    min-height: 0;
}

.hero-copy {
    max-width: 760px;
    animation: hero-copy-rise 620ms ease-out both;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 0;
    color: var(--black);
    font-family: var(--font-body);
    font-size: clamp(44px, 5.4vw, 72px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: none;
}

.hero-highlight {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 8px 14px;
    border: 2px solid rgba(239, 189, 0, 0.5);
    border-radius: 999px;
    color: #111;
    background: rgba(255, 248, 221, 0.88);
    font-size: clamp(18px, 1.8vw, 25px);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: none;
}

.hero-lede {
    max-width: 720px;
    margin: 22px 0 0;
    color: #3f3f3f;
    font-size: clamp(18px, 1.5vw, 23px);
    line-height: 1.55;
    text-shadow: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

@keyframes hero-copy-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy {
        animation: none;
    }

    .testimonial-feature {
        animation: none;
    }
}

.hero-students {
    position: relative;
    display: grid;
    min-height: 390px;
    place-items: end center;
    align-self: center;
    padding: 76px 34px 28px 70px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-students::before {
    content: "";
    position: absolute;
    inset: 38px 0 0 44px;
    border: 4px solid var(--yellow);
    border-radius: 28px;
    background: #fff7d7;
    transform: rotate(3deg);
}

.hero-students img {
    position: relative;
    z-index: 1;
    width: min(100%, 410px);
    max-height: 320px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.16));
}

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

.subject-card,
.concept-card,
.age-card,
.step-card,
.pathway-grid article,
.global-final-card,
.testimonial-quote,
.stats-grid article {
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.subject-card:hover,
.concept-card:hover,
.age-card:hover,
.step-card:hover,
.pathway-grid article:hover,
.global-final-card:hover,
.testimonial-quote:hover,
.stats-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
}

.subject-card::before,
.concept-card::before,
.age-card::before,
.step-card::before,
.pathway-grid article::before,
.global-final-card::before,
.testimonial-quote::before,
.stats-grid article::after {
    content: "";
    position: absolute;
    z-index: 1;
    background: var(--yellow);
    border-radius: 999px;
}

.subject-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    padding: 32px;
    color: #111;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.subject-card > div {
    display: flex;
    flex-direction: column;
    min-height: 256px;
    max-width: calc(100% - 172px);
}

.subject-card .card-button {
    align-self: flex-start;
    margin-top: auto;
}

.subject-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.subject-english {
    background: #fff;
}

.subject-maths {
    background: #fff;
}

.subject-maths::before {
    background: #111;
}

.subject-card h2,
.concept-card h3 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(28px, 2.7vw, 38px);
    line-height: 1.08;
}

.subject-card p,
.concept-card p {
    max-width: 560px;
    margin: 0 0 22px;
    color: #444;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.5;
}

.subject-card img {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.age-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.age-card {
    position: relative;
    min-height: 280px;
    padding: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 30px;
}

.age-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.age-card:nth-child(1)::before {
    background: #ffb300;
}

.age-card:nth-child(2)::before {
    background: #111;
}

.age-card:nth-child(3)::before {
    background: #ffd85c;
}

.age-card:nth-child(2) {
    background: #fff;
}

.age-card h3 {
    margin: 0;
    text-align: center;
    font-size: clamp(28px, 2.7vw, 38px);
    font-weight: 900;
    text-shadow: 0 5px 12px rgba(17, 17, 17, 0.14);
}

.age-card img {
    position: absolute;
    left: 16px;
    bottom: 22px;
    max-width: 170px;
    max-height: 180px;
    object-fit: contain;
}

.age-card:nth-child(3) img {
    right: 16px;
    left: auto;
}

.age-card p {
    position: absolute;
    right: 30px;
    bottom: 86px;
    margin: 0;
    color: #111;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(255, 255, 255, 0.9), 0 10px 18px rgba(17, 17, 17, 0.12);
}

.age-card:nth-child(3) p {
    right: auto;
    left: 34px;
}

.age-card a {
    position: absolute;
    right: 36px;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 62px;
    height: 44px;
    border: 2px solid var(--black);
    border-radius: 999px;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
}

.age-card:nth-child(3) a {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    --step-accent: var(--yellow);
    --step-text: #fff;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 270px;
    padding: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.step-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--step-accent);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.step-card:nth-child(2),
.step-card:nth-child(5) {
    --step-accent: #111;
}

.step-card:nth-child(3) {
    --step-accent: #f1a33a;
}

.step-card:nth-child(4) {
    --step-accent: #ffd966;
    --step-text: #111;
}

.step-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    background: #fff;
    border: 4px solid var(--step-accent);
    border-radius: 50%;
}

.step-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.step-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.18;
}

.step-card p {
    margin: 0;
    color: #4b4b4b;
    font-size: 15px;
    line-height: 1.45;
}

.step-card strong {
    display: block;
    margin: 18px -22px -22px;
    padding: 12px;
    color: var(--step-text);
    background: var(--step-accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 15px;
    text-align: center;
    text-transform: uppercase;
}

.concept-card {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.concept-card::before {
    top: 22px;
    right: 34px;
    width: 92px;
    height: 6px;
}

.concept-maths {
    background: #fff;
}

.concept-maths::before {
    background: #111;
}

.concept-card h3 {
    color: #111;
}

.concept-card strong {
    font-style: italic;
}

.concept-card .card-button {
    align-self: flex-start;
    margin-top: auto;
}

.pathway-section {
    text-align: center;
}

.pathway-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.pathway-grid article {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.pathway-grid article::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.pathway-grid article:nth-child(2)::before {
    background: #111;
}

.pathway-grid article:nth-child(3)::before {
    background: #ffd85c;
}

.pathway-grid img {
    height: 96px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.pathway-grid article:first-child img {
    height: 158px;
    margin-top: -26px;
    margin-bottom: -12px;
}

.pathway-grid h3 {
    margin: 0;
    color: #111;
    font-size: clamp(22px, 2.1vw, 28px);
    line-height: 1.08;
    text-transform: uppercase;
}

.pathway-grid p {
    min-height: 104px;
    margin: 14px 0 0;
    color: #444;
    font-size: 18px;
}

.global-final-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(120px, 220px) minmax(0, 720px);
    align-items: end;
    justify-content: center;
    gap: 22px;
    margin: 0 auto;
}

.global-bee {
    width: min(220px, 22vw);
    justify-self: end;
    object-fit: contain;
}

.global-final-card {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-md);
    text-align: center;
}

.global-final-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.global-final-card h3 {
    margin: 0;
    padding: 18px;
    background: var(--yellow-soft);
    font-size: clamp(24px, 2.5vw, 30px);
    text-transform: uppercase;
}

.global-final-card p {
    margin: 0;
    padding: 18px;
    font-size: 17px;
}

.table-feature {
    position: relative;
    margin-top: 118px;
}

.table-feature .holding-bee {
    position: absolute;
    top: -132px;
    left: 50%;
    z-index: 1;
    width: min(118px, 12vw);
    object-fit: contain;
    pointer-events: none;
    transform: translateX(-50%);
}

.table-feature .event-table,
.table-feature .workshop-grid {
    position: relative;
    z-index: 2;
}

.workshop-feature {
    margin-top: 118px;
}

.workshop-feature .holding-bee {
    top: -142px;
    left: 76%;
    width: min(128px, 13vw);
}

.rounds-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    align-items: center;
    gap: 34px;
}

.online-illustration {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    margin-top: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.online-illustration img {
    position: relative;
    z-index: 1;
    max-height: 220px;
    object-fit: contain;
}

.dates-table,
.event-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(239, 189, 0, 0.45);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    font-size: clamp(16px, 1.35vw, 19px);
    text-align: center;
}

.dates-table th,
.dates-table td,
.event-table th,
.event-table td {
    padding: 12px 14px;
    border: 0;
    border-top: 1px solid rgba(239, 189, 0, 0.35);
    border-left: 1px solid rgba(239, 189, 0, 0.35);
}

.dates-table th:first-child,
.dates-table td:first-child,
.event-table th:first-child,
.event-table td:first-child {
    border-left: 0;
}

.dates-table th,
.event-table th {
    border-top: 0;
    font-family: var(--font-display);
    font-size: clamp(19px, 1.8vw, 24px);
}

.dates-table th,
.dates-table td:first-child {
    color: #fff;
    background: #1b1b1b;
}

.dates-table th:nth-child(2),
.dates-table td:nth-child(2),
.event-table th {
    color: #111;
    background: var(--yellow-soft);
}

.dates-table tr:last-child td {
    color: #fff;
    background: #1b1b1b;
    font-weight: 900;
}

.event-table td {
    background: #fff;
}

.event-table td:first-child {
    font-weight: 900;
    text-transform: uppercase;
}

.workshop-grid {
    display: grid;
    gap: 12px;
}

.workshop-grid article {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: stretch;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(239, 189, 0, 0.36);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 26px rgba(17, 17, 17, 0.06);
}

.workshop-grid time,
.workshop-grid span,
.workshop-grid strong {
    display: grid;
    place-items: center;
    min-height: 70px;
    padding: 10px 16px;
    border: 1px solid rgba(239, 189, 0, 0.34);
    border-radius: 12px;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.18;
    text-align: center;
}

.workshop-grid time {
    background: var(--yellow-soft);
    font-weight: 900;
}

.workshop-grid span,
.workshop-grid strong {
    background: #fff;
    font-weight: 500;
}

.workshop-grid strong {
    background: var(--yellow-pale);
    font-weight: 800;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.benefit-grid article {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 34px 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.benefit-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.benefit-grid article:nth-child(2)::before,
.benefit-grid article:nth-child(5)::before {
    background: #111;
}

.benefit-grid article:nth-child(3)::before,
.benefit-grid article:nth-child(6)::before {
    background: #ffd85c;
}

.benefit-grid article:hover {
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
    transform: translateY(-4px);
}

.benefit-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: 142px;
}

.benefit-grid h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: clamp(22px, 1.6vw, 26px);
    line-height: 1.12;
}

.benefit-grid p {
    margin: 0;
    color: #444;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.45;
}

.community-stats {
    background: linear-gradient(180deg, #fffdf5 0%, #fff8df 100%);
}

.community-stats::before {
    background: #111;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    text-align: center;
}

.stats-grid article {
    display: grid;
    justify-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 34px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.stats-grid article::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.stats-grid article:nth-child(2)::after {
    background: #111;
}

.stats-grid article:nth-child(3)::after {
    background: #ffb300;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 86px;
    aspect-ratio: 1;
    color: #111;
    background: var(--yellow-pale);
    border-radius: 50%;
}

.stat-icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-number {
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 900;
    line-height: 0.9;
}

.stat-number::after {
    content: "+";
}

.stats-grid strong {
    max-width: 260px;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.15;
}

.performers-section {
    background: #fff;
}

.performer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.performer-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.performer-card:hover {
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
    transform: translateY(-4px);
}

.performer-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
}

.performer-card:nth-child(2)::before,
.performer-card:nth-child(6)::before {
    background: #111;
}

.performer-card:nth-child(3)::before,
.performer-card:nth-child(5)::before {
    background: #ffd85c;
}

.performer-card header {
    padding: 26px 24px 16px;
    background: linear-gradient(180deg, #fff8dd 0%, #fff 100%);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    text-align: center;
}

.performer-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(21px, 1.8vw, 27px);
    line-height: 1.08;
}

.performer-card header p {
    margin: 8px 0 0;
    color: #777;
    font-size: 13px;
    font-weight: 800;
}

.performer-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 22px 26px 28px;
    list-style: none;
}

.performer-card li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    color: #222;
    font-size: 16px;
    line-height: 1.28;
}

.performer-card li span {
    color: #111;
    font-weight: 900;
    line-height: 1;
}

.testimonials-section {
    padding-top: clamp(52px, 6vw, 82px);
    background: #fff;
}

.testimonial-slider {
    position: relative;
}

.testimonial-stack {
    position: relative;
    min-height: 420px;
}

.testimonial-feature {
    display: none;
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    animation: testimonial-fade 420ms ease both;
}

.testimonial-feature.is-active {
    display: grid;
}

@keyframes testimonial-fade {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-feature > img {
    width: 100%;
    aspect-ratio: 0.9;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.testimonial-quote {
    min-height: 240px;
    padding: 28px;
    background: #fff;
    border: 3px solid var(--yellow-soft);
    border-radius: var(--radius-md);
}

.testimonial-quote::before {
    top: 18px;
    left: 28px;
    width: 72px;
    height: 5px;
}

.testimonial-quote blockquote {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    line-height: 1.45;
    text-align: center;
}

.testimonial-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.stars {
    color: var(--yellow-soft);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0;
    line-height: 1;
}

.testimonial-footer strong {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
}

.flag {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    background: #fff;
    border-radius: 50%;
    font-size: 38px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}

.testimonial-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #111;
    background: #fff;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.testimonial-arrow:hover {
    background: var(--yellow);
    transform: translateY(-2px);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.testimonial-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: #d8d8d8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.testimonial-dots button.is-active {
    width: 28px;
    background: var(--yellow);
    border-radius: 999px;
}

.map-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 248, 223, 0.9) 58%, rgba(255, 224, 111, 0.7) 100%),
        url("/assets/images/community/world-map-light.png") center / min(1500px, 100vw) auto no-repeat;
}

.world-map {
    display: grid;
    justify-items: center;
    gap: 28px;
}

.world-map img {
    width: min(1120px, 100%);
    max-height: 540px;
    object-fit: contain;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.memory-grid img {
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
    background: var(--yellow-pale);
    border-radius: var(--radius-md);
}

@media (max-width: 1240px) {
    .section-jump-card {
        display: none;
    }

    .ym-hero .container {
        width: min(100% - 40px, 960px);
    }

    .nav {
        position: relative;
        flex-wrap: wrap;
        min-height: auto;
        padding: 10px 0;
    }

    .nav-links,
    .nav-actions {
        display: none;
        flex: 0 0 100%;
        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav.is-open .nav-links,
    .nav.is-open .nav-actions {
        display: flex;
    }

    html:not(.js) .nav-links,
    html:not(.js) .nav-actions {
        display: flex;
    }

    .nav-links {
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 10px;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow);
    }

    .nav-item {
        display: block;
        min-height: 0;
    }

    .nav-links a,
    .nav-item > a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 0 12px;
        border-radius: 10px;
        line-height: 1.2;
    }

    .nav-pill {
        margin: 4px 0;
        border-radius: 8px;
    }

    .nav-links a:hover,
    .nav-item > a:hover {
        background: var(--yellow-pale);
    }

    .nav-actions {
        order: 4;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        padding: 0 2px 4px;
    }

    .nav-actions .nav-button {
        flex: 1 1 180px;
    }

    .language-button {
        min-width: 70px;
    }

    .submenu {
        position: static;
        display: none;
        margin: 0 0 8px 12px;
        border-top: 2px solid var(--yellow);
        border-radius: 0 0 10px 10px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
    }

    .has-menu.is-open .submenu,
    html:not(.js) .submenu {
        display: grid;
    }

    .has-menu.is-open > a::after {
        transform: translateY(1px) rotate(225deg);
    }

    .hero-grid,
    .rounds-grid,
    .testimonial-feature {
        grid-template-columns: 1fr;
    }

    .english-hero {
        min-height: 520px;
    }

    .english-feature-grid,
    .english-age-layout,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .english-feature-card {
        grid-template-columns: 1fr;
    }

    .english-feature-card img {
        justify-self: center;
    }

    .english-feature-card .english-feature-photo {
        max-width: 220px;
    }

    .global-final-feature {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 38px;
    }

    .global-bee {
        width: min(180px, 42vw);
        justify-self: center;
    }

    .testimonial-stack {
        min-height: 0;
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-students {
        justify-content: center;
    }

    .testimonial-feature > img {
        max-width: 440px;
        margin: 0 auto;
        aspect-ratio: 1.05;
    }
}






.legal-page {
    background: #fffdf7;
}

.legal-hero {
    padding: 62px 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 223, 0.92) 58%, rgba(255, 224, 111, 0.78) 100%),
        url("/assets/images/community/world-map-light.png") center / min(1500px, 100vw) auto no-repeat;
}

.legal-hero-inner {
    max-width: 900px;
}

.legal-hero span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border: 2px solid rgba(239, 189, 0, 0.5);
    border-radius: 999px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 5.5vw, 74px);
    line-height: 0.98;
}

.legal-hero p {
    margin: 0;
    color: #3f3f3f;
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.55;
}

.legal-section {
    padding: 56px 0 70px;
}

.legal-card {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.legal-card h2 {
    margin: 34px 0 12px;
    color: #111;
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.08;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p {
    margin: 0 0 16px;
    color: #3f3f3f;
    font-size: 17px;
    line-height: 1.68;
}

.not-found-page {
    background: #fffdf7;
}

.not-found-hero {
    overflow: hidden;
    padding: 72px 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 223, 0.92) 58%, rgba(255, 224, 111, 0.78) 100%),
        url("/assets/images/community/world-map-light.png") center / min(1500px, 100vw) auto no-repeat;
}

.not-found-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 42px;
    min-height: 420px;
}

.not-found-copy span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 16px;
    border: 2px solid rgba(239, 189, 0, 0.5);
    border-radius: 999px;
    background: var(--yellow-pale);
    color: #111;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
}

.not-found-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(46px, 6vw, 84px);
    line-height: 0.96;
}

.not-found-copy p {
    max-width: 680px;
    margin: 0;
    color: #3f3f3f;
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.55;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.not-found-links a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    color: #111;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.not-found-links a:hover,
.not-found-links a:focus-visible {
    background: var(--yellow-pale);
    transform: translateY(-2px);
}

.not-found-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 34px 28px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.not-found-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
}

.not-found-card img {
    width: min(240px, 78%);
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(17, 17, 17, 0.14));
}

.not-found-card strong {
    color: #111;
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1;
}

.not-found-card p {
    margin: 0;
    color: #444;
    font-weight: 900;
}

.contact-page {
    background: #fffdf7;
}

.contact-hero {
    overflow: hidden;
    padding: 64px 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 223, 0.92) 58%, rgba(255, 224, 111, 0.78) 100%),
        url("/assets/images/community/world-map-light.png") center / min(1500px, 100vw) auto no-repeat;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: 42px;
}

.contact-copy span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border: 2px solid rgba(239, 189, 0, 0.5);
    border-radius: 999px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.96;
}

.contact-copy p {
    max-width: 680px;
    margin: 0;
    color: #3f3f3f;
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.55;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.contact-links a {
    padding: 11px 15px;
    border: 2px solid var(--yellow);
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 900;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
}

.form-row.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #111;
    font-weight: 900;
}

.contact-form label em {
    color: #c47f00;
    font-style: normal;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid rgba(239, 189, 0, 0.38);
    border-radius: 14px;
    background: #fffdf7;
    color: #111;
    font: inherit;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--yellow);
    outline: 3px solid rgba(255, 194, 10, 0.22);
}

.form-honey {
    position: absolute;
    left: -9999px;
}

.form-note {
    margin: -4px 0 0;
    color: #555;
    font-size: 14px;
}

.contact-form .button {
    justify-self: start;
}

.competitions-page {
    background: #fffdf7;
}

.competitions-hero {
    padding: 66px 0 58px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 231, 0.88)),
        url("/assets/images/community/world-map-light.png") right 10% center / 610px auto no-repeat,
        #fff;
}

.competitions-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
    align-items: center;
    gap: 42px;
}

.competitions-hero-copy {
    max-width: 760px;
}

.competitions-hero-copy span,
.competition-path-grid article > span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border: 2px solid rgba(239, 189, 0, 0.5);
    border-radius: 999px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 900;
    text-transform: uppercase;
}

.competitions-hero-copy h1 {
    max-width: 820px;
    margin: 18px 0 18px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.96;
}

.competitions-hero-copy p {
    margin: 0 0 26px;
    color: #3f3f3f;
    font-size: clamp(18px, 1.55vw, 24px);
    line-height: 1.55;
}

.competitions-hero-stack {
    position: relative;
    min-height: 390px;
}

.competitions-hero-stack img {
    position: absolute;
    width: 66%;
    height: 190px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.competitions-hero-stack img:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-4deg);
}

.competitions-hero-stack img:nth-child(2) {
    top: 92px;
    right: 0;
    transform: rotate(3deg);
}

.competitions-hero-stack img:nth-child(3) {
    bottom: 0;
    left: 10%;
    transform: rotate(-1deg);
}

.competitions-jump {
    position: sticky;
    top: 92px;
    z-index: 8;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(239, 189, 0, 0.22);
    border-bottom: 1px solid rgba(239, 189, 0, 0.22);
    backdrop-filter: blur(14px);
}

.competitions-jump .container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.competitions-jump a {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    color: #111;
    background: #fff;
    font-weight: 900;
}

.competitions-jump a:hover {
    background: var(--yellow);
}

.competitions-section {
    padding: 64px 0;
}

.competitions-overview,
.local-rounds-section,
.global-final-section {
    background: #fff;
}

.competition-path-grid,
.competition-prize-grid,
.competition-regional-grid,
.rules-grid {
    display: grid;
    gap: 20px;
}

.competition-path-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.competition-path-grid article,
.competition-date-card,
.competition-prize-grid article,
.competition-regional-grid article,
.competition-detail-block,
.global-final-mini-card,
.rules-grid article,
.rules-cta {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.competition-path-grid article::before,
.competition-date-card::before,
.competition-prize-grid article::before,
.competition-regional-grid article::before,
.competition-detail-block::before,
.global-final-mini-card::before,
.rules-grid article::before,
.rules-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
}

.competition-path-grid article:nth-child(even)::before,
.competition-prize-grid article:nth-child(2)::before,
.competition-regional-grid article:nth-child(2)::before,
.rules-grid article:nth-child(even)::before {
    background: #111;
}

.competition-path-grid article {
    padding: 24px;
}

.competition-path-grid img {
    display: block;
    width: 100%;
    height: 150px;
    margin-bottom: 18px;
    object-fit: contain;
}

.competition-path-grid article:nth-child(3) img {
    object-fit: cover;
    border-radius: 16px;
}

.competition-path-grid h3,
.competition-date-card h3,
.competition-prize-grid h3,
.competition-detail-heading h3,
.rules-cta h3 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.05;
}

.competition-path-grid p,
.competition-copy-grid p,
.competition-prize-grid p,
.rules-grid p,
.rules-cta p {
    color: #3f3f3f;
    font-size: 18px;
    line-height: 1.52;
}

.competition-path-grid ul,
.competition-regional-grid ul,
.benefit-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.competition-path-grid li,
.competition-regional-grid li,
.benefit-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 800;
}

.competition-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.7fr);
    align-items: center;
    gap: 34px;
}

.section-title.align-left {
    margin-left: 0;
    text-align: left;
}

.competition-date-card,
.competition-prize-grid article {
    padding: 28px;
}

.competition-date-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(239, 189, 0, 0.36);
    border-radius: 16px;
}

.competition-date-card th,
.competition-date-card td {
    padding: 12px 14px;
    border-top: 1px solid rgba(239, 189, 0, 0.34);
    text-align: left;
}

.competition-date-card th {
    border-top: 0;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-display);
    font-size: 19px;
}

.competition-date-card td:first-child {
    font-weight: 900;
}

.competition-date-card .button {
    margin-top: 18px;
}

.competition-prize-grid {
    grid-template-columns: 0.72fr 1fr;
    margin-top: 30px;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.certificate-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 900;
}

.certificate-grid strong,
.benefit-list strong {
    font-family: var(--font-display);
    font-size: 20px;
}

.benefit-list li {
    display: grid;
    gap: 6px;
    background: #fffdf7;
    border: 1px solid rgba(239, 189, 0, 0.3);
}

.benefit-list span {
    color: #4a4a4a;
    font-weight: 900;
}

.local-copy-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.competition-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.local-rounds-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.competition-regional-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.competition-regional-grid article {
    display: grid;
    grid-template-rows: 210px 1fr;
}

.competition-regional-grid article > img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.competition-regional-grid article > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.competition-regional-grid h3,
.rules-grid h3 {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 31px);
    line-height: 1.06;
}

.competition-regional-grid p,
.competition-regional-grid strong,
.competition-regional-grid span {
    margin: 0;
    color: #3f3f3f;
    font-size: 17px;
}

.competition-regional-grid strong {
    color: #111;
    font-size: 20px;
}

.competition-detail-block {
    margin-top: 28px;
    padding: 28px;
}

.competition-detail-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.competition-detail-heading h3,
.competition-detail-heading p {
    margin: 0;
}

.competition-detail-heading p {
    color: #4a4a4a;
    font-weight: 900;
    text-transform: uppercase;
}

.competition-schedule-list {
    display: grid;
    gap: 10px;
}

.competition-schedule-list article {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: #fffdf7;
    border: 1px solid rgba(239, 189, 0, 0.3);
}

.competition-schedule-list strong {
    display: grid;
    min-height: 48px;
    place-items: center;
    border-radius: 12px;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-display);
    font-size: 18px;
    text-align: center;
}

.competition-schedule-list p {
    margin: 0;
    color: #333;
    font-size: 17px;
    line-height: 1.45;
}

.competition-highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.competition-highlight-list span {
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 900;
}

.competition-highlight-cards {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 118px;
    gap: 0;
    margin-top: 22px;
    padding: 8px;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.12);
}

.competition-highlight-cards article {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 0;
    background: #f7f7f7;
    box-shadow: none;
}

.competition-highlight-cards article:nth-child(1) {
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.competition-highlight-cards article:nth-child(2) {
    grid-column: 5 / span 4;
    grid-row: 1 / span 2;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 88%);
}

.competition-highlight-cards article:nth-child(3) {
    grid-column: 9 / span 4;
    grid-row: 1 / span 3;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 92%);
}

.competition-highlight-cards article:nth-child(4) {
    grid-column: 4 / span 4;
    grid-row: 3 / span 2;
    clip-path: polygon(9% 0, 100% 10%, 92% 100%, 0 88%);
}

.competition-highlight-cards article:nth-child(5) {
    grid-column: 8 / span 5;
    grid-row: 4 / span 2;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 90%);
}

.competition-highlight-cards article:nth-child(6) {
    grid-column: 1 / span 4;
    grid-row: 4 / span 2;
    clip-path: polygon(0 8%, 88% 0, 100% 100%, 0 100%);
}

.competition-highlight-cards article:nth-child(7) {
    grid-column: 5 / span 3;
    grid-row: 5 / span 2;
    clip-path: polygon(10% 0, 100% 8%, 88% 100%, 0 94%);
}

.competition-highlight-cards article:nth-child(8) {
    grid-column: 8 / span 3;
    grid-row: 6 / span 2;
    clip-path: polygon(8% 0, 100% 12%, 86% 100%, 0 90%);
}

.competition-highlight-cards article:nth-child(9) {
    grid-column: 1 / span 4;
    grid-row: 6 / span 2;
    clip-path: polygon(0 0, 100% 12%, 88% 100%, 0 100%);
}

.competition-highlight-cards article:nth-child(10) {
    grid-column: 11 / span 2;
    grid-row: 6 / span 2;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 12% 92%);
}

.competition-highlight-cards img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: scale(1.035);
}

.competition-highlight-cards h4 {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 999px;
    color: #111;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.05;
    text-align: center;
}

.competition-highlight-cards span {
    align-self: end;
    justify-self: start;
}

.global-final-mini-card {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    padding: 24px;
}

.global-final-mini-card strong,
.global-final-mini-card span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--yellow-pale);
    color: #111;
    font-weight: 900;
}

.london-schedule {
    max-height: 620px;
    overflow: auto;
}

.london-highlights {
    justify-content: center;
    margin-top: 28px;
}

.london-collage {
    grid-auto-rows: 112px;
}

.rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-grid article {
    padding: 24px;
}

.rules-grid p {
    margin-bottom: 0;
}

.rules-cta {
    margin-top: 24px;
    padding: 28px;
    text-align: center;
}

.rules-cta .button {
    margin-top: 16px;
}

.events-page {
    background: #fffdf7;
}

.events-hero {
    padding: 64px 0 54px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 253, 245, 0.86) 52%, rgba(255, 220, 91, 0.24) 100%),
        url("/assets/images/community/world-map-light.png") right 12% center / 560px auto no-repeat,
        #fff;
}

.events-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.74fr);
    align-items: center;
    gap: 42px;
}

.events-hero-copy {
    max-width: 700px;
}

.events-hero-copy span {
    display: inline-flex;
    padding: 8px 14px;
    border: 2px solid rgba(239, 189, 0, 0.5);
    border-radius: 999px;
    color: #111;
    background: rgba(255, 248, 221, 0.86);
    font-weight: 900;
    text-transform: uppercase;
}

.events-hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 0.95;
}

.events-hero-copy p {
    margin: 0 0 26px;
    color: #3f3f3f;
    font-size: clamp(18px, 1.5vw, 23px);
    line-height: 1.55;
}

.events-hero-media {
    position: relative;
    display: grid;
    min-height: 360px;
    place-items: center;
}

.events-hero-media::before {
    content: "";
    position: absolute;
    inset: 34px 0 0 42px;
    border: 4px solid var(--yellow);
    border-radius: 28px;
    background: #fff7d7;
    transform: rotate(3deg);
}

.events-hero-media img {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    max-height: 370px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.16));
}

.events-jump {
    position: sticky;
    top: 92px;
    z-index: 8;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(239, 189, 0, 0.22);
    border-bottom: 1px solid rgba(239, 189, 0, 0.22);
    backdrop-filter: blur(14px);
}

.events-jump .container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.events-jump a {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    color: #111;
    background: #fff;
    font-weight: 900;
}

.events-jump a:hover {
    background: var(--yellow);
}

.events-section {
    padding: 64px 0;
}

.events-workshop-section,
.events-regional-section {
    background: #fff;
}

.events-workshop-dates,
.events-global-section {
    background: #fffdf7;
}

.events-benefit-grid,
.events-competition-grid,
.events-regional-grid {
    display: grid;
    gap: 20px;
}

.events-benefit-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.events-benefit-grid article,
.events-competition-grid article,
.events-regional-grid article,
.events-lms-panel,
.events-more-locations,
.events-schedule-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.events-benefit-grid article::before,
.events-competition-grid article::before,
.events-regional-grid article::before,
.events-lms-panel::before,
.events-more-locations::before,
.events-schedule-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
}

.events-benefit-grid article {
    min-height: 190px;
    padding: 26px 18px;
    text-align: center;
}

.events-benefit-grid article:nth-child(even)::before,
.events-competition-grid article:nth-child(2)::before,
.events-regional-grid article:nth-child(2)::before {
    background: #111;
}

.events-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    place-items: center;
    border: 3px solid rgba(239, 189, 0, 0.58);
    border-radius: 20px;
    background: var(--yellow-pale);
    color: #111;
}

.events-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.events-benefit-grid h3 {
    margin: 0;
    font-size: clamp(20px, 1.8vw, 25px);
    line-height: 1.12;
}

.events-lms-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 30px;
}

.events-lms-panel h3,
.events-more-locations h3 {
    margin: 0 0 8px;
    font-size: clamp(26px, 2.6vw, 34px);
}

.events-lms-panel p,
.events-more-locations p {
    margin: 0;
    color: #444;
    font-size: 18px;
}

.events-competition-grid,
.events-regional-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.events-competition-grid article {
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.events-competition-grid header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.events-competition-grid h3,
.events-regional-grid h3 {
    margin: 0;
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.04;
}

.events-competition-grid header span {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    color: #111;
    background: var(--yellow);
    font-weight: 900;
    text-transform: uppercase;
}

.events-competition-grid ul {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.events-competition-grid li {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(239, 189, 0, 0.28);
    border-radius: 14px;
    background: #fffdf7;
}

.events-competition-grid li strong {
    color: #111;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.events-competition-grid li span {
    color: #3e3e3e;
    font-weight: 800;
}

.events-competition-grid .button,
.events-regional-grid .button {
    align-self: flex-start;
    margin-top: auto;
}

.events-regional-grid article {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
}

.events-regional-photo {
    display: block;
    flex: 0 0 auto;
    width: calc(100% + 56px);
    max-width: none;
    height: 190px;
    margin: -28px -28px 8px;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(239, 189, 0, 0.34);
}

.events-regional-grid p,
.events-regional-grid span,
.events-regional-grid strong,
.events-regional-grid em {
    margin: 0;
    color: #3f3f3f;
    font-size: 17px;
}

.events-regional-grid p {
    color: #111;
    font-size: 22px;
    font-weight: 900;
}

.events-regional-grid em {
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--yellow-pale);
    color: #111;
    font-style: normal;
    font-weight: 900;
}

.events-more-locations {
    margin-top: 22px;
    padding: 26px 30px;
    text-align: center;
}

.events-schedule-card {
    display: grid;
    max-width: 980px;
    margin: 0 auto;
}

.events-schedule-card article {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-top: 1px solid rgba(239, 189, 0, 0.34);
}

.events-schedule-card article:first-child {
    border-top: 0;
}

.events-schedule-card strong {
    display: grid;
    min-height: 54px;
    place-items: center;
    border-radius: 14px;
    background: var(--yellow);
    color: #111;
    font-family: var(--font-display);
    font-size: 20px;
    text-align: center;
}

.events-schedule-card p {
    margin: 0;
    color: #333;
    font-size: 18px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 760px);
    }

    .ym-hero .container {
        width: min(100% - 32px, 760px);
    }

    .home-section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 31px;
    }

    .section-title p {
        font-size: 18px;
    }

    .brand img {
        width: 180px;
        height: auto;
        max-height: 56px;
    }

    .nav-links a,
    .nav-item > a {
        font-size: 15px;
    }

    .hero-grid,
    .subject-grid,
    .age-grid,
    .steps-grid,
    .concept-grid,
    .pathway-grid,
    .workshop-grid,
    .benefit-grid,
    .performer-grid,
    .stats-grid,
    .memory-grid {
        grid-template-columns: 1fr;
    }

    .benefit-grid {
        gap: 18px;
    }

    .benefit-grid article {
        min-height: auto;
        padding: 28px 22px;
    }

    .benefit-content {
        min-height: auto;
    }

    .performer-card ul {
        padding: 20px 22px 24px;
    }

    .table-feature,
    .workshop-feature {
        margin-top: 0;
    }

    .table-feature .holding-bee {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        display: block;
        width: min(150px, 42vw);
        margin: 0 auto -12px;
        transform: none;
    }

    .ym-hero {
        padding: 38px 0 30px;
        background:
            linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)),
            url("/assets/images/community/world-map-light.png") center top / 720px auto no-repeat,
            #fffaf0;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-highlight {
        font-size: 19px;
    }

    .hero-lede,
    .subject-card p,
    .concept-card p {
        font-size: 16px;
    }

    .hero-students {
        min-height: 300px;
        padding: 58px 26px 24px 52px;
    }

    .hero-students::before {
        inset: 30px 12px 0 34px;
    }

    .hero-students img {
        width: min(100%, 330px);
        max-height: 250px;
    }

    .subject-card,
    .concept-card {
        padding: 24px;
    }

    .subject-card > div {
        min-height: auto;
        max-width: none;
    }

    .subject-card h2,
    .concept-card h3 {
        font-size: 30px;
    }

    .subject-card img {
        position: static;
        max-width: 126px;
        margin: 14px 0 0 auto;
    }

    .age-card {
        min-height: 250px;
    }

    .step-card {
        min-height: auto;
    }

    .dates-table,
    .event-table,
    .english-age-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 15px;
    }

    .workshop-grid article {
        grid-template-columns: 110px minmax(0, 1fr) 110px;
    }

    .resource-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .resource-item img {
        width: 120px;
    }

    .testimonial-quote {
        padding: 22px;
    }

    .testimonial-quote blockquote {
        font-size: 18px;
    }

    .testimonial-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 520px);
    }

    .ym-hero .container {
        width: min(100% - 24px, 520px);
    }

    .nav {
        gap: 10px;
    }

    .brand img {
        width: 168px;
        height: auto;
        max-height: 52px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .nav-actions .nav-button {
        flex-basis: 100%;
    }

    .language-button,
    .search-button {
        flex: 0 0 auto;
    }

    .home-section {
        padding: 38px 0;
    }

    .section-title {
        margin-bottom: 24px;
    }

    .section-title h2 {
        font-size: 27px;
    }

    .hero-grid {
        min-height: auto;
        gap: 18px;
    }

    .hero-copy h1 {
        font-size: 34px;
        line-height: 1.06;
    }

    .hero-highlight {
        font-size: 24px;
    }

    .hero-lede {
        margin-top: 18px;
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button,
    .card-button {
        width: 100%;
        justify-content: center;
    }

    .english-hero {
        min-height: 440px;
    }

    .english-hero-copy {
        padding: 44px 0;
    }

    .english-hero-copy h1 {
        font-size: 34px;
    }

    .english-hero-media img {
        object-position: 60% center;
    }

    .english-feature-card,
    .english-theme-card,
    .english-resource-card,
    .english-challenge-grid article {
        border-radius: 16px;
    }

    .english-theme-card {
        padding-bottom: 24px;
    }

    .english-theme-decor {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 16px;
        margin-top: 24px;
    }

    .english-theme-decor img {
        position: static;
        display: block;
        margin: 0;
    }

    .english-theme-books-bee {
        width: min(150px, 42vw);
    }

    .english-theme-writing-bee {
        width: min(118px, 34vw);
    }

    .english-age-buttons a {
        min-height: 52px;
        font-size: 22px;
    }

    .resource-actions,
    .english-challenge-grid {
        grid-template-columns: 1fr;
    }

    .english-challenge-grid article:first-child {
        grid-column: auto;
    }

    .resource-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .resource-item img {
        width: 150px;
        margin: 0 auto;
    }

    .subject-card,
    .concept-card,
    .step-card,
    .pathway-grid article,
    .testimonial-quote {
        border-radius: 16px;
    }

    .subject-card {
        min-height: auto;
    }

    .subject-card h2,
    .concept-card h3 {
        font-size: 28px;
    }

    .age-card img {
        max-width: 136px;
        max-height: 146px;
    }

    .age-card p {
        right: 24px;
        bottom: 78px;
        font-size: 36px;
    }

    .age-card:nth-child(3) p {
        left: 24px;
        right: auto;
    }

    .workshop-grid article {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .online-illustration {
        min-height: 180px;
    }

    .online-illustration img {
        max-height: 180px;
    }

    .memory-grid img {
        aspect-ratio: 1.25;
    }
}

@media (max-width: 1180px) {
    .math-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .math-hero {
        min-height: 520px;
    }

    .math-sustainability-panel ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .math-hero {
        min-height: 440px;
    }

    .math-hero-copy {
        padding: 44px 0;
    }

    .math-hero-copy h1 {
        font-size: 34px;
    }

    .math-hero-media img {
        object-position: 58% center;
    }

    .math-overview-grid article,
    .math-level-card,
    .math-challenge-grid article,
    .math-sustainability-panel {
        border-radius: 16px;
    }

    .math-topic-list,
    .math-skills-box ul,
    .math-challenge-grid,
    .math-sustainability-panel ul {
        grid-template-columns: 1fr;
    }

    .math-level-visual,
    .math-accent-black .math-level-visual {
        min-height: 160px;
    }

    .math-level-visual img,
    .math-accent-black .math-level-visual img {
        max-height: 220px;
    }

    .math-challenge-grid article:first-child {
        grid-column: auto;
    }

    .math-sustainability-panel li {
        min-height: 56px;
    }
}

@media (max-width: 1180px) {
    .partner-feature-grid.groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .partners-hero-grid,
    .partner-type-grid,
    .partner-section-grid,
    .partner-section-grid.reverse {
        grid-template-columns: 1fr;
    }

    .partner-section-grid.reverse .partner-section-heading {
        order: 0;
    }

    .partner-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partners-hero-visual img {
        width: min(230px, 44vw);
    }
}

@media (max-width: 560px) {
    .partners-hero-grid {
        min-height: 430px;
        padding: 44px 0;
    }

    .partners-hero-copy h1 {
        font-size: 48px;
    }

    .partners-hero-copy p {
        font-size: 20px;
    }

    .partners-jump {
        top: 64px;
    }

    .partner-copy-panel,
    .partner-type-grid article,
    .partner-list-card,
    .partner-feature-grid article,
    .partner-final-cta {
        border-radius: 16px;
    }

    .partner-feature-grid,
    .partner-feature-grid.groups {
        grid-template-columns: 1fr;
    }

    .partner-final-cta {
        display: grid;
        justify-items: start;
    }
}

@media (max-width: 1180px) {
    .discover-step-list,
    .discover-award-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .discover-benefit-grid,
    .discover-age-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .discover-hero-grid,
    .discover-overview-grid,
    .discover-prize-grid,
    .discover-faq-list {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {
    .discover-hero-grid {
        min-height: 430px;
        padding: 44px 0;
    }

    .discover-hero-copy h1 {
        font-size: 40px;
    }

    .discover-hero-copy p {
        font-size: 18px;
    }

    .discover-step-list,
    .discover-award-grid {
        grid-template-columns: 1fr;
    }

    .discover-pathway-callout {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 18px;
        border-radius: 22px;
        text-align: center;
    }

    .discover-pathway-callout img {
        width: 68px;
        height: 68px;
    }

    .discover-pathway-callout h3 {
        font-size: 24px;
    }

    .discover-pathway-callout p {
        font-size: 16px;
    }

    .discover-overview-grid article,
    .discover-benefit-grid article,
    .discover-age-grid article,
    .discover-award-grid article,
    .discover-table-card,
    .discover-faq-list article,
    .discover-final-cta {
        border-radius: 16px;
    }

    .discover-age-grid article {
        min-height: auto;
    }

    .discover-age-grid article img,
    .discover-age-grid article:nth-child(2) img,
    .discover-age-grid article:nth-child(3) img {
        width: min(170px, 56vw);
        margin-top: 20px;
    }

    .discover-award-icon-frame {
        width: 78px;
        height: 78px;
        padding: 10px;
    }

    .discover-award-icon {
        width: 50px;
        height: 50px;
        max-width: 50px;
        max-height: 50px;
    }
}


@media (max-width: 1100px) {
    .events-benefit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .events-hero {
        padding: 48px 0;
    }

    .events-hero-grid,
    .events-competition-grid,
    .events-regional-grid {
        grid-template-columns: 1fr;
    }

    .events-hero-media {
        min-height: 270px;
    }

    .events-hero-media img {
        max-height: 280px;
    }

    .events-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .events-lms-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .events-jump {
        top: 74px;
    }
}

@media (max-width: 560px) {
    .events-hero-copy h1 {
        font-size: 42px;
    }

    .events-benefit-grid {
        grid-template-columns: 1fr;
    }

    .events-benefit-grid article {
        min-height: 0;
    }

    .events-schedule-card article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .events-schedule-card strong {
        justify-self: start;
        min-width: 118px;
        padding: 0 14px;
    }
}


@media (max-width: 1200px) {
    .competition-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competition-regional-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .competitions-hero-grid,
    .competition-copy-grid,
    .local-copy-grid,
    .competition-prize-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .competitions-hero-stack {
        min-height: 300px;
    }

    .competitions-hero-stack img {
        height: 150px;
    }

    .competitions-jump {
        top: 74px;
    }

    .section-title.align-left {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .competitions-hero-copy h1 {
        font-size: 40px;
    }

    .competition-path-grid,
    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .competition-schedule-list article {
        grid-template-columns: 1fr;
    }

    .competition-schedule-list strong {
        justify-self: start;
        min-width: 110px;
        padding: 0 14px;
    }
}

@media (max-width: 700px) {
    .footer-inner,
    .footer-brand {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .footer-links,
    .footer-social {
        width: 100%;
        justify-content: center;
        gap: 7px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .competition-highlight-cards,
    .london-collage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;
        padding: 8px;
    }

    .competition-highlight-cards article,
    .competition-highlight-cards article:nth-child(n),
    .london-collage article,
    .london-collage article:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        clip-path: none;
        border-radius: 16px;
    }
}

@media (max-width: 560px) {
    .competition-highlight-cards,
    .london-collage {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
        gap: 0;
        border-radius: 18px;
    }

    .competition-highlight-cards article,
    .london-collage article {
        border-width: 3px;
        border-radius: 14px;
    }
}


@media (max-width: 900px) {
    .contact-hero-grid,
    .form-row.two-columns {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {
    .not-found-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .not-found-card {
        max-width: 420px;
        margin: 0 auto;
    }
}
