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

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

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

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

    --grade9-pink: #db2777;

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


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


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

    margin-bottom: 8px;

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

    cursor: default;
}


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

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

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


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

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

    gap: 8px;

    color: var(--grade9-muted);

    font-size: 0.76rem;
}


.grade-nine-breadcrumb a {
    color: var(--grade9-muted);

    text-decoration: none;
}


.grade-nine-breadcrumb a:hover {
    color: var(--grade9-primary);
}


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


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

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


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

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

    align-items: center;

    gap: 52px;
}


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


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

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

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

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


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

    display: grid;
    place-items: center;

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

    border-radius: 11px;

    font-size: 0.7rem;
}


.grade-nine-hero-content h1 {
    max-width: 780px;

    margin: 0 0 22px;

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

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

    overflow-wrap: break-word;
}


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

    margin: 0;

    color: var(--grade9-muted);

    line-height: 1.8;
}


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

    gap: 12px;

    margin-top: 30px;
}


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

    display: grid;

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

    gap: 10px;

    margin-top: 34px;
}


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

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

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

    border-radius: 14px;
}


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


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

    color: var(--grade9-primary);

    font-size: 1.05rem;
}


.grade-nine-hero-meta span {
    color: var(--grade9-muted);

    font-size: 0.65rem;
}


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

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

    margin-left: auto;
}


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


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

    margin-bottom: 17px;

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

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


.grade-nine-board-main {
    display: grid;

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

    gap: 8px;

    margin-bottom: 10px;
}


.grade-nine-board-main > div {
    padding: 14px;

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

    border-radius: 13px;

    text-align: center;
}


.grade-nine-board-main span,
.grade-nine-board-main strong {
    display: block;
}


.grade-nine-board-main span {
    margin-bottom: 5px;

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

    font-size: 0.5rem;
}


.grade-nine-board-main strong {
    color: #f9a8d4;
}


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

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

    align-items: center;

    gap: 7px;
}


.grade-nine-board-flow > div {
    min-height: 105px;

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

    padding: 12px;

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

    border-radius: 12px;

    text-align: center;
}


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


.grade-nine-board-flow span {
    margin-bottom: 5px;

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

    font-size: 0.48rem;
}


.grade-nine-board-flow strong {
    color: #67e8f9;
}


.grade-nine-board-flow > i {
    color: #f9a8d4;

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


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

    gap: 10px;

    margin: 14px 0;
}


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

    flex: 1;

    height: 1px;

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


.grade-nine-board-divider span {
    color: rgba(255, 255, 255, 0.52);

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


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

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

    gap: 8px;

    margin-top: 12px;
}


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

    color: #334155;
    background: #ffffff;

    border-radius: 11px;

    text-align: center;
}


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


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

    color: var(--grade9-muted);

    font-size: 0.48rem;
}


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


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

.grade-nine-transition-section {
    background: #ffffff;
}


.grade-nine-transition-flow {
    display: grid;

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

    align-items: center;

    gap: 10px;
}


.grade-nine-transition-flow > a,
.grade-nine-transition-flow > div {
    min-height: 190px;

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

    padding: 20px;

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

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

    border-radius: 19px;

    text-decoration: none;

    text-align: center;
}


.grade-nine-transition-flow > a:hover {
    border-color: #c4b5fd;
}


.grade-nine-transition-flow > i {
    color: var(--grade9-pink);

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


.grade-nine-transition-flow span,
.grade-nine-transition-flow strong,
.grade-nine-transition-flow small {
    display: block;
}


.grade-nine-transition-flow span {
    margin-bottom: 8px;

    color: var(--grade9-primary);

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


.grade-nine-transition-flow strong {
    margin-bottom: 7px;

    font-size: 1.18rem;
}


.grade-nine-transition-flow small {
    color: var(--grade9-muted);

    line-height: 1.5;
}


.grade-nine-transition-flow .current {
    color: #ffffff;

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

    border-color: transparent;
}


.grade-nine-transition-flow .current span,
.grade-nine-transition-flow .current small {
    color: rgba(255, 255, 255, 0.78);
}


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

.grade-nine-subject-section {
    background: var(--grade9-soft);
}


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

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

    gap: 18px;
}


.grade-nine-subject-card {
    min-width: 0;
    min-height: 390px;

    display: flex;
    flex-direction: column;

    padding: 24px;

    color: #334155;
    background: #ffffff;

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

    border-radius: 22px;

    text-decoration: none;
}


.grade-nine-subject-card.is-available {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}


.grade-nine-subject-card.is-available:hover {
    transform: translateY(-5px);

    border-color: #c4b5fd;

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


.grade-nine-subject-card.is-planned {
    opacity: 0.65;
}


.grade-nine-subject-icon {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    color: #ffffff;

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

    border-radius: 17px;

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


.grade-nine-subject-status {
    width: fit-content;

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

    color: #166534;
    background: #dcfce7;

    border-radius: 999px;

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


.grade-nine-subject-card.is-planned
.grade-nine-subject-status {
    color: #92400e;
    background: #fef3c7;
}


.grade-nine-subject-card h3 {
    margin: 0 0 11px;

    color: var(--grade9-text);

    font-size: 1.35rem;
}


.grade-nine-subject-card p {
    margin: 0 0 20px;

    color: var(--grade9-muted);

    line-height: 1.68;
}


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

    gap: 7px;

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


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

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

    border-radius: 999px;

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


.grade-nine-subject-card > strong {
    color: var(--grade9-primary);

    font-size: 0.72rem;
}


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

.grade-nine-method-section {
    background: #ffffff;
}


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

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

    gap: 14px;
}


.grade-nine-method-grid article {
    min-height: 230px;

    padding: 22px;

    background: var(--grade9-soft);

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

    border-radius: 20px;
}


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

    display: grid;
    place-items: center;

    margin-bottom: 14px;

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

    border-radius: 50%;

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


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


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

    color: var(--grade9-muted);

    line-height: 1.65;
}


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

.grade-nine-map-section {
    background: var(--grade9-soft);
}


.grade-nine-learning-map {
    display: grid;

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

    gap: 12px;

    max-width: 1000px;

    margin-inline: auto;
}


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

    grid-template-columns:
        auto 1fr;

    align-items: center;

    gap: 14px;

    min-height: 115px;

    padding: 18px;

    color: #334155;
    background: #ffffff;

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

    border-radius: 17px;

    text-decoration: none;

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


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

    border-color: #c4b5fd;
}


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

    display: grid;
    place-items: center;

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

    border-radius: 12px;

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


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


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

    color: var(--grade9-muted);

    font-size: 0.51rem;
}


.grade-nine-learning-map strong {
    color: var(--grade9-text);

    line-height: 1.35;
}


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

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


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

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

    gap: 14px;
}


.grade-nine-connection-grid article {
    min-height: 250px;

    padding: 22px;

    background: var(--grade9-soft);

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

    border-radius: 20px;
}


.grade-nine-connection-grid article > span {
    display: block;

    margin-bottom: 10px;

    color: var(--grade9-primary);

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


.grade-nine-connection-grid h3 {
    margin: 0 0 10px;
}


.grade-nine-connection-grid p {
    margin: 0;

    color: var(--grade9-muted);

    line-height: 1.65;
}


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

.grade-nine-cta-section {
    background: var(--grade9-soft);
}


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

    gap: 30px;

    padding: 38px;

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

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


.grade-nine-cta-card > div {
    max-width: 690px;
}


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

    margin-bottom: 8px;

    color: var(--grade9-primary);

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


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


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

    color: var(--grade9-muted);

    line-height: 1.7;
}


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

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

    background: #ffffff;
}


.grade-nine-navigation {
    display: grid;

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

    gap: 12px;
}


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

    gap: 15px;

    padding: 20px;

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

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

    border-radius: 17px;

    text-decoration: none;
}


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


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

    text-align: right;
}


.grade-nine-navigation-card > span {
    color: var(--grade9-primary);

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


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


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

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


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

    color: var(--grade9-muted);

    font-size: 0.62rem;
}


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

@media (max-width: 1120px) {

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

        gap: 48px;
    }


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


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

        margin-inline: auto;
    }


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


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

}


@media (max-width: 820px) {

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


    .grade-nine-transition-flow > i {
        justify-self: center;

        transform: rotate(90deg);
    }


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

}


@media (max-width: 680px) {

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


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


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

        line-height: 1.04;
    }


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


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


    .grade-nine-hero-meta,
    .grade-nine-board-main,
    .grade-nine-board-footer,
    .grade-nine-subject-grid,
    .grade-nine-method-grid,
    .grade-nine-connection-grid,
    .grade-nine-navigation {
        grid-template-columns: 1fr;
    }


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


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

        transform: rotate(90deg);
    }


    .grade-nine-subject-card {
        min-height: auto;
    }


    .grade-nine-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }


    .grade-nine-cta-card .button {
        width: 100%;
    }


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

        text-align: left;
    }

}


@media (max-width: 460px) {

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


    .grade-nine-subject-card {
        padding: 20px;
    }

}