/* ==========================================
   NEWS PAGE - Styles (news.css)
   ========================================== */

/* ========== PAGE HERO ========== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background:
        url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&h=600&fit=crop')
        center/cover no-repeat;
    text-align: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 59, 30, 0.9) 0%,
        rgba(20, 90, 46, 0.85) 50%,
        rgba(13, 59, 30, 0.92) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
}
.breadcrumb a {
    color: var(--green-300);
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: var(--green-400); font-size: 10px; }
.breadcrumb-current { color: var(--white); font-weight: 500; }

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.page-hero-subtitle {
    font-size: 18px;
    color: var(--green-200);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== FEATURED ARTICLE ========== */
.news-featured-section {
    padding: 70px 0 30px;
    background: var(--white);
}

.featured-article {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.featured-img {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.featured-article:hover .featured-img img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--green-600);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-content {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray-500);
    flex-wrap: wrap;
}
.featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.featured-meta i {
    color: var(--green-600);
}

.featured-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--green-900);
    line-height: 1.35;
    margin-bottom: 16px;
}

.featured-content p {
    font-size: 15.5px;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 24px;
}

.featured-read-btn {
    align-self: flex-start;
}

/* ========== NEWS CONTROLS (TABS + SEARCH) ========== */
.news-listing-section {
    padding: 50px 0 90px;
    background: var(--gray-50);
}

.news-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.news-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--green-200);
    background: var(--white);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.news-tab:hover {
    border-color: var(--green-500);
    color: var(--green-700);
}
.news-tab.active {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
    box-shadow: 0 6px 20px rgba(30, 130, 69, 0.25);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: var(--green-50);
    color: var(--green-700);
}
.news-tab.active .tab-count {
    background: rgba(255,255,255,0.22);
    color: var(--white);
}

.news-search {
    position: relative;
    min-width: 280px;
}
.news-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 14px;
}
.news-search input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
    transition: var(--transition);
}
.news-search input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(34, 150, 79, 0.12);
}

/* ========== CATEGORY BANNER ========== */
.category-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 22px 28px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--green-600);
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
}
.category-banner.cat-cong-ty { border-left-color: var(--green-600); }
.category-banner.cat-cong-doan { border-left-color: #2980b9; }
.category-banner.cat-dang-uy { border-left-color: #c0392b; }

.category-banner-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.category-banner.cat-cong-doan .category-banner-icon {
    background: #ebf5fb;
    color: #2980b9;
}
.category-banner.cat-dang-uy .category-banner-icon {
    background: #fdedec;
    color: #c0392b;
}

.category-banner-text h3 {
    font-size: 19px;
    color: var(--green-900);
    margin-bottom: 4px;
}
.category-banner-text p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========== NEWS GRID & CARDS ========== */
.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.news-article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-article-img {
    position: relative;
    height: 215px;
    overflow: hidden;
}
.news-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.news-article-card:hover .news-article-img img {
    transform: scale(1.08);
}

.news-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-cat-badge.cong-ty { background: var(--green-600); }
.news-cat-badge.cong-doan { background: #2980b9; }
.news-cat-badge.dang-uy { background: #c0392b; }

.news-article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.news-article-date i {
    color: var(--green-500);
}

.news-article-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--green-900);
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-article-card:hover .news-article-body h3 {
    color: var(--green-600);
}

.news-article-body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}

.news-read-more {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--green-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-article-card:hover .news-read-more {
    gap: 10px;
    color: var(--green-800);
}

/* ========== EMPTY STATE ========== */
.news-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px dashed var(--gray-300);
}
.news-empty i {
    font-size: 42px;
    color: var(--gray-300);
    margin-bottom: 14px;
}
.news-empty h4 {
    font-size: 18px;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.news-empty p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ========== 3 COLUMNS OVERVIEW BY CATEGORY ========== */
.news-columns-section {
    background: var(--white);
    padding: 80px 0;
}

.news-three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-col-box {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    padding: 28px;
}

.news-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--green-600);
}
.news-col-box.col-cong-doan .news-col-header { border-bottom-color: #2980b9; }
.news-col-box.col-dang-uy .news-col-header { border-bottom-color: #c0392b; }

.news-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--green-900);
}
.news-col-title i { color: var(--green-600); }
.news-col-box.col-cong-doan .news-col-title i { color: #2980b9; }
.news-col-box.col-dang-uy .news-col-title i { color: #c0392b; }

.news-col-filter-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--green-600);
    cursor: pointer;
    background: none;
    border: none;
}
.news-col-filter-link:hover { text-decoration: underline; }

.news-mini-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-mini-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
}
.news-mini-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.news-mini-item:hover h5 {
    color: var(--green-600);
}

.news-mini-thumb {
    width: 78px;
    height: 62px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.news-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-mini-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}
.news-mini-info span {
    font-size: 12px;
    color: var(--gray-500);
}

/* ========== ARTICLE DETAIL MODAL ========== */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.news-modal.open {
    opacity: 1;
    visibility: visible;
}

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 59, 30, 0.72);
    backdrop-filter: blur(4px);
}

.news-modal-dialog {
    position: relative;
    z-index: 2;
    background: var(--white);
    max-width: 820px;
    width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
}
.news-modal.open .news-modal-dialog {
    transform: translateY(0);
}

.news-modal-close {
    position: sticky;
    top: 16px;
    float: right;
    margin: 16px 16px 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}
.news-modal-close:hover {
    background: var(--green-600);
}

.modal-article-cover {
    width: 100%;
    height: 340px;
    object-fit: cover;
    margin-top: -56px;
}

.modal-article-content {
    padding: 36px 44px 44px;
}

.modal-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.modal-article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--green-900);
    line-height: 1.35;
    margin-bottom: 20px;
}

.modal-article-lead {
    font-size: 16px;
    font-weight: 500;
    color: var(--green-800);
    background: var(--green-50);
    padding: 16px 20px;
    border-left: 4px solid var(--green-600);
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
}

.modal-article-paragraphs p {
    font-size: 15.5px;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: 16px;
}

.modal-article-paragraphs h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--green-900);
    margin: 24px 0 12px;
}

.modal-article-paragraphs blockquote {
    margin: 20px 0;
    padding: 16px 22px;
    background: var(--green-50);
    border-left: 4px solid var(--green-600);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--green-900);
}

.modal-article-paragraphs ul {
    margin: 12px 0 18px 24px;
    line-height: 1.85;
    color: var(--gray-700);
}

.modal-article-paragraphs figure.news-inline-figure {
    margin: 26px auto;
    background: #f9fbf9;
    border: 1px solid #e3eee4;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(13, 59, 30, 0.07);
}

.modal-article-paragraphs figure.news-inline-figure.size-medium {
    max-width: 82%;
}

.modal-article-paragraphs figure.news-inline-figure img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.modal-article-paragraphs figure.news-inline-figure figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .featured-article { grid-template-columns: 1fr; }
    .featured-img { min-height: 260px; }
    .news-page-grid { grid-template-columns: repeat(2, 1fr); }
    .news-three-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-hero { padding: 140px 0 60px; }
    .page-hero-title { font-size: 36px; }
    .news-page-grid { grid-template-columns: 1fr; }
    .news-controls { flex-direction: column; align-items: stretch; }
    .news-search { min-width: 100%; }
    .featured-content { padding: 28px 24px; }
    .featured-content h2 { font-size: 24px; }
    .modal-article-content { padding: 24px; }
    .modal-article-content h2 { font-size: 24px; }
}
