/* public/css/site/media-latest.css */

/* ===== Hero ===== */
.latest-hero {
    padding-block: clamp(40px, 14vh, 110px);
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    color: #f9fafb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.latest-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin-inline: auto;
}

.latest-hero__title {
    margin: 0;
    font-size: clamp(26px, 5.6vw, 40px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.latest-hero__line {
    display: block;
}

.latest-hero__line--accent {
    background: linear-gradient(
        90deg,
        var(--accent, #c9a552),
        var(--accent-2, #e2c777)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.latest-hero__lead {
    margin: 14px 0 0;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.9;
}

.latest-hero__lead--soft {
    opacity: 0.9;
}

/* ===== Sections ===== */
.latest-section {
    padding-block: clamp(28px, 9vh, 80px);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.latest-section__title {
    margin: 0;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.latest-section__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
}

/* ===== List Head ===== */
.latest-list__head {
    text-align: center;
    margin-bottom: clamp(16px, 3.5vw, 24px);
}

/* ===== Grid ===== */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

/* ===== Card ===== */
.latest-card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.latest-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.latest-card__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.latest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.35s ease, filter 0.25s ease;
    filter: saturate(1.02) contrast(1.04);
}

.latest-card__badge {
    position: absolute;
    inset-inline-start: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #111827;
    background: rgba(249, 250, 251, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.latest-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    height: auto;
}

.latest-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.latest-card__date {
    color: var(--muted, #6b6f76);
}

.latest-card__tag {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(201, 165, 82, 0.12);
    color: #7a5b1b;
    border: 1px solid rgba(201, 165, 82, 0.35);
}

.latest-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.latest-card__excerpt {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.8;
}

.latest-card__more {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-ink, #13100a);
}

/* Hover state */
.latest-card:hover .latest-card__img,
.latest-card:focus-within .latest-card__img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.06);
}

.latest-card:hover .latest-card__title,
.latest-card:focus-within .latest-card__title {
    color: var(--accent-ink, #13100a);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .latest-hero {
        padding-block: clamp(28px, 11vh, 70px);
    }

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

    .latest-card__title {
        font-size: 14px;
    }

    .latest-card__excerpt {
        font-size: 13px;
    }
}
