/* ============================================
   NEWS-STYLE CSS — phong cách báo điện tử
   Triển khai văn bản TTPTQĐ.CNLT
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0f4c81;       /* xanh dương đậm — chính quyền */
    --primary-dark: #0a3a63;
    --primary-light: #e8f1fa;
    --accent: #e63946;        /* đỏ điểm nhấn cho "tin nóng" */
    --accent-dark: #c12939;
    --gold: #f9b44c;
    --success: #2e7d32;
    --warn: #f57c00;
    --danger: #d32f2f;

    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #4b4b4b;
    --gray-800: #212121;
    --gray-900: #0a0a0a;

    --text: #212121;
    --text-muted: #6b7280;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --border: #e5e7eb;

    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

    --container: 1280px;
    --header-height: 70px;

    --transition: 200ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar a, .top-bar .today { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.top-bar a:hover { color: white; }
.top-bar .material-icons { font-size: 0.95rem; }
@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .top-bar-right { font-size: 0.72rem; gap: 10px; }
    .top-bar .today { display: none; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-height);
}

.site-brand {
    display: flex; align-items: center; gap: 12px;
    color: var(--text); flex-shrink: 0;
}
.site-brand:hover { color: var(--text); }
.site-brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow);
}
.site-brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary);
    letter-spacing: -0.01em;
}
.site-brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: -2px;
}

.nav-toggle {
    display: none;
    background: transparent; border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: 8px; cursor: pointer;
    align-items: center; justify-content: center;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.site-nav > a, .nav-dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}
.site-nav > a:hover, .nav-dropdown-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.site-nav > a.active, .nav-dropdown.active .nav-dropdown-toggle {
    background: var(--primary);
    color: white;
}
.site-nav > a .material-icons,
.nav-dropdown-toggle .material-icons { font-size: 1.05rem; }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    margin-left: 8px;
}
.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: white !important;
}

.nav-dropdown { position: relative; }
.nav-dropdown .caret { font-size: 1rem !important; transition: transform var(--transition); }
.nav-dropdown.open .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--gray-700);
    font-size: 0.88rem;
    font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown-menu .material-icons { font-size: 1.1rem; }

/* Header search bar */
.header-search {
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    padding: 12px 20px;
}
.header-search-form {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.header-search-form:focus-within { border-color: var(--primary); }
.header-search-form > .material-icons {
    color: var(--gray-500); padding-left: 16px;
}
.header-search-form input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 0.92rem;
    background: transparent;
    font-family: inherit;
}
.header-search-form input:focus { outline: none; }
.header-search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition);
}
.header-search-form button:hover { background: var(--primary-dark); }

/* ============================================
   RESPONSIVE NAV
   ============================================ */
@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
        z-index: 99;
    }
    .site-nav.open { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
    .site-nav > a, .nav-dropdown-toggle {
        width: 100%; justify-content: flex-start;
    }
    .nav-dropdown-menu {
        position: static; box-shadow: none;
        opacity: 1; visibility: visible;
        transform: none;
        max-height: 0; overflow: hidden;
        margin-left: 24px;
        transition: max-height var(--transition);
    }
    .nav-dropdown.open .nav-dropdown-menu { max-height: 500px; }
    .site-brand-sub { display: none; }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 28px 0; }
.section-title-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 16px; flex-wrap: wrap;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: flex; align-items: center; gap: 10px;
    border-left: 5px solid var(--accent);
    padding-left: 14px;
    line-height: 1.2;
}
.section-title-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.section-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all var(--transition);
}
.section-link:hover { background: var(--primary-light); }

/* ============================================
   HERO SECTION (featured news slider)
   ============================================ */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.hero-main, .hero-side-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.hero-main { aspect-ratio: 16/10; }
.hero-side {
    display: grid; grid-template-rows: 1fr 1fr; gap: 16px;
}
.hero-side-item { aspect-ratio: 16/9; }

.hero-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 6s ease;
}
.hero-main:hover .hero-img,
.hero-side-item:hover .hero-img { transform: scale(1.06); }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px;
    color: white;
}
.hero-side-item .hero-overlay { padding: 16px; }

.hero-cat {
    display: inline-flex;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
}
.hero-main .hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: white;
    margin-bottom: 8px;
}
.hero-side-item .hero-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hero-meta {
    font-size: 0.78rem;
    opacity: 0.9;
    display: flex; gap: 12px; align-items: center;
}
.hero-meta .material-icons { font-size: 0.9rem; }

/* Hero placeholder (no image) */
.hero-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { aspect-ratio: 16/9; }
    .hero-main .hero-title { font-size: 1.2rem; }
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-card .icon {
    width: 50px; height: 50px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-card .num { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.stat-card.s2 { border-top-color: var(--success); }
.stat-card.s2 .icon { background: #e8f5e9; }
.stat-card.s2 .num { color: var(--success); }
.stat-card.s3 { border-top-color: var(--warn); }
.stat-card.s3 .icon { background: #fff3e0; }
.stat-card.s3 .num { color: var(--warn); }
.stat-card.s4 { border-top-color: var(--accent); }
.stat-card.s4 .icon { background: #fde8ea; }
.stat-card.s4 .num { color: var(--accent); }

@media (max-width: 768px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   MAIN CONTENT GRID
   ============================================ */
.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
}

/* ============================================
   NEWS CARD GRID
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.news-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
    .news-grid, .news-grid-2 { grid-template-columns: 1fr; }
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}
.news-card-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}
.news-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-card-thumb img { transform: scale(1.06); }
.news-card-thumb .placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-light), white);
    color: var(--primary);
}
.news-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .news-card-title { color: var(--primary); }
.news-card-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.news-card-meta {
    display: flex; gap: 12px; align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.news-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.news-card-meta .material-icons { font-size: 0.95rem; }

.news-card .pin-badge,
.news-card .feat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: var(--gray-900);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-card .pin-badge { background: var(--accent); color: white; }

/* ============================================
   NEWS LIST (compact list view, dùng cho sidebar / xem nhiều)
   ============================================ */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-list-item {
    display: flex; gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.news-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-list-thumb {
    flex-shrink: 0;
    width: 84px; height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
}
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-thumb .placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: var(--primary-light); color: var(--primary);
}
.news-list-body { flex: 1; min-width: 0; }
.news-list-title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-item:hover .news-list-title { color: var(--primary); }
.news-list-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 4px;
}
.news-list-meta .material-icons { font-size: 0.85rem; }

.news-list-numbered { counter-reset: nl; }
.news-list-numbered .news-list-item { position: relative; padding-left: 36px; }
.news-list-numbered .news-list-item::before {
    counter-increment: nl;
    content: counter(nl);
    position: absolute; left: 0; top: 0;
    width: 26px; height: 26px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 800;
}
.news-list-numbered .news-list-item:nth-child(1)::before { background: var(--accent); }
.news-list-numbered .news-list-item:nth-child(2)::before { background: var(--warn); }
.news-list-numbered .news-list-item:nth-child(3)::before { background: var(--gold); color: var(--gray-900); }

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.widget-header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 3px solid var(--accent);
}
.widget-header .material-icons { font-size: 1.15rem; }
.widget-body { padding: 14px 16px; }

.widget-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 22px 18px;
    border-radius: var(--radius);
    text-align: center;
}
.widget-cta h3 { font-size: 1rem; margin-bottom: 8px; }
.widget-cta p { font-size: 0.84rem; opacity: 0.9; margin-bottom: 14px; }
.widget-cta .btn {
    background: var(--gold);
    color: var(--gray-900);
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.widget-cta .btn:hover { background: white; color: var(--primary); }

/* Org info widget */
.org-info-text {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Categories widget */
.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.cat-item:hover { background: var(--primary-light); color: var(--primary); transform: translateX(4px); }
.cat-item .count {
    background: white;
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.cat-item:hover .count { background: var(--primary); color: white; }

/* ============================================
   FILTERS / TOOLBAR (documents.php)
   ============================================ */
.toolbar {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.toolbar-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
.toolbar-row .form-group { margin: 0; }
.toolbar-row label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.toolbar-row input, .toolbar-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    transition: border-color var(--transition);
}
.toolbar-row input:focus, .toolbar-row select:focus {
    outline: none; border-color: var(--primary);
}
.toolbar-actions { display: flex; gap: 8px; }
@media (max-width: 768px) {
    .toolbar-row { grid-template-columns: 1fr 1fr; }
}

.btn-tb {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all var(--transition);
}
.btn-tb-primary { background: var(--primary); color: white; }
.btn-tb-primary:hover { background: var(--primary-dark); }
.btn-tb-outline { background: white; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-tb-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; padding: 24px 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 38px; height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: white;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: var(--primary); color: white; border-color: var(--primary);
}
.pagination .ellipsis {
    background: transparent; border: none; color: var(--gray-400);
}

/* ============================================
   ARTICLE / VIEW DOCUMENT
   ============================================ */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
}

.article {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.article-header {
    padding: 28px 32px 22px;
    border-bottom: 1px solid var(--border);
}
.article-cat {
    display: inline-flex;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.article-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.article-meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta .material-icons { font-size: 1rem; }
.article-meta strong { color: var(--text); font-weight: 600; }

.article-hero {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gray-100);
    overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { padding: 28px 32px; }
.article-summary {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.7;
    padding: 18px 22px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    margin-bottom: 24px;
}
.article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
}
.article-content p { margin-bottom: 16px; }
.article-content h2, .article-content h3 {
    color: var(--primary); margin: 22px 0 12px;
}
.article-content img {
    border-radius: 8px; margin: 14px 0;
}
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 6px 18px;
    background: var(--gray-50);
    color: var(--gray-700);
    font-style: italic;
    margin: 14px 0;
}
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }

.article-pdf {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.article-pdf iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

.article-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding-top: 20px; border-top: 1px solid var(--border);
    margin-top: 24px;
}
.btn-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
    transition: all var(--transition);
}
.btn-action:hover { border-color: var(--primary); color: var(--primary); }
.btn-action.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-action.primary:hover { background: var(--primary-dark); color: white; }
.btn-action.success { background: var(--success); color: white; border-color: var(--success); }
.btn-action .material-icons { font-size: 1.05rem; }

/* Attachments display in article */
.article-attachments {
    margin: 24px 0;
    padding: 18px;
    background: var(--gray-50);
    border-radius: 8px;
}
.article-attachments h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.attach-list { display: grid; gap: 10px; }
.attach-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.attach-item:hover { border-color: var(--primary); transform: translateX(4px); }
.attach-icon { font-size: 1.6rem; flex-shrink: 0; }
.attach-body { flex: 1; min-width: 0; }
.attach-title { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.attach-type { font-size: 0.78rem; color: var(--text-muted); }
.attach-actions { display: flex; gap: 6px; flex-shrink: 0; }
.attach-actions a {
    padding: 6px 12px; border-radius: 6px;
    background: var(--primary-light); color: var(--primary);
    font-size: 0.8rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.attach-actions a:hover { background: var(--primary); color: white; }
.attach-actions .material-icons { font-size: 0.95rem; }

/* Share buttons */
.share-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-buttons .label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.share-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: white;
    transition: transform var(--transition);
    text-decoration: none;
}
.share-btn:hover { transform: translateY(-3px); color: white; }
.share-btn.fb { background: #1877f2; }
.share-btn.zalo { background: #0068ff; font-weight: 800; font-size: 0.85rem; }
.share-btn.copy { background: var(--gray-600); }
.share-btn.print { background: var(--success); }
.share-btn .material-icons { font-size: 1.1rem; }

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 14px 0 6px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--gray-400); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ============================================
   EMPTY / LOADING STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 6px; font-size: 1.1rem; }
.empty-state p { font-size: 0.92rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-50);
    color: var(--text-muted);
    margin-top: 48px;
    border-top: 3px solid var(--primary);
}
.footer-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 20px 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1fr 1fr;
    gap: 28px;
}
.footer-col h3 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
    display: inline-block;
    font-weight: 700;
}
.footer-brand {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.footer-brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.footer-brand-title { font-weight: 700; color: var(--text); }
.footer-about p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 12px; color: var(--text-muted); }
.footer-list { list-style: none; padding: 0; }
.footer-list li {
    display: flex; align-items: flex-start; gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem; line-height: 1.6;
    color: var(--text-muted);
}
.footer-list .material-icons { font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; color: var(--primary); }
.footer-list a { color: var(--text-muted); }
.footer-list a:hover { color: var(--primary); }
.footer-list-links li { margin-bottom: 8px; }
.footer-list-links a { padding: 4px 0; display: inline-block; font-weight: 500; }

.social-links { display: flex; gap: 8px; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); color: #fff; }

.footer-bottom {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 16px 0;
}
.footer-bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================
   FORMS (general)
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.9rem;
}
.form-label .req { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-help { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-outline { background: white; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.92rem;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid var(--success); }
.alert-error { background: #ffebee; color: #b71c1c; border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3e0; color: #e65100; border-left: 4px solid var(--warn); }
.alert-info { background: #e3f2fd; color: #0d47a1; border-left: 4px solid var(--primary); }

/* Toast */
.toast {
    position: fixed;
    top: 20px; right: 20px;
    min-width: 300px;
    padding: 12px 18px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex; gap: 10px; align-items: center;
    z-index: 9999;
    animation: toastIn 0.3s ease;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warn); }
.toast-info { border-left: 4px solid var(--primary); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .top-bar, .site-header, .site-footer, .sidebar, .article-actions,
    .breadcrumb, .back-to-top, .no-print { display: none !important; }
    body { background: white; }
    .article { box-shadow: none; border: none; }
    .article-pdf { display: none; }
}
