.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px;
    width: 100%;
}
.custom-grid-item {
    width: 100%;
}
.custom-card {
    display: flex;
    flex-direction: column;
    color: rgb(48, 48, 48);
    border-radius: 10px;
    height: 600px;
    transition: all 0.2s ease-in-out;
}
.custom-card:hover {
    box-shadow: 2px 4px 10px rgb(48, 48, 48);
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}
.custom-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
}
.custom-image {
    width: 100%;
    transition: all 0.2s ease-in-out;
}
.custom-tag {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, 50%);
    padding: 20px 20px 20px 20px;
}
.custom-card-sub {
    padding: 20px 20px 10px 20px;
    display: grid;
    grid-template-columns: repeat(2, 50%);
    width: 100%;
}
.custom-card-title {
    font-size: 22px;
    font-weight: bold;
    padding: 0px 20px 0px 20px;
    color: rgb(48, 48, 48);
}
.custom-card-title:hover {
    color: rgb(75, 75, 249);
    text-decoration: underline;
}
.custom-card-desc {
    padding: 0px 20px 0px 20px;
}
.custom-tag-item {
    font-size: 12px;
    font-weight: bold;
}
.custom-viewer {
    display: flex;
    justify-content: end;
}
.custom-card-image:hover .custom-image {
    filter: brightness(30%);
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}
.custom-card-image:hover .custom-card-button {
    position: absolute;
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.3s ease-in-out;
}
.custom-card-button:hover {
    background-color: white;
    color: rgb(48, 48, 48);
    transition: all 0.1s ease-in-out;
}
.custom-card-button {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    color: white;
    border: 2px solid white;
    padding: 8px;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.4s ease-in-out;
}

/* Detail Post page style */
.shared-button-container {
    display: flex;
    flex-direction: column;
    position: sticky;
    gap: 10px;
    left: 65px;
    top: 100px;
}
.custom-shared-btn {
    font-size: 30px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}
.custom-shared-btn:hover {
    color: white;
    transform: scale(1.1);
}
.custom-background-fb {
    background-color: #4267B2;
    color: white;
}
.custom-background-twitter {
    background-color: #1DA1F2;
    color: white;
}
.custom-background-wa {
    background-color: #25d366;
    color: white;
}
.article-container {
    padding: 40px 150px 40px 150px;
    background-color: rgb(27, 27, 27);
    color: white;
}
.article-image-container {
    border-radius: 10px;
}
.article-category {
    background-color: rgb(5, 5, 5);
    width: 80px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}
.article-title {
    font-size: 2rem;
    font-weight: bold;
}
.article-tag {
    font-size: 20px;
}
.article-content {
    padding: 40px 150px 40px 150px;
}
.article-populer-image {
    width: 50%;
}
.article-right-tag {
    float: right;
}
.related-post {
    padding: 40px 50px 40px 50px;
}
.related-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px;
}
.related-image {
    width: 100%;
}
.related-image-container {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 10px;
}
.related-title {
    font-size: 20px;
    color: black;
    font-weight: bold;
}
.related-isi {
    font-size: 10px;
}
@media only screen and (max-width: 600px) {
    .article-container {
        padding: 20px 0px 20px 0px;
        text-align: center;
    }
    .article-category-container {
        display: flex;
        justify-content: center;
    }
    .article-title {
        font-size: 20px;
    }
    .article-tag .article-right-tag {
        font-size: 15px;
        float: none;
    }
    .article-content {
        padding: 20px 10px 20px 10px;
    }
    .shared-button-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}
