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

.math-breadcrumb-section {
    padding: 18px 0;

    background:
        var(--color-background);

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


.math-breadcrumb {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    color:
        var(--color-text-muted);

    font-size: 0.78rem;
}


.math-breadcrumb a {
    transition:
        color var(--transition-fast);
}


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


.math-breadcrumb strong {
    color:
        var(--color-text-secondary);
}



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

.math-hero {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 18%,
            rgba(37, 99, 235, 0.12),
            transparent 31%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(124, 58, 237, 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8fbff,
            #ffffff
        );
}


.math-hero-container {
    min-height: 620px;

    display: grid;

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

    align-items: center;

    gap: 80px;

    padding-top: 78px;

    padding-bottom: 88px;
}



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

.math-badge {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 22px;

    padding: 7px 13px 7px 7px;

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

    background:
        var(--color-primary-light);

    border-radius: 999px;

    font-size: 0.78rem;

    font-weight: 750;
}


.math-badge span {
    width: 31px;

    height: 31px;

    display: grid;

    place-items: center;

    color: #ffffff;

    background:
        var(--color-primary);

    border-radius: 50%;

    font-size: 0.9rem;

    font-weight: 900;
}


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

    margin-bottom: 24px;

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

    letter-spacing:
        -0.052em;
}


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

    margin-bottom: 32px;

    color:
        var(--color-text-muted);

    font-size: 1.06rem;
}


.math-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 38px;
}



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

.math-hero-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 24px;
}


.math-hero-meta div {
    padding-right: 24px;

    border-right:
        1px solid
        var(--color-border);
}


.math-hero-meta div:last-child {
    border-right: 0;
}


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


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

    color:
        var(--color-text-secondary);

    font-size: 0.82rem;
}


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

    font-size: 0.7rem;
}



/* ======================================================
   MATH BOARD
====================================================== */

.math-board {
    padding: 26px;

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

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

    border-radius:
        var(--radius-extra-large);

    box-shadow:
        var(--shadow-large);
}


.math-board-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.math-board-header div > span,
.math-board-header div > strong {
    display: block;
}


.math-board-header div > span {
    margin-bottom: 3px;

    color:
        var(--color-primary);

    font-size: 0.68rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.math-board-header div > strong {
    font-size: 0.9rem;
}


.math-board-status {
    padding: 6px 10px;

    color: #047857;

    background: #ecfdf5;

    border-radius: 999px;

    font-size: 0.68rem;

    font-weight: 750;
}



/* ======================================================
   BOARD MAIN
====================================================== */

.math-board-main {
    min-height: 280px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    border-radius:
        var(--radius-large);
}


.math-board-label {
    margin-bottom: 17px;

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

    font-size: 0.7rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.math-board-equation {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 32px;
}


.math-board-equation span,
.math-board-equation strong {
    width: 60px;

    height: 60px;

    display: grid;

    place-items: center;

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

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

    border-radius: 16px;

    font-size: 1.8rem;

    font-weight: 900;
}


.math-board-equation strong {
    color:
        var(--color-primary-dark);

    background: #ffffff;
}


.math-board-equation small {
    font-size: 1.35rem;

    font-weight: 800;
}



/* ======================================================
   DOTS
====================================================== */

.math-board-dots {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;
}


.math-board-dots span {
    width: 13px;

    height: 13px;

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

    border-radius: 50%;
}


.math-board-dots i {
    margin: 0 5px;

    font-style: normal;

    font-weight: 800;
}



/* ======================================================
   BOARD FOOTER
====================================================== */

.math-board-footer {
    display: grid;

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

    gap: 10px;

    margin-top: 14px;
}


.math-board-footer div {
    padding: 14px;

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

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

    border-radius: 12px;
}


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


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

    color:
        var(--color-text-muted);

    font-size: 0.64rem;
}


.math-board-footer strong {
    font-size: 0.75rem;
}



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

.math-process-section {
    padding: 28px 0;

    background:
        #0f172a;
}


.math-process {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;
}


.math-process-item {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #ffffff;
}


.math-process-item > span {
    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    color: #bfdbfe;

    background:
        rgba(59, 130, 246, 0.15);

    border:
        1px solid
        rgba(147, 197, 253, 0.16);

    border-radius: 11px;

    font-size: 0.68rem;

    font-weight: 850;
}


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


.math-process-item strong {
    margin-bottom: 2px;

    font-size: 0.8rem;
}


.math-process-item small {
    color:
        #94a3b8;

    font-size: 0.66rem;
}


.math-process-line {
    width: 45px;

    height: 1px;

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



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

.math-topic-section {
    background:
        var(--color-background);
}


.math-topic-grid {
    display: grid;

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

    gap: 22px;
}


.math-topic-card {
    overflow: hidden;

    display: flex;

    flex-direction: column;

    background: #ffffff;

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

    border-radius:
        var(--radius-large);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


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

    border-color:
        rgba(37, 99, 235, 0.26);

    box-shadow:
        var(--shadow-medium);
}



/* ======================================================
   TOPIC TOP
====================================================== */

.math-topic-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        20px 22px 0;
}


.math-topic-number {
    min-height: 34px;

    display: inline-flex;

    align-items: center;

    padding: 0 11px;

    color:
        var(--color-primary);

    background:
        var(--color-primary-light);

    border-radius: 999px;

    font-size: 0.68rem;

    font-weight: 850;
}


.math-topic-arrow {
    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    color:
        var(--color-text-secondary);

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

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

    border-radius: 50%;

    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}


.math-topic-card:hover
.math-topic-arrow {
    color: #ffffff;

    background:
        var(--color-primary);
}



/* ======================================================
   TOPIC VISUAL
====================================================== */

.math-topic-symbol {
    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin:
        20px 22px 0;

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

    background:
        #eff6ff;

    border-radius:
        var(--radius-medium);

    font-size: 2.6rem;

    font-weight: 900;

    letter-spacing:
        -0.05em;
}


.topic-shapes {
    font-size: 2.1rem;
}


.math-pattern-symbol {
    font-size: 1.4rem;

    letter-spacing: 0;
}



/* ======================================================
   TOPIC CONTENT
====================================================== */

.math-topic-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 24px;
}


.math-topic-category {
    display: block;

    margin-bottom: 8px;

    color:
        var(--color-text-muted);

    font-size: 0.67rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing:
        0.07em;
}


.math-topic-content h3 {
    margin-bottom: 12px;

    font-size: 1.22rem;
}


.math-topic-content p {
    margin-bottom: 25px;

    color:
        var(--color-text-muted);

    font-size: 0.86rem;
}


.math-topic-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 17px;

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

    color:
        var(--color-primary);

    font-size: 0.8rem;

    font-weight: 750;
}


.math-topic-footer strong {
    transition:
        transform var(--transition-fast);
}


.math-topic-card:hover
.math-topic-footer strong {
    transform:
        translateX(5px);
}



/* ======================================================
   ACTIVITIES
====================================================== */

.math-activity-section {
    background:
        var(--color-background-soft);
}


.math-activity-wrapper {
    display: grid;

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

    align-items: center;

    gap: 80px;
}


.math-activity-content h2 {
    max-width: 620px;

    margin-bottom: 20px;

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

    letter-spacing:
        -0.04em;
}


.math-activity-content p {
    max-width: 580px;

    margin-bottom: 0;

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


.math-activity-grid {
    display: grid;

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

    gap: 16px;
}


.math-activity-card {
    min-height: 170px;

    display: grid;

    grid-template-columns:
        48px 1fr;

    gap: 15px;

    padding: 22px;

    background: #ffffff;

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

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-small);
}


.math-activity-icon {
    width: 44px;

    height: 44px;

    display: grid;

    place-items: center;

    color:
        var(--color-primary);

    background:
        var(--color-primary-light);

    border-radius: 12px;

    font-weight: 900;
}


.math-activity-card h3 {
    margin-bottom: 7px;

    font-size: 0.98rem;
}


.math-activity-card p {
    margin-bottom: 0;

    color:
        var(--color-text-muted);

    font-size: 0.78rem;
}



/* ======================================================
   FEATURED
====================================================== */

.math-featured-section {
    background:
        var(--color-background);
}


.math-featured-card {
    min-height: 430px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 0.8fr);

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #4f46e5
        );

    border-radius:
        var(--radius-extra-large);

    box-shadow:
        0 30px 70px
        rgba(37, 99, 235, 0.22);
}


.math-featured-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 50px;
}


.math-featured-label {
    display: block;

    margin-bottom: 12px;

    color:
        #bfdbfe;

    font-size: 0.72rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing:
        0.08em;
}


.math-featured-content h2 {
    margin-bottom: 18px;

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

    letter-spacing:
        -0.04em;
}


.math-featured-content p {
    max-width: 600px;

    margin-bottom: 28px;

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


.math-featured-content .button {
    width: fit-content;
}



/* ======================================================
   FEATURED VISUAL
====================================================== */

.math-featured-visual {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px;

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


.number-demo {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-bottom: 16px;
}


.number-demo span {
    width: 60px;

    height: 60px;

    display: grid;

    place-items: center;

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

    background: #ffffff;

    border-radius: 16px;

    font-size: 1.5rem;

    font-weight: 900;

    box-shadow:
        0 12px 25px
        rgba(15, 23, 42, 0.15);
}


.number-demo-label {
    color:
        rgba(255, 255, 255, 0.72);

    font-size: 0.75rem;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing:
        0.08em;
}



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

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

    background:
        var(--color-background);
}


.math-navigation {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}


.math-navigation-card {
    min-width: 260px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px 20px;

    background: #ffffff;

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

    border-radius:
        var(--radius-medium);

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}


.math-navigation-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(37, 99, 235, 0.28);

    box-shadow:
        var(--shadow-small);
}


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

    font-size: 1.2rem;
}


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


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

    color:
        var(--color-text-muted);

    font-size: 0.67rem;
}


.math-navigation-card strong {
    color:
        var(--color-text-secondary);

    font-size: 0.86rem;
}


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

    margin-left: auto;

    text-align: right;
}



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

@media (max-width: 1024px) {

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

        gap: 45px;
    }


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


    .math-activity-wrapper {
        grid-template-columns:
            1fr;

        gap: 45px;
    }

}



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

@media (max-width: 860px) {

    .math-hero-container {
        min-height: auto;

        grid-template-columns:
            1fr;

        gap: 50px;

        padding-top: 65px;

        padding-bottom: 70px;
    }


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


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

        max-width: 620px;
    }


    .math-process {
        overflow-x: auto;

        justify-content:
            flex-start;
    }


    .math-process-item {
        min-width: 120px;
    }


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


    .math-featured-visual {
        min-height: 270px;
    }

}



/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .math-breadcrumb-section {
        padding:
            14px 0;
    }


    .math-hero-container {
        padding-top:
            50px;

        padding-bottom:
            58px;
    }


    .math-hero-content h1 {
        font-size:
            clamp(
                2.45rem,
                12vw,
                3.5rem
            );
    }


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


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


    .math-hero-meta {
        flex-direction:
            column;

        gap:
            10px;
    }


    .math-hero-meta div {
        padding-right:
            0;

        padding-bottom:
            10px;

        border-right:
            0;

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


    .math-board {
        padding:
            18px;
    }


    .math-board-main {
        min-height:
            240px;

        padding:
            22px 14px;
    }


    .math-board-equation {
        gap:
            7px;
    }


    .math-board-equation span,
    .math-board-equation strong {
        width:
            48px;

        height:
            48px;

        font-size:
            1.4rem;
    }


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


    .math-process {
        flex-direction:
            column;

        align-items:
            stretch;

        overflow:
            visible;
    }


    .math-process-item {
        min-width:
            auto;
    }


    .math-process-line {
        width:
            1px;

        height:
            15px;

        margin-left:
            18px;
    }


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


    .math-topic-symbol {
        min-height:
            130px;
    }


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


    .math-activity-card {
        min-height:
            auto;
    }


    .math-featured-content {
        padding:
            36px 24px;
    }


    .math-featured-content
    .button {
        width:
            100%;
    }


    .math-featured-visual {
        padding:
            30px 20px;
    }


    .number-demo span {
        width:
            50px;

        height:
            50px;
    }


    .math-navigation {
        flex-direction:
            column;
    }


    .math-navigation-card {
        width:
            100%;

        min-width:
            auto;
    }


    .math-navigation-next {
        margin-left:
            0;
    }

}