/* ============================================
   NEWS PAGE
   ============================================ */

.news-hero {
    background: var(--rt-blue-deep);
    padding: 140px 0 60px;
    text-align: center;
}

.news-hero .section-tag {
    color: var(--rt-gold);
}

.news-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--rt-white);
    margin-bottom: 12px;
}

.news-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

/* Filters */
.news-filters {
    background: var(--rt-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 0;
    position: sticky;
    top: 76px;
    z-index: 50;
}

.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rt-text-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--rt-gold);
    color: var(--rt-gold);
}

.filter-btn.active {
    background: var(--rt-blue);
    border-color: var(--rt-blue);
    color: var(--rt-white);
}

/* News Grid */
.news-section {
    padding: 48px 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.news-card {
    background: var(--rt-white);
    border-radius: var(--rt-radius);
    box-shadow: var(--rt-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rt-shadow-lg);
}

.news-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: color-mix(in srgb, var(--cat-color, #6b7280) 12%, transparent);
    color: var(--cat-color, #6b7280);
}

.news-date {
    font-size: 0.8rem;
    color: var(--rt-text-light);
}

.news-card-title {
    font-size: 1.25rem;
    color: var(--rt-blue);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--rt-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card-body .news-card-excerpt {
    flex: 1;
}

.news-card:not(:has(.news-card-image)) .news-card-body,
.news-card:not(:has(.news-card-image)) {
    padding-top: 0;
}

.news-card:not(:has(.news-card-image)) {
    padding: 28px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-read-time {
    font-size: 0.8rem;
    color: var(--rt-text-light);
}

.news-author {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rt-text);
}

.read-more-btn {
    padding: 6px 16px;
    background: none;
    border: 1px solid var(--rt-gold);
    border-radius: 50px;
    color: var(--rt-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.read-more-btn:hover {
    background: var(--rt-gold);
    color: var(--rt-blue-deep);
}

/* Empty state */
.news-empty {
    text-align: center;
    padding: 80px 24px;
}

.news-empty h3 {
    font-size: 1.5rem;
    color: var(--rt-blue);
    margin-bottom: 8px;
}

.news-empty p {
    color: var(--rt-text-light);
}

/* Post Modal */
.post-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.post-modal.open {
    opacity: 1;
    pointer-events: all;
}

.post-modal-content {
    background: var(--rt-white);
    border-radius: 16px;
    padding: 48px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.post-modal.open .post-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--rt-text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--rt-text);
}

.post-modal-content h2 {
    font-size: 1.8rem;
    color: var(--rt-blue);
    margin: 16px 0 12px;
}

.post-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--rt-text-light);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.post-cover {
    width: 100%;
    border-radius: var(--rt-radius);
    margin-bottom: 28px;
    max-height: 400px;
    object-fit: cover;
}

.post-body p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--rt-text);
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.post-gallery img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

    .post-modal-content {
        padding: 32px 24px;
    }
}
