
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #f0f2ff;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.2s ease;
}

.news-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-header {
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0 0 10px 0;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* ---------------------- */
/*   FIXED: FULL IMAGE    */
/* ---------------------- */
.news-image-container {
    width: 100%;
    height: auto;       /* FULL height auto */
    overflow: hidden;
    position: relative;
}

.news-image {
    width: 100%;
    height: auto;       /* FULL image shown */
    object-fit: contain; /* No cropping */
    display: block;
}
/* ---------------------- */
.news-date-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(67, 97, 238, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more {
    font-size: 0.8rem;
    padding: 6px 12px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    align-self: flex-start;
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--primary-dark);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 2rem;
    color: var(--gray);
    margin-bottom: 15px;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-container {
        padding: 25px 15px;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }
}