*, *::before, *::after {
    box-sizing: border-box;
}


.wrapper {
    width: 100%;
    margin-top: 30px;
}

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

h2 {
    color: var(--dark-blue-color);
    font-size: 40px;
    font-weight: 800;
    border-bottom: 3px solid var(--orange-color);
    width: fit-content;
    margin-bottom: 50px;
}

.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 50px;
    margin-bottom: 120px;
    width: 100%;
}

.sub-container {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 5px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%; 
    min-height: 550px; 
    position: relative;
    transition: 0.3s all ease-in-out;
}

.sub-container:hover {
    background-color: #F5F5F5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transform: translateY(-5px); 
}

.picture-cat {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 2px solid grey;
    margin-bottom: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

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

.teks-cat, .penulis-cat {
    padding: 0 20px; 
}

.teks-cat h3 {
    color: var(--dark-blue-color);
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
    min-height: 50px; 
}

.teks-cat p {
    color: var(--dark-blue-color);
    font-size: 14px;
    line-height: 1.5;
}

.penulis-cat {
    margin-top: auto;
    margin-bottom: 60px;
    color: grey;
    font-size: 12px;
}

.penulis-cat p{
    margin: 0;
}

.continue-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 0;
    margin: 0;
}

.continue-btn button {
    background-color: transparent;
    height: 40px;
    width: 140px;
    border: 2px solid var(--orange-color);
    border-radius: 4px;
    cursor: pointer;
}

.continue-btn a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--orange-color);
    font-weight: 700;
    font-size: 14px;
}

.continue-btn button:hover {
    background-color: var(--orange-color);
}

.continue-btn button:hover a {
    color: white;
}

@media (max-width: 1024px) {
    .row {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr; 
    }
    
    .container {
        padding: 0 15px;
    }

    .sub-container {
        min-height: auto;
    }
    
    .continue-btn {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex;
        justify-content: flex-end;
        padding-right: 20px;
    }
    
    .penulis-cat {
        margin-bottom: 0;
    }
}