/* RNF Post Grid — rnf-grid.css v2.0.0 */

.rnf-grid {
    font-family: 'DM Sans', sans-serif;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 30px;
    width: 100%;
}

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

@media (max-width: 640px) {
    .rnf-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Card */
.rnf-card {
    display: flex;
    flex-direction: column;
}

/* Image */
.rnf-card__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
}

.rnf-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rnf-card__img:hover img {
    transform: scale(1.04);
}

/* Title */
.rnf-card__title {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1A1B1D;
    line-height: 1.3;
    margin: 10px 0 0;
}

.rnf-card__title a {
    color: inherit;
    text-decoration: none;
}

.rnf-card__title a:hover {
    color: #0E214D;
}

/* Date */
.rnf-card__date {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #0E214D;
    font-weight: 400;
    margin-top: 10px;
}

/* Load More */
.rnf-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.rnf-load-more-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #0E214D;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    cursor: pointer;
    transition: background 0.2s;
}

.rnf-load-more-btn:hover {
    background: #1A1B1D;
}

.rnf-load-more-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Pagination */
.rnf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 64px;
    font-family: 'DM Sans', sans-serif;
    flex-wrap: nowrap;
}

.rnf-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1A1B1D;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.rnf-page-btn:hover {
    background: #0E214D;
    color: #fff;
    border-color: #0E214D;
}

.rnf-page-active {
    background: #0E214D;
    color: #fff !important;
    border-color: #0E214D;
    pointer-events: none;
}

.rnf-page-arrow {
    font-size: 16px;
}

.rnf-page-dots {
    font-size: 14px;
    color: #999;
    padding: 0 2px;
    flex-shrink: 0;
}

/* Mobile pagination */
@media (max-width: 640px) {
    .rnf-pagination {
        gap: 3px;
        margin-top: 48px;
    }
    .rnf-page-btn {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 12px;
    }
}

/* No posts */
.rnf-no-posts {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 60px 0;
}
