/* ==========================================================
   BELAJAREDUTECH
   MATEMATIKA SMP KELAS 7
========================================================== */

.math-seven-page {
    --math7-primary: #4f46e5;
    --math7-primary-dark: #3730a3;
    --math7-primary-soft: #eef2ff;

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

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

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


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

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


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

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

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


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

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

    gap: 8px;

    color:
        var(--math7-muted);

    font-size: 0.76rem;
}


.math-seven-breadcrumb a {
    color:
        var(--math7-muted);

    text-decoration: none;
}


.math-seven-breadcrumb a:hover {
    color:
        var(--math7-primary);
}


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


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

.math-seven-hero {
    position: relative;

    overflow: hidden;

    padding:
        78px 0 88px;

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


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

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

    align-items: center;

    gap: 54px;
}


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


.math-seven-badge {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

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

    font-size: 0.68rem;

    font-weight: 850;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.math-seven-badge > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #ffffff;

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

    border-radius: 12px;

    font-size: 0.72rem;
}


.math-seven-hero-content h1 {
    max-width: 650px;

    margin:
        0 0 22px;

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

    line-height: 1;

    letter-spacing: -0.055em;

    overflow-wrap: anywhere;
}


.math-seven-hero-content > p {
    max-width: 650px;

    margin: 0;

    color:
        var(--math7-muted);

    font-size: 1rem;

    line-height: 1.8;
}


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

    gap: 12px;

    margin-top: 30px;
}


.math-seven-hero-meta {
    max-width: 610px;

    display: grid;

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

    gap: 10px;

    margin-top: 34px;
}


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

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

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

    border-radius: 14px;
}


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


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

    color:
        var(--math7-primary);

    font-size: 1.15rem;
}


.math-seven-hero-meta span {
    color:
        var(--math7-muted);

    font-size: 0.68rem;
}


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

.math-seven-hero-visual {
    width: 100%;

    max-width: 610px;

    margin-left: auto;
}


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

    color: #ffffff;

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

    border-radius: 30px;

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


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

    margin-bottom: 19px;

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

    font-size: 0.6rem;

    font-weight: 850;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.math-seven-board-equation {
    display: grid;

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

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;
}


.math-seven-board-equation > div {
    min-height: 120px;

    display: flex;
    flex-direction: column;

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

    padding: 16px;

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

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

    border-radius: 16px;

    text-align: center;
}


.math-seven-board-equation small,
.math-seven-board-equation strong {
    display: block;
}


.math-seven-board-equation small {
    margin-bottom: 6px;

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


.math-seven-board-equation strong {
    font-size: 1.22rem;
}


.math-seven-board-equation > i {
    color: #67e8f9;

    font-style: normal;

    font-weight: 900;
}


.math-seven-board-bottom {
    display: grid;

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

    gap: 8px;

    margin-top: 14px;
}


.math-seven-board-bottom > div {
    padding: 14px;

    color:
        #334155;

    background: #ffffff;

    border-radius: 14px;

    text-align: center;
}


.math-seven-board-bottom span,
.math-seven-board-bottom strong {
    display: block;
}


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

    color:
        var(--math7-muted);

    font-size: 0.53rem;
}


.math-seven-board-bottom strong {
    color:
        var(--math7-primary-dark);
}


/* ==========================================================
   PROCESS
========================================================== */

.math-seven-process-section {
    padding:
        16px 0;

    background: #ffffff;

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

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


.math-seven-process {
    display: grid;

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

    align-items: center;

    gap: 10px;
}


.math-seven-process > div {
    min-width: 0;

    padding: 14px 12px;

    background:
        var(--math7-soft);

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

    border-radius: 13px;

    text-align: center;
}


.math-seven-process span,
.math-seven-process strong,
.math-seven-process small {
    display: block;
}


.math-seven-process span {
    margin-bottom: 4px;

    color:
        var(--math7-primary);

    font-size: 0.52rem;

    font-weight: 900;
}


.math-seven-process strong {
    color:
        #334155;
}


.math-seven-process small {
    margin-top: 3px;

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


.math-seven-process > i {
    color:
        var(--math7-secondary);

    font-style: normal;

    font-weight: 900;
}


/* ==========================================================
   TWO COLUMN
========================================================== */

.math-seven-two-column {
    display: grid;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(500px, 1.2fr);

    align-items: center;

    gap: 70px;
}


.math-seven-section-content h2 {
    margin:
        12px 0 18px;

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

    line-height: 1.05;

    letter-spacing: -0.045em;
}


.math-seven-section-content p {
    color:
        var(--math7-muted);

    line-height: 1.8;
}


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

.math-seven-intro-section {
    background:
        var(--math7-soft);
}


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

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

    gap: 10px;
}


.math-seven-intro-grid article {
    min-height: 180px;

    padding: 20px;

    background: #ffffff;

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

    border-radius: 18px;
}


.math-seven-intro-grid article > span {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    color: #ffffff;

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

    border-radius: 12px;

    font-size: 0.65rem;

    font-weight: 900;
}


.math-seven-intro-grid h3 {
    margin:
        0 0 7px;
}


.math-seven-intro-grid p {
    margin: 0;

    color:
        var(--math7-muted);

    line-height: 1.6;
}


/* ==========================================================
   TOPICS
========================================================== */

.math-seven-topics-section {
    background: #ffffff;
}


.math-seven-topic-grid {
    display: grid;

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

    gap: 16px;
}


.math-seven-topic-card {
    position: relative;

    min-height: 300px;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: start;

    gap: 18px;

    padding: 24px;

    color:
        var(--math7-text);

    background:
        var(--math7-soft);

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

    border-radius: 23px;

    text-decoration: none;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}


.math-seven-topic-card:hover {
    transform:
        translateY(-4px);

    background: #ffffff;

    border-color: #a5b4fc;

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


.math-seven-topic-number {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    color: #ffffff;

    background:
        var(--math7-primary);

    border-radius: 15px;

    font-size: 0.65rem;

    font-weight: 900;
}


.math-seven-topic-content {
    min-width: 0;
}


.math-seven-topic-status {
    display: inline-flex;

    align-items: center;

    margin-bottom: 10px;

    padding:
        5px 9px;

    color:
        var(--math7-green);

    background:
        var(--math7-green-soft);

    border:
        1px solid #99f6e4;

    border-radius: 999px;

    font-size: 0.56rem;

    font-weight: 850;

    text-transform: uppercase;
}


.math-seven-topic-content h3 {
    margin:
        0 0 10px;

    color:
        var(--math7-text);

    font-size: 1.28rem;

    line-height: 1.25;
}


.math-seven-topic-content > p {
    margin:
        0 0 17px;

    color:
        var(--math7-muted);

    line-height: 1.7;
}


.math-seven-topic-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}


.math-seven-topic-tags span {
    padding:
        6px 9px;

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

    background:
        var(--math7-primary-soft);

    border-radius: 999px;

    font-size: 0.58rem;

    font-weight: 750;
}


.math-seven-topic-arrow {
    align-self: center;

    color:
        var(--math7-primary);

    font-size: 1.35rem;

    font-weight: 900;

    transition:
        transform 180ms ease;
}


.math-seven-topic-card:hover
.math-seven-topic-arrow {
    transform:
        translateX(4px);
}


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

.math-seven-map-section {
    background:
        var(--math7-soft);
}


.math-seven-map {
    display: grid;

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

    align-items: center;

    gap: 8px;
}


.math-seven-map > a {
    min-height: 125px;

    display: flex;

    flex-direction: column;

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

    padding: 14px;

    color:
        #334155;

    background: #ffffff;

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

    border-radius: 16px;

    text-align: center;

    text-decoration: none;

    transition:
        transform 180ms ease,
        border-color 180ms ease;
}


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

    border-color: #a5b4fc;
}


.math-seven-map > a span {
    margin-bottom: 6px;

    color:
        var(--math7-primary);

    font-size: 0.55rem;

    font-weight: 900;
}


.math-seven-map > a strong {
    font-size: 0.76rem;
}


.math-seven-map > i {
    color:
        var(--math7-secondary);

    font-style: normal;

    font-weight: 900;
}


/* ==========================================================
   EXPERIENCE
========================================================== */

.math-seven-experience-section {
    background: #ffffff;
}


.math-seven-experience-grid {
    display: grid;

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

    gap: 14px;
}


.math-seven-experience-grid article {
    min-height: 220px;

    padding: 22px;

    background:
        var(--math7-soft);

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

    border-radius: 20px;
}


.math-seven-experience-grid article > span {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    color: #ffffff;

    background:
        var(--math7-primary);

    border-radius: 50%;

    font-size: 0.56rem;

    font-weight: 900;
}


.math-seven-experience-grid h3 {
    margin:
        0 0 8px;
}


.math-seven-experience-grid p {
    margin: 0;

    color:
        var(--math7-muted);

    line-height: 1.65;
}


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

.math-seven-completion-section {
    background:
        var(--math7-soft);
}


.math-seven-completion-card {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(420px, 1.05fr);

    align-items: center;

    gap: 45px;

    padding: 38px;

    color: #ffffff;

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

    border-radius: 30px;
}


.math-seven-completion-card h2 {
    margin:
        10px 0 13px;

    color: #ffffff;
}


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

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

    line-height: 1.75;
}


.math-seven-completion-card
.section-eyebrow {
    color: #a5f3fc;
}


.math-seven-completion-progress {
    padding: 24px;

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

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

    border-radius: 20px;

    text-align: center;
}


.math-seven-completion-progress > div {
    display: grid;

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

    gap: 7px;

    margin-bottom: 14px;
}


.math-seven-completion-progress > div span {
    height: 9px;

    background: #67e8f9;

    border-radius: 999px;
}


.math-seven-completion-progress > strong {
    display: block;

    margin-bottom: 18px;

    color: #ffffff;

    font-size: 0.74rem;
}


/* ==========================================================
   NEXT
========================================================== */

.math-seven-next-section {
    padding:
        42px 0 72px;

    background: #ffffff;
}


.math-seven-next-grid {
    display: grid;

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

    gap: 12px;
}


.math-seven-next-card {
    min-height: 95px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    color:
        #334155;

    background:
        var(--math7-soft);

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

    border-radius: 17px;

    text-decoration: none;
}


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

    text-align: right;
}


.math-seven-next-card > span {
    color:
        var(--math7-primary);

    font-size: 1.25rem;

    font-weight: 900;
}


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


.math-seven-next-card small {
    margin-bottom: 4px;

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


.math-seven-next-card div > span {
    margin-top: 4px;

    color:
        var(--math7-muted);

    font-size: 0.62rem;
}


.math-seven-next-card.disabled {
    opacity: 0.58;

    cursor: default;
}


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

@media (max-width: 1120px) {

    .math-seven-hero-container,
    .math-seven-two-column {
        grid-template-columns: 1fr;

        gap: 48px;
    }


    .math-seven-hero-content {
        max-width: 790px;
    }


    .math-seven-hero-visual {
        width: 100%;

        max-width: 790px;

        margin-inline: auto;
    }


    .math-seven-completion-card {
        grid-template-columns: 1fr;
    }


    .math-seven-map {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .math-seven-map > i {
        display: none;
    }

}


@media (max-width: 860px) {

    .math-seven-topic-grid {
        grid-template-columns: 1fr;
    }


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


    .math-seven-process {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .math-seven-process > i {
        display: none;
    }


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

}


@media (max-width: 680px) {

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


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


    .math-seven-hero-content h1 {
        font-size:
            clamp(
                2.6rem,
                13vw,
                3.7rem
            );

        line-height: 1.02;
    }


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


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


    .math-seven-hero-meta,
    .math-seven-intro-grid,
    .math-seven-experience-grid,
    .math-seven-next-grid {
        grid-template-columns: 1fr;
    }


    .math-seven-board-equation {
        grid-template-columns: 1fr;
    }


    .math-seven-board-equation > i {
        transform:
            rotate(90deg);
    }


    .math-seven-board-bottom {
        grid-template-columns: 1fr;
    }


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


    .math-seven-topic-card {
        grid-template-columns:
            auto 1fr;

        min-height: auto;
    }


    .math-seven-topic-arrow {
        grid-column:
            1 / -1;

        justify-self: flex-end;
    }


    .math-seven-map {
        grid-template-columns: 1fr;
    }


    .math-seven-completion-card {
        padding: 27px;
    }


    .math-seven-completion-progress > div {
        gap: 4px;
    }


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

        text-align: left;
    }

}


@media (max-width: 450px) {

    .math-seven-board {
        padding: 20px;
    }


    .math-seven-hero-meta {
        margin-top: 25px;
    }


    .math-seven-process {
        grid-template-columns: 1fr;
    }


    .math-seven-topic-card {
        grid-template-columns: 1fr;

        padding: 20px;
    }


    .math-seven-topic-number {
        width: 44px;
        height: 44px;
    }


    .math-seven-topic-arrow {
        grid-column: auto;
    }


    .math-seven-completion-card {
        padding: 21px;

        border-radius: 22px;
    }


    .math-seven-completion-progress {
        padding: 17px;
    }

}