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

/* ===== Hero ===== */
.news-hero {
    padding-block: clamp(40px, 14vh, 110px);
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.18),
            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;
}

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

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

.news-hero__line {
    display: block;
}

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

.news-hero__lead {
    margin: 10px auto 0;
    max-width: 62ch;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.9;
}

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

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

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

/* ===== Intro ===== */
.news-intro {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.news-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 1000px;
    margin-inline: auto;
}

.news-intro__content {
    text-align: center;
}

.news-intro__text {
    margin: 10px 0 0;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.9;
}

/* ===== News List / Cards ===== */
.news-list {
    background: var(--section-bbackground-color, #f7f7f8);
}

.news-list__head {
    max-width: 780px;
    margin: 0 auto clamp(14px, 3.5vw, 24px);
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
}

/* Card wrapper */
.news-card {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Clickable area */
.news-card__link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Media */
.news-card__media {
    margin: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

/* Body */
.news-card__body {
    padding: 14px 14px 16px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 6px;
}

/* Meta */
.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.news-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(201, 165, 82, 0.08);
    color: var(--accent-ink, #13100a);
    border: 1px solid rgba(201, 165, 82, 0.3);
}

.news-card__date {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}

/* Title & excerpt */
.news-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

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

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

.news-card__more::after {
    content: "›";
    font-size: 14px;
    transform: translateY(0.5px);
}

/* Hover effects */
@media (hover: hover) and (pointer: fine) {
    .news-card__link:hover .news-card__img {
        transform: scale(1.06);
        filter: saturate(1.08) contrast(1.08);
    }

    .news-card__link:hover .news-card__more {
        transform: translateX(-2px);
    }

    .news-card__more {
        transition: transform 0.2s ease;
    }
}

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

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

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

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

    .news-hero {
        padding-block: clamp(30px, 12vh, 80px);
    }
}
