/* ============================================
   news.css - News & Updates Page Styles
   SoLGov Website · Biliran Province State University
   ============================================ */

/* ─── PAGE HEADER ─── */
.news-page-header {
    background: linear-gradient(135deg, var(--purple), var(--royal-blue));
    padding: 50px 24px;
    text-align: center;
    position: relative;
}
.news-page-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 38px;
    font-weight: 700;
}
.news-page-header p {
    color: #94a3b8;
    font-size: 16px;
    margin-top: 8px;
}

/* ─── BREADCRUMB ─── */
.news-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 13px;
    color: var(--muted);
}
.news-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}
.news-breadcrumb a:hover {
    text-decoration: underline;
}

/* ─── NEWS GRID ─── */
.news-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

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

/* ─── NEWS CARD ─── */
.news-card-page {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.news-card-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(50, 14, 90, 0.12);
}

.news-card-page .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--purple), var(--royal-blue));
}

.news-card-page .card-image-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--gold-light);
    background: linear-gradient(135deg, var(--purple), var(--royal-blue));
    opacity: 0.6;
}

.news-card-page .card-body {
    padding: 20px 24px 24px;
}

.news-card-page .card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.news-card-page .card-meta .badge {
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-card-page .card-meta .badge-category {
    background: var(--gold);
    color: #fff;
}

.news-card-page .card-meta .badge-featured {
    background: #e53e3e;
    color: #fff;
}

.news-card-page .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--purple);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card-page .card-excerpt {
    color: var(--slate);
    font-size: 14px;
    line-height: 1.6;
}

.news-card-page .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

.news-card-page .card-footer .read-more {
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── PAGINATION ─── */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
}

.news-pagination a:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.news-pagination .active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.news-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── SINGLE ARTICLE VIEW ─── */
.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.article-container .back-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
}
.article-container .back-link:hover {
    color: var(--gold-light);
}

.article-container .article-header {
    margin-bottom: 30px;
}

.article-container .article-category {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.article-container .article-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--purple);
    margin: 12px 0 10px;
    line-height: 1.3;
}

.article-container .article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

.article-container .article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-container .article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0 30px;
}

.article-container .article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--slate);
}

.article-container .article-content p {
    margin-bottom: 16px;
}

.article-container .article-content ul,
.article-container .article-content ol {
    margin: 12px 0 16px 20px;
}

.article-container .article-content li {
    margin-bottom: 6px;
}

/* ─── SHARE SECTION ─── */
.news-share-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.news-share-section .share-label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-share-section .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.3s;
    border: none;
    cursor: pointer;
}

.news-share-btn:hover {
    opacity: 0.8;
}
.news-share-btn.facebook { background: #1877f2; }
.news-share-btn.twitter { background: #000000; }
.news-share-btn.linkedin { background: #0a66c2; }
.news-share-btn.email { background: #718096; }

/* ─── EMPTY STATE ─── */
.no-news {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.no-news .icon {
    font-size: 60px;
    margin-bottom: 16px;
    display: block;
}
.no-news h3 {
    font-family: 'Playfair Display', serif;
    color: var(--purple);
    font-size: 24px;
    margin-bottom: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .news-page-header h1 {
        font-size: 28px;
    }
    .news-grid-page {
        grid-template-columns: 1fr;
    }
    .article-container .article-title {
        font-size: 26px;
    }
    .article-container .article-image {
        max-height: 250px;
    }
    .news-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .news-card-page .card-title {
        font-size: 17px;
    }
    .article-container .article-title {
        font-size: 22px;
    }
    .article-container .article-meta {
        font-size: 12px;
        gap: 12px;
    }
    .news-share-section .share-buttons {
        gap: 6px;
    }
    .news-share-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}