/* =====================================================
   KATEGORI SIBI
===================================================== */


/* =====================================================
   HERO
===================================================== */

.category-hero {
    padding: 42px 0 50px;
    background: #f4f8fb;
    border-bottom: 1px solid #e4ebf1;
}


/* BREADCRUMB */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 32px;
    font-size: 10px;
}

.breadcrumb a {
    color: #1769aa;
    text-decoration: none;
}

.breadcrumb span {
    color: #8b96a3;
}

.breadcrumb i {
    color: #b8c2ca;
    font-size: 8px;
}


/* HERO CONTENT */

.category-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.category-hero .section-label {
    color: #1769aa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.category-hero h1 {
    margin: 9px 0 12px;
    color: #172033;
    font-size: 34px;
    line-height: 1.25;
}

.category-hero p {
    max-width: 600px;
    margin: 0;
    color: #7d8998;
    font-size: 11px;
    line-height: 1.7;
}


/* HERO ICON */

.category-hero-icon {
    width: 90px;
    height: 90px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    background: #e7f2f9;

    color: #1769aa;
    font-size: 34px;
}


/* =====================================================
   CATEGORY SECTION
===================================================== */

.category-section {
    padding: 55px 0 70px;
    background: #ffffff;
}


/* HEADER */

.category-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 30px;
}

.category-section-header .section-label {
    color: #1769aa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.category-section-header h2 {
    margin: 8px 0 7px;
    color: #202c3d;
    font-size: 24px;
}

.category-section-header p {
    margin: 0;
    color: #8995a2;
    font-size: 10px;
}


/* JUMLAH KATEGORI */

.category-count {
    width: 88px;
    height: 84px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce6ed;
    border-radius: 11px;

    background: #ffffff;
}

.category-count strong {
    color: #1769aa;
    font-size: 21px;
    line-height: 1;
}

.category-count span {
    margin-top: 7px;
    color: #8995a2;
    font-size: 8px;
}


/* =====================================================
   CATEGORY GRID
===================================================== */

.category-grid {

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 18px !important;

    width: 100%;

    margin-top: 0;

    visibility: visible !important;

    opacity: 1 !important;
}


/* =====================================================
   CATEGORY CARD
===================================================== */

.category-card {

    min-width: 0;

    min-height: 205px;

    display: flex !important;

    flex-direction: column;

    justify-content: space-between;

    padding: 21px;

    box-sizing: border-box;

    border: 1px solid #e1e8ee;

    border-radius: 12px;

    background: #ffffff;

    text-decoration: none;

    visibility: visible !important;

    opacity: 1 !important;

    box-shadow:
        0 4px 14px rgba(25, 55, 80, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.category-card:hover {

    transform: translateY(-5px);

    border-color: #c7dbe8;

    box-shadow:
        0 12px 28px rgba(25, 55, 80, 0.10);
}


/* =====================================================
   ICON
===================================================== */

.category-icon {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 11px;

    font-size: 19px;
}


/* WARNA ICON */

.category-icon.mathematics {
    background: #edf5fb;
    color: #1769aa;
}

.category-icon.science {
    background: #eef8f1;
    color: #388e5a;
}

.category-icon.indonesia {
    background: #fff0ee;
    color: #d45d4e;
}

.category-icon.english {
    background: #f1effb;
    color: #6d5bb0;
}

.category-icon.social {
    background: #fff7e8;
    color: #c58b2c;
}

.category-icon.informatics {
    background: #edf7f7;
    color: #318889;
}

.category-icon.vocational {
    background: #f3f1ed;
    color: #756b5d;
}

.category-icon.general {
    background: #f1f4f7;
    color: #596b7d;
}


/* =====================================================
   INFO
===================================================== */

.category-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-info h3 {

    margin: 0 0 7px;

    color: #263245;

    font-size: 13px;

    line-height: 1.4;
}


.category-info p {

    min-height: 32px;

    margin: 0 0 15px;

    color: #8b96a3;

    font-size: 9px;

    line-height: 1.6;
}


/* =====================================================
   LINK
===================================================== */

.category-link {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: auto;

    color: #1769aa;

    font-size: 9px;

    font-weight: 700;
}


.category-link i {

    font-size: 8px;

    transition: transform 0.3s ease;
}


.category-card:hover .category-link i {

    transform: translateX(4px);
}


/* =====================================================
   CTA
===================================================== */

.category-cta {

    padding: 0 0 65px;

    background: #ffffff;
}


.category-cta-box {

    min-height: 145px;

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 30px;

    box-sizing: border-box;

    border-radius: 15px;

    background:
        linear-gradient(
            120deg,
            #125589,
            #1769aa
        );
}


.category-cta-icon {

    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255,255,255,0.12);

    color: #ffffff;

    font-size: 20px;
}


.category-cta-content {
    flex: 1;
}


.category-cta-content span {

    color: rgba(255,255,255,0.65);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1.3px;
}


.category-cta-content h2 {

    margin: 5px 0 6px;

    color: #ffffff;

    font-size: 19px;
}


.category-cta-content p {

    margin: 0;

    max-width: 500px;

    color: rgba(255,255,255,0.72);

    font-size: 9px;

    line-height: 1.6;
}


.category-cta-button {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 12px 17px;

    flex-shrink: 0;

    border-radius: 7px;

    background: #ffffff;

    color: #1769aa;

    font-size: 9px;

    font-weight: 700;

    text-decoration: none;

    transition: 0.3s;
}


.category-cta-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0,0,0,0.15);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: #172536;

    color: #ffffff;
}


.footer-container {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 60px;

    padding-top: 45px;

    padding-bottom: 40px;
}


.footer-brand p {

    max-width: 320px;

    margin-top: 15px;

    color: #8795a5;

    font-size: 9px;

    line-height: 1.7;
}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


.footer-links h4 {

    margin: 0 0 5px;

    color: #ffffff;

    font-size: 10px;
}


.footer-links a {

    color: #8795a5;

    font-size: 9px;

    text-decoration: none;

    transition: 0.3s;
}


.footer-links a:hover {
    color: #ffffff;
}


/* FOOTER BOTTOM */

.footer-bottom {

    border-top:
        1px solid rgba(255,255,255,0.08);
}


.footer-bottom .container {

    padding-top: 18px;

    padding-bottom: 18px;
}


.footer-bottom p {

    margin: 0;

    color: #718091;

    font-size: 8px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .category-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


/* =====================================================
   MOBILE
===================================================== */
    .category-hero {

        padding:
            35px 20px 40px;
    }


    .category-hero-content {

        align-items: flex-start;
    }


    .category-hero h1 {
        font-size: 28px;
    }


    .category-hero-icon {

        width: 70px;
        height: 70px;

        font-size: 26px;
    }


    .category-section {

        padding:
            45px 20px 55px;
    }


    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 14px !important;
    }


    .category-cta {

        padding:
            0 20px 45px;
    }


    .category-cta-box {

        flex-direction: column;

        align-items: flex-start;
    }


    .footer-container {

        grid-template-columns:
            1fr 1fr;

        padding-left: 20px;

        padding-right: 20px;

        gap: 35px;
    }


    .footer-brand {

        grid-column:
            1 / -1;
    }




/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .category-hero-content {
        flex-direction: column;
    }


    .category-hero-icon {
        display: none;
    }


    .category-section-header {
        align-items: flex-start;
    }


    .category-count {
        min-width: 70px;
    }


    .category-grid {

        grid-template-columns:
            1fr !important;
    }


    .category-card {
        min-height: 175px;
    }


    .category-cta-box {
        padding: 23px;
    }


    .category-cta-button {

        width: 100%;

        justify-content: center;
    }


    .footer-container {
        grid-template-columns: 1fr;
    }


    .footer-brand {
        grid-column: auto;
    }

}