/* ==========================================================================
   NEWS SECTION — Homepage Preview
   ========================================================================== */

.hp-news-section {
    margin-bottom: 100px;
}

/* Grid: large card left, 4 small cards right */
.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}

.right-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Card base ── */
.news-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 6px 28px rgba(33, 40, 66, 0.08);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(33, 40, 66, 0.18);
}

/* Shimmer sweep across card on hover */
.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.07),
            transparent);
    transform: skewX(-18deg);
    z-index: 3;
    pointer-events: none;
}

.news-card:hover::after {
    animation: newsShimmer 0.65s ease forwards;
}

@keyframes newsShimmer {
    to {
        left: 170%;
    }
}

/* Background image */
.news-card .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.news-card:hover .bg-img {
    transform: scale(1.06);
}

/* Dark gradient overlay */
.news-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 13, 28, 0.88) 0%,
            rgba(10, 13, 28, 0.50) 45%,
            transparent 100%);
    z-index: 1;
}

/* Content on top of overlay */
.news-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tag pills */
.news-card .tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.news-card .tag-accent {
    background: linear-gradient(135deg, #212842, #2f3d60);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(33, 40, 66, 0.35);
}

/* Large card */
.large-card {
    height: 480px;
    min-height: 480px;
}

.large-card .card-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.large-card .excerpt {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small cards */
.small-card {
    height: 229px;
    min-height: 220px;
}

.small-card .card-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

/* Read more link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.read-more:hover {
    color: #fff;
    gap: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .large-card {
        height: 360px;
        min-height: 360px;
    }

    .right-grid {
        grid-template-columns: 1fr 1fr;
    }

    .small-card {
        height: 200px;
        min-height: 200px;
    }
}

@media (max-width: 560px) {
    .right-grid {
        grid-template-columns: 1fr;
    }

    .small-card {
        height: 180px;
        min-height: 180px;
    }
}