/* =========================================================
   LEARN SITE VARIABLES
   ========================================================= */

:root {
    --learn-navy: #17324d;
    --learn-blue: #2563eb;

    --learn-text: #1f2937;
    --learn-muted: #6b7280;

    --learn-border: rgba(0, 0, 0, 0.08);

    --learn-white: #ffffff;
}


/* =========================================================
   PAGE
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
}


body.learn-site {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    color: var(--learn-text);

    background-color: var(--learn-white);

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.50),
            rgba(255, 255, 255, 0.50)
        ),
        url("/images/learn/nodes-background.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


.learn-main {
    flex: 1;
}


/* =========================================================
   HEADER
   ========================================================= */

.learn-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--learn-border);
}


/* =========================================================
   NAVBAR
   ========================================================= */

.learn-navbar {
    display: flex;

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

    min-height: 68px;
}


.learn-brand {
    color: var(--learn-navy);

    font-size: 1.15rem;
    font-weight: 700;

    letter-spacing: -0.02em;

    text-decoration: none;

    transition: color 0.18s ease;
}


.learn-brand:hover {
    color: var(--learn-blue);
}


.learn-nav-links {
    display: flex;

    align-items: center;

    gap: 18px;
}


.learn-nav-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--learn-navy);

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.18s ease;
}


.learn-nav-link:hover {
    color: var(--learn-blue);
}


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

.learn-footer {
    margin-top: 70px;

    padding: 28px 0;

    text-align: center;

    color: var(--learn-muted);

    background: rgba(255, 255, 255, 0.88);

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


.learn-footer p {
    margin: 0;

    font-size: 0.9rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .learn-navbar {
        min-height: 60px;
    }


    .learn-brand {
        font-size: 1.05rem;
    }


    .learn-nav-link span {
        display: none;
    }


    .learn-nav-link {
        font-size: 1.2rem;
    }

}

/* =========================================================
   LEARN LANDING PAGE
   ========================================================= */


/* Hero */

.learn-hero {
    padding: 90px 0 70px;
}


.learn-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    margin: 0 auto 22px;

    color: var(--learn-blue);

    font-size: 2rem;

    background: rgba(37, 99, 235, 0.08);

    border: 1px solid rgba(37, 99, 235, 0.12);

    border-radius: 20px;
}


.learn-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--learn-blue);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.learn-hero h1 {
    margin: 0;

    color: var(--learn-navy);

    font-size: clamp(2.5rem, 5vw, 4.2rem);

    font-weight: 750;

    letter-spacing: -0.04em;
}


.learn-hero-text {
    max-width: 680px;

    margin: 22px auto 0;

    color: var(--learn-muted);

    font-size: 1.08rem;

    line-height: 1.75;
}



/* =========================================================
   GAMES SECTION
   ========================================================= */

.learn-games-section {
    padding: 50px 0 80px;
}


.learn-section-heading {
    max-width: 650px;

    margin-bottom: 38px;
}


.learn-section-heading h2 {
    margin-bottom: 12px;

    color: var(--learn-navy);

    font-size: 2rem;

    font-weight: 750;
}


.learn-section-heading p {
    margin: 0;

    color: var(--learn-muted);

    line-height: 1.7;
}



/* =========================================================
   GAME CARDS
   ========================================================= */

.learn-game-card {
    display: flex;

    flex-direction: column;

    height: 100%;

    padding: 30px;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid var(--learn-border);

    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(23, 50, 77, 0.05);

    backdrop-filter: blur(10px);

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


.learn-game-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(37, 99, 235, 0.2);

    box-shadow:
        0 18px 40px rgba(23, 50, 77, 0.09);
}


.learn-game-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 22px;

    color: var(--learn-blue);

    font-size: 1.45rem;

    background:
        rgba(37, 99, 235, 0.08);

    border-radius: 14px;
}


.learn-game-card h3 {
    margin-bottom: 12px;

    color: var(--learn-navy);

    font-size: 1.22rem;

    font-weight: 700;
}


.learn-game-card p {
    flex: 1;

    margin-bottom: 25px;

    color: var(--learn-muted);

    line-height: 1.65;
}



/* =========================================================
   BUTTON
   ========================================================= */

.learn-game-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    width: fit-content;

    padding: 10px 18px;

    color: #ffffff;

    background: var(--learn-blue);

    border-radius: 10px;

    font-size: 0.9rem;

    font-weight: 650;

    text-decoration: none;

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


.learn-game-button:hover {
    color: #ffffff;

    background: #1d4ed8;

    transform: translateY(-1px);
}



/* =========================================================
   COMING SOON
   ========================================================= */

.learn-coming-soon {
    display: inline-block;

    width: fit-content;

    padding: 7px 12px;

    color: var(--learn-muted);

    background: #f2f4f7;

    border-radius: 8px;

    font-size: 0.82rem;

    font-weight: 650;
}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .learn-hero {
        padding: 65px 0 50px;
    }


    .learn-games-section {
        padding: 30px 0 60px;
    }


    .learn-game-card {
        padding: 24px;
    }

}