/* ===============================
   News Container
================================= */

.news-container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 20px;
}

/* ===============================
   Header
================================= */

.news-header {
    margin-bottom: 40px;
}

.news-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.news-subtitle {
    color: #777;
    font-size: 0.95rem;
}

/* ===============================
   Featured News
================================= */

.featured-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 50px;
    background: var(--white);
    transition: 0.35s ease;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}

.featured-news:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.featured-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.featured-news:hover img {
    transform: scale(1.05);
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-badge {
    background: var(--primary);
    color: var(--white);
    padding: 5px 14px;
    font-size: 0.75rem;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 15px;
    font-weight: 600;
}

.featured-content h2 {
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-content p {
    margin-bottom: 20px;
    color: #666;
}

.featured-content .btn {
    width: fit-content;
}

/* ===============================
   News Grid
================================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===============================
   News Card
================================= */

.news-card {
    display: block;
    background: var(--white);
    overflow: hidden;
    transition: 0.35s ease;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    position: relative;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Image */

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.4s;
}

.news-card:hover img {
    transform: scale(1.08);
}

/* Content */

.news-content {
    padding: 18px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.news-content h3 {
    margin: 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Read More */

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
    transition: 0.3s;
}

.news-card:hover .read-more {
    color: var(--primary-hover);
}

/* ===============================
   Hover Overlay Effect (Optional Premium)
================================= */

.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: 0.3s;
}

.news-card:hover::after {
    opacity: 1;
}

/* ===============================
   Responsive
================================= */

@media (max-width: 992px) {

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-news {
        grid-template-columns: 1fr;
    }

    .featured-news img {
        height: 300px;
    }
}

@media (max-width: 600px) {

    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .featured-content {
        padding: 20px;
    }

    .news-card img {
        height: 180px;
    }
}
