.gme-home { overflow: hidden; }
.gme-announcement { background: var(--gme-black); color: #fff; }
.gme-announcement__inner { min-height: 38px; display: flex; align-items: center; gap: 18px; font-size: 11px; }
.gme-announcement__label { color: var(--gme-gold); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.gme-announcement__items { display: flex; gap: 12px; color: rgba(255,255,255,.75); }

.home-hero { position: relative; padding: 28px 0 0; }
.home-hero__inner {
    min-height: 590px; display: grid; grid-template-columns: 1.02fr .98fr;
    align-items: stretch; overflow: hidden; border: 1px solid var(--gme-line);
    border-radius: 30px; background: var(--gme-surface); box-shadow: var(--gme-shadow);
}
.home-hero__copy { padding: 70px 45px 55px; display: flex; flex-direction: column; justify-content: center; }
.home-hero__copy h1 {
    max-width: 700px; margin: 22px 0 20px;
    font: 800 clamp(46px, 5.2vw, 72px)/.99 Manrope, sans-serif;
    letter-spacing: -.055em;
}
.home-hero__copy h1 em { color: var(--gme-red); font-style: normal; }
.home-hero__copy > p { max-width: 570px; color: var(--gme-muted); font-size: 16px; line-height: 1.7; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.home-hero__trust { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 25px; color: var(--gme-muted); font-size: 11px; font-weight: 700; }
.home-hero__trust b { color: var(--gme-red); margin-right: 5px; }
.home-hero__visual { position: relative; min-height: 590px; background: var(--gme-surface-2); overflow: hidden; }
.hero-shape { position: absolute; border: 2px solid var(--gme-red); transform: rotate(28deg); opacity: .22; }
.hero-shape--one { width: 260px; height: 260px; top: 85px; right: 80px; border-radius: 34px; }
.hero-shape--two { width: 160px; height: 160px; bottom: 70px; left: 60px; border-color: var(--gme-gold); border-radius: 50%; }
.hero-learning-card {
    position: absolute; width: min(68%, 410px); min-height: 410px; right: 11%; top: 80px;
    background: var(--gme-surface); border: 1px solid var(--gme-line); border-radius: 24px;
    box-shadow: 0 25px 65px rgba(0,0,0,.14); padding: 22px;
    transform: rotate(-4deg); z-index: 2;
}
.hero-learning-card__top, .feature-paper__top { display: flex; align-items: center; justify-content: space-between; color: var(--gme-muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.hero-de { width: 40px; height: 40px; display: grid; place-items: center; background: var(--gme-black); color: var(--gme-gold); border-radius: 10px; box-shadow: inset 0 -6px 0 var(--gme-red); font-weight: 900; }
.hero-learning-card__body { padding: 62px 10px 30px; }
.hero-learning-card__body small, .feature-paper__word small { color: var(--gme-red); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.hero-learning-card__body strong { display: block; margin-top: 8px; font: 800 62px/1 Manrope, sans-serif; letter-spacing: -.06em; }
.hero-learning-card__body em { display: block; margin-top: 5px; color: var(--gme-muted); font: 500 24px/1.1 Manrope, sans-serif; }
.hero-writing { margin-top: 35px; display: grid; gap: 10px; }
.hero-writing span { display: block; width: 70%; height: 7px; background: var(--gme-surface-2); border-radius: 20px; }
.hero-writing span:nth-child(2) { width: 48%; }
.hero-writing span:nth-child(3) { width: 62%; }
.hero-flag { display: flex; height: 12px; width: 92px; overflow: hidden; border-radius: 2px; }
.hero-flag i { flex: 1; display: block; }
.hero-flag i:nth-child(1) { background: var(--gme-black); }
.hero-flag i:nth-child(2) { background: var(--gme-red); }
.hero-flag i:nth-child(3) { background: var(--gme-gold); }
.hero-learning-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--gme-line); color: var(--gme-muted); font-size: 10px; font-weight: 800; }
.hero-floating { position: absolute; z-index: 4; padding: 16px 18px; border-radius: 15px; background: var(--gme-black); color: #fff; box-shadow: var(--gme-shadow-small); }
.hero-floating--level { left: 7%; bottom: 80px; display: grid; gap: 4px; transform: rotate(3deg); }
.hero-floating--level small { color: var(--gme-gold); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.hero-floating--level strong { font: 800 23px Manrope, sans-serif; }
.hero-floating--level span { color: rgba(255,255,255,.62); font-size: 10px; }
.hero-floating--pace { right: 7%; bottom: 35px; background: var(--gme-red); transform: rotate(-4deg); display: grid; gap: 2px; }
.hero-floating--pace strong { font: 800 20px Manrope, sans-serif; }
.hero-floating--pace span { font-size: 10px; opacity: .8; }
.home-hero__bottom { margin-top: 0; border-top: 1px solid var(--gme-line); }
.home-hero__bottom .gme-container { min-height: 65px; display: flex; align-items: center; justify-content: space-between; color: var(--gme-muted); font-size: 11px; }
.home-hero__bottom a { display: inline-flex; gap: 12px; align-items: center; font-weight: 800; }
.home-hero__bottom b { color: var(--gme-red); font-size: 18px; }

.gme-section-label { margin-bottom: 16px; }
.home-intro { background: var(--gme-surface); }
.home-intro__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; }
.home-intro h2, .gme-section-heading h2, .home-feature h2, .home-centered-heading h2, .home-faq h2 {
    margin: 0; font: 800 clamp(38px, 4vw, 58px)/1.03 Manrope, sans-serif; letter-spacing: -.045em;
}
.home-intro h2 em, .gme-section-heading h2 em, .home-feature h2 em, .home-centered-heading h2 em, .home-faq h2 em, .home-final-cta h2 em { color: var(--gme-red); font-style: normal; }
.home-intro__copy p { margin: 0 0 24px; max-width: 520px; color: var(--gme-muted); line-height: 1.8; }

.home-programmes { background: var(--gme-bg); }
.gme-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.home-programmes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.programme-card { background: var(--gme-surface); border: 1px solid var(--gme-line); border-radius: 20px; overflow: hidden; box-shadow: var(--gme-shadow-small); transition: transform .2s ease, box-shadow .2s ease; }
.programme-card:hover { transform: translateY(-5px); box-shadow: var(--gme-shadow); }
.programme-card__visual { height: 230px; position: relative; overflow: hidden; background: var(--gme-black); }
.programme-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.programme-placeholder { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; padding: 25px; background: linear-gradient(135deg, #000 0 55%, #dd0000 55% 78%, #ffce00 78%); color: #fff; }
.programme-placeholder span { font: 900 66px Manrope, sans-serif; color: var(--gme-gold); }
.programme-placeholder small { font-size: 9px; font-weight: 900; letter-spacing: .13em; text-align: right; }
.programme-card__number { position: absolute; left: 16px; top: 16px; color: #fff; background: rgba(0,0,0,.8); padding: 8px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; }
.programme-card__flag { position: absolute; right: 16px; top: 16px; display: flex; width: 48px; height: 8px; }
.programme-card__flag i { flex: 1; }
.programme-card__flag i:nth-child(1) { background: var(--gme-black); }
.programme-card__flag i:nth-child(2) { background: var(--gme-red); }
.programme-card__flag i:nth-child(3) { background: var(--gme-gold); }
.programme-card__body { padding: 24px; }
.programme-card__body > span { color: var(--gme-red); text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.programme-card__body h3 { margin: 10px 0 9px; font: 800 24px/1.1 Manrope, sans-serif; }
.programme-card__body p { min-height: 46px; margin: 0 0 21px; color: var(--gme-muted); line-height: 1.6; font-size: 13px; }
.programme-card__body a { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--gme-line); font-size: 12px; font-weight: 800; }
.programme-card__body a b { color: var(--gme-red); font-size: 18px; }

.home-feature { background: var(--gme-surface); }
.home-feature__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.home-feature__visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.feature-paper { width: min(82%, 390px); min-height: 430px; background: var(--gme-bg); border: 1px solid var(--gme-line); box-shadow: var(--gme-shadow); padding: 25px; transform: rotate(4deg); position: relative; }
.feature-paper__word { padding: 75px 0 35px; }
.feature-paper__word strong { display: block; margin-top: 9px; font: 800 62px/.9 Manrope, sans-serif; letter-spacing: -.06em; }
.feature-paper__lines { display: grid; gap: 9px; }
.feature-paper__lines span { height: 7px; width: 76%; border-radius: 20px; background: var(--gme-surface-2); }
.feature-paper__lines span:nth-child(2) { width: 55%; }
.feature-paper__lines span:nth-child(3) { width: 68%; }
.feature-paper .hero-flag { position: absolute; right: 25px; bottom: 25px; }
.feature-badge { position: absolute; right: 3%; bottom: 25px; display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--gme-red); color: #fff; border-radius: 13px; transform: rotate(-5deg); box-shadow: var(--gme-shadow-small); }
.feature-badge b { font: 800 23px Manrope, sans-serif; color: var(--gme-gold); }
.feature-badge span { font-size: 10px; line-height: 1.4; }
.home-feature__copy > p { max-width: 600px; margin: 23px 0 28px; color: var(--gme-muted); line-height: 1.8; }
.feature-points { display: grid; gap: 14px; margin-bottom: 28px; }
.feature-points > div { display: flex; gap: 13px; align-items: flex-start; }
.feature-points > div > span { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; background: var(--gme-gold); color: #000; border-radius: 50%; font-size: 11px; font-weight: 900; }
.feature-points p { margin: 0; display: grid; gap: 3px; }
.feature-points strong { font-size: 13px; }
.feature-points small { color: var(--gme-muted); font-size: 11px; }

.home-levels { background: var(--gme-bg); }
.home-centered-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.home-centered-heading p { color: var(--gme-muted); line-height: 1.7; margin: 18px auto 0; max-width: 560px; }
.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.level-card { min-height: 220px; position: relative; padding: 24px; border: 1px solid var(--gme-line); background: var(--gme-surface); border-radius: 18px; overflow: hidden; }
.level-card > span { color: var(--gme-red); font: 800 30px Manrope, sans-serif; }
.level-card h3 { margin: 30px 0 7px; font: 800 17px Manrope, sans-serif; }
.level-card p { margin: 0; color: var(--gme-muted); font-size: 11px; line-height: 1.6; max-width: 130px; }
.level-card b { position: absolute; right: 20px; bottom: 18px; font: 800 34px Manrope, sans-serif; color: var(--gme-line); }
.level-card--featured { background: var(--gme-black); color: #fff; transform: translateY(-10px); }
.level-card--featured > span { color: var(--gme-gold); }
.level-card--featured p { color: rgba(255,255,255,.65); }
.level-card--featured b { color: rgba(255,255,255,.18); }

.home-stat-band { background: var(--gme-black); color: #fff; }
.home-stat-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-stat-band__grid > div { min-height: 155px; display: flex; align-items: center; gap: 18px; padding: 25px; border-right: 1px solid rgba(255,255,255,.12); }
.home-stat-band__grid > div:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.home-stat-band strong { color: var(--gme-gold); font: 800 28px Manrope, sans-serif; }
.home-stat-band span { font-size: 11px; font-weight: 700; line-height: 1.45; color: rgba(255,255,255,.75); }

.home-courses { background: var(--gme-surface); }
.course-list { border-top: 1px solid var(--gme-line); }
.course-row { min-height: 82px; display: grid; grid-template-columns: 70px 1fr 100px 35px; gap: 20px; align-items: center; border-bottom: 1px solid var(--gme-line); transition: background .2s ease, padding .2s ease; }
.course-row:hover { background: var(--gme-surface-2); padding-inline: 13px; }
.course-row > span { color: var(--gme-red); font-size: 11px; font-weight: 800; }
.course-row div { display: flex; align-items: center; gap: 15px; }
.course-row strong { font: 800 17px Manrope, sans-serif; }
.course-row small { color: var(--gme-muted); font-size: 10px; }
.course-row em { font-style: normal; color: var(--gme-muted); font-size: 10px; }
.course-row b { color: var(--gme-red); font-size: 19px; }

.home-faq { background: var(--gme-bg); }
.home-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.home-faq__grid > div:first-child p { color: var(--gme-muted); line-height: 1.8; max-width: 440px; margin: 22px 0; }
.home-faq__list details { border-top: 1px solid var(--gme-line); }
.home-faq__list details:last-child { border-bottom: 1px solid var(--gme-line); }
.home-faq__list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 800; }
.home-faq__list summary::-webkit-details-marker { display: none; }
.home-faq__list summary span { color: var(--gme-red); font-size: 22px; transition: transform .2s ease; }
.home-faq__list details[open] summary span { transform: rotate(45deg); }
.home-faq__list p { color: var(--gme-muted); line-height: 1.7; margin: -5px 35px 23px 0; font-size: 13px; }

.home-final-cta { background: var(--gme-red); color: #fff; }
.home-final-cta__inner { min-height: 430px; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.home-final-cta h2 { margin: 0; font: 800 clamp(42px, 5vw, 65px)/1 Manrope, sans-serif; letter-spacing: -.05em; }
.home-final-cta h2 em { color: var(--gme-gold); }
.home-final-cta p { color: rgba(255,255,255,.78); line-height: 1.7; max-width: 520px; }
.home-final-cta__actions { display: flex; flex-wrap: wrap; gap: 9px; flex: 0 0 auto; }

@media (max-width: 980px) {
    .home-hero__inner, .home-intro__grid, .home-feature__grid, .home-faq__grid { grid-template-columns: 1fr; }
    .home-hero__copy { padding: 55px 42px; }
    .home-hero__visual { min-height: 500px; }
    .home-intro__grid { gap: 35px; }
    .home-programmes__grid { grid-template-columns: repeat(2, 1fr); }
    .home-feature__grid { gap: 50px; }
    .level-grid { grid-template-columns: repeat(3, 1fr); }
    .level-card--featured { transform: none; }
    .home-stat-band__grid { grid-template-columns: repeat(2, 1fr); }
    .home-stat-band__grid > div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.12); }
    .home-faq__grid { gap: 45px; }
    .home-final-cta__inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}
@media (max-width: 640px) {
    .home-hero__inner { border-radius: 20px; }
    .home-hero__copy { padding: 45px 24px; }
    .home-hero__copy h1 { font-size: 48px; }
    .home-hero__visual { min-height: 430px; }
    .hero-learning-card { width: 74%; min-height: 340px; top: 48px; right: 10%; padding: 17px; }
    .hero-learning-card__body { padding-top: 42px; }
    .hero-learning-card__body strong { font-size: 47px; }
    .hero-floating--level { left: 4%; bottom: 50px; }
    .hero-floating--pace { right: 4%; bottom: 15px; }
    .home-hero__trust { display: grid; gap: 8px; }
    .gme-section-heading { align-items: flex-start; flex-direction: column; }
    .home-programmes__grid { grid-template-columns: 1fr; }
    .home-feature__visual { min-height: 430px; }
    .feature-paper { min-height: 360px; }
    .level-grid { grid-template-columns: 1fr 1fr; }
    .level-card { min-height: 190px; }
    .home-stat-band__grid { grid-template-columns: 1fr; }
    .home-stat-band__grid > div { min-height: 100px; border-left: 1px solid rgba(255,255,255,.12); }
    .course-row { grid-template-columns: 35px 1fr 28px; gap: 12px; }
    .course-row div { display: grid; gap: 4px; }
    .course-row em { display: none; }
    .home-final-cta__actions { width: 100%; }
}
/* =========================================
   GME HOMEPAGE
========================================= */

.gme-home {
    overflow: hidden;
}

.gme-announcement {
    background: var(--gme-black);
    color: #fff;
}

.gme-announcement__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 11px;
}

.gme-announcement__label {
    color: var(--gme-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.gme-announcement__items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, .75);
}


/* =========================================
   HERO LAYOUT
========================================= */

.home-hero {
    position: relative;
    padding-top: 28px;
}

.home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);

    align-items: stretch;

    min-height: 590px;

    overflow: hidden;

    border: 1px solid var(--gme-line);
    border-radius: 30px;

    background: var(--gme-surface);
    box-shadow: var(--gme-shadow);
}


/* =========================================
   HERO TEXT
========================================= */

.home-hero__copy {
    min-width: 0;

    padding: 70px 45px 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero__copy h1 {
    max-width: 700px;

    margin: 22px 0 20px;

    font: 800 clamp(46px, 5.2vw, 72px)/.99 Manrope, sans-serif;

    letter-spacing: -.055em;
}

.home-hero__copy h1 em {
    color: var(--gme-red);
    font-style: normal;
}

.home-hero__copy > p {
    max-width: 570px;

    color: var(--gme-muted);

    font-size: 16px;
    line-height: 1.7;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 28px;
}

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;

    margin-top: 25px;

    color: var(--gme-muted);

    font-size: 11px;
    font-weight: 700;
}

.home-hero__trust b {
    color: var(--gme-red);
    margin-right: 5px;
}


/* =========================================
   CAROUSEL CONTAINER
========================================= */

.home-hero__visual {
    position: relative;

    min-width: 0;
    min-height: 590px;

    height: 100%;

    overflow: hidden;

    background: var(--gme-surface-2);
}


/* The carousel fills the entire visual column */

.hero-carousel {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
    isolation: isolate;

    background: var(--gme-surface-2);
}


/* =========================================
   CAROUSEL SLIDES
========================================= */

.hero-carousel__slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    z-index: 0;

    transition:
        opacity 900ms ease,
        visibility 900ms ease;
}

.hero-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;

    z-index: 1;
}


/* Images fill the entire slide */

.hero-carousel__slide img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    /*
     * Cover fills the container without stretching.
     * Some edges may be cropped to preserve proportions.
     */
    object-fit: cover;
    object-position: center;

    transform: scale(1.04);

    transition: transform 5s ease;
}

.hero-carousel__slide.is-active img {
    transform: scale(1);
}


/* Subtle overlay */

.hero-carousel::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .04) 0%,
        transparent 45%,
        rgba(0, 0, 0, .15) 100%
    );
}


/* =========================================
   GERMAN FLAG
========================================= */

.hero-carousel__flag {
    position: absolute;

    top: 24px;
    right: 24px;

    z-index: 3;

    display: flex;
    flex-direction: column;

    width: 48px;
    height: 32px;

    overflow: hidden;

    border-radius: 6px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

.hero-carousel__flag span {
    display: block;
    flex: 1;
}

.hero-carousel__flag span:nth-child(1) {
    background: #000;
}

.hero-carousel__flag span:nth-child(2) {
    background: #DD0000;
}

.hero-carousel__flag span:nth-child(3) {
    background: #FFCE00;
}


/* =========================================
   HERO BOTTOM BAR
========================================= */

.home-hero__bottom {
    margin-top: 0;

    border-top: 1px solid var(--gme-line);
}

.home-hero__bottom .gme-container {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--gme-muted);
    font-size: 11px;
}

.home-hero__bottom a {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-weight: 800;
}

.home-hero__bottom b {
    color: var(--gme-red);
    font-size: 18px;
}


/* =========================================
   RESPONSIVE: TABLET
========================================= */

@media (max-width: 980px) {
    .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero__copy {
        padding: 55px 42px;
    }

    .home-hero__visual {
        min-height: 480px;
        height: 480px;
    }

    .hero-carousel {
        position: absolute;
        inset: 0;
    }
}


/* =========================================
   RESPONSIVE: MOBILE
========================================= */

@media (max-width: 640px) {
    .home-hero__inner {
        border-radius: 20px;
    }

    .home-hero__copy {
        padding: 45px 24px;
    }

    .home-hero__copy h1 {
        font-size: 48px;
    }

    .home-hero__visual {
        min-height: 360px;
        height: 360px;
    }

    .hero-carousel__flag {
        top: 18px;
        right: 18px;

        width: 40px;
        height: 27px;
    }

    .home-hero__trust {
        display: grid;
        gap: 8px;
    }

    .home-hero__bottom .gme-container {
        gap: 15px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide,
    .hero-carousel__slide img {
        transition: none;
    }
}
.home-feature__visual {
    width: 100%;
    min-height: 380px;
    overflow: hidden;
    border-radius: 24px;
}

.home-feature__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

/* ==========================================
   COURSE SECTION
========================================== */
/* ==========================================
   HOME COURSES SECTION
========================================== */

.home-courses {
    padding: 100px 0;

    color: var(--gme-text, #171717);
    background: var(--gme-page-bg, #f7f7f5);

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


/* Course count */

.home-courses__count {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
}

.home-courses__count > span {
    font-size: 48px;
    font-weight: 750;
    letter-spacing: -0.06em;
}

.home-courses__count small {
    color: var(--gme-text-secondary, #666666);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.1em;
}


/* ==========================================
   COURSE GRID
========================================== */

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


/* ==========================================
   COURSE CARD
========================================== */

.course-card {
    --card-bg: #ffffff;
    --card-text: #171717;
    --card-muted: #666666;
    --card-border: #e2e2df;
    --card-image-bg: #efefec;

    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    color: var(--card-text);
    background: var(--card-bg);
    border: 1px solid var(--card-border);

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Dark mode */

html[data-theme="dark"] .course-card {
    --card-bg: #1c1c1c;
    --card-text: #f5f5f5;
    --card-muted: #b8b8b8;
    --card-border: #363636;
    --card-image-bg: #262626;
}


/* If your project uses a body class instead, this supports it too. */

body.dark-mode .course-card,
body.dark .course-card {
    --card-bg: #1c1c1c;
    --card-text: #f5f5f5;
    --card-muted: #b8b8b8;
    --card-border: #363636;
    --card-image-bg: #262626;
}


.course-card:hover {
    transform: translateY(-5px);
    border-color: #DD0000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .course-card:hover,
body.dark-mode .course-card:hover,
body.dark .course-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.course-card:focus-visible {
    outline: 2px solid #DD0000;
    outline-offset: 4px;
}


/* ==========================================
   COURSE IMAGE
========================================== */

.course-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    background: var(--card-image-bg);
}

.course-card__image > img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.course-card:hover .course-card__image > img {
    transform: scale(1.045);
}


/* ==========================================
   IMAGE PLACEHOLDER
========================================== */

.course-card__placeholder {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    overflow: hidden;

    background: #111111;
    color: #ffffff;
}


/* Subtle decorative background */

.course-card__placeholder::before {
    content: "";

    position: absolute;
    top: -65px;
    right: -45px;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.course-card__placeholder::after {
    content: "";

    position: absolute;
    right: -10px;
    bottom: -90px;

    width: 210px;
    height: 210px;

    border: 35px solid rgba(221, 0, 0, 0.85);
    border-radius: 50%;
}

.course-card__placeholder-mark {
    position: relative;
    z-index: 1;

    color: #FFCE00;

    font-size: clamp(54px, 6vw, 78px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.09em;
}

.course-card__placeholder-label {
    position: relative;
    z-index: 1;

    color: rgba(255, 255, 255, 0.75);

    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.2em;
}


/* Number badge */

.course-card__image-number {
    position: absolute;
    top: 16px;
    left: 16px;

    display: grid;
    width: 36px;
    height: 36px;

    place-items: center;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);

    font-size: 11px;
    font-weight: 750;
}


/* Image arrow */

.course-card__image-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;

    display: grid;
    width: 40px;
    height: 40px;

    place-items: center;

    color: #171717;
    background: #FFCE00;

    font-size: 19px;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.course-card:hover .course-card__image-arrow {
    color: #ffffff;
    background: #DD0000;
    transform: translate(2px, -2px);
}


/* ==========================================
   COURSE CONTENT
========================================== */

.course-card__body {
    flex: 1;
    padding: 25px 24px 30px;
}

.course-card__code {
    display: inline-block;
    margin-bottom: 14px;

    color: #DD0000;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;

    overflow-wrap: anywhere;
}

.course-card__body h3 {
    margin: 0;

    color: var(--card-text);

    font-size: clamp(22px, 2vw, 29px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.035em;

    overflow-wrap: anywhere;
}

.course-card__body p {
    margin: 14px 0 0;

    color: var(--card-muted);

    font-size: 13px;
    line-height: 1.8;
}


/* ==========================================
   CARD FOOTER
========================================== */

.course-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 0 24px;
    padding: 18px 0 22px;

    color: var(--card-text);
    border-top: 1px solid var(--card-border);

    font-size: 12px;
    font-weight: 700;
}

.course-card__bottom span:last-child {
    color: #DD0000;
    font-size: 20px;

    transition: transform 0.25s ease;
}

.course-card:hover .course-card__bottom span:last-child {
    transform: translateX(5px);
}


/* ==========================================
   EMPTY STATE
========================================== */

.course-grid .home-empty {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    gap: 24px;

    padding: 40px;

    color: var(--gme-text, #171717);
    background: var(--gme-surface, #ffffff);
    border: 1px solid var(--gme-border, #dedede);
}

.home-empty > span {
    color: #DD0000;
    font-size: 48px;
    font-weight: 850;
    letter-spacing: -0.08em;
}

.home-empty strong {
    display: block;
    margin-bottom: 8px;
}

.home-empty p {
    margin: 0;
    color: var(--gme-text-secondary, #666666);
    font-size: 13px;
    line-height: 1.7;
}


/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 1000px) {
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .home-courses {
        padding: 80px 0;
    }
}

@media (max-width: 640px) {
    .home-courses {
        padding: 60px 0;
    }

    .home-courses__count > span {
        font-size: 36px;
    }

    .course-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .course-card__body {
        padding: 22px 20px 26px;
    }

    .course-card__body h3 {
        font-size: 25px;
    }

    .course-card__bottom {
        margin: 0 20px;
    }

    .home-empty {
        padding: 25px !important;
    }
}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
    .course-card,
    .course-card__image > img,
    .course-card__image-arrow,
    .course-card__bottom span:last-child {
        transition: none;
    }

    .course-card:hover,
    .course-card:hover .course-card__image > img {
        transform: none;
    }
}
/* ==========================================
   HOMEPAGE COURSES — DARK MODE
========================================== */

html[data-theme="dark"] .home-courses {
    color: #f5f5f5;
    background: #111111;
}

/* Course count */

html[data-theme="dark"] .home-courses__count > span {
    color: #f5f5f5;
}

html[data-theme="dark"] .home-courses__count small {
    color: #b8b8b8;
}

/* Course cards */

html[data-theme="dark"] .course-card {
    color: #f5f5f5;
    background: #1c1c1c;
    border-color: #363636;
}

html[data-theme="dark"] .course-card:hover {
    border-color: #DD0000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

/* Course titles */

html[data-theme="dark"] .course-card__body h3 {
    color: #f5f5f5;
}

/* Course descriptions */

html[data-theme="dark"] .course-card__body p {
    color: #b8b8b8;
}

/* Course numbers */

html[data-theme="dark"] .course-card__number {
    color: #b8b8b8;
}

/* Course arrows */

html[data-theme="dark"] .course-card__arrow {
    color: #f5f5f5;
    background: #292929;
    border-color: #404040;
}

/* Course footer */

html[data-theme="dark"] .course-card__bottom {
    color: #f5f5f5;
    border-color: #363636;
}

/* Empty state */

html[data-theme="dark"] .course-grid .home-empty {
    color: #f5f5f5;
    background: #1c1c1c;
    border-color: #363636;
}

html[data-theme="dark"] .home-empty p {
    color: #b8b8b8;
}

/* Section heading */

html[data-theme="dark"] .gme-section-heading h2 {
    color: #f5f5f5;
}

html[data-theme="dark"] .gme-section-heading p {
    color: #b8b8b8;
}