/* ==========================================================
   BELAJAREDUTECH
   MATEMATIKA SMP KELAS 9
========================================================== */

.math-grade-nine-page {
    --math9-primary: #7c3aed;
    --math9-primary-dark: #5b21b6;
    --math9-primary-soft: #f5f3ff;

    --math9-secondary: #0891b2;
    --math9-secondary-soft: #ecfeff;

    --math9-green: #0f766e;
    --math9-green-soft: #f0fdfa;

    --math9-pink: #db2777;

    --math9-text: #0f172a;
    --math9-muted: #64748b;
    --math9-border: #e2e8f0;
    --math9-soft: #f8fafc;
}


.math-grade-nine-page .section {
    padding: 82px 0;
}


/* ==========================================================
   BREADCRUMB
========================================================== */

.math-nine-breadcrumb-section {
    background: #ffffff;

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


.math-nine-breadcrumb {
    min-height: 54px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    color: var(--math9-muted);

    font-size: 0.76rem;
}


.math-nine-breadcrumb a {
    color: var(--math9-muted);

    text-decoration: none;
}


.math-nine-breadcrumb a:hover {
    color: var(--math9-primary);
}


.math-nine-breadcrumb strong {
    color: #334155;
}


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

.math-nine-hero {
    overflow: hidden;

    padding: 76px 0 88px;

    background:
        radial-gradient(
            circle at 88% 14%,
            rgba(124, 58, 237, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(8, 145, 178, 0.1),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #faf8ff,
            #ffffff
        );
}


.math-nine-hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(430px, 0.98fr);

    align-items: center;

    gap: 52px;
}


.math-nine-hero-content,
.math-nine-hero-visual {
    min-width: 0;
}


.math-nine-topic-badge {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

    color: var(--math9-primary-dark);

    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.math-nine-topic-badge span {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: var(--math9-primary);

    border-radius: 11px;

    font-size: 0.6rem;
}


.math-nine-hero-content h1 {
    margin: 0 0 22px;

    font-size:
        clamp(
            3rem,
            5vw,
            4.8rem
        );

    line-height: 1.01;
    letter-spacing: -0.055em;
}


.math-nine-hero-content > p {
    max-width: 680px;

    margin: 0;

    color: var(--math9-muted);

    line-height: 1.8;
}


.math-nine-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.math-nine-hero-meta {
    max-width: 660px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 34px;
}


.math-nine-hero-meta > div {
    padding: 16px;

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

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

    border-radius: 14px;
}


.math-nine-hero-meta strong,
.math-nine-hero-meta span {
    display: block;
}


.math-nine-hero-meta strong {
    margin-bottom: 4px;

    color: var(--math9-primary);

    font-size: 1.05rem;
}


.math-nine-hero-meta span {
    color: var(--math9-muted);

    font-size: 0.65rem;
}


/* ==========================================================
   HERO BOARD
========================================================== */

.math-nine-hero-visual {
    width: 100%;
    max-width: 620px;

    margin-left: auto;
}


.math-nine-board {
    padding: 30px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #3b0764,
            #6d28d9 46%,
            #0e7490
        );

    border-radius: 30px;

    box-shadow:
        0 32px 85px
        rgba(91, 33, 182, 0.24);
}


.math-nine-board-label {
    display: block;

    margin-bottom: 18px;

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

    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.math-nine-board-flow {
    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr;

    align-items: center;

    gap: 8px;
}


.math-nine-board-flow > div {
    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 14px;

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

    border-radius: 14px;

    text-align: center;
}


.math-nine-board-flow span,
.math-nine-board-flow strong {
    display: block;
}


.math-nine-board-flow span {
    margin-bottom: 6px;

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

    font-size: 0.5rem;
}


.math-nine-board-flow strong {
    color: #f9a8d4;

    font-size: 1rem;
}


.math-nine-board-flow > i {
    color: #67e8f9;

    font-style: normal;
    font-weight: 900;
}


.math-nine-board-divider {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 15px 0;
}


.math-nine-board-divider::before,
.math-nine-board-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(255, 255, 255, 0.14);
}


.math-nine-board-divider span {
    color: rgba(255, 255, 255, 0.48);

    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
}


.math-nine-board-footer {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    margin-top: 14px;
}


.math-nine-board-footer > div {
    padding: 12px;

    color: #334155;
    background: #ffffff;

    border-radius: 12px;

    text-align: center;
}


.math-nine-board-footer span,
.math-nine-board-footer strong {
    display: block;
}


.math-nine-board-footer span {
    margin-bottom: 4px;

    color: var(--math9-muted);

    font-size: 0.48rem;
}


.math-nine-board-footer strong {
    color: var(--math9-primary-dark);
}


/* ==========================================================
   INTRO
========================================================== */

.math-nine-intro-section {
    background: #ffffff;
}


.math-nine-intro-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(440px, 1.25fr);

    align-items: center;

    gap: 70px;
}


.math-nine-intro-grid h2 {
    margin: 10px 0 16px;

    font-size:
        clamp(
            2.25rem,
            4vw,
            3.7rem
        );

    line-height: 1.05;
    letter-spacing: -0.045em;
}


.math-nine-intro-grid p {
    color: var(--math9-muted);

    line-height: 1.8;
}


.math-nine-intro-stat {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.math-nine-intro-stat > div {
    min-height: 185px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: var(--math9-soft);

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

    border-radius: 20px;

    text-align: center;
}


.math-nine-intro-stat strong {
    display: block;

    margin-bottom: 8px;

    color: var(--math9-primary);

    font-size: 1.6rem;
}


.math-nine-intro-stat span {
    color: var(--math9-muted);
}


/* ==========================================================
   MATERIALS
========================================================== */

.math-nine-material-section {
    background: var(--math9-soft);
}


.math-nine-material-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.math-nine-material-card {
    position: relative;

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

    display: flex;
    flex-direction: column;

    padding: 24px;

    color: #334155;
    background: #ffffff;

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

    border-radius: 23px;

    text-decoration: none;

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


.math-nine-material-card:hover {
    transform: translateY(-5px);

    border-color: #c4b5fd;

    box-shadow:
        0 22px 45px
        rgba(15, 23, 42, 0.08);
}


.math-nine-material-number {
    position: absolute;

    top: 20px;
    right: 20px;

    color: #cbd5e1;

    font-size: 0.68rem;
    font-weight: 900;
}


.math-nine-material-icon {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    margin-bottom: 22px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--math9-primary),
            var(--math9-secondary)
        );

    border-radius: 18px;

    font-size: 1.25rem;
    font-weight: 900;
}


.math-nine-material-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}


.math-nine-status {
    width: fit-content;

    display: inline-flex;

    margin-bottom: 11px;
    padding: 6px 9px;

    color: #166534;
    background: #dcfce7;

    border-radius: 999px;

    font-size: 0.52rem;
    font-weight: 850;
    text-transform: uppercase;
}


.math-nine-material-card h3 {
    margin: 0 0 12px;

    color: var(--math9-text);

    font-size: 1.22rem;
    line-height: 1.28;
}


.math-nine-material-card p {
    margin: 0 0 18px;

    color: var(--math9-muted);

    line-height: 1.68;
}


.math-nine-material-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: auto;
    margin-bottom: 20px;
}


.math-nine-material-tags span {
    padding: 6px 8px;

    color: var(--math9-primary-dark);
    background: var(--math9-primary-soft);

    border-radius: 999px;

    font-size: 0.5rem;
    font-weight: 750;
}


.math-nine-material-cta {
    color: var(--math9-primary);

    font-size: 0.72rem;
}


/* ==========================================================
   LEARNING MAP
========================================================== */

.math-nine-map-section {
    background: #ffffff;
}


.math-nine-learning-map {
    max-width: 980px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-inline: auto;
}


.math-nine-learning-map > a {
    display: grid;

    grid-template-columns:
        auto 1fr;

    align-items: center;

    gap: 15px;

    padding: 19px;

    color: #334155;
    background: var(--math9-soft);

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

    border-radius: 17px;

    text-decoration: none;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}


.math-nine-learning-map > a:hover {
    transform: translateX(5px);

    background: var(--math9-primary-soft);
    border-color: #c4b5fd;
}


.math-nine-learning-map > a > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: var(--math9-primary);

    border-radius: 12px;

    font-size: 0.58rem;
    font-weight: 900;
}


.math-nine-learning-map small,
.math-nine-learning-map strong {
    display: block;
}


.math-nine-learning-map small {
    margin-bottom: 4px;

    color: var(--math9-muted);

    font-size: 0.52rem;
}


.math-nine-learning-map strong {
    color: var(--math9-text);
}


.math-nine-learning-map > i {
    align-self: center;

    color: var(--math9-pink);

    font-style: normal;
    font-weight: 900;

    transform: rotate(90deg);
}


/* ==========================================================
   METHOD
========================================================== */

.math-nine-method-section {
    background: var(--math9-soft);
}


.math-nine-method-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


.math-nine-method-grid article {
    min-height: 235px;

    padding: 22px;

    background: #ffffff;

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

    border-radius: 20px;
}


.math-nine-method-grid article > span {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    color: #ffffff;
    background: var(--math9-primary);

    border-radius: 50%;

    font-size: 0.55rem;
    font-weight: 900;
}


.math-nine-method-grid h3 {
    margin: 0 0 9px;
}


.math-nine-method-grid p {
    margin: 0;

    color: var(--math9-muted);

    line-height: 1.65;
}


/* ==========================================================
   COMPLETION
========================================================== */

.math-nine-completion-section {
    background: #ffffff;
}


.math-nine-completion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 38px;

    background:
        linear-gradient(
            135deg,
            var(--math9-primary-soft),
            var(--math9-secondary-soft)
        );

    border: 1px solid #ddd6fe;
    border-radius: 28px;
}


.math-nine-completion-card > div {
    max-width: 700px;
}


.math-nine-completion-card > div > span {
    display: block;

    margin-bottom: 8px;

    color: var(--math9-primary);

    font-size: 0.58rem;
    font-weight: 900;
    text-transform: uppercase;
}


.math-nine-completion-card h2 {
    margin: 0 0 10px;
}


.math-nine-completion-card p {
    margin: 0;

    color: var(--math9-muted);

    line-height: 1.7;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.math-nine-navigation-section {
    padding: 40px 0 70px;

    background: var(--math9-soft);
}


.math-nine-navigation {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.math-nine-navigation-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

    color: #334155;
    background: #ffffff;

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

    border-radius: 17px;

    text-decoration: none;
}


.math-nine-navigation-card:hover {
    border-color: #c4b5fd;
}


.math-nine-navigation-card.next {
    justify-content: flex-end;

    text-align: right;
}


.math-nine-navigation-card > span {
    color: var(--math9-primary);

    font-size: 1.25rem;
    font-weight: 900;
}


.math-nine-navigation-card small,
.math-nine-navigation-card strong,
.math-nine-navigation-card div > span {
    display: block;
}


.math-nine-navigation-card small {
    margin-bottom: 4px;

    color: var(--math9-muted);
}


.math-nine-navigation-card div > span {
    margin-top: 4px;

    color: var(--math9-muted);

    font-size: 0.62rem;
}


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

@media (max-width: 1120px) {

    .math-nine-hero-container,
    .math-nine-intro-grid {
        grid-template-columns: 1fr;

        gap: 48px;
    }


    .math-nine-hero-content {
        max-width: 820px;
    }


    .math-nine-hero-visual {
        width: 100%;
        max-width: 820px;

        margin-inline: auto;
    }


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


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

}


@media (max-width: 760px) {

    .math-grade-nine-page .section {
        padding: 62px 0;
    }


    .math-nine-hero {
        padding: 52px 0 64px;
    }


    .math-nine-hero-content h1 {
        font-size:
            clamp(
                2.4rem,
                11vw,
                3.7rem
            );
    }


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


    .math-nine-hero-actions .button {
        width: 100%;
    }


    .math-nine-hero-meta,
    .math-nine-intro-stat,
    .math-nine-material-grid,
    .math-nine-method-grid,
    .math-nine-navigation {
        grid-template-columns: 1fr;
    }


    .math-nine-board-flow {
        grid-template-columns: 1fr;
    }


    .math-nine-board-flow > i {
        justify-self: center;

        transform: rotate(90deg);
    }


    .math-nine-board-footer {
        grid-template-columns: 1fr;
    }


    .math-nine-material-card {
        min-height: auto;
    }


    .math-nine-completion-card {
        flex-direction: column;
        align-items: flex-start;
    }


    .math-nine-completion-card .button {
        width: 100%;
    }


    .math-nine-navigation-card.next {
        justify-content: flex-start;

        text-align: left;
    }

}


@media (max-width: 460px) {

    .math-nine-board,
    .math-nine-completion-card {
        padding: 20px;
    }


    .math-nine-material-card {
        padding: 20px;
    }

}