/* ============================================
   News - home page and public news page
   ============================================ */

.news-latest {
    padding: 5rem 0;
}

.news-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.5rem;
}

.page-main .news-grid {
    padding: 0;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--yamaha-red);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101010;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

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

.news-card-media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #151515, #080808);
}

.news-card-placeholder {
    font-size: 2.4rem;
    color: rgba(230, 0, 18, 0.75);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem 1.5rem 1.6rem;
    flex: 1;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.15rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.4px;
}

.news-meta i {
    color: var(--yamaha-red);
    margin-right: 0.3rem;
}

.news-card h3 {
    font-size: 1.18rem;
    line-height: 1.35;
    font-weight: 800;
}

.news-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.news-card h3 a:hover {
    color: var(--yamaha-red);
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.news-read-more {
    margin-top: auto;
    padding-top: 0.4rem;
    color: var(--yamaha-red);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.25s ease;
}

.news-read-more:hover {
    gap: 0.8rem;
}

/* News article */

.news-detail {
    max-width: 960px;
    margin: 0 auto;
}

.news-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.news-back:hover {
    color: var(--yamaha-red);
}

.news-detail-head h1 {
    font-size: clamp(1.8rem, 4.4vw, 2.9rem);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0.9rem 0 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.news-detail-lead {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0;
}

.news-detail-image {
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d0d0d;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-body {
    border-left: 4px solid var(--yamaha-red);
    padding: 0.25rem 0 0.25rem 1.5rem;
}

.news-detail-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0 0 1.25rem;
}

.news-detail-body p:last-child {
    margin-bottom: 0;
}

.news-detail-footer {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.news-empty-state {
    padding: 4rem 1.5rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.5);
}

.news-empty-state i {
    font-size: 2.4rem;
    color: var(--yamaha-red);
    margin-bottom: 1rem;
}

.news-empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-empty-state p {
    color: var(--text-secondary);
    margin: 0;
}

.news-empty .model-btn {
    margin-top: 1.25rem;
}

.page-section > .news-grid {
    margin-top: 1.25rem;
}

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

    .news-detail-body {
        padding-left: 1rem;
    }
}
