/* 
  Website Cổng thông tin điện tử Tổ dân phố Quảng Giao
  Phường Nam Sầm Sơn, Thành phố Sầm Sơn, Tỉnh Thanh Hóa
  Mã nguồn CSS thuần chất lượng cao (Responsive & Modern)
*/

:root {
  --primary-color: #0f172a; /* Xanh Navy hoàng gia cao cấp */
  --primary-light: #1e293b;
  --secondary-color: #dc2626; /* Đỏ cờ đỏ sao vàng đậm nét */
  --accent-color: #f59e0b; /* Vàng đồng */
  --accent-light: #fef3c7;
  
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 6px 15px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top right, rgba(241, 245, 249, 0.8) 0%, transparent 50%), radial-gradient(circle at bottom left, rgba(241, 245, 249, 0.8) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Montserrat', 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* --- BANNER ĐẦU TRANG & HEADER --- */
.national-header {
  background: linear-gradient(135deg, #a82020 0%, #7f1d1d 100%);
  color: white;
  text-align: center;
  padding: 8px 10px;
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent-color);
}

.main-banner {
  background: #ffffff; /* Nền trắng tinh tế giống chinhphu.vn */
  color: var(--text-main);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.banner-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
}

.banner-emblem {
  flex-shrink: 0;
  transition: var(--transition);
}

.banner-emblem:hover {
  transform: rotate(10deg) scale(1.05);
}

.banner-text {
  text-align: left;
}

.banner-gov-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b; /* Chữ xám */
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.banner-portal-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #cc0000; /* Màu đỏ chính phủ đặc trưng */
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 3px;
}

.banner-sub-portal {
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color); /* Màu xanh Navy */
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.banner-date-bar {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-date-bar a {
  color: var(--text-muted);
}

.banner-date-bar a:hover {
  color: var(--secondary-color);
}

.bar-separator {
  color: #cbd5e1;
  font-size: 0.8rem;
}

/* --- THANH MENU ĐIỀU HƯỚNG --- */
.nav-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--primary-color) !important;
}

.nav-links {
  display: flex;
  list-style: none;
  width: 100%;
  justify-content: space-between;
}

.nav-links a {
  display: block;
  padding: 18px 12px;
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155; /* Chữ xám đậm lịch sự */
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color); /* Gạch đỏ */
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover, .nav-links li.active a {
  color: var(--secondary-color); /* Đổi màu đỏ */
}

.nav-links a:hover::after, .nav-links li.active a::after {
  width: 60%;
}

.admin-login-btn {
  background-color: var(--primary-color);
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 4px;
  margin-top: 10px;
  margin-bottom: 10px;
  align-self: center;
  font-size: 0.8rem !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  font-weight: 700 !important;
}

.admin-login-btn:hover {
  background-color: var(--secondary-color) !important;
  color: white !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 10px;
}

/* --- THANH PHỤ TÌM KIẾM & TIỆN ÍCH (SUB-HEADER) --- */
.sub-header-bar {
  background: #f1f5f9; /* Màu nền xám nhạt */
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
}

.sub-header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.sub-search-box {
  width: 250px;
  display: flex;
  align-items: center;
}

.sub-search-input {
  width: 100%;
  padding: 6px 12px;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-family: inherit;
}

.sub-search-btn {
  background: #94a3b8;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--transition);
}

.sub-search-btn:hover {
  background: var(--primary-color);
}

.sub-fast-links {
  display: flex;
  gap: 10px;
}

.sub-fast-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

.sub-fast-btn:hover {
  background: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color);
}

.sub-weather-widget {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

/* --- THANH THÔNG TIN CHẠY CHỮ (NEWS TICKER) --- */
.news-ticker-bar {
  background: #fff5f5;
  border-bottom: 1px solid #fee2e2;
  padding: 8px 0;
  overflow: hidden;
}

.ticker-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.ticker-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-right: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ticker-content-container {
  overflow: hidden;
  position: relative;
  flex-grow: 1;
  height: 20px;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  animation: ticker-slide 55s linear infinite; /* Giảm tốc độ chạy từ 25s xuống 55s để bà con dễ đọc */
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
}

/* Tự động tạm dừng chạy chữ khi di chuột vào (hover) giúp bà con đọc kỹ các tin dài */
.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
  cursor: pointer;
}

.ticker-bullet {
  color: var(--secondary-color);
  margin: 0 10px;
  font-weight: bold;
}

@keyframes ticker-slide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --- SLIDESHOW HÌNH ẢNH --- */
.slideshow-container {
  max-width: 1200px;
  height: 450px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.mySlides {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 40px 30px 25px 30px;
  font-family: 'Outfit', sans-serif;
}

.slide-caption h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.slide-caption p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
  pointer-events: none;
}

.prev, .next {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
  pointer-events: auto;
}

.prev:hover, .next:hover {
  background: var(--secondary-color);
}

.slide-dots {
  position: absolute;
  bottom: 15px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active, .dot:hover {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* --- BỐ CỤC TRANG CHỦ & NỘI DUNG --- */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.grid-main {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 30px;
}

/* Tiêu đề phần (Section Title) */
.section-title {
  font-size: 1.6rem;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.see-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.see-more-link:hover {
  text-decoration: underline;
}

/* Thẻ tin tức (News Card) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 23, 42, 0.15);
}

.news-image {
  height: 180px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #e2e8f0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--secondary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  height: 3.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.news-views {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- THANH BÊN (SIDEBAR) --- */
.sidebar-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sidebar-box-title {
  font-size: 1.15rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Danh sách thông báo khẩn/mới */
.announce-list {
  list-style: none;
}

.announce-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.announce-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.announce-item-date {
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: block;
}

.announce-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.announce-item-title:hover {
  color: var(--secondary-color);
}

/* Lịch họp rút gọn */
.meeting-quick {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.02), rgba(26, 54, 93, 0.05));
  border-left: 4px solid var(--primary-color);
  padding: 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 15px;
}

.meeting-quick-time {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.meeting-quick-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 5px;
}

.meeting-quick-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Phím tắt góc người dân (Quick actions) */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-action-btn {
  background: var(--bg-color);
  padding: 15px 10px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.quick-action-btn i {
  font-size: 1.4rem;
  color: var(--secondary-color);
}

.quick-action-btn:hover {
  background: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color);
}

.quick-action-btn:hover i {
  color: var(--accent-color);
}

/* --- TRANG CHI TIẾT BÀI VIẾT --- */
.post-detail-container {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.post-header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.post-meta {
  display: flex;
  gap: 15px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.post-title-large {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.post-detail-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 25px;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content strong {
  color: var(--primary-color);
}

/* --- TRANG VĂN BẢN & BIỂU MẪU --- */
.search-filter-bar {
  background: white;
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  align-items: center;
}

.search-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
}

.search-input:focus {
  border-color: var(--primary-color);
}

.filter-select {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.document-table-container {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.document-table th, .document-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.document-table th {
  background-color: rgba(26, 54, 93, 0.03);
  font-weight: 700;
  color: var(--primary-color);
}

.document-table tr:hover {
  background-color: rgba(26, 54, 93, 0.01);
}

.badge-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-type.directive {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-type.form {
  background-color: #e0f2fe;
  color: #0369a1;
}

.download-btn {
  background: var(--primary-color);
  color: white !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.download-btn:hover {
  background: var(--secondary-color);
}

/* --- TRANG GÓC NGƯỜI DÂN (PHẢN ÁNH) --- */
.citizen-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-box {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-btn:hover {
  background: var(--secondary-color);
}

/* Thẻ phản hồi ý kiến người dân */
.feedback-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.feedback-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.feedback-sender {
  font-weight: 700;
}

.feedback-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feedback-content {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.feedback-reply {
  background: rgba(217, 119, 6, 0.05);
  border-left: 3px solid var(--accent-color);
  padding: 10px 15px;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

.feedback-reply-title {
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 3px;
}

.badge-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-status.pending {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-status.resolved {
  background-color: #d1fae5;
  color: #065f46;
}

/* --- THƯ VIỆN ẢNH (GALLERY) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 180px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  padding: 15px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* --- LỊCH CÔNG TÁC (SCHEDULE) --- */
.schedule-list {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 2fr 2fr 6fr 2fr;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-header {
  background-color: rgba(26, 54, 93, 0.03);
  font-weight: 700;
  color: var(--primary-color);
}

.schedule-date {
  font-weight: 700;
  color: var(--secondary-color);
}

.schedule-time {
  font-weight: 600;
}

.schedule-title-text {
  font-weight: 600;
  margin-bottom: 3px;
}

.schedule-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.schedule-location-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge-sched {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.badge-sched.meeting {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-sched.work {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* --- LIÊN HỆ & BẢN ĐỒ --- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card {
  background: white;
  border-radius: var(--radius);
  padding: 25px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(26, 54, 93, 0.05);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 350px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- CHÂN TRANG (FOOTER) --- */
footer {
  background-color: #0c1c30;
  color: #94a3b8;
  padding: 50px 20px 20px 20px;
  margin-top: 40px;
  border-top: 4px solid var(--secondary-color);
  font-size: 0.9rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 3fr 5fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 20px;
}

.footer-col h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-logo {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.stat-counter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-value {
  color: white;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- ADMIN PANEL LAYOUT --- */
.admin-login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.admin-login-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.admin-login-logo {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.admin-login-title {
  margin-bottom: 25px;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 90vh;
  gap: 30px;
}

.admin-sidebar {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 20px 10px;
  align-self: start;
}

.admin-sidebar-menu {
  list-style: none;
}

.admin-sidebar-menu li {
  margin-bottom: 5px;
}

.admin-sidebar-menu button, .admin-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-sidebar-menu button.active, .admin-sidebar-menu a:hover {
  background: var(--primary-color);
  color: white;
}

.admin-sidebar-menu button.logout-btn:hover {
  background: var(--danger);
  color: white;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: rgba(26, 54, 93, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.admin-stat-icon.pending {
  background: rgba(217, 119, 6, 0.05);
  color: var(--accent-color);
}

.admin-stat-info h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.admin-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary-color);
}

.admin-action-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background-color: var(--success);
}

.toast.error {
  background-color: var(--danger);
}

/* --- RESPONSIVE RESPONSIVENESS (MOBILE ADAPTATION) --- */
@media (max-width: 992px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .main-banner {
    padding: 15px 15px;
  }
  .banner-title {
    font-size: 1.3rem;
  }
  .banner-subtitle {
    font-size: 0.85rem;
  }
  .banner-desc {
    font-size: 0.78rem;
  }
  
  .slideshow-container {
    height: 250px;
  }
  .slide-caption h3 {
    font-size: 1.1rem;
  }
  .slide-caption p {
    font-size: 0.8rem;
  }
  
  .nav-wrap {
    padding: 0 10px;
  }
  .menu-toggle {
    display:block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color); /* Đồng màu xanh Navy cho menu di động */
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
  }
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  .admin-login-btn {
    margin: 15px 20px;
    text-align: center;
    justify-content: center;
  }
  
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px;
  }
  
  .post-title-large {
    font-size: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CÁC PHẦN BỔ SUNG GIAO DIỆN CỔNG CHÍNH PHỦ
   ========================================== */

/* Băng rôn khẩu hiệu tuyên truyền */
.slogan-banner-container {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
}

.slogan-banner {
  background: linear-gradient(135deg, #a82020 0%, #b91c1c 50%, #7f1d1d 100%);
  border: 2px solid #fcd34d;
  box-shadow: var(--shadow-md), inset 0 0 10px rgba(253, 211, 77, 0.2);
  border-radius: 6px;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  transition: var(--transition);
}

.slogan-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 0 15px rgba(253, 211, 77, 0.4);
}

.slogan-text {
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

.slogan-star {
  color: #fcd34d;
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(253, 211, 77, 0.8);
  animation: slogan-spin 4s linear infinite;
}

@keyframes slogan-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Nhãn thông báo khẩn có hiệu ứng nhấp nháy */
.badge-urgent-flash {
  background: var(--secondary-color);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
  animation: pulse-flash 1.5s infinite;
}

@keyframes pulse-flash {
  0% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(0.95); }
}

/* Các lớp bổ sung viền trên cho hộp Sidebar */
.sidebar-box.welcome {
  border-top: 4px solid var(--accent-color);
}

.sidebar-box.urgent {
  border-top: 4px solid var(--secondary-color);
}

.sidebar-box.calendar {
  border-top: 4px solid var(--primary-color);
}
