/* Main background overlay (transparent green overlay) */
.main-background-overlay {
    background-color: rgba(138, 141, 62, 0.5); /* Transparent lighter green */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* News Page Container */
.news-container {
    padding: 50px 20px;
    background: transparent; /* Keep the background transparent to see the overlay */
}

/* News Header Image */
.news-header {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%; /* Adjust the width to make it smaller */
    height: auto;
    max-width: 600px;
    margin-bottom: 30px;
}

/* News Post Section */
.news-post {
    display: flex;
    align-items: flex-start;  /* Align text to the top */
    background: rgb(255, 234, 165);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* News Post without Image (default box) */
.news-post.no-image {
    display: block;
}

/* News Post with Image - Layout using two separate sections */
.news-post.with-image {
    display: flex;
    justify-content: space-between;
    flex-direction: row; /* Image and text side by side */
}

.news-text {
    flex: 1;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Align the text to the top */
}

.news-post h2 {
    font-size: 1.8rem;
    color: rgb(88, 72, 60);
}

.news-date {
    font-size: 1rem;
    color: rgba(138 ,141, 62, 1);
    margin-bottom: 10px;
}

/* Image Section - separate section for the image */
.news-image-section {
    width: 30%; /* Image box width */
    flex-shrink: 0;
    position: relative;
}

.news-image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Optional Responsive Adjustments */
@media (max-width: 768px) {
    .news-post.with-image {
        flex-direction: column;
        text-align: center;
    }

    .news-image-section img {
        max-width: 70%;
        margin-top: 20px;
    }
}

