/* ==========================================================
   BELAJAREDUTECH
   SMP KELAS 8
========================================================== */

.smp-grade-eight-page {
    --grade8-primary: #4f46e5;
    --grade8-primary-dark: #3730a3;
    --grade8-primary-soft: #eef2ff;

    --grade8-secondary: #0891b2;
    --grade8-secondary-dark: #0e7490;
    --grade8-secondary-soft: #ecfeff;

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

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


/* ==========================================================
   GLOBAL
========================================================== */

.smp-grade-eight-page .section {
    padding: 84px 0;
}


.grade-eight-footer-disabled {
    display: block;

    margin-bottom: 8px;

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

    cursor: default;
}


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

.grade-eight-breadcrumb-section {
    background: #ffffff;

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


.grade-eight-breadcrumb {
    min-height: 54px;

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

    gap: 8px;

    color: var(--grade8-muted);

    font-size: 0.76rem;
}


.grade-eight-breadcrumb a {
    color: var(--grade8-muted);

    text-decoration: none;
}


.grade-eight-breadcrumb a:hover {
    color: var(--grade8-primary);
}


.grade-eight-breadcrumb strong {
    color: #334155;
}


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

.grade-eight-hero {
    position: relative;

    overflow: hidden;

    padding: 76px 0 88px;

    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(79, 70, 229, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(8, 145, 178, 0.09),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8faff,
            #ffffff
        );
}


.grade-eight-hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.03fr)
        minmax(430px, 0.97fr);

    align-items: center;

    gap: 52px;
}


.grade-eight-hero-content,
.grade-eight-hero-visual {
    min-width: 0;
}


.grade-eight-hero-badge {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

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

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


.grade-eight-hero-badge > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

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

    border-radius: 11px;

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


.grade-eight-hero-content h1 {
    max-width: 720px;

    margin: 0 0 22px;

    font-size: clamp(
        2.9rem,
        4.7vw,
        4.7rem
    );

    line-height: 1.01;
    letter-spacing: -0.052em;

    overflow-wrap: break-word;
}


.grade-eight-hero-content > p {
    max-width: 660px;

    margin: 0;

    color: var(--grade8-muted);

    line-height: 1.8;
}


.grade-eight-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.grade-eight-hero-meta {
    max-width: 610px;

    display: grid;

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

    gap: 10px;

    margin-top: 34px;
}


.grade-eight-hero-meta > div {
    padding: 16px;

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

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

    border-radius: 14px;
}


.grade-eight-hero-meta strong,
.grade-eight-hero-meta span {
    display: block;
}


.grade-eight-hero-meta strong {
    margin-bottom: 4px;

    color: var(--grade8-primary);

    font-size: 1.08rem;
}


.grade-eight-hero-meta span {
    color: var(--grade8-muted);

    font-size: 0.68rem;
}


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

.grade-eight-hero-visual {
    width: 100%;
    max-width: 620px;

    margin-left: auto;
}


.grade-eight-board {
    padding: 30px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #312e81,
            #4338ca 46%,
            #0e7490
        );

    border-radius: 30px;

    box-shadow:
        0 32px 85px
        rgba(49, 46, 129, 0.24);
}


.grade-eight-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;
}


.grade-eight-board-top {
    display: grid;

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

    gap: 8px;

    margin-bottom: 9px;
}


.grade-eight-board-top > div {
    min-height: 112px;

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

    padding: 14px;

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

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    text-align: center;
}


.grade-eight-board-top span,
.grade-eight-board-top strong {
    display: block;
}


.grade-eight-board-top span {
    margin-bottom: 6px;

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

    font-size: 0.53rem;
}


.grade-eight-board-top strong {
    color: #67e8f9;
}


.grade-eight-board-flow {
    display: grid;

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

    align-items: center;

    gap: 7px;

    margin-bottom: 9px;
}


.grade-eight-board-flow > div {
    min-height: 100px;

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

    padding: 12px;

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

    border-radius: 13px;

    text-align: center;
}


.grade-eight-board-flow small,
.grade-eight-board-flow strong {
    display: block;
}


.grade-eight-board-flow small {
    margin-bottom: 5px;

    color:
        rgba(255, 255, 255, 0.6);
}


.grade-eight-board-flow > i {
    color: #67e8f9;

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


.grade-eight-board-footer {
    display: grid;

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

    gap: 7px;
}


.grade-eight-board-footer > div {
    padding: 12px 8px;

    color: #334155;
    background: #ffffff;

    border-radius: 12px;

    text-align: center;
}


.grade-eight-board-footer span,
.grade-eight-board-footer strong {
    display: block;
}


.grade-eight-board-footer span {
    margin-bottom: 4px;

    color: var(--grade8-muted);

    font-size: 0.49rem;
}


.grade-eight-board-footer strong {
    color: var(--grade8-primary-dark);
}


/* ==========================================================
   TRANSITION
========================================================== */

.grade-eight-transition-section {
    padding: 28px 0;

    background: #ffffff;

    border-top:
        1px solid
        var(--grade8-border);

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


.grade-eight-transition {
    display: grid;

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

    align-items: center;

    gap: 10px;
}


.grade-eight-transition > div {
    min-height: 110px;

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

    padding: 16px;

    background: var(--grade8-soft);

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

    border-radius: 16px;

    text-align: center;
}


.grade-eight-transition span,
.grade-eight-transition strong {
    display: block;
}


.grade-eight-transition span {
    margin-bottom: 5px;

    color: var(--grade8-muted);

    font-size: 0.54rem;
}


.grade-eight-transition > i {
    color: var(--grade8-secondary);

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


/* ==========================================================
   SUBJECTS
========================================================== */

.grade-eight-subject-section {
    background: var(--grade8-soft);
}


.grade-eight-subject-grid {
    display: grid;

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

    gap: 18px;
}


.grade-eight-subject-card {
    min-height: 390px;

    display: flex;
    flex-direction: column;

    padding: 24px;

    color: var(--grade8-text);
    background: #ffffff;

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

    border-radius: 23px;

    text-decoration: none;
}


a.grade-eight-subject-card {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


a.grade-eight-subject-card:hover {
    transform: translateY(-5px);

    border-color: #a5b4fc;

    box-shadow:
        0 22px 45px
        rgba(79, 70, 229, 0.1);
}


.grade-eight-subject-card.is-available {
    border-color: #c7d2fe;
}


.grade-eight-subject-card.is-planned {
    opacity: 0.68;
}


.grade-eight-subject-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 20px;
}


.grade-eight-subject-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

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

    border-radius: 14px;

    font-weight: 900;
}


.grade-eight-subject-status {
    padding: 6px 9px;

    color: var(--grade8-green);
    background: var(--grade8-green-soft);

    border: 1px solid #99f6e4;
    border-radius: 999px;

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


.is-planned
.grade-eight-subject-status {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}


.grade-eight-subject-card h3 {
    margin: 0 0 12px;

    font-size: 1.35rem;
}


.grade-eight-subject-card > p {
    margin: 0 0 18px;

    color: var(--grade8-muted);

    line-height: 1.7;
}


.grade-eight-subject-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 20px;
}


.grade-eight-subject-meta span {
    padding: 6px 8px;

    color: #475569;
    background: var(--grade8-soft);

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

    border-radius: 999px;

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


.grade-eight-subject-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 16px;

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

    border-top:
        1px solid
        var(--grade8-border);

    font-weight: 850;
}


.grade-eight-subject-action.disabled {
    color: var(--grade8-muted);
}


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

.grade-eight-learning-section {
    background: #ffffff;
}


.grade-eight-learning-grid {
    display: grid;

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

    align-items: center;

    gap: 10px;
}


.grade-eight-learning-grid article {
    min-height: 190px;

    padding: 20px;

    background: var(--grade8-soft);

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

    border-radius: 18px;
}


.grade-eight-learning-grid article > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

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

    border-radius: 50%;

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


.grade-eight-learning-grid h3 {
    margin: 0 0 7px;
}


.grade-eight-learning-grid p {
    margin: 0;

    color: var(--grade8-muted);

    line-height: 1.65;
}


.grade-eight-learning-grid > i {
    color: var(--grade8-secondary);

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


/* ==========================================================
   MATHEMATICS
========================================================== */

.grade-eight-math-section {
    background: var(--grade8-soft);
}


.grade-eight-math-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}


.grade-eight-math-header > div {
    max-width: 720px;
}


.grade-eight-math-header h2 {
    margin: 10px 0 12px;

    font-size: clamp(
        2.2rem,
        4vw,
        3.5rem
    );

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


.grade-eight-math-header p {
    margin: 0;

    color: var(--grade8-muted);

    line-height: 1.7;
}


.grade-eight-math-header .button {
    flex-shrink: 0;
}


.grade-eight-math-map {
    display: grid;

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

    gap: 14px;
}


.grade-eight-math-map > a {
    min-height: 150px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 19px;

    color: var(--grade8-text);
    background: #ffffff;

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

    border-radius: 18px;

    text-decoration: none;

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


.grade-eight-math-map > a:hover {
    transform: translateY(-3px);

    border-color: #a5b4fc;

    box-shadow:
        0 14px 32px
        rgba(79, 70, 229, 0.08);
}


.grade-eight-math-map > a > span {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

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

    border-radius: 50%;

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


.grade-eight-math-map strong,
.grade-eight-math-map small {
    display: block;
}


.grade-eight-math-map strong {
    margin-bottom: 5px;
}


.grade-eight-math-map small {
    color: var(--grade8-muted);

    line-height: 1.45;
}


/* ==========================================================
   CONNECTION
========================================================== */

.grade-eight-connection-section {
    background: #ffffff;
}


.grade-eight-connection-grid {
    display: grid;

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

    gap: 14px;
}


.grade-eight-connection-grid article {
    min-height: 230px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    background: var(--grade8-soft);

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

    border-radius: 20px;
}


.grade-eight-connection-grid article > span {
    color: var(--grade8-primary-dark);

    font-size: 0.72rem;
    font-weight: 850;
}


.grade-eight-connection-grid article > strong {
    margin: 10px 0;

    color: var(--grade8-secondary);

    font-size: 1.4rem;
}


.grade-eight-connection-grid p {
    margin: 16px 0 0;

    color: var(--grade8-muted);

    line-height: 1.65;
}


/* ==========================================================
   CTA
========================================================== */

.grade-eight-cta-section {
    background: var(--grade8-soft);
}


.grade-eight-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 36px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #4338ca,
            #4f46e5 48%,
            #0e7490
        );

    border-radius: 28px;
}


.grade-eight-cta-card > div {
    max-width: 720px;
}


.grade-eight-cta-card
> div > span {
    display: block;

    margin-bottom: 7px;

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

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


.grade-eight-cta-card h2 {
    margin: 0 0 10px;

    color: #ffffff;
}


.grade-eight-cta-card p {
    margin: 0;

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

    line-height: 1.7;
}


.grade-eight-cta-card .button {
    flex-shrink: 0;
}


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

.grade-eight-navigation-section {
    padding: 40px 0 70px;

    background: #ffffff;
}


.grade-eight-navigation {
    display: grid;

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

    gap: 12px;
}


.grade-eight-navigation-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

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

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

    border-radius: 17px;

    text-decoration: none;

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


.grade-eight-navigation-card:hover {
    transform: translateY(-2px);

    border-color: #a5b4fc;
}


.grade-eight-navigation-card.next {
    justify-content: flex-end;

    text-align: right;
}


.grade-eight-navigation-card > span {
    color: var(--grade8-primary);

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


.grade-eight-navigation-card small,
.grade-eight-navigation-card strong {
    display: block;
}


.grade-eight-navigation-card small {
    margin-bottom: 4px;

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


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

@media (max-width: 1120px) {

    .grade-eight-hero-container {
        grid-template-columns: 1fr;

        gap: 48px;
    }


    .grade-eight-hero-content {
        max-width: 800px;
    }


    .grade-eight-hero-visual {
        width: 100%;
        max-width: 800px;

        margin-inline: auto;
    }


    .grade-eight-subject-grid,
    .grade-eight-math-map {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


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

}


@media (max-width: 900px) {

    .grade-eight-learning-grid {
        grid-template-columns: 1fr;
    }


    .grade-eight-learning-grid > i {
        transform: rotate(90deg);

        justify-self: center;
    }


    .grade-eight-math-header,
    .grade-eight-cta-card {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 680px) {

    .smp-grade-eight-page .section {
        padding: 62px 0;
    }


    .grade-eight-hero {
        padding: 52px 0 64px;
    }


    .grade-eight-hero-content h1 {
        font-size: clamp(
            2.35rem,
            10.7vw,
            3.55rem
        );

        line-height: 1.04;
    }


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


    .grade-eight-hero-actions .button {
        width: 100%;
    }


    .grade-eight-hero-meta,
    .grade-eight-subject-grid,
    .grade-eight-math-map,
    .grade-eight-connection-grid,
    .grade-eight-navigation {
        grid-template-columns: 1fr;
    }


    .grade-eight-board-top {
        grid-template-columns: 1fr;
    }


    .grade-eight-board-flow {
        grid-template-columns: 1fr;
    }


    .grade-eight-board-flow > i {
        transform: rotate(90deg);

        justify-self: center;
    }


    .grade-eight-board-footer {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .grade-eight-transition {
        grid-template-columns: 1fr;
    }


    .grade-eight-transition > i {
        transform: rotate(90deg);

        justify-self: center;
    }


    .grade-eight-math-header .button,
    .grade-eight-cta-card .button {
        width: 100%;
    }


    .grade-eight-navigation-card.next {
        justify-content: flex-start;

        text-align: left;
    }

}


@media (max-width: 460px) {

    .grade-eight-board,
    .grade-eight-subject-card,
    .grade-eight-cta-card {
        padding: 20px;
    }


    .grade-eight-board-footer {
        grid-template-columns: 1fr;
    }

}