/* News & Activity Video */

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 0;
}
.news-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { transform: translateY(0px); }
.news-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-light);
    overflow: hidden;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
}
.news-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.news-card-body { padding: 18px; }
.news-date { font-size: .78rem; font-weight: 600; color: var(--primary); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.news-title { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 0;
}
.video-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}
.video-thumb-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}
.video-thumb-wrap iframe,
.video-thumb-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
    object-fit: cover;
}
.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    font-size: 3rem;
    color: #ff0000;
}
.video-card-body { padding: 16px; }
.video-title { font-size: .9rem; font-weight: 700; color: var(--text-dark); margin: 4px 0 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 992px) { .news-grid, .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px)  { .news-grid, .video-grid { grid-template-columns: 1fr; } }

/* ===== News Detail (view.php) ===== */
.news-detail { margin: 0 auto; padding: 0 0 48px 0; }
.news-detail-header { margin-bottom: 32px; }
.news-detail-date { font-size: .85rem; color: var(--primary); font-weight: 600; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.news-detail-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--text-dark); margin: 0 0 12px; line-height: 1.3; }
.news-detail-meta { font-size: .85rem; color: var(--text-light); margin: 0; }
.news-detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.news-detail-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}
.news-detail-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.news-detail-thumb { overflow: hidden; margin-bottom: 32px; }
.news-detail-thumb img { width: 100%; height: auto; object-fit: cover; }
.news-detail-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-mid);
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.news-detail-body img { max-width: 100%; border-radius: var(--radius-sm); }
.news-detail-footer { padding-top: 32px; }
