/* ============================================
   NEWS CSS - Index & Show
   ============================================ */

/* ---- Shared ---- */
.page-header {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #2a5298;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.content-wrapper {
    padding: 40px 0;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state-icon { font-size: 64px; margin-bottom: 20px; }
.empty-state h3 { color: #1e3c72; margin-bottom: 10px; }
.empty-state p { color: #999; }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover { background: #2a5298; color: white; border-color: #2a5298; }
.page-btn.active { background: #2a5298; color: white; border-color: #2a5298; font-weight: bold; }
.page-btn.disabled { color: #ccc; background: #f9f9f9; border-color: #eee; cursor: not-allowed; pointer-events: none; }

/* ---- Index: Filter ---- */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-section h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 18px;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f7fa;
    color: #333;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.category-badge:hover,
.category-badge.active {
    background: #2a5298;
    color: white;
}

/* ---- Index: Grid ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: #ffd700;
    color: #1e3c72;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.news-content { padding: 25px; }

.news-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 13px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content h3 {
    color: #1e3c72;
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #2a5298;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.read-more:hover { color: #1e3c72; gap: 10px; }

/* ---- Show: Article Header ---- */
.article-header {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 40px 20px;
}

.article-header .breadcrumb {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    padding: 0;
    color: white;
}

.article-header .breadcrumb a {
    color: white;
}

.article-header .category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    font-size: 13px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.95;
}

.article-title {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ---- Show: Article Content ---- */
.article-content-wrapper { padding: 60px 0; }

.article-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-main {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-body p { margin-bottom: 20px; }
.article-body h2,
.article-body h3 { color: #1e3c72; margin: 30px 0 15px 0; }

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-section strong { color: #1e3c72; }

.share-btn {
    padding: 8px 20px;
    background: #f5f7fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.share-btn:hover { background: #2a5298; color: white; }

/* ---- Show: Sidebar ---- */
.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffd700;
}

.related-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.related-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-news-item:hover { transform: translateX(5px); }

.related-thumb {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-thumb.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.related-content h4 {
    color: #1e3c72;
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-content p { color: #999; font-size: 12px; }

/* Category count badge (sidebar) */
.category-count-badge {
    width: 50px;
    height: 50px;
    background: #2a5298;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .article-container { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .article-title { font-size: 32px; }
    .article-main { padding: 25px; }
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 32px; }
    .article-title { font-size: 26px; }
}