:root {
    --primary-color: #1b5e20;
    --text-main: #2c3e50;
    --card-bg: #ffffff;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.06);
    --radius-md: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fbf9;
    color: var(--text-main);
    line-height: 1.7;
}

/* Container */
.news-container {
    width: 88%;
    max-width: 900px;
    margin: 2.5em auto;
}

/* News Article Wrapper */
.news-article {
    background-color: var(--card-bg);
    padding: 2.5em;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* Title Section */
.news-title {
    font-size: 2.2rem;
    color: #1a252f;
    line-height: 1.3;
    margin-bottom: 0.8em;
}

/* Description Section */
.news-description {
    font-size: 1.05rem;
    margin-bottom: 2em;
}

.news-description p {
    margin-bottom: 1.2em;
}

/* Responsive Image Gallery Grid */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1em;
    margin-top: 1.5em;
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
    opacity: 0.92;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.2s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #cccccc;
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Layout */
@media screen and (max-width: 768px) {
    .news-container {
        width: 92%;
        margin: 1.5em auto;
    }

    .news-article {
        padding: 1.5em;
    }

    .news-title {
        font-size: 1.6rem;
    }

    .news-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .gallery-img {
        height: 130px;
    }
}