.news-section {
    --primary-color: #0056b3;
    --primary-color-hover: #004494;
    --text-color-dark: #212529;
    --text-color-light: #6c757d;
    --border-color: #dee2e6;
    --background-color: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
    --card-border-radius: 12px;
    --font-family: 'Public Sans', sans-serif;

    font-family: var(--font-family);
    background-color: #f1f3f5;
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 22px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    text-align: left;
}

.page-header h3 {
    font-weight: bold;
    color: var(--text-color-dark);
    font-size: 22px;
}

.page-header small {
    font-weight: 400;
    color: var(--text-color-light);
    font-size: 16px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card {
    background-color: var(--background-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.news-card {
    height: 480px;
}

.img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    border-top-left-radius: var(--card-border-radius);
    border-top-right-radius: var(--card-border-radius);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .img-container img {
    transform: scale(1.08);
}

.caption {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-source {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.6px;
}

.caption h4 {
    margin: 0 0 12px 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caption h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card:hover h4 a {
    color: var(--primary-color);
}

.news-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color-light);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 15px;
    align-self: flex-start;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
