/* Modern Latest News Section - exactly matching the design in the image */

.latest-news-modern {
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.latest-news-modern .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.latest-news-title {
    font-size: 40px;
    font-weight: 700;
    color: #751116 ;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    text-align: center;
}

.news-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card-modern {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 1.7 / 1;
    position: relative;
    background-color: #f1f1f1;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Red background for the news image - exact match to the image */
.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #BD1921;
    z-index: -1;
}

.news-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;

}

.news-card-footer {
    margin-top: auto;
    padding-top: 0.5rem;
}

.news-read-more-btn {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: color 0.2s ease;
    position: relative;
}

.news-read-more-btn:hover {
    color: #BD1921;
}

/* Special hero logo pattern on the image - like in the reference image */
.news-card-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 2;
}

.view-all-news-btn {
    display: inline-block;
    background-color: #F0AD4E;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 2.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-all-news-btn:hover {
    background-color: #ec971f;
    transform: translateY(-2px);
}

.view-all-news-container {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .news-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .latest-news-title {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .news-cards-container {
        grid-template-columns: 1fr;
    }
    
    .latest-news-title {
        font-size: 1.75rem;
    }
}
