.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Adjust gap between columns */
    justify-content: space-between; /* Distributes items evenly */
}

.news-item {
    box-shadow: 0 0 10px 0 rgba(0,0,0,.15);
    flex: 1 1 calc(33.333% - 20px); /* 3 columns layout */
    box-sizing: border-box; /* Includes padding and borders in size */
    background: #fff; /* Optional: Adds a white background */
    border: 1px solid #ddd; /* Optional: Adds a border for distinction */
    border-radius: 3px; /* Optional: Adds rounded corners */
    overflow: hidden; /* Prevents content overflow */
}

.news-thumbnail {
    height: 220px;
    background-color: #e0e0e0; /* Light gray for posts without thumbnails */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s ease; /* Smooth transition for hover */
    position: relative;
    border-radius: 3px;
    z-index: 0;
}

.news-thumbnail:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    z-index: -1;
}

.news-thumbnail.has-thumbnail {
    background-color: transparent; /* Remove gray background if thumbnail is present */
}

.news-date {
    color: var( --e-global-color-ab8f73d );
    font-family: var( --e-global-typography-accent-font-family ), Sans-serif;
    font-size: var( --e-global-typography-accent-font-size );
    font-weight: var( --e-global-typography-accent-font-weight );
    position: absolute;
    right: 10px;
    top: 10px;
}

.news-categories {
    display: inline-block;
    padding: 2px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    position: absolute;
    top: 10px;
    left: 10px;
    text-transform: uppercase;
    background-color: var( --e-global-color-accent );
    font-family: var( --e-global-typography-accent-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-accent-font-weight );
}

.news-content {
    text-align: center;
    padding: 15px;
    padding-bottom: 30px;
}

.news-content h3 {
    font-family: var( --e-global-typography-8b5173e-font-family ), Sans-serif;
    font-size: var( --e-global-typography-8b5173e-font-size );
    font-weight: var( --e-global-typography-8b5173e-font-weight );
    line-height: var( --e-global-typography-8b5173e-line-height );
}

.news-content h3 a {
    color: var( --e-global-color-secondary );
}

.news-content .btn-read-more {
    background-color: #6D081B;
    width: 200px;
    padding: 10px 20px;
    border-radius: 30px;
    display: block;
    margin: auto;
    text-align: center;
    text-transform: uppercase;
    font-family: var( --e-global-typography-accent-font-family ), Sans-serif;
    font-size: var( --e-global-typography-accent-font-size );
    font-weight: var( --e-global-typography-accent-font-weight );
    color: var( --e-global-color-ab8f73d );
}

.btn-load-more-news {
    background-color: #273543!important;
    width: 200px;
    padding: 10px 20px!important;
    border-radius: 30px!important;
    display: block;
    margin: 50px auto;
    text-align: center;
    text-transform: uppercase;
    border-color: #273543!important;
    font-family: var( --e-global-typography-accent-font-family ), Sans-serif!important;
    font-size: var( --e-global-typography-accent-font-size )!important;
    font-weight: var( --e-global-typography-accent-font-weight )!important;
    color: var( --e-global-color-ab8f73d )!important;
}

/* Tablet Responsive Design (2 columns) */
@media screen and (max-width: 1024px) {
    .news-item {
        flex: 1 1 calc(50% - 20px); /* Adjust for 2 columns layout */
    }
}

/* Mobile Responsive Design (1 column) */
@media screen and (max-width: 768px) {
    .news-item {
        flex: 1 1 100%; /* Full width for smaller screens */
    }
}