/* Homepage only. Keep the platform's turquoise, green and gold identity. */
.home-page {
    --home-teal: #1d9098;
    --home-teal-dark: #126a71;
    --home-ink: #193b40;
    --home-muted: #62777a;
    --home-green: #a8d04c;
    --home-gold: #f89c2a;
    --home-soft: #f4f9f8;
    --home-line: #e1eeeb;
    background: #fff;
    color: var(--home-ink);
    line-height: 1.7 !important;
}

.home-page .home-main { overflow: clip; }
.home-page .home-main h1,
.home-page .home-main h2,
.home-page .home-main h3 { color: var(--home-ink); font-weight: 800; }
.home-page .home-main p { line-height: 1.85; }
.home-page .home-main img { max-width: 100%; }
.home-page a { text-underline-offset: 5px; }
.home-page :is(a, button, [role="button"]):focus-visible {
    outline: 3px solid var(--home-gold) !important;
    outline-offset: 5px;
}
.home-page .home-main a,
.home-page .home-main button { -webkit-tap-highlight-color: transparent; }
.home-page .home-direction-arrow { flex-shrink: 0; }
html[lang="en"] .home-page .home-direction-arrow { transform: rotate(180deg); }

/* A quiet, compact header; its original links and mobile menu remain intact. */

/* Split hero with a restrained brand backdrop and the existing banner content. */
.home-page .home-hero {
    position: relative;
    padding: 54px 0 32px;
    background: radial-gradient(ellipse at 15% 45%, #dcefe7 0, transparent 48%), linear-gradient(110deg, #f4faf5, #f5fbfb 65%, #fff);
}
.home-page .home-hero-row { min-height: 440px; padding-bottom: 28px; }
.home-page .home-hero .carousel-inner { overflow: hidden; }
.home-page .home-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--home-teal); margin-bottom: 20px; }
.home-page .home-brand-dot { width: 9px; height: 9px; background: var(--home-green); border-radius: 50%; box-shadow: 0 0 0 5px #a8d04c22; }
.home-page .home-main .home-hero-title { font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.5; letter-spacing: -.8px; margin: 0 0 18px; overflow-wrap: anywhere; }
.home-page .home-hero-description { font-size: 17px; line-height: 1.95; color: var(--home-muted); max-width: 540px; overflow-wrap: anywhere; }
.home-page .home-hero-description p { margin: 0 0 12px; }
.home-page .home-hero-description :is(h1, h2, h3, h4, h5, h6) { font-size: 1.2rem; }
.home-page .home-hero-description a { color: var(--home-teal); text-decoration: underline; }
.home-page .home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-page .home-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 12px; font-size: 15px; font-weight: 800; transition: background .2s, box-shadow .2s, transform .2s; }
.home-page .home-button-primary { background: var(--home-teal); color: #fff; box-shadow: 0 8px 20px #1d90981a; }
.home-page .home-button-primary:hover { color: #fff; background: var(--home-teal-dark); transform: translateY(-2px); box-shadow: 0 12px 25px #1d909826; }
.home-page .home-button-secondary { background: #fff; border-color: #c9dfda; color: var(--home-ink); }
.home-page .home-button-secondary:hover { color: var(--home-teal); border-color: var(--home-teal); background: #f5faf8; }
.home-page .home-hero-topics { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--home-muted); font-size: 13px; }
.home-page .home-hero-topics span { display: inline-flex; align-items: center; gap: 8px; }
.home-page .home-hero-topics span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--home-gold); }
.home-page .home-hero-visual { position: relative; margin: 18px 18px 22px; isolation: isolate; }
.home-page .home-hero-visual::before { content: ''; position: absolute; inset: -12px 20px 20px -12px; background: #cde6df; border-radius: 32px; transform: rotate(-4deg); z-index: -1; }
.home-page .home-hero-image { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: #fff; border-radius: 26px; box-shadow: 0 20px 50px #193b4012; }
.home-page .home-visual-orbit { position: absolute; width: 80px; height: 80px; border: 14px solid #a8d04c66; border-radius: 50%; inset-inline-end: -18px; top: -20px; z-index: -1; }
.home-page .home-visual-label { display: flex; align-items: center; gap: 12px; position: absolute; bottom: -20px; inset-inline-start: 22px; max-width: calc(100% - 44px); padding: 14px 18px; border: 1px solid #edf4ef; border-radius: 16px; background: #fff; color: var(--home-ink); box-shadow: 0 12px 30px #193b4012; font-size: 15px; font-weight: 800; }
.home-page .home-visual-label small { display: block; color: var(--home-muted); font-size: 11px; font-weight: 500; margin-top: 3px; }
.home-page .home-visual-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--home-teal); background: #e9f4f0; flex-shrink: 0; }
.home-page .home-hero-brand { display: grid; place-items: center; min-height: 320px; border-radius: 26px; background: #fff; }
.home-page .home-hero-brand img { width: 65%; max-height: 240px; object-fit: contain; }
.home-page .home-hero-navigation { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; }
.home-page .home-hero-indicators { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.home-page .home-hero-indicators button { position: relative; width: 28px; height: 44px; border: 0; padding: 0; background: transparent; }
.home-page .home-hero-indicators button::after { content: ''; position: absolute; width: 8px; height: 8px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 8px; background: #bed5cf; transition: width .2s, background .2s; }
.home-page .home-hero-indicators button.active::after { width: 24px; background: var(--home-teal); }

/* Existing guest invitation and personal metrics, with a lighter hierarchy. */
.home-page .home-guest-strip { padding: 26px 0 0; }
.home-page .home-guest-strip .singin-alert { margin: 0 !important; padding: 22px 28px; border: 0; border-radius: 16px; background: #f4f8ed; box-shadow: none; }
.home-page .home-guest-strip .signin-alert-box { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 28px; width: 100%; padding: 0 !important; }
.home-page .home-guest-strip .signin-alert-box h3 { font-size: 17px !important; margin: 0 0 6px; }
.home-page .home-guest-strip .signin-alert-box p { color: var(--home-muted); font-size: 13px; margin: 0; }
.home-page .home-guest-strip .signin-alert-box > .d-flex { grid-column: 2; grid-row: 1 / 3; }
.home-page .home-guest-strip .btn { min-height: 44px; padding: 9px 16px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.home-page .home-guest-strip .colored-btn { background: var(--home-teal); border-color: var(--home-teal); color: #fff; }
.home-page .home-guest-strip .outline-btn { border-color: #b7caaa; background: transparent; color: var(--home-ink); }
.home-page .home-guest-strip .btnIcon { font-size: 14px; }
.home-page .home-account { padding-top: 38px; }
.home-page .home-account-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.home-page .home-account-heading h2 { font-size: 21px; margin: 0 0 5px; }
.home-page .home-account-heading p { margin: 0; font-size: 13px; color: var(--home-muted); }
.home-page .home-account-avatar { width: 60px; height: 60px; position: relative; flex-shrink: 0; }
.home-page .home-account-avatar > img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.home-page .home-account-avatar > .home-account-flag { position: absolute; width: 23px; height: 23px; inset-inline-end: -4px; bottom: -2px; border: 3px solid #fff; }
.home-page .home-account-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--home-soft); border-radius: 18px; height: 100%; padding: 20px 8px; }
.home-page .home-account-metric { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; color: var(--home-ink); text-align: center; }
.home-page .home-account-metric + .home-account-metric { border-inline-start: 1px solid #dce8e2; }
.home-page .home-account-metric img { height: 34px; width: 34px; object-fit: contain; }
.home-page .home-account-metric strong { font-size: 25px; line-height: 1.4; }
.home-page .home-account-metric span { font-size: 12px; color: var(--home-muted); }
.home-page .home-invite { height: 100%; padding: 24px; border-radius: 18px; background: #f7f8ed; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.home-page .home-invite p { margin: 0; color: var(--home-ink); font-size: 13px; }
.home-page .home-copy-link { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; min-height: 44px; border: 0; border-radius: 9px; background: #fff; color: var(--home-teal); font-size: 12px; font-weight: 800; }
.home-page .copied::after { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; padding: 6px 12px; border-radius: 8px; background: var(--home-ink); color: #fff; white-space: nowrap; }

/* Open sections instead of nested, grey bordered boxes. */
.home-page .home-section { padding: 64px 0; }
.home-page .home-section-soft { background: var(--home-soft); }
.home-page .home-categories { padding-bottom: 20px; }
.home-page .home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home-page .home-section-kicker { display: block; color: var(--home-teal); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.home-page .home-section-heading h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); margin: 0; line-height: 1.5; }
.home-page .home-view-all { display: inline-flex; align-items: center; gap: 12px; color: var(--home-teal); font-size: 13px; font-weight: 800; min-height: 44px; white-space: nowrap; }
.home-page .home-view-all:hover { color: var(--home-teal-dark); text-decoration: underline; }
.home-page .home-heading-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.home-page .home-track-controls { display: flex; gap: 8px; flex-shrink: 0; }
.home-page .home-track-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d2e4df; border-radius: 50%; background: #fff; color: var(--home-teal); font-size: 13px; transition: background .2s, color .2s; }
.home-page .home-track-controls button:hover { background: var(--home-teal-dark); color: #fff; border-color: var(--home-teal-dark); }
.home-page .home-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.home-page .home-category-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px 18px; border: 1px solid #e7eeea; border-radius: 18px; background: #fff; text-align: center; color: var(--home-ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-page .home-category-card:nth-child(3n + 1) { background: #f3f9f7; border-color: #e2efea; }
.home-page .home-category-card:nth-child(3n + 2) { background: #fafbf3; border-color: #edf0dc; }
.home-page .home-category-card:nth-child(3n) { background: #fff9f0; border-color: #f5ead9; }
.home-page .home-category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px #193b400c; border-color: #bad9d1; }
.home-page .home-category-image { display: grid; place-items: center; width: 65px; height: 65px; }
.home-page .home-category-image img { width: 100%; height: 100%; object-fit: contain; }
.home-page .home-category-card h3 { font-size: 13px; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.home-page .home-category-card > i { color: var(--home-teal); font-size: 11px; margin-top: auto; }

/* All dynamic cards stay available through native touch scrolling and controls. */
.home-page .home-card-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); align-items: stretch; gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 6px 4px 24px; scrollbar-width: thin; scrollbar-color: #bbd8d0 transparent; }
.home-page .home-card-track::-webkit-scrollbar { height: 5px; }
.home-page .home-card-track::-webkit-scrollbar-thumb { background: #bbd8d0; border-radius: 10px; }
.home-page .home-course-card,
.home-page .home-article-card { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; border: 1px solid #e8f0ec; border-radius: 20px; overflow: hidden; background: #fff; color: var(--home-ink); box-shadow: 0 5px 16px #193b4005; transition: transform .22s, box-shadow .22s, border-color .22s; }
.home-page .home-course-card:hover,
.home-page .home-article-card:hover { transform: translateY(-4px); border-color: #c0ded3; box-shadow: 0 14px 30px #193b4010; color: var(--home-ink); }
.home-page .home-card-image { position: relative; aspect-ratio: 16 / 10; background: #eaf2ee; overflow: hidden; flex-shrink: 0; }
.home-page .home-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.home-page .home-course-card:hover .home-card-image img,
.home-page .home-article-card:hover .home-card-image img { transform: scale(1.025); }
.home-page .home-course-category { position: absolute; inset-inline-start: 16px; bottom: 14px; max-width: calc(100% - 32px); padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--home-teal); font-size: 11px; font-weight: 800; box-shadow: 0 3px 12px #193b4010; overflow-wrap: anywhere; }
.home-page .home-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.home-page .home-card-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; line-height: 1.7; min-height: 3.4em; margin: 0 0 10px; }
.home-page .home-card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--home-muted); margin: 0 0 20px; overflow-wrap: anywhere; }
.home-page .home-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #edf3ef; font-size: 12px; font-weight: 800; color: var(--home-teal); }
.home-page .home-card-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eff7f3; }
.home-page .home-classifications { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.home-page .home-classification { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 16px 7px 12px; border: 1px solid var(--home-line); border-radius: 30px; color: var(--home-ink); font-size: 12px; font-weight: 700; background: #fff; }
.home-page .home-classification img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.home-page .home-classification:hover { background: var(--home-soft); border-color: #b7d8ce; color: var(--home-teal); }
.home-page .home-journal-controls { justify-content: flex-end; margin: 10px 0 12px; }
.home-page .home-article-card { border-color: transparent; border-radius: 16px; box-shadow: none; }
.home-page .home-article-card .home-card-image { border-radius: 16px; aspect-ratio: 16 / 9; }
.home-page .home-article-card .home-card-body { padding: 20px 8px 10px; }
.home-page .home-article-read { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 12px; font-weight: 800; color: var(--home-teal); }

/* Statistics are supplied by the existing controller, without invented counts. */
.home-page .home-impact-section { padding: 12px 0 72px; }
.home-page .home-impact { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 36px; align-items: center; padding: 44px; border-radius: 26px; background: var(--home-teal); color: #fff; }
.home-page .home-impact-heading h2 { color: #fff; font-size: 24px; margin: 12px 0 8px; }
.home-page .home-impact-heading > span:last-child { font-size: 12px; color: #d3e9e5; }
.home-page .home-impact-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ffffff17; color: #d0e998; font-size: 20px; }
.home-page .home-impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 24px; }
.home-page .home-impact-item { display: flex; flex-direction: column; gap: 10px; padding-inline-start: 20px; border-inline-start: 1px solid #ffffff33; }
.home-page .home-impact-item strong { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.4; overflow-wrap: anywhere; }
.home-page .home-impact-item span { font-size: 13px; color: #e2f0ea; }

/* Preserve every footer destination and social link in a cleaner composition. */

@media (max-width: 1199.98px) {
    .home-page .home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-page .home-main .home-hero-title { font-size: 2.6rem; }
    .home-page .home-hero-row { min-height: 390px; }
    .home-page .home-card-body { padding: 18px; }
}

@media (max-width: 991.98px) {
    .home-page .home-hero { padding-top: 36px; }
    .home-page .home-hero-row { min-height: auto; }
    .home-page .home-hero-copy { max-width: 680px; }
    .home-page .home-hero-description { max-width: none; }
    .home-page .home-hero-visual { max-width: 580px; margin: 20px auto 24px; }
    .home-page .home-hero-image { aspect-ratio: 16 / 9; }
    .home-page .home-main .home-hero-title { font-size: 2.4rem; }
    .home-page .home-guest-strip .signin-alert-box { grid-template-columns: 1fr; }
    .home-page .home-guest-strip .signin-alert-box > .d-flex { grid-column: auto; grid-row: auto; margin-top: 16px; }
    .home-page .home-section { padding: 48px 0; }
    .home-page .home-categories { padding-bottom: 8px; }
    .home-page .home-card-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
    .home-page .home-impact { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
    .home-page .home-impact-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

@media (max-width: 767.98px) {
    .home-page .home-section-heading { align-items: flex-start; gap: 12px; }
    .home-page .home-heading-actions { gap: 10px; }
    .home-page .home-section-heading .home-track-controls { display: none; }
    .home-page .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .home-page .home-category-card { padding: 16px 8px; border-radius: 14px; }
    .home-page .home-card-track { grid-auto-columns: 78%; gap: 16px; scroll-padding-inline: 4px; }
    .home-page .home-impact-section { padding-bottom: 48px; }
    .home-page .home-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .home-page .container { padding-inline: 20px; }
    .home-page .home-main .home-hero-title { font-size: 1.95rem; line-height: 1.6; letter-spacing: -.4px; }
    .home-page .home-eyebrow { font-size: 12px; margin-bottom: 14px; }
    .home-page .home-hero-description { font-size: 14px; }
    .home-page .home-hero-actions { gap: 10px; margin-top: 22px; }
    .home-page .home-button { font-size: 13px; padding: 12px 16px; gap: 14px; flex: 1 1 auto; }
    .home-page .home-hero-topics { font-size: 11px; gap: 14px; margin-top: 20px; }
    .home-page .home-hero-visual { margin: 16px 8px 22px; }
    .home-page .home-hero-image { border-radius: 18px; }
    .home-page .home-visual-label { padding: 10px 12px; font-size: 12px; inset-inline-start: 14px; }
    .home-page .home-visual-label small { font-size: 10px; }
    .home-page .home-visual-icon { width: 36px; height: 36px; }
    .home-page .home-hero-brand { min-height: 230px; }
    .home-page .home-guest-strip .singin-alert { padding: 20px; }
    .home-page .home-guest-strip .signin-alert-box h3 { font-size: 15px !important; }
    .home-page .home-guest-strip .signin-alert-box p { font-size: 12px; }
    .home-page .home-guest-strip .signin-alert-box > .d-flex { gap: 10px !important; flex-wrap: wrap; }
    .home-page .home-section { padding: 36px 0; }
    .home-page .home-categories { padding-bottom: 0; }
    .home-page .home-section-heading { margin-bottom: 20px; }
    .home-page .home-section-heading h2 { font-size: 20px; }
    .home-page .home-view-all { font-size: 11px; gap: 7px; }
    .home-page .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .home-category-image { width: 50px; height: 50px; }
    .home-page .home-card-track { grid-auto-columns: 87%; gap: 14px; }
    .home-page .home-card-body h3 { font-size: 16px; }
    .home-page .home-classifications { gap: 8px; }
    .home-page .home-classification { font-size: 11px; padding-inline: 10px; }
    .home-page .home-account-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
    .home-page .home-account-metric:nth-child(3) { border-inline-start: 0; }
    .home-page .home-account-heading h2 { font-size: 18px; }
    .home-page .home-account-heading p { font-size: 11px; }
    .home-page .home-impact { padding: 26px 22px; border-radius: 20px; }
    .home-page .home-impact-heading h2 { font-size: 22px; }
    .home-page .home-impact-item { padding-inline-start: 12px; }
    .home-page .home-impact-item strong { font-size: 1.8rem; }
    .home-page .home-impact-item span { font-size: 12px; }
}

/* Learning journey: reuse the approved hero, cards, palette and footer. */
.home-page .home-main [id] { scroll-margin-top: 110px; }
.home-page .home-main .home-hero-title { font-size: clamp(1.95rem, 3vw, 2.85rem); }
.home-page .home-hero-announcement { margin-top: 18px; max-width: 540px; font-size: 12px; color: var(--home-muted); }
.home-page .home-hero-announcement summary { cursor: pointer; color: var(--home-teal); font-weight: 700; padding-block: 6px; }
.home-page .home-hero-announcement > div { padding-top: 8px; line-height: 1.8; overflow-wrap: anywhere; }
.home-page .home-hero-announcement p { margin-bottom: 8px; }
.home-page .home-impact-top { padding: 28px 0 0; }
.home-page .home-impact-top .home-impact { padding: 28px 36px; gap: 28px; }
.home-page .home-impact-top .home-impact-heading h2 { font-size: 21px; }
.home-page .home-section-description { margin: 10px 0 0; max-width: 600px; font-size: 14px; color: var(--home-muted); }
.home-page .home-start-section { padding-bottom: 20px; }
.home-page .home-gateway-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-page .home-gateway-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 28px 24px; border: 1px solid #e0eeea; border-radius: 20px; background: #f2f9f7; color: var(--home-ink); transition: transform .22s, box-shadow .22s, border-color .22s; }
.home-page .home-gateway-card:nth-child(2) { background: #f8faef; border-color: #e8edd9; }
.home-page .home-gateway-card:nth-child(3) { background: #fff8ed; border-color: #f4e9d7; }
.home-page .home-gateway-card:nth-child(4) { background: #f0f7fa; border-color: #e1edf2; }
.home-page .home-gateway-card:hover { color: var(--home-ink); transform: translateY(-4px); box-shadow: 0 14px 30px #193b4010; border-color: #bdd9cf; }
.home-page .home-gateway-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff; color: var(--home-teal); font-size: 23px; margin-bottom: 5px; }
.home-page .home-gateway-card:nth-child(2) .home-gateway-icon { color: #789d2e; }
.home-page .home-gateway-card:nth-child(3) .home-gateway-icon { color: var(--home-gold); }
.home-page .home-gateway-card h3 { font-size: 18px; line-height: 1.6; margin: 0; }
.home-page .home-gateway-card p { font-size: 13px; color: var(--home-muted); margin: 0 0 8px; }
.home-page .home-gateway-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--home-teal); font-weight: 800; margin-top: auto; }
.home-page .home-gateway-link i { transition: translate .2s; }
.home-page .home-gateway-card:hover .home-gateway-link i { translate: -3px 0; }
html[lang="en"] .home-page .home-gateway-card:hover .home-gateway-link i { translate: 3px 0; }
.home-page .home-topic-browser { margin-top: 26px; }
.home-page .home-topic-browser h3 { font-size: 14px; margin: 0 0 14px; }
.home-page .home-topic-browser .home-classifications { margin-bottom: 0; }
.home-page .home-account-section { background: var(--home-soft); }
.home-page .home-account-section .home-account { padding-top: 0; }
.home-page .home-account-intro { display: flex; align-items: center; gap: 16px; min-width: 0; }
.home-page .home-account-intro > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.home-page .home-account-section .home-account-metrics { background: #fff; }
.home-page .home-account-section .home-section-heading .home-button { flex-shrink: 0; }
.home-page .home-features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.home-page .home-feature-item { min-width: 0; padding: 10px 0; }
.home-page .home-feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eff7f4; color: var(--home-teal); font-size: 19px; margin-bottom: 18px; }
.home-page .home-feature-item:nth-child(3) .home-feature-icon { background: #fff6e7; color: var(--home-gold); }
.home-page .home-feature-item:nth-child(4) .home-feature-icon { background: #f4f8e8; color: #789d2e; }
.home-page .home-feature-item h3 { font-size: 17px; margin: 0 0 10px; }
.home-page .home-feature-item p { font-size: 13px; color: var(--home-muted); margin: 0; }
.home-page .home-feature-item .home-view-all { font-size: 11px; white-space: normal; line-height: 1.7; gap: 8px; margin-top: 10px; }
.home-page .home-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-page .home-latest-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 18px; padding: 20px; background: #fff; border-radius: 16px; border: 1px solid #e8f0ec; color: var(--home-ink); transition: transform .22s, box-shadow .22s; }
.home-page .home-latest-card > img { width: 90px; height: 110px; border-radius: 12px; object-fit: cover; }
.home-page .home-latest-card h3 { font-size: 15px; line-height: 1.7; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-page .home-latest-card p { color: var(--home-muted); font-size: 12px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-page .home-latest-card:hover { color: var(--home-ink); transform: translateY(-3px); box-shadow: 0 10px 25px #193b400e; }
.home-page .home-excellence { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 40px; padding: 42px; border-radius: 26px; background: linear-gradient(115deg, #eff7e7, #eaf6f5); }
.home-page .home-excellence h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.65; margin: 10px 0 14px; }
.home-page .home-excellence-copy p { color: var(--home-muted); font-size: 14px; margin: 0 0 24px; max-width: 560px; }
.home-page .home-excellence-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.home-page .home-excellence-trophy { display: grid; place-items: center; width: 120px; height: 120px; border: 12px solid #ffffff88; border-radius: 50%; background: #fff8e7; color: var(--home-gold); font-size: 46px; }
.home-page .home-excellence-trophy { position: relative; }
.home-page .home-excellence-trophy > .site-lottie-icon { --lottie-size: 112px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 575px) {
    .home-page .home-excellence-trophy > .site-lottie-icon { --lottie-size: 84px; }
}
.home-page .home-excellence-steps { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 12px; color: var(--home-teal); font-weight: 700; }
.home-page .home-excellence-steps > i { font-size: 9px; color: var(--home-muted); }
.home-page .home-excellence-personal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; text-align: center; }
.home-page .home-excellence-personal > div { display: flex; flex-direction: column; gap: 6px; }
.home-page .home-excellence-personal strong { color: var(--home-teal); font-size: 27px; }
.home-page .home-excellence-personal span { color: var(--home-muted); font-size: 12px; }
.home-page .home-join-strip { padding: 0 0 48px; }

@media (max-width: 991.98px) {
    .home-page .home-gateway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .home-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .home-page .home-latest-grid { grid-template-columns: 1fr; }
    .home-page .home-excellence { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
}

@media (max-width: 575.98px) {
    .home-page .home-main .home-hero-title { font-size: 1.9rem; }
    .home-page .home-impact-top .home-impact { padding: 24px 22px; }
    .home-page .home-section-description { font-size: 12px; }
    .home-page .home-gateway-grid { gap: 12px; }
    .home-page .home-gateway-card { padding: 20px 14px; gap: 10px; border-radius: 16px; }
    .home-page .home-gateway-icon { width: 42px; height: 42px; font-size: 19px; }
    .home-page .home-gateway-card h3 { font-size: 15px; }
    .home-page .home-gateway-card p, .home-page .home-gateway-link { font-size: 11px; }
    .home-page .home-account-section .home-section-heading { flex-direction: column; align-items: stretch; gap: 18px; }
    .home-page .home-account-section .home-section-heading .home-button { align-self: flex-start; }
    .home-page .home-feature-item h3 { font-size: 15px; line-height: 1.7; }
    .home-page .home-feature-item p { font-size: 12px; }
    .home-page .home-latest-card { padding: 16px; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
    .home-page .home-latest-card > img { width: 76px; height: 104px; }
    .home-page .home-excellence { padding: 28px 22px; border-radius: 20px; }
    .home-page .home-hero-announcement { font-size: 11px; }
    .home-page .home-join-strip { padding-bottom: 36px; }
}

/* Personal learning dashboard; the guest journey keeps its existing design. */
.home-page .home-dashboard-top { background: linear-gradient(110deg, #f4faf5, #f5fbfb); padding-bottom: 36px; }
.home-page .home-dashboard-greeting { margin-bottom: 30px; }
.home-page .home-dashboard-greeting h1 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.6; margin: 0 0 8px; }
.home-page .home-dashboard-greeting p { margin: 0; color: var(--home-muted); font-size: 14px; }
.home-page .home-resume-card { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 34px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 12px 35px #193b4008; }
.home-page .home-resume-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.home-page .home-resume-copy h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.7; margin: 0 0 14px; }
.home-page .home-resume-copy p { color: var(--home-muted); font-size: 13px; margin: 12px 0; }
.home-page .home-resume-copy .home-resume-last { color: var(--home-ink); }
.home-page .home-learning-progress { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; color: var(--home-teal); font-size: 14px; font-weight: 800; }
.home-page .home-learning-progress progress { display: block; appearance: none; border: 0; border-radius: 8px; height: 8px; width: 100%; flex: 1; background: #e8f0ec; overflow: hidden; }
.home-page .home-learning-progress progress::-webkit-progress-bar { background: #e8f0ec; border-radius: 8px; }
.home-page .home-learning-progress progress::-webkit-progress-value { background: var(--home-teal); border-radius: 8px; }
.home-page .home-learning-progress progress::-moz-progress-bar { background: var(--home-teal); border-radius: 8px; }
.home-page .home-dashboard-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 24px; }
.home-page .home-dashboard-summary a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; border-radius: 14px; background: #fff; color: var(--home-ink); }
.home-page .home-dashboard-summary strong { font-size: 26px; color: var(--home-teal); }
.home-page .home-dashboard-summary span { font-size: 12px; color: var(--home-muted); }
.home-page .home-dashboard-summary a:hover { background: #edf7f3; }
.home-page .home-next-step { display: flex; align-items: center; gap: 24px; padding: 28px; background: #fff; border-radius: 20px; }
.home-page .home-next-step > div { flex: 1; min-width: 0; }
.home-page .home-next-step h2 { font-size: 22px; margin: 0 0 10px; }
.home-page .home-next-step p { margin: 0; color: var(--home-muted); font-size: 14px; }
.home-page .home-dashboard-invite { margin-top: 18px; font-size: 12px; color: var(--home-muted); }
.home-page .home-dashboard-invite p { margin: 0 0 10px; }
@media (max-width: 767.98px) {
    .home-page .home-resume-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
    .home-page .home-next-step { flex-wrap: wrap; padding: 22px; gap: 16px; }
    .home-page .home-next-step .home-button { width: 100%; }
    .home-page .home-dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .home-dashboard-summary a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Progressive motion: content remains visible without JavaScript or observers. */
.home-page .home-impact-item strong { font-variant-numeric: tabular-nums; }
.home-page .home-card-track { scroll-behavior: smooth; }
.home-page :is(.home-view-all, .home-article-read, .home-card-arrow, .home-copy-link, .home-classification) { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.home-page :is(.home-button, .home-view-all, .home-article-read, .home-card-arrow) .home-direction-arrow { transition: translate .2s ease; }
.home-page :is(.home-button, .home-view-all, .home-article-card, .home-course-card):hover .home-direction-arrow { translate: -3px 0; }
html[lang="en"] .home-page :is(.home-button, .home-view-all, .home-article-card, .home-course-card):hover .home-direction-arrow { translate: 3px 0; }
.home-page .home-track-controls button { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.home-page .home-track-controls button:active { transform: scale(.94); }
.home-page.home-motion-enabled.home-intro-ready .home-hero .active .home-hero-copy { animation: home-intro .65s cubic-bezier(.2, .7, .3, 1) both; }
.home-page.home-motion-enabled.home-intro-ready .home-hero .active .home-hero-visual { animation: home-intro .75s cubic-bezier(.2, .7, .3, 1) .08s both; }
.home-page.home-motion-enabled .home-reveal {
    transition: opacity .55s ease var(--home-reveal-delay, 0s), translate .55s cubic-bezier(.2, .7, .3, 1) var(--home-reveal-delay, 0s), transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-page.home-motion-enabled .home-reveal:not(.home-revealed) { opacity: 0; translate: 0 16px; }
.home-page.home-motion-enabled .home-reveal.home-revealed,
.home-page.home-motion-enabled .home-reveal:focus-within { opacity: 1; translate: 0 0; }

@keyframes home-intro {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .home-page.home-motion-enabled .home-reveal { opacity: 1 !important; translate: none !important; }
    .home-page .home-main .home-direction-arrow { translate: none !important; }
    .home-page .home-main .home-card-image img { transform: none !important; }
    .home-page .home-track-controls button:active { transform: none; }
    .home-page .home-course-card:hover,
    .home-page .home-article-card:hover,
    .home-page .home-category-card:hover,
    .home-page .home-gateway-card:hover,
    .home-page .home-latest-card:hover,
    .home-page .home-button-primary:hover { transform: none; }
}

/* Balance sparse collections without empty grid slots. */
.home-page .home-card-track:has(> :last-child:nth-child(-n+2)) { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.home-page .home-card-track:has(> :only-child) { max-width: 660px; }
.home-page .home-latest-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.home-page .home-field-impact .home-impact > p { max-width: 760px; margin: 0 0 28px; line-height: 1.9; }

.home-page .home-field-impact .home-impact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.home-page .home-field-impact .home-impact > p { margin: 0; color: #e2f0ea; }

/* Four platform metrics: one row on desktop, balanced pairs below. */
.home-page .home-impact-top .home-impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
    .home-page .home-impact-top .home-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
