/* =====================================================
   NEWS & ANNOUNCEMENTS PAGE - Corporate Enterprise Edition
   ===================================================== */

/* ── Featured Spotlight News ───────────────────────── */
.spotlight-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    margin-bottom: 48px;
}
.spotlight-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.spotlight-img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}
.spotlight-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.spotlight-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    border: 1px solid rgba(122, 19, 24, 0.15);
    text-transform: uppercase;
}
.news-date {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
}
.spotlight-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-1);
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}
.spotlight-excerpt {
    font-size: 14.5px;
    color: var(--text-3);
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 24px;
}

/* ── Filter Tabs ───────────────────────────────────── */
.news-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: center;
}
.tab-btn {
    padding: 8px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(122, 19, 24, 0.2);
}

/* ── News Cards Grid ───────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.news-card-img-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
}
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.06);
}
.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -.2px;
}
.news-card-excerpt {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 20px;
    flex-grow: 1;
}
.news-card-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}
.news-card:hover .news-card-link {
    gap: 10px;
}

@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ── News Article Detail Modal ────────────────────── */
.news-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.news-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.news-modal-card {
    background: var(--bg-white);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border);
}
.news-modal-overlay.active .news-modal-card {
    transform: translateY(0) scale(1);
}
.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}
.news-modal-close:hover {
    background: var(--primary);
}
.news-modal-cover {
    width: 100%;
    height: 340px;
    object-fit: cover;
}
.news-modal-content {
    padding: 36px 40px;
}
.news-modal-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-1);
    line-height: 1.35;
    margin: 16px 0 20px;
    letter-spacing: -.4px;
}
.news-modal-summary {
    background: #fdf4f4;
    border-left: 4px solid var(--primary);
    padding: 18px 22px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.65;
    margin-bottom: 24px;
}
.news-modal-body-text {
    font-size: 15.5px;
    color: var(--text-2);
    line-height: 1.8;
    white-space: pre-line;
}

