* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    min-height: 100vh;
}

.news-container {
    flex: 1;
}
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px; /* 🔥 bottom space fix */
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.news-header h1 {
    font-size: 36px;
    color: #1D4ED8;
    margin-bottom: 10px;
}

.news-header p {
    font-size: 16px;
    color: #666;
}

a {
    text-decoration: none;
    color: inherit;
}
/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}



/* CARD FIX */
.news-card {
    background: white;
    border-radius: 12px;
    /* overflow: hidden; */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    cursor: pointer;

    /* 🔥 IMPORTANT FIX */
    display: flex;
    flex-direction: column;
}

.news-card{
    background:white;
    border-radius:12px;
    /* overflow:hidden; */
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
    cursor:pointer;
}

.news-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}
.card-image {
    width: 100%;
    height: 200px;
    /* overflow: hidden; */
    background: #e0e0e0;
}



.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 50px;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: #1D4ED8;
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    /* overflow: hidden; */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.date {
    color: #999;
    font-size: 13px;
}

.btn-read-more {
    background: #F59E0B;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-read-more:hover {
    background: #b57508;
}

.no-posts {
    background: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 18px;
}

@media (max-width: 768px) {
    .news-container {
        padding: 20px;
    }

    .news-header h1 {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/*News*/

.pagination {
    text-align: center !important;
    margin-top: 20px !important;
    white-space: nowrap !important;
}

.pagination a {
    display: inline-block !important;
    margin: 0 5px !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    background: #f0f0f0 !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
}

.pagination a:hover {
    background: #1D4ED8 !important;
    color: white !important;
}

.pagination a.active {
    background: #F59E0B !important;
    color: white !important;
}

.pagination .dots {
    display: inline-block !important;
    margin: 0 5px !important;
    color: #888 !important;
}
