/* ======================================================= */
/* ====== EXACT NEWS SECTION CSS ========================= */
/* ======================================================= */

.news-section {
    background-color: white;
    padding: 5rem 0; /* py-20 */
}

.news-container {
    /* width: 100%; */
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
}

/* --- Section Title --- */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem; /* mb-12 */
}
.news-section-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    text-transform: capitalize;
    position: relative;
    display: inline-block;
}
.title-underline {
    position: absolute;
    bottom: -0.5rem; /* -bottom-2 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px; /* h-0.5 */
    background-color: #2563eb; /* bg-blue-600 */
}

/* --- News Header & View All Link --- */
.news-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem; /* p-4 equivalent space */
}
.view-all-link {
    color: #3b82f6; /* link-primary */
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s ease-in-out;
}
.view-all-link:hover {
    text-decoration: underline;
}

/* --- News Grid Layout --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 2rem; /* gap-8 */
}
@media (min-width: 640px) { /* sm:grid-cols-2 */
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) { /* lg:grid-cols-4 */
    .news-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --- News Card Styling --- */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Ensures the whole area is clickable */
}

.news-card {
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.news-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /* hover:shadow-xl */
    transform: translateY(-0.5rem); /* hover:-translate-y-2 */
}

.news-card-image {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover;
}

.news-card-content {
    padding: 1.25rem; /* p-5 */
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 0.5rem; /* mb-2 */
}

.news-card-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 0.5rem; /* mb-2 */
    transition: color 0.3s ease-in-out;
}
/* This replicates the "group-hover" effect */
.news-card:hover .news-card-title {
    color: #2563eb; /* group-hover:text-blue-600 */
}

.news-card-description {
    color: #4b5563; /* text-gray-600 */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.625; /* leading-relaxed */
}

/* --- No News Message --- */
.no-news-found {
    text-align: center;
    color: #6b7280;
    padding: 4rem 0;
}