/* ===================================================================
   HERO NEWS - VERSION 1.0
=================================================================== */
.hero-news {
    padding: 30px 0;
    background: var(--gray-100);
}

/* GRID LAYOUT */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* MAIN ARTICLE */
.hero-main {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.hero-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-main-link {
    display: block;
    color: inherit;
}

/* IMAGE & CATEGORY BADGE */
.hero-main-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ddd;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-main:hover img {
    transform: scale(1.05);
}

.hero-category {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* GRADIENT OVERLAY */
.hero-main-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

/* CONTENT & TYPOGRAPHY */
.hero-main-content {
    padding: 24px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 14px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta i {
    color: var(--primary);
}

.hero-main-title {
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 16px;
    transition: color 0.25s ease;
}

.hero-main:hover .hero-main-title {
    color: var(--primary);
}

.hero-main-excerpt {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================================================
   HERO SIDE - LAYOUT
=================================================================== */
.hero-side {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
}

/* HERO CARD BASE */
.hero-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-card > a {
    display: flex;
    align-items: stretch;
    height: 100%;
    color: inherit;
}

.hero-card:active { transform: scale(0.98); }

/* IMAGE CONTAINER */
.hero-card figure {
    position: relative;
    flex: 0 0 140px;
    overflow: hidden;
    background: #ddd;
}

.hero-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-card:hover img { transform: scale(1.08); }

.hero-card figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-card:hover figure::after { opacity: 1; }

/* CONTENT & TYPOGRAPHY */
.hero-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
}

.hero-card-category {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: rgba(214, 0, 0, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-card h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.hero-card:hover h2 { color: var(--primary); }

.hero-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
}

.hero-card-meta::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* MISC */
.hero-card:not(:last-child) { border-bottom: 1px solid var(--border-color); }

.hero-card a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* ===================================================================
   HERO NEWS RESPONSIVE
=================================================================== */

/* Tablet (<= 992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-side {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }

    .hero-main-title {
        font-size: 30px;
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .hero-news {
        padding: 20px 0;
    }

    .hero-main-content {
        padding: 18px;
    }

    .hero-main-title {
        font-size: 26px;
        line-height: 1.35;
    }

    .hero-main-excerpt {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-meta {
        gap: 12px;
        font-size: 13px;
    }

    .hero-side {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-card > a {
        display: flex;
    }

    .hero-card figure {
        flex: 0 0 120px;
        height: 90px;
    }

    .hero-card-content {
        padding: 14px;
    }

    .hero-card h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* Small Mobile (<= 576px) */
@media (max-width: 576px) {
    .hero-main-title {
        font-size: 22px;
    }

    .hero-main-excerpt {
        display: none;
    }

    .hero-category {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .hero-card figure {
        flex: 0 0 110px;
        height: 82px;
    }

    .hero-card-category {
        font-size: 11px;
        padding: 3px 8px;
    }

    .hero-card h2 {
        font-size: 15px;
        line-height: 1.4;
    }

    .hero-card-meta {
        font-size: 12px;
    }
}

/* Extra Small (<= 400px) */
@media (max-width: 400px) {
    .hero-main-content {
        padding: 16px;
    }

    .hero-main-title {
        font-size: 20px;
    }

    .hero-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hero-card figure {
        flex: 0 0 95px;
        height: 75px;
    }

    .hero-card-content {
        padding: 12px;
    }

    .hero-card h2 {
        font-size: 14px;
    }
}