.latest-post-box {
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.latest-post-image {
  width: 100%;
  height: 265px;
  overflow: hidden;
}

.latest-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.latest-post-image:hover img {
    transform: scale(1.1);
}

.latest-post-content {
    padding: 15px;
}

.latest-post-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
  line-height: 20px;
}

.latest-post-title:hover {
  text-decoration: underline;
  color: #eee;
}

.latest-post-date {
    font-size: 12px;
    font-weight: normal;
    color: #fff;
}
.latest-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media screen and (max-width: 1024px) {
    .latest-post-grid {
        grid-template-columns: 1fr;
    }
}


.latest-post-item {
    display: flex;
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
}

.latest-post-grid-image {
    width: 40%;
    aspect-ratio: 1/1; /* memastikan gambar 1:1 */
    overflow: hidden;
    flex-shrink: 0;
}

.latest-post-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.latest-post-grid-image:hover img {
    transform: scale(1.1);
}

.latest-post-grid-content {
    width: 60%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-post-grid-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
}

.latest-post-grid-title:hover {
    text-decoration: underline;
}

.latest-post-grid-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.latest-post-grid-readmore {
    font-size: 12px;
    color: #0073aa;
    text-decoration: none;
    margin-top: auto;
}

.latest-post-grid-readmore:hover {
    text-decoration: underline;
}

.latest-post-pagination {
    margin-top: 30px;
    text-align: center;
}

.latest-post-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.latest-post-pagination .page-numbers:hover,
.latest-post-pagination .current {
    background: #0073aa;
    color: #fff;
}
