/* ============================================
   CSS GIAO DIỆN NGƯỜI DÂN - TỔ DÂN PHỐ ĐỒNG PHƯƠNG
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #333; background: #f5f6fa; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* HEADER */
.header-top { background: #1a3a6b; color: #ccd9f0; font-size: 13px; padding: 6px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.header-top a { color: #ccd9f0; text-decoration: none; margin-left: 16px; }
.header-top a:hover { color: #fff; }
.btn-login-cb { background: #e74c3c; color: #fff !important; padding: 4px 12px; border-radius: 4px; }

.header-main { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 100; }
.header-main .container { display: flex; align-items: center; gap: 24px; padding: 12px 16px; }
.logo-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { width: 50px; height: 50px; background: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo-text h1 { font-size: 16px; font-weight: 700; color: #1a3a6b; line-height: 1.2; }
.logo-text p { font-size: 11px; color: #666; }

.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.main-nav a { padding: 8px 14px; border-radius: 6px; text-decoration: none; color: #333; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .2s; }
.main-nav a:hover, .main-nav a.active { background: #1a3a6b; color: #fff; }
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #1a3a6b; }
.mobile-nav { display: none; background: #1a3a6b; flex-direction: column; }
.mobile-nav a { padding: 12px 20px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav.open { display: flex; }

/* HERO */
.hero { background: linear-gradient(135deg, #1a3a6b 0%, #2980b9 50%, #1abc9c 100%); padding: 60px 0; position: relative; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>'); }
.hero .container { position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; }
.hero-greeting { color: #a8d8f0; font-size: 16px; margin-bottom: 8px; }
.hero-text h2 { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero-text h2 span { color: #f1c40f; }
.hero-desc { color: #d0e8f5; font-size: 15px; margin-bottom: 24px; }
.search-form { display: flex; gap: 8px; max-width: 450px; }
.search-form input { flex: 1; padding: 12px 16px; border: none; border-radius: 8px; font-size: 14px; outline: none; }
.search-form button { padding: 12px 20px; background: #e74c3c; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.search-form button:hover { background: #c0392b; }

.hero-info-card { background: rgba(255,255,255,.95); border-radius: 16px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.hero-info-card h3 { font-size: 13px; font-weight: 700; color: #1a3a6b; margin-bottom: 16px; border-bottom: 2px solid #e74c3c; padding-bottom: 8px; }
.hero-info-card ul { list-style: none; }
.hero-info-card li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.hero-info-card li:last-child { border-bottom: none; }
.hero-info-card li i { width: 20px; color: #e74c3c; text-align: center; }
.hero-info-card li span { flex: 1; color: #666; }
.hero-info-card li strong { color: #1a3a6b; font-weight: 600; }

/* QUICK ACCESS */
.quick-access { background: #fff; padding: 32px 0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border-radius: 12px; text-decoration: none; color: #333; transition: all .2s; cursor: pointer; border: 1px solid transparent; }
.quick-item:hover { border-color: #1a3a6b; background: #f8faff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(26,58,107,.1); }
.quick-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.quick-item span { font-weight: 600; font-size: 14px; color: #1a3a6b; }
.quick-item small { font-size: 12px; color: #888; }

/* MAIN CONTENT */
.main-content { padding: 40px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h3 { font-size: 16px; font-weight: 700; color: #1a3a6b; }
.section-header a { font-size: 13px; color: #e74c3c; text-decoration: none; }
.section-header a:hover { text-decoration: underline; }

/* NEWS LIST */
.news-list { list-style: none; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.news-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.news-list li:last-child { border-bottom: none; }
.news-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.dot-blue { background: #3498db; }
.dot-red { background: #e74c3c; }
.dot-green { background: #27ae60; }
.news-content { flex: 1; min-width: 0; }
.news-inline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; min-width: 0; }
.news-source { display: inline-flex; align-items: center; gap: 5px; width: fit-content; flex: 0 0 auto; margin-bottom: 0; padding: 3px 8px; border-radius: 5px; font-size: 10px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
.news-source strong { font-weight: 800; }
.news-source i { font-size: 10px; }
.source-cq { background: #eaf4ff; color: #1a5a9a; }
.source-cb { background: #fde8e8; color: #a83232; }
.source-mt { background: #e8f8e8; color: #21864a; }
.source-other { background: #f0f0f0; color: #666; }
.news-content a { color: #333; text-decoration: none; font-size: 14px; line-height: 1.4; display: block; }
.news-inline a { flex: 1 1 auto; min-width: 0; }
.news-inline .badge-new { flex: 0 0 auto; }
.news-content a:hover { color: #1a3a6b; }
.badge-new { background: #e74c3c; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.news-date { font-size: 12px; color: #999; white-space: nowrap; flex-shrink: 0; }
.empty-state { color: #999; font-size: 14px; padding: 16px; text-align: center; width: 100%; }

/* PHẢN ÁNH CARDS */
.phan-anh-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 16px; }
.phan-anh-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.phan-anh-header h3 { font-size: 14px; font-weight: 700; color: #1a3a6b; margin-bottom: 6px; }
.phan-anh-header p { font-size: 13px; color: #666; }
.btn-phan-anh { display: block; background: #1a3a6b; color: #fff; text-align: center; padding: 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; transition: background .2s; }
.btn-phan-anh:hover { background: #2980b9; }

.tra-cuu-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tra-cuu-card h3 { font-size: 14px; font-weight: 700; color: #1a3a6b; margin-bottom: 6px; }
.tra-cuu-card p { font-size: 13px; color: #666; margin-bottom: 12px; }
.tra-cuu-form { display: flex; gap: 8px; }
.tra-cuu-form input { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; outline: none; }
.tra-cuu-form button { padding: 10px 16px; background: #27ae60; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.tra-cuu-form button:hover { background: #219a52; }

/* LỊCH HỌP */
.lich-hop-section { background: #fff; padding: 40px 0; }
.lich-hop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lich-hop-card { border: 1px solid #e8ecf0; border-radius: 12px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: all .2s; }
.lich-hop-card:hover { border-color: #1a3a6b; box-shadow: 0 4px 16px rgba(26,58,107,.1); }
.lich-hop-date { background: #1a3a6b; color: #fff; border-radius: 10px; padding: 10px 14px; text-align: center; flex-shrink: 0; }
.lich-hop-date .day { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.lich-hop-date .month { display: block; font-size: 11px; margin-top: 2px; opacity: .8; }
.lich-hop-info h4 { font-size: 14px; font-weight: 600; color: #1a3a6b; margin-bottom: 8px; }
.lich-hop-info p { font-size: 13px; color: #666; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* HÌNH ẢNH */
.hinh-anh-section { padding: 40px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; padding: 8px 10px; font-size: 12px; transform: translateY(100%); transition: transform .3s; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* DIGITAL FOOTER */
.site-footer.digital-footer{position:relative;overflow:hidden;background:linear-gradient(135deg,#0c2344 0%,#123d68 52%,#0b6b79 100%);color:#d8ecfb}
.footer-network-glow{position:absolute;inset:0;pointer-events:none;opacity:.55;background-image:radial-gradient(circle at 8% 20%,rgba(93,210,220,.22) 0,transparent 24%),radial-gradient(circle at 92% 12%,rgba(93,169,255,.2) 0,transparent 25%),linear-gradient(120deg,transparent 42%,rgba(255,255,255,.035) 42%,transparent 43%,transparent 67%,rgba(255,255,255,.035) 67%,transparent 68%)}
.digital-footer .footer-main{position:relative;z-index:1;padding:42px 0 34px}
.footer-digital-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:25px;border-bottom:1px solid rgba(206,233,250,.18)}
.footer-brand-lockup{display:flex;align-items:center;gap:13px}.footer-brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(135deg,#2d9bd0,#25c6ba);box-shadow:0 8px 25px rgba(20,197,207,.22);font-size:21px}.footer-brand-lockup strong{display:block;color:#fff;font-size:17px;line-height:1.2}.footer-brand-lockup small,.footer-kicker{display:block}.footer-kicker{color:#7ed6e4;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:4px}.footer-brand-lockup small{color:#a9c8dc;font-size:12px;margin-top:4px}
.footer-status{display:flex;align-items:center;gap:8px;color:#c9e8f4;font-size:12px;border:1px solid rgba(126,214,228,.28);background:rgba(8,31,58,.25);border-radius:30px;padding:9px 13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 4px rgba(74,222,128,.13)}
.footer-service-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:24px 0}.footer-service-strip a{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid rgba(193,227,245,.18);border-radius:13px;color:#dff3fc;text-decoration:none;background:rgba(7,28,54,.22);transition:.2s}.footer-service-strip a:hover{border-color:#65d4df;background:rgba(21,108,137,.25);transform:translateY(-2px)}.footer-service-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:rgba(80,205,215,.17);color:#70dbe3}.footer-service-strip span:nth-child(2){flex:1}.footer-service-strip strong,.footer-service-strip small{display:block}.footer-service-strip strong{font-size:13px;color:#fff}.footer-service-strip small{font-size:11px;color:#9fc3d8;margin-top:3px}.footer-service-strip>a>i{font-size:11px;color:#78dbe5}
.digital-footer-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1fr);gap:42px;padding-top:7px;align-items:start}.digital-footer .footer-col h4{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.06em;color:#fff;margin-bottom:15px;border:0;padding:0}.digital-footer .footer-col h4 i{color:#6ed8e2}.digital-footer .footer-col p{font-size:12px;color:#a9c8dc;margin-bottom:10px;display:flex;align-items:flex-start;gap:9px}.digital-footer .footer-col p i{color:#6eb5d3;margin-top:4px;flex-shrink:0}.digital-footer .footer-col a{color:#b9d8e9;text-decoration:none}.digital-footer .footer-col a:hover{color:#fff}.footer-links-columns{display:grid;grid-template-columns:1fr 1fr;gap:4px 25px}.digital-footer .footer-col ul{list-style:none}.digital-footer .footer-col ul li{margin-bottom:8px}.digital-footer .footer-col ul a{font-size:12px;color:#a9c8dc}.digital-footer .footer-col ul a:before{content:'›';color:#6ed8e2;margin-right:7px}.footer-support-link{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid rgba(110,216,226,.3);border-radius:8px;font-size:12px;color:#d8f7fb!important;background:rgba(29,157,170,.14)}.footer-hotline{display:flex;align-items:baseline;gap:10px;margin-top:13px}.footer-hotline span{font-size:11px;color:#9fc3d8}.footer-hotline strong{font-size:20px;color:#75e0e4;letter-spacing:.04em}.digital-footer .footer-bottom{position:relative;z-index:1;background:rgba(5,21,42,.52);border-top:1px solid rgba(206,233,250,.13);padding:14px 0}.digital-footer .footer-bottom .container{display:flex;justify-content:space-between;align-items:center;gap:10px}.digital-footer .footer-bottom span{font-size:11px;color:#91b5cb}.digital-footer .footer-bottom .footer-copy{color:#d1e7f5;font-weight:700}.footer-divider{padding:0 9px;color:#547892!important}.footer-tech{font-size:11px;color:#91b5cb}.footer-tech i{color:#6ed8e2;margin-left:7px}
@media (max-width: 992px){.footer-service-strip{grid-template-columns:1fr}.digital-footer-grid{grid-template-columns:1fr 1fr}.footer-support{grid-column:span 2}}
@media (max-width: 768px){.footer-digital-head{align-items:flex-start;flex-direction:column}.digital-footer-grid{grid-template-columns:1fr;gap:25px}.footer-support{grid-column:auto}.digital-footer .footer-bottom .container{align-items:flex-start;flex-direction:column}.footer-tech{line-height:1.8}}
@media (max-width: 480px){.footer-brand-lockup strong{font-size:15px}.footer-links-columns{gap:4px 12px}.footer-service-strip a{padding:12px 10px}}

/* FORM PAGES */
.page-hero { background: linear-gradient(135deg, #1a3a6b, #2980b9); padding: 40px 0; color: #fff; }
.page-hero h2 { font-size: 28px; font-weight: 700; }
.page-hero p { font-size: 15px; opacity: .8; margin-top: 8px; }
.breadcrumb { font-size: 13px; margin-bottom: 8px; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: none; }

.page-content { padding: 40px 0; }
.card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.08); margin-bottom: 24px; }
.card h3 { font-size: 18px; font-weight: 700; color: #1a3a6b; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #e8ecf0; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group label .required { color: #e74c3c; }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: border .2s; background: #fff; }
.form-control:focus { border-color: #1a3a6b; box-shadow: 0 0 0 3px rgba(26,58,107,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { padding: 13px 32px; background: #1a3a6b; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-submit:hover { background: #2980b9; }
.btn-secondary { padding: 13px 32px; background: #e8ecf0; color: #555; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* STATUS BADGES */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-primary { background: #cce5ff; color: #004085; }
.badge-secondary { background: #e8ecf0; color: #555; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.pagination a { border: 1px solid #ddd; color: #333; }
.pagination a:hover { background: #1a3a6b; color: #fff; border-color: #1a3a6b; }
.pagination .current { background: #1a3a6b; color: #fff; border: 1px solid #1a3a6b; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-info-card { max-width: 480px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .lich-hop-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-text h2 { font-size: 26px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* THÔNG BÁO TABS */
.tb-tabs{display:flex;gap:4px;margin-bottom:0;border-bottom:2px solid #e8ecf0;overflow-x:auto}
.tb-tab{padding:9px 14px;background:none;border:none;border-bottom:3px solid transparent;margin-bottom:-2px;cursor:pointer;font-size:13px;font-weight:500;color:#666;display:flex;align-items:center;gap:6px;transition:all .2s;white-space:nowrap;flex:0 0 auto}
.tb-tab:hover{color:#1a3a6b}
.tb-tab.active{color:#1a3a6b;border-bottom-color:#1a3a6b;font-weight:700}
.tb-tab i{font-size:12px}
.tb-panel{background:#fff;border-radius:0 0 12px 12px;padding:4px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.news-list{padding:8px 12px}

/* ACCESSIBILITY */
html{font-size:100%;scroll-behavior:smooth}
body{overflow-x:hidden}
:focus-visible{outline:3px solid #f2b705;outline-offset:3px}
button,a,input,select,textarea{font-family:inherit}
label{font-weight:600;color:#1a3a6b}
input,select,textarea{min-height:42px}
button,.btn-submit,.btn-phan-anh,.footer-support-link{min-height:42px}
.accessibility-bar{background:#071a33;color:#e6f4ff;border-top:1px solid rgba(255,255,255,.14);font-size:12px}
.accessibility-bar .container{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:8px;padding-bottom:8px}
.accessibility-title{font-weight:700;display:inline-flex;align-items:center;gap:7px}
.accessibility-title i{color:#79e0e6;font-size:16px}
.accessibility-actions{display:flex;gap:6px;flex-wrap:wrap}
.accessibility-actions button{border:1px solid rgba(220,245,255,.35);background:rgba(255,255,255,.08);color:#fff;border-radius:6px;padding:6px 10px;cursor:pointer;font-size:12px}
.accessibility-actions button:hover,.accessibility-actions button:focus-visible{background:#1f7893;border-color:#7ee3e8}
.accessibility-actions button[aria-pressed="true"]{background:#f2b705;color:#152b4d;border-color:#f2b705}
body.a11y-font-large{font-size:108%}
body.a11y-font-xlarge{font-size:118%}
body.a11y-high-contrast{background:#fff;color:#111}
body.a11y-high-contrast .card,body.a11y-high-contrast .news-list,body.a11y-high-contrast .quick-access,body.a11y-high-contrast .tra-cuu-card{border:2px solid #111;box-shadow:none}
body.a11y-high-contrast a{color:#003b80;text-decoration:underline}
body.a11y-high-contrast .page-hero,body.a11y-high-contrast .hero{background:#08264d}
body.a11y-high-contrast .accessibility-bar,body.a11y-high-contrast .site-footer{background:#000;color:#fff}
body.a11y-high-contrast .accessibility-actions button{border-color:#fff}
@media(max-width:600px){.accessibility-bar .container{align-items:flex-start;flex-direction:column}.accessibility-actions{width:100%}.accessibility-actions button{flex:1;min-width:64px}.container{padding-left:14px;padding-right:14px}.page-content,.main-content{padding-top:28px;padding-bottom:28px}.card{padding:20px}.search-form,.tra-cuu-form{flex-wrap:wrap}.search-form input,.tra-cuu-form input{min-width:0;width:100%}.search-form button,.tra-cuu-form button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* FIX THÔNG BÁO TRÊN MOBILE */
@media (max-width: 600px) {
  .news-list { padding: 6px 8px; }
  .news-list li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 0;
  }
  .news-dot { grid-column: 1; grid-row: 1; }
  .news-content {
    grid-column: 2;
    min-width: 0;
    width: 100%;
  }
  .news-inline {
    display: block;
    min-width: 0;
    line-height: 1.55;
  }
  .news-source {
    display: inline-flex;
    max-width: 100%;
    margin: 0 5px 4px 0;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .news-content > a,
  .news-inline > a {
    display: inline;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .news-date {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 3px;
    white-space: nowrap;
    font-size: 11px;
  }
  .badge-new { display: inline-block; margin: 3px 0 0 4px; }
}

/* FIX KHUNG MOBILE: loại bỏ khoảng trắng bên phải */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-header, .hero, .quick-access, .main-content,
  .lich-hop-section, .accessibility-bar, .digital-footer, .site-footer {
    width: 100%;
    max-width: 100%;
  }
  .hero-content, .content-grid, .quick-grid, .lich-hop-grid,
  .footer-grid, .digital-footer-grid {
    width: 100%;
    min-width: 0;
  }
  img, video, iframe, table { max-width: 100%; }
}

/* FIX THÔNG BÁO MOBILE: giữ trọn tiêu đề sau nhãn nguồn */
@media (max-width: 600px) {
  .news-inline {
    display: block;
    width: 100%;
    overflow: visible;
  }
  .news-inline .news-source {
    display: inline-flex;
    vertical-align: middle;
    max-width: 100%;
  }
  .news-inline > a {
    display: block;
    width: 100%;
    margin-top: 3px;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.45;
  }
  .news-inline .badge-new {
    display: inline-block;
    margin: 4px 0 0;
  }
}

/* RESPONSIVE FLUID: iPhone, Android, iPad và tablet */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-width: 0; overflow-x: hidden; }
.container { width: 100%; max-width: 1200px; padding-left: clamp(12px, 4vw, 24px); padding-right: clamp(12px, 4vw, 24px); }

@media (max-width: 768px) {
  .header-top .container,
  .header-main .container,
  .hero .container,
  .main-content .container,
  .quick-access .container,
  .lich-hop-section .container,
  .accessibility-bar .container,
  .digital-footer .container,
  .site-footer .container {
    width: 100%;
    min-width: 0;
  }
  .header-main .container { gap: clamp(8px, 3vw, 16px); padding-top: 10px; padding-bottom: 10px; }
  .logo-area { min-width: 0; gap: 8px; }
  .logo-icon { width: clamp(38px, 12vw, 50px); height: clamp(38px, 12vw, 50px); }
  .logo-text { min-width: 0; }
  .logo-text h1 { font-size: clamp(13px, 4vw, 16px); overflow-wrap: anywhere; }
  .logo-text p { font-size: clamp(9px, 2.7vw, 11px); white-space: normal; }
  .mobile-toggle { flex: 0 0 auto; }
  .hero { padding: clamp(28px, 8vw, 60px) 0; }
  .hero-content { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 6vw, 40px); }
  .hero-text h2 { font-size: clamp(22px, 7vw, 32px); overflow-wrap: anywhere; }
  .hero-desc { font-size: clamp(13px, 3.8vw, 15px); }
  .search-form { width: 100%; max-width: none; flex-direction: column; }
  .search-form input, .search-form button { width: 100%; min-width: 0; }
  .quick-grid { width: 100%; min-width: 0; gap: clamp(8px, 2vw, 16px); }
  .quick-item { min-width: 0; overflow-wrap: anywhere; }
  .content-grid, .lich-hop-grid { width: 100%; min-width: 0; }
  .content-left, .content-right, .tb-panel, .news-list { min-width: 0; max-width: 100%; }
  .tb-tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .tb-tab { flex: 0 0 auto; white-space: nowrap; }
  .news-content, .news-inline, .news-inline > a { min-width: 0; max-width: 100%; }
  .news-inline > a { overflow-wrap: anywhere; word-break: break-word; }
  .digital-footer-grid, .footer-grid { width: 100%; min-width: 0; }
}

@media (max-width: 390px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .header-top { font-size: 11px; }
  .header-top .container { justify-content: center; }
  .btn-login-cb { margin-left: 0; padding: 4px 8px; font-size: 11px; }
  .logo-text h1 { font-size: 12px; }
  .logo-text p { font-size: 8px; }
  .hero-text h2 { font-size: clamp(21px, 7.5vw, 28px); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-item { padding-left: 8px; padding-right: 8px; }
  .news-list { padding-left: 6px; padding-right: 6px; }
  .news-source { font-size: 9px; padding: 2px 6px; }
  .news-date { font-size: 10px; }
}

/* SẮP XẾP SIDEBAR PHẢN ÁNH TRÊN MOBILE */
@media (max-width: 768px) {
  .phan-anh-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .phan-anh-sidebar > .card { width: 100%; min-width: 0; }
  /* Tra cứu lên ngay sau form gửi phản ánh */
  .phan-anh-sidebar > .card:nth-child(1) { order: 2; }
  .phan-anh-sidebar > .card:nth-child(2) { order: 1; }
  /* Liên hệ ở cuối */
  .phan-anh-sidebar > .card:nth-child(3) { order: 3; }
}

/* TRANG PHẢN ÁNH: một cột trên mobile/tablet nhỏ */
@media (max-width: 900px) {
  .phan-anh-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100%;
    min-width: 0;
  }
  .phan-anh-layout > * {
    width: 100%;
    min-width: 0;
  }
  .phan-anh-sidebar {
    width: 100%;
    min-width: 0;
  }
  .phan-anh-sidebar > .card {
    width: 100%;
  }
}

/* HEADER MOBILE: nút ba gạch sát mép phải trên mọi trang dân */
@media (max-width: 768px) {
  .header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo-area {
    flex: 1 1 auto;
    min-width: 0;
  }
  .mobile-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    font-size: 29px;
    line-height: 1;
  }
}

/* THÔNG BÁO MỚI NHẤT: mobile chỉ hiển thị Tất cả */
@media (max-width: 768px) {
  .tb-tabs .tb-tab-category {
    display: none !important;
  }
  .tb-tabs .tb-tab:not(.tb-tab-category) {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
}

/* PHÂN TRANG THÔNG BÁO */
.notice-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.notice-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
}
@media (max-width: 480px) {
  .notice-pagination { gap: 5px; }
  .notice-pagination a { padding: 8px 10px; font-size: 13px; }
  .notice-pagination a[aria-label="Trang trước"],
  .notice-pagination a[aria-label="Trang sau"] { min-width: 42px; }
}

/* HEADER DÙNG CHUNG - cân đối theo trang chủ */
.site-header .header-main .container {
  min-height: 74px;
}
.site-header .logo-area {
  min-width: 0;
}
.site-header .logo-text {
  min-width: 0;
}
.site-header .logo-text h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header .main-nav {
  align-items: center;
  min-width: 0;
}
.site-header .mobile-toggle {
  margin-left: auto;
  flex: 0 0 auto;
}
@media (max-width: 1100px) and (min-width: 769px) {
  .site-header .header-main .container { gap: 12px; }
  .site-header .main-nav { gap: 1px; }
  .site-header .main-nav a { padding-left: 8px; padding-right: 8px; font-size: 13px; }
}
@media (max-width: 768px) {
  .site-header .header-top .container { min-height: 36px; }
  .site-header .header-main .container { min-height: 70px; padding: 10px 14px; gap: 12px; }
  .site-header .logo-area { flex: 1 1 auto; gap: 10px; }
  .site-header .logo-icon { width: 50px; height: 50px; }
  .site-header .logo-text h1 { font-size: 16px; }
  .site-header .logo-text p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header .mobile-toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 25px; }
}

/* FIX HEADER SÁT MÉP TRÊN */
html, body { margin: 0 !important; padding: 0 !important; }
.site-header { margin-top: 0 !important; padding-top: 0 !important; }
.site-header .header-top { margin-top: 0 !important; }
