/* ============================================
   News Archive — "Imperial Ember" Design
   Based on Stitch Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* === Force Full Width === */
body.category-tin-tuc .content-container.site-container {
    max-width: 100% !important;
    padding: 0 !important;
}
body.category-tin-tuc #primary {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
body.category-tin-tuc #secondary,
body.category-tin-tuc .primary-sidebar {
    display: none !important;
}
body.category-tin-tuc .content-container {
    display: block !important;
}

/* === Custom Hero Section === */
.news-hero {
    background: #131313;
    padding: 55px 0 45px;
    text-align: center;
}
.news-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.news-hero__breadcrumb {
    margin-bottom: 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-hero__breadcrumb a {
    color: #9e8e78;
    text-decoration: none;
    transition: color 0.2s;
}
.news-hero__breadcrumb a:hover {
    color: #ffb400;
}
.news-hero__sep {
    color: #514532;
    margin: 0 8px;
}
.news-hero__current {
    color: #e5e2e1;
}
.news-hero__title {
    font-family: 'Epilogue', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #e5e2e1;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.2;
}
.news-hero__desc {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #9e8e78;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hide theme's default hero */
body.category-tin-tuc .entry-hero {
    display: none !important;
}

/* === News Grid Container === */
.news-grid-wrapper {
    background: #1c1b1b;
    padding: 50px 0 60px;
}
.news-grid-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* === Article Card === */
.news-card {
    background: #2a2a2a;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 180, 0, 0.06);
}

/* Card Thumbnail */
.news-card__thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #353535;
}
.news-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card__thumb img {
    transform: scale(1.05);
}
.news-card__thumb-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #353535, #2a2a2a);
}
.news-card__thumb-placeholder svg {
    width: 48px;
    height: 48px;
    color: #514532;
}

/* Card Body */
.news-card__body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Badge */
.news-card__cat {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffd89c;
    background: rgba(255, 180, 0, 0.12);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
    width: fit-content;
    text-decoration: none;
    transition: background 0.2s;
}
.news-card__cat:hover {
    background: rgba(255, 180, 0, 0.25);
    color: #ffb400;
}

/* Card Title */
.news-card__title {
    font-family: 'Epilogue', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #e5e2e1;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.news-card__title a:hover {
    color: #ffb400;
}

/* Card Excerpt */
.news-card__excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #9e8e78;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 16px;
}

/* Card Meta */
.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    color: #6b5e4c;
    border-top: 1px solid rgba(81, 69, 50, 0.2);
    padding-top: 14px;
    margin-top: auto;
}
.news-card__date {
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-card__readtime {
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-card__meta svg {
    width: 14px;
    height: 14px;
}

/* === Pagination === */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 0 0;
}
.news-pagination a,
.news-pagination span {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9e8e78;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}
.news-pagination a:hover {
    color: #e5e2e1;
    background: rgba(255, 180, 0, 0.08);
}
.news-pagination .current {
    color: #131313;
    background: #ffb400;
    font-weight: 700;
}
.news-pagination .prev,
.news-pagination .next {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-pagination .dots {
    color: #514532;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .news-hero__title {
        font-size: 2.2rem;
    }
}
@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-hero {
        padding: 35px 16px 28px;
    }
    .news-hero__title {
        font-size: 1.8rem;
    }
    .news-grid-inner {
        padding: 0 16px;
    }
    .news-card__body {
        padding: 16px 18px 20px;
    }
    .news-pagination a,
    .news-pagination span {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

