.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin: 3rem 0 1.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--teal); 
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    width: 100%;
    padding: 1.5em;
    margin: 0 auto 3em;
    background-color: var(--yellow);
    border-radius: 0.8em;
    box-sizing: border-box;
}

.news-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 24vh;
    background-color: var(--teal);
    background-size: cover;
    background-position: center;
    border-radius: 0.8em;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.news-1 {
    grid-column: span 2;
    grid-row: span 2;
    height: 50vh;
}

.news-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    z-index: 2;
}

.news-item h3,
.news-item h6 {
    margin: 0.3rem 0;
    font-weight: bold;
    color: var(--white);
}

.news-item h3 {
    font-size: 1.1rem;
}

.news-item h6 {
    font-size: 1rem;
}

.news-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--white);
}

/* --- Responsive Layouts --- */

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

    .news-1 {
        grid-column: span 2;
        grid-row: span 1;
        height: 42vh;
    }

    .news-item {
        height: 28vh;
    }

    .news-item:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .news-grid-container {
        grid-template-columns: 1fr;
    }

    .news-1 {
        grid-column: span 1;
        grid-row: span 1;
        height: 36vh;
    }

    .news-item {
        height: 20vh;
    }
}
