/* ==========================================================
   BELAJAREDUTECH
   MATEMATIKA SMA / SMK KELAS 12
========================================================== */

.math-grade-twelve-page {
    --math12-primary: #7c3aed;
    --math12-primary-dark: #6d28d9;
    --math12-primary-soft: #f5f3ff;

    --math12-secondary: #2563eb;
    --math12-secondary-soft: #eff6ff;

    --math12-cyan: #0891b2;
    --math12-green: #0f766e;
    --math12-orange: #ea580c;

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


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


.math-twelve-footer-disabled,
.math-twelve-footer-next {
    display: block;

    margin-bottom: 8px;
}


.math-twelve-footer-disabled {
    color:
        rgba(255, 255, 255, 0.42);

    cursor: default;
}


.math-twelve-footer-next {
    color:
        rgba(255, 255, 255, 0.66);
}


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

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

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


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

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

    gap: 8px;

    color: var(--math12-muted);

    font-size: 0.76rem;
}


.math-twelve-breadcrumb a {
    color: var(--math12-muted);

    text-decoration: none;
}


.math-twelve-breadcrumb a:hover {
    color: var(--math12-primary);
}


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


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

.math-twelve-hero {
    overflow: hidden;

    padding: 78px 0 90px;

    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(124, 58, 237, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 9% 90%,
            rgba(37, 99, 235, 0.11),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #fbfaff,
            #ffffff
        );
}


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

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

    align-items: center;

    gap: 54px;
}


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


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

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 15px;

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

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


.math-twelve-topic-badge span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: #ffffff;

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

    border-radius: 13px;

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


.math-twelve-hero-content h1 {
    max-width: 720px;

    margin: 0 0 22px;

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

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


.math-twelve-hero-content > p {
    max-width: 700px;

    margin: 0;

    color: var(--math12-muted);

    line-height: 1.8;
}


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

    gap: 12px;

    margin-top: 30px;
}


.math-twelve-hero-meta {
    max-width: 680px;

    display: grid;

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

    gap: 10px;

    margin-top: 34px;
}


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

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

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

    border-radius: 14px;
}


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


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

    color: var(--math12-primary);

    font-size: 1.05rem;
}


.math-twelve-hero-meta span {
    color: var(--math12-muted);

    font-size: 0.65rem;
}


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

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

    margin-left: auto;
}


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

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #3b0764,
            #6d28d9 48%,
            #1d4ed8
        );

    border-radius: 30px;

    box-shadow:
        0 32px 85px
        rgba(109, 40, 217, 0.24);
}


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

    margin-bottom: 18px;

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

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


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

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

    align-items: center;

    gap: 8px;
}


.math-twelve-board-flow > div {
    min-height: 142px;

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

    padding: 13px;

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

    border-radius: 13px;

    text-align: center;
}


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


.math-twelve-board-flow span {
    margin-bottom: 5px;

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

    font-size: 0.47rem;
}


.math-twelve-board-flow strong {
    color: #93c5fd;

    font-size: 1.3rem;
}


.math-twelve-board-flow small {
    margin-top: 7px;

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

    line-height: 1.4;
}


.math-twelve-board-flow > i {
    color: #d8b4fe;

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


.math-twelve-board-focus {
    margin-top: 12px;
    padding: 16px;

    background:
        rgba(8, 145, 178, 0.56);

    border-radius: 13px;
}


.math-twelve-board-focus > span {
    display: block;

    margin-bottom: 10px;

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

    font-size: 0.5rem;

    text-align: center;
}


.math-twelve-board-focus > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 7px;
}


.math-twelve-board-focus strong {
    padding: 7px 10px;

    color: #ffffff;

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

    border-radius: 999px;

    font-size: 0.58rem;
}


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

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

    gap: 8px;

    margin-top: 12px;
}


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

    color: #334155;
    background: #ffffff;

    border-radius: 12px;

    text-align: center;
}


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


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

    color: var(--math12-muted);

    font-size: 0.48rem;
}


.math-twelve-board-footer strong {
    color: var(--math12-primary-dark);

    font-size: 0.7rem;
}


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

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


.math-twelve-intro-container {
    display: grid;

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

    align-items: start;

    gap: 70px;
}


.math-twelve-intro-container h2 {
    margin: 12px 0 0;

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

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


.math-twelve-intro-container > div:last-child {
    padding-top: 10px;
}


.math-twelve-intro-container p {
    margin-top: 0;
    margin-bottom: 17px;

    color: var(--math12-muted);

    line-height: 1.8;
}


/* ==========================================================
   TARGET
========================================================== */

.math-twelve-target-section {
    background: var(--math12-soft);
}


.math-twelve-target-grid {
    display: grid;

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

    gap: 14px;
}


.math-twelve-target-grid article {
    min-height: 250px;

    padding: 22px;

    background: #ffffff;

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

    border-radius: 20px;
}


.math-twelve-target-grid article > span,
.math-twelve-flow-grid article > span {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

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

    border-radius: 50%;

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


.math-twelve-target-grid h3 {
    margin: 0 0 10px;
}


.math-twelve-target-grid p {
    margin: 0;

    color: var(--math12-muted);

    line-height: 1.65;
}


/* ==========================================================
   MATERIAL LIST
========================================================== */

.math-twelve-material-section {
    background: #ffffff;
}


.math-twelve-material-list {
    max-width: 1050px;

    display: flex;
    flex-direction: column;

    gap: 15px;

    margin-inline: auto;
}


.math-twelve-material-card {
    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 22px;

    min-height: 250px;

    padding: 25px;

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

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

    border-radius: 23px;

    text-decoration: none;

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


a.math-twelve-material-card:hover {
    transform:
        translateY(-2px);

    border-color: #c4b5fd;

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


.math-twelve-material-card.active {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfaff
        );

    border-color: #ddd6fe;
}


.math-twelve-material-card.disabled {
    opacity: 0.62;
}


.math-twelve-material-number {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    color: #ffffff;

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

    border-radius: 20px;
}


.math-twelve-material-card.disabled
.math-twelve-material-number {
    color: #64748b;
    background: #e2e8f0;
}


.math-twelve-material-number span {
    font-size: 0.76rem;
    font-weight: 900;
}


.math-twelve-material-content {
    min-width: 0;
}


.math-twelve-material-status {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 9px;
}


.math-twelve-material-status > span {
    color: var(--math12-primary);

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


.math-twelve-material-status small {
    padding: 5px 9px;

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

    border-radius: 999px;

    font-size: 0.51rem;
    font-weight: 800;
}


.math-twelve-material-card.disabled
.math-twelve-material-status small {
    color: #64748b;
    background: #e2e8f0;
}


.math-twelve-material-content h3 {
    margin: 0 0 10px;

    font-size:
        clamp(
            1.35rem,
            2vw,
            1.75rem
        );
}


.math-twelve-material-content > p {
    max-width: 700px;

    margin: 0;

    color: var(--math12-muted);

    line-height: 1.67;
}


.math-twelve-material-topics {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 16px;
}


.math-twelve-material-topics span {
    padding: 6px 9px;

    color: #475569;
    background: #ffffff;

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

    border-radius: 999px;

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


.math-twelve-material-action {
    min-width: 70px;

    text-align: center;
}


.math-twelve-material-action span,
.math-twelve-material-action strong {
    display: block;
}


.math-twelve-material-action span {
    color: var(--math12-muted);

    font-size: 0.56rem;
    font-weight: 800;
}


.math-twelve-material-action strong {
    margin-top: 5px;

    color: var(--math12-primary);

    font-size: 1.35rem;
}


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

.math-twelve-connection-section {
    background: var(--math12-soft);
}


.math-twelve-connection-grid {
    display: grid;

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

    gap: 15px;
}


.math-twelve-connection-grid article {
    min-height: 245px;

    padding: 22px;

    background: #ffffff;

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

    border-radius: 20px;
}


.math-twelve-connection-grid article > span {
    display: block;

    margin-bottom: 9px;

    color: var(--math12-primary);

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


.math-twelve-connection-grid h3 {
    margin: 0 0 10px;
}


.math-twelve-connection-grid p {
    margin: 0;

    color: var(--math12-muted);

    line-height: 1.67;
}


/* ==========================================================
   FLOW
========================================================== */

.math-twelve-flow-section {
    background: #ffffff;
}


.math-twelve-flow-grid {
    display: grid;

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

    gap: 12px;
}


.math-twelve-flow-grid article {
    min-height: 245px;

    padding: 20px;

    background: var(--math12-soft);

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

    border-radius: 18px;
}


.math-twelve-flow-grid h3 {
    margin: 0 0 9px;
}


.math-twelve-flow-grid p {
    margin: 0;

    color: var(--math12-muted);

    line-height: 1.65;
}


/* ==========================================================
   PRINCIPLE
========================================================== */

.math-twelve-principle-section {
    background: var(--math12-soft);
}


.math-twelve-principle-card {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 35px;

    padding: 36px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #4c1d95,
            #7c3aed 52%,
            #1d4ed8
        );

    border-radius: 30px;
}


.math-twelve-principle-content > span {
    display: block;

    margin-bottom: 7px;

    color: #ddd6fe;

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


.math-twelve-principle-content h2 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size:
        clamp(
            2rem,
            3.5vw,
            3.3rem
        );

    line-height: 1.06;
}


.math-twelve-principle-content p {
    margin: 0;

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

    line-height: 1.7;
}


.math-twelve-principle-grid {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.math-twelve-principle-grid > div {
    min-height: 90px;

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

    padding: 15px;

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

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

    border-radius: 14px;
}


.math-twelve-principle-grid strong,
.math-twelve-principle-grid span {
    display: block;
}


.math-twelve-principle-grid strong {
    margin-bottom: 5px;

    color: #93c5fd;
}


.math-twelve-principle-grid span {
    color:
        rgba(255, 255, 255, 0.76);
}


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

.math-twelve-next-section {
    background: #ffffff;
}


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

    gap: 35px;

    padding: 34px;

    background: var(--math12-soft);

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

    border-radius: 25px;
}


.math-twelve-next-card > div {
    max-width: 720px;
}


.math-twelve-next-card > div > span {
    display: block;

    margin-bottom: 7px;

    color: var(--math12-primary);

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


.math-twelve-next-card h2 {
    margin: 0 0 11px;

    font-size:
        clamp(
            1.8rem,
            3vw,
            2.8rem
        );

    line-height: 1.08;
}


.math-twelve-next-card p {
    margin: 0;

    color: var(--math12-muted);

    line-height: 1.7;
}


.math-twelve-next-card .button {
    flex-shrink: 0;
}


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

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

    background: #ffffff;
}


.math-twelve-navigation {
    display: grid;

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

    gap: 12px;
}


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

    gap: 15px;

    padding: 20px;

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

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

    border-radius: 17px;

    text-decoration: none;
}


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


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

    text-align: right;
}


.math-twelve-navigation-card > span {
    color: var(--math12-primary);

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


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


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

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


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

    color: var(--math12-muted);

    font-size: 0.62rem;
}


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

@media (max-width: 1120px) {

    .math-twelve-hero-container {
        grid-template-columns: 1fr;

        gap: 48px;
    }


    .math-twelve-hero-content {
        max-width: 840px;
    }


    .math-twelve-hero-visual {
        width: 100%;
        max-width: 840px;

        margin-inline: auto;
    }


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


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

}


@media (max-width: 860px) {

    .math-twelve-intro-container,
    .math-twelve-principle-card {
        grid-template-columns: 1fr;
    }


    .math-twelve-next-card {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 680px) {

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


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


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


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


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


    .math-twelve-hero-meta,
    .math-twelve-board-footer,
    .math-twelve-target-grid,
    .math-twelve-connection-grid,
    .math-twelve-flow-grid,
    .math-twelve-navigation {
        grid-template-columns: 1fr;
    }


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


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

        transform: rotate(90deg);
    }


    .math-twelve-material-card {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .math-twelve-material-number {
        width: 58px;
        height: 58px;
    }


    .math-twelve-material-action {
        display: flex;
        align-items: center;

        gap: 7px;

        text-align: left;
    }


    .math-twelve-material-action strong {
        margin-top: 0;
    }


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

        text-align: left;
    }

}


@media (max-width: 460px) {

    .math-twelve-board,
    .math-twelve-principle-card,
    .math-twelve-next-card {
        padding: 21px;
    }


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


    .math-twelve-material-status {
        align-items: flex-start;
        flex-direction: column;
    }

}