/* Post Grid Container */
.epg-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', Tahoma, Arial, sans-serif;
}

/* Header row with search */
.epg-header-row {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
}

.epg-search-form {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.epg-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.epg-search-input:focus {
    border-color: #c61d23;
}

.epg-search-btn {
    background-color: #c61d23;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.epg-search-btn:hover {
    background-color: #a0151b;
}

/* Category Badge */
.epg-category-badge {
    display: inline-block;
    background-color: #0f172a;
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 30px;
}

/* Grid Layout */
.epg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Post Card */
.epg-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.epg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.epg-card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.epg-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.epg-card:hover .epg-card-img-wrap img {
    transform: scale(1.05);
}

.epg-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.epg-card-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.epg-card-title {
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.epg-card-footer {
    margin-top: auto;
    font-size: 20px;
    color: #94a3b8;
}

.epg-card:hover .epg-card-footer {
    color: #c61d23;
}

/* Pagination */
.epg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.epg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.epg-pagination .page-numbers:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.epg-pagination .page-numbers.current {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Responsive */
@media (max-width: 1024px) {
    .epg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .epg-post-grid-wrapper {
        padding: 40px 16px !important;
    }
    .epg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .epg-search-form {
        max-width: 100%;
    }
    .epg-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .epg-post-grid-wrapper {
        padding: 28px 12px !important;
    }
    .epg-card-content {
        padding: 18px;
    }
    .epg-card-title {
        font-size: 15.5px;
        line-height: 1.35;
    }
}


