/* =========================================
   CARD SECTION
========================================= */

.card-section {
    width: 100%;
    max-width: 100%;
    padding: 30px 0px 20px 0px;
    box-sizing: border-box;
    /* padding: 304px 0 0; */
}


/* =========================================
   ROW
========================================= */

.card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;

    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;

    box-sizing: border-box;
}


/* =========================================
   COLUMN
   Semua col mempunyai tinggi yang sama
========================================= */

.card-column {
    display: flex;
    align-items: stretch;

    margin-bottom: 20px;

    box-sizing: border-box;

    max-width: 100%;
}

.card-columns {
    display: flex;
    align-items: stretch;

    margin-bottom: 20px;

    box-sizing: border-box;

    max-width: 100%;
}


/* =========================================
   CARD
========================================= */

.custom-card {

    position: relative;

    width: 100%;
    max-width: 100%;

    /*
       Tinggi minimum.
       Karena column menggunakan flex stretch,
       semua card dalam satu row akan mengikuti
       tinggi card yang paling tinggi.
    */
    min-height: 170px;

    height: 100%;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #e7ebef;

    border-radius: 16px;

    padding: 13px;

    cursor: pointer;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease,
        background .3s ease;
}


/* =========================================
   CARD HOVER
========================================= */

.custom-card:hover {

    transform: translateY(-5px);

    background: #ffffff;

    border-color: #dfe4e9;

    box-shadow:
        0 12px 28px rgba(32, 45, 60, 0.10);
}


/* =========================================
   TOP
========================================= */

.card-top {

    width: 100%;
    max-width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 9px;

    box-sizing: border-box;
}


/* =========================================
   ICON
========================================= */

.card-icon {

    width: 32px;
    height: 32px;

    min-width: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f0f3f5;

    color: #555d66;

    border: 1px solid #e8ecef;

    border-radius: 9px;

    font-size: 14px;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}


.custom-card:hover .card-icon {

    background: #e9edf0;

    transform: scale(1.05);
}


/* =========================================
   CHECK ICON
========================================= */

.card-check {

    width: 22px;
    height: 22px;

    min-width: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f4f6f7;

    color: #70777e;

    border: 1px solid #e9edef;

    border-radius: 50%;

    font-size: 10px;

    transition:
        background .3s ease,
        color .3s ease;
}


.custom-card:hover .card-check {

    background: #eceff1;

    color: #444b52;
}


/* =========================================
   TITLE
========================================= */

.card-title {

    margin: 0;

    color: #30343b;

    font-size: 15px;

    line-height: 18px;

    font-weight: 600;

    letter-spacing: -0.2px;

    max-width: 100%;

    word-wrap: break-word;

    overflow-wrap: break-word;
}


/* =========================================
   DESCRIPTION
========================================= */

.card-description {

    margin-top: 7px;

    margin-bottom: 10px;

    color: #969da4;

    font-size: 8.5px;

    line-height: 12px;

    font-weight: 400;

    /*
       Tinggi description dibuat konsisten
       sehingga tombol berada pada posisi
       yang sama.
    */
    min-height: 36px;

    max-height: 36px;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

    max-width: 100%;

    word-wrap: break-word;

    overflow-wrap: break-word;
}


/* =========================================
   BUTTON
========================================= */

.card-button {

    width: 100%;
    max-width: 100%;

    height: 27px;

    min-height: 27px;

    margin-top: auto;

    padding: 0 10px;

    border: 1px solid #e7eaed;

    border-radius: 20px;

    background: #f3f5f6;

    color: #555c63;

    font-size: 8px;

    font-weight: 500;

    letter-spacing: .1px;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;

    box-sizing: border-box;
}


.card-button:hover {

    background: #e9ecef;

    border-color: #dfe3e6;
}


/* =========================================
   GLOBAL OVERFLOW FIX
========================================= */


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {


    /* -----------------------------------------
       CARD SECTION
    ----------------------------------------- */

    .card-section {

        width: 100%;
        max-width: 100%;

        padding: 20px 8px;

        box-sizing: border-box;
    }


    /* -----------------------------------------
       ROW
    ----------------------------------------- */

    .card-row {

        width: 100%;
        max-width: 100%;

        margin-left: 0 !important;
        margin-right: 0 !important;

        align-items: stretch;

        box-sizing: border-box;
    }


    /* -----------------------------------------
       COLUMN
    ----------------------------------------- */

    .card-column {

        padding-left: 5px;
        padding-right: 5px;

        margin-bottom: 10px;

        display: flex;

        align-items: stretch;

        box-sizing: border-box;

        max-width: 100%;
    }


    /* -----------------------------------------
       CARD
    ----------------------------------------- */

    .custom-card {

        width: 100%;
        max-width: 100%;

        min-height: 170px;

        height: 100%;

        padding: 11px;

        border-radius: 14px;

        box-sizing: border-box;
    }


    /* -----------------------------------------
       CARD TOP
    ----------------------------------------- */

    .card-top {

        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }


    /* -----------------------------------------
       TITLE
    ----------------------------------------- */

    .card-title {

        font-size: 14px;

        line-height: 17px;

        max-width: 100%;
    }


    /* -----------------------------------------
       DESCRIPTION
    ----------------------------------------- */

    .card-description {

        font-size: 8px;

        line-height: 11px;

        min-height: 33px;

        max-height: 33px;

        max-width: 100%;
    }


    /* -----------------------------------------
       BUTTON
    ----------------------------------------- */

    .card-button {

        width: 100%;
        max-width: 100%;

        height: 26px;

        min-height: 26px;

        font-size: 8px;
    }

}


/* =========================================
   SMALL MOBILE
   360px ke bawah
========================================= */

@media (max-width: 380px) {

    .card-section {

        padding-left: 5px;
        padding-right: 5px;
    }


    .card-column {

        padding-left: 4px;
        padding-right: 4px;
    }


    .custom-card {

        padding: 10px;

        border-radius: 13px;
    }


    .card-title {

        font-size: 13px;

        line-height: 16px;
    }


    .card-description {

        font-size: 7.5px;

        line-height: 10px;

        min-height: 30px;

        max-height: 30px;
    }


    .card-button {

        font-size: 7.5px;

        height: 25px;

        min-height: 25px;
    }

}






