/* ======= Article News — List Page ======= */

.article-news-page {
    margin-top: 7rem;
    padding-bottom: 4rem;
}

.article-news-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-news-page .page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0A014F;
}

.article-news-page .page-header p {
    color: #555;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

/* --- Filter / Tags --- */
.article-news-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.article-news-filters .filter-btn {
    padding: 0.45rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid #D9E8F5;
    background: #fff;
    color: #0A014F;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.article-news-filters .filter-btn:hover,
.article-news-filters .filter-btn.active {
    background: #0A014F;
    color: #fff;
    border-color: #0A014F;
}

/* --- Grid Cards --- */
.article-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 576px) {
    .article-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .article-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Card --- */
.article-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.article-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.article-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.article-card .card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #F4361C;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-card .card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.6rem;
}

.article-card .card-meta i {
    font-size: 0.85rem;
}

.article-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0A014F;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.article-card .card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #F4361C;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.article-card .card-link:hover {
    gap: 0.55rem;
}

/* --- Empty state (no articles in the selected category) --- */
.article-news-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #666;
}

.article-news-empty h2 {
    color: #0A014F;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-news-empty p {
    font-size: 1rem;
    margin: 0;
}


/* ======= Article News — Detail Page ======= */

.article-detail-page {
    margin-top: 7rem;
    padding-bottom: 4rem;
}

.article-detail-page .article-detail-container {
    max-width: 780px;
    margin: 0 auto;
}

/* --- Back link --- */
.article-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0A014F;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.article-detail-page .back-link:hover {
    color: #F4361C;
}

/* --- Hero Image --- */
.article-detail-hero {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.article-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Meta --- */
.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.article-detail-meta .badge-category {
    background: #FFF1F0;
    color: #E03131;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* --- Summary (lede) --- */
.article-detail-summary {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    font-weight: 500;
    border-left: 4px solid #F4361C;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

/* --- Title --- */
.article-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0A014F;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .article-detail-title {
        font-size: 2.4rem;
    }
}

/* --- htmlContent body --- */
.article-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-detail-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A014F;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-detail-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0A014F;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-detail-body p {
    margin-bottom: 1.25rem;
}

.article-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.article-detail-body blockquote {
    border-left: 4px solid #F4361C;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9f9fb;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #555;
}

.article-detail-body ul,
.article-detail-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-detail-body li {
    margin-bottom: 0.4rem;
}

.article-detail-body a {
    color: #F4361C;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-detail-body a:hover {
    color: #0A014F;
}

/* --- Platforms --- */
.article-detail-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.article-detail-platforms .platforms-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0A014F;
}

.article-detail-platforms .platform-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #D9E8F5;
    color: #0A014F;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-detail-platforms .platform-btn:hover {
    background: #0A014F;
    color: #fff;
}

/* --- Share --- */
.article-detail-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.article-detail-share span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0A014F;
}

.article-detail-share .share-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #D9E8F5;
    color: #0A014F;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-detail-share .share-btn:hover {
    background: #0A014F;
    color: #fff;
}
