.container {
    max-width: 1100px;
    padding: 0px 20px;
    margin: auto;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.category-artikel {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 2px 20px;
    border-radius: 5px;
    color: white;
    margin: 0.5rem 0rem;
}

.date-artikel {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 2px 20px;
    border-radius: 5px;
    color: white;
    background-color: orange;
    margin: 0.5rem 0rem;
}

/* ====== Preloader ====== */
.preloader {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
}

.preloader>div:nth-child(1) {
    width: 4rem;
    height: 4rem;
    border: 3px solid #8193F2;
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.preloader>div:nth-child(2) {
    margin-top: 3rem;
    font-size: 2rem;
    font-weight: 400;
    color: #8193F2;
    letter-spacing: 2px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =====
SHOWCASE
===== */

.showcase {
    position: relative;
    color: white;
    height: 60vh;
}

.bg-img {
    position: absolute;
    z-index: -1;
    height: 60vh;
    width: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}

.showcase::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.showcase .container {
    height: inherit;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
}

.showcase .text-content {
    position: relative;
    padding: 0px 30px;
}

.showcase .text-content h1 {
    text-transform: uppercase;
    font-size: 1.6rem;
    margin: 10px 0px;
    letter-spacing: 1px;
}

.showcase .text-content p:nth-child(3) {
    text-align: justify;
}

.showcase .text-content a {
    text-decoration: none;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 400;
    display: inline-block;
    color: white;
    letter-spacing: 1px;
    background-color: #8193F2;
    margin-top: 10px;
    transition: .3s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    border-radius: 2px;
}

.showcase .text-content a:hover {
    background-color: #fff;
    color: #333 !important;
    transform: translateX(5px);
}

/* =====
ARTICLES
===== */

.editor-h1 {
    font-size: 1.6rem;
    margin: 1rem 0rem;
    letter-spacing: 1px;
}

.body-card-artikel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Tata letak grid responsif */
    grid-gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card-custom-artikel {
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    transition: .3s;
    border: 1px solid transparent;
    max-width: 100%;
    max-height: 400px;
    height: 100%;
    width: 100%;
}

.card-custom-artikel:first-child,
.card-custom-artikel:last-child {
    grid-column: 1 / span 2;
}

.card-custom-artikel:last-child {
    grid-column: 2 / span 2;
}

.card-custom-artikel a {
    text-decoration: none;
    color: #333;
}

.card-custom-artikel a img {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    overflow: hidden;
}

.card-custom-artikel:hover {
    transform: translateY(-10px);
    border: 1px solid #8193F2;
}

#judul-artikel {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
#content-artikel {
    font-size: 15px;
    color: #333;
}


/* .body-card-artikel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: #000;
}


.body-card-artikel .card-custom-artikel {
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    transition: .3s;
    border: 1px solid transparent;
    max-width: 400px;
    max-height: 400px;
    height: 100%;
    width: 100%;
}

.body-card-artikel .card-custom-artikel a {
    text-decoration: none;
    color: #333;
}

.body-card-artikel .card-custom-artikel a img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.body-card-artikel a {
    text-decoration: none;
    color: #333;
}

.body-card-artikel .card-custom-artikel:hover {
    transform: translateY(-10px);
    border: 1px solid #8193F2;
} */



/* .card-custom {
    background: coral;
}

.card-custom img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    opacity: 0;
}
.card-custom article
{
    background: #000;
} */

/* .articles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1rem;
    background: #000;
}

article p:nth-child(4) {
    font-size: 15px;
}

.articles a {
    color: #333;
    text-decoration: none;
    width: 100%;
    max-height: 500px;
    height: 100%;
    background: crimson;
}

.articles>a:nth-child(1),
.articles>a:last-child {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    grid-column: 1 / span 2;
    align-items: center;
}

.articles>a:last-child {
    grid-column: 2 / span 2;
}

.articles>a:nth-child(2) {
    background-color: #333;
    color: white;
}

.articles>a:nth-child(6) {
    background-color: #8193F2;
    color: white;
}

.card {
    background-color: white;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    transition: .3s;
} */

/* .card:hover {
    box-shadow: #8193F2 0px 1px 3px 0px, #8193F2 0px 0px 0px 1px;
    transform: translateY(-5px);
} */

/* =========
ARTICLE PAGE
==========*/

.article-page {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    grid-gap: 1.5rem;
    margin: 1.7rem 0rem;
    width: 100%;
    background: #fff;

}

.article-page article {
    padding: 1rem;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    max-width: 700px;
    overflow-wrap: break-word;
}

.article-page article p,
.article-page article span {
    text-align: justify;
}

.article-page article img {
    width: 100%;
    border-radius: 10px;
}

.article-page>*:first-child {
    grid-row: 1 / span 3;
}

.article-page>*:first-child>*:nth-child(3) {
    background: #f5f5f5;
    padding: 0.4rem 1rem;
    margin: 0.7rem 0rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
}

.article-page>*:first-child>*:nth-child(3) i {
    margin-right: 0.5rem;
}

#admin {
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-page ul {
    list-style-position: inside;
    list-style-type: "-    ";
}

.article-page ul li {
    padding: 0.5rem 0rem;
    border-bottom: 1px dotted black;
}

/*  */
.card-more {
    gap: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-more a {
    text-decoration: none;
    color: #333;
}

.card-artikel-more {
    background: #fff;
    height: auto;
    width: 100%;
    border-radius: 10px;
    padding: 10px;
    transition: .3s;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}

.imgBox {
    height: 200px;
    width: 300px;
    overflow: hidden;
    border-radius: 5px;
}

.imgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.titleBox {
    height: 100px;
    overflow: hidden;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.titleBox span:nth-child(1) {
    font-weight: 500;
}

.titleBox span:nth-child(3) {
    color: #333;
    font-weight: 300;
}

.titleBox span:nth-child(3) span {
    opacity: 0;
    transition: .3s;
    position: relative;
    left: -10px;
}

.card-artikel-more:hover,
.card-artikel-more:hover .titleBox span:nth-child(3) span {
    transform: translateY(-5px);
    opacity: 1;
    left: 0;
}

.card-artikel-more:hover {
    box-shadow: #8193F2 0px 1px 3px 0px, #8193F2 0px 0px 0px 1px;
}



/* =======
FOR TABLET
======= */

@media (max-width: 900px) {

    /* =====
    SHOWCASE
    ===== */
    .showcase .container {
        grid-template-columns: 1fr;
    }

    /* =====
    ARTICLES
    ===== */
    /* .articles {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .articles>a:nth-child(1),
    .articles>a:last-child {
        display: block;
        grid-column: 1 / span 1;
    }

    .articles>a:last-child {
        grid-column: 1 / span 1;
    } */
}

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

@media (max-width: 700px) {

    /* =====
    SHOWCASE
    ===== */
    .showcase {
        height: 80vh;
        text-align: center;
    }

    .showcase .text-content p:nth-child(3) {
        text-align: center;
    }

    /* =====
    ARTICLES
    ===== */
    /* .articles {
        grid-template-columns: 1fr;
    } */

    /* =========
    ARTICLE PAGE
    ==========*/
    /* .article-page {
        grid-template-columns: 1fr;
        text-align: justify;
    }

    .article-page>*:first-child>*:nth-child(3) {
        flex-direction: column;
    }

    #admin {
        font-size: 15px;
    } */
}
