/* ==========================================================================
   CỔNG THÔNG TIN ĐIỆN TỬ TRƯỜNG MẦM NON SƠN CA - XÃ ĐẠ HUOAI 2
   Phong cách chuẩn Cổng Thông Tin Điện Tử Giáo Dục - Thiết kế hiện đại Mầm Non
   ========================================================================== */

:root {
  --primary-color: #0b5ed7;
  --primary-dark: #084298;
  --primary-light: #e7f1ff;
  --primary-gradient: linear-gradient(135deg, #0b5ed7 0%, #198754 100%);

  --brand-pink: #ff5e7e;
  --brand-pink-light: #fff0f3;
  --brand-orange: #fd7e14;
  --brand-orange-light: #fff4e6;
  --brand-yellow: #ffc107;
  --brand-green: #20c997;
  --brand-green-dark: #198754;
  --brand-purple: #6f42c1;
  --brand-cyan: #0dcaf0;

  --portal-header-bg: #0d47a1;
  --portal-menu-bg: #1565c0;
  --portal-menu-hover: #0d47a1;
  --portal-block-title: #0d47a1;

  --text-dark: #212529;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --bg-body: #f4f7f9;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;

  --font-base: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Be Vietnam Pro', "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
  --shadow-md: 0 .5rem 1rem rgba(0, 0, 0, .08);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;

  --font-size-ratio: 1;
}

/* Accessibility Modes */
body.font-large {
  --font-size-ratio: 1.15;
}

body.font-xlarge {
  --font-size-ratio: 1.25;
}

body.high-contrast {
  --bg-body: #121212;
  --bg-card: #1e1e1e;
  --bg-sidebar: #1e1e1e;
  --text-dark: #ffffff;
  --text-muted: #b0b0b0;
  --border-color: #444444;
  --border-light: #333333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  font-size: calc(14px * var(--font-size-ratio));
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-body);
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Chuẩn hóa font tiếng Việt cho toàn bộ form controls và buttons */
button,
input,
optgroup,
select,
textarea {
  font-family: var(--font-base);
  font-size: inherit;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--brand-pink);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ==========================================================================
   1. TOP BAR (Chuẩn cổng thông tin điện tử)
   ========================================================================== */
.top-bar {
  background: #092c66;
  color: #d1e0ff;
  font-size: 12px;
  border-bottom: 2px solid var(--brand-yellow);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-info span,
.top-info a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d1e0ff;
}

.top-info a:hover {
  color: #ffc107;
  text-decoration: none;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.btn-a-size,
.btn-contrast {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 2px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-a-size:hover,
.btn-contrast:hover {
  background: var(--brand-yellow);
  color: #000;
  border-color: var(--brand-yellow);
}

.top-auth-link {
  color: #ffda79;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.top-auth-link:hover {
  color: #fff;
}

/* ==========================================================================
   2. MAIN HEADER & BANNER
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #00897b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 50, 120, 0.15);
}

.header-decor-clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,192L48,197.3C96,203,192,213,288,197.3C384,181,480,139,576,138.7C672,139,768,181,864,197.3C960,213,1056,203,1152,176C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom center no-repeat;
  background-size: cover;
  pointer-events: none;
}

.header-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
  z-index: 2;
  gap: 20px;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 18px;
}

.school-logo-wrap {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 3px solid #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulseLogo 4s infinite ease-in-out;
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.school-logo-svg {
  width: 100%;
  height: 100%;
}

.header-text {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.super-title {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #ffe599;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.main-school-name {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.main-school-name span {
  color: #ffeb3b;
}

.school-slogan {
  font-size: 13px;
  font-style: italic;
  color: #e3f2fd;
  font-weight: 400;
}

.header-action-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-hotline-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
}

.header-hotline-badge strong {
  color: #ffeb3b;
  font-size: 14px;
}

.header-admission-btn {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 65, 108, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
  animation: glowPulse 2.5s infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 3px 10px rgba(255, 65, 108, 0.35);
  }

  50% {
    box-shadow: 0 4px 18px rgba(255, 235, 59, 0.7);
  }
}

.header-admission-btn:hover {
  background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
  transform: translateY(-2px);
  color: #ffeb3b;
}

.header-search-form {
  display: flex;
  background: #fff;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 240px;
}

.header-search-form input {
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.header-search-form button {
  background: var(--brand-pink);
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  transition: 0.2s;
}

.header-search-form button:hover {
  background: #e63956;
}

/* ==========================================================================
   3. MAIN NAVIGATION (Menu đa cấp)
   ========================================================================== */
.main-navbar {
  background: #0c3e8a;
  border-bottom: 3px solid #ff9800;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-menu-list {
  display: flex;
  align-items: center;
  position: relative;
  flex-wrap: nowrap;
  width: 100%;
}

.nav-item {
  position: relative;
  flex: 1;
  text-align: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.nav-item:first-child .nav-link {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link:hover,
.nav-item.active .nav-link {
  background: #ff5722;
  color: #ffffff;
  text-decoration: none;
}

.nav-item.highlight-admissions .nav-link {
  background: #e91e63;
  color: #fff;
  animation: bounceGlow 3s infinite;
}

@keyframes bounceGlow {

  0%,
  100% {
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow: inset 0 0 14px rgba(255, 235, 59, 0.6);
  }
}

/* Submenu Dropdown */
.submenu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border-top: 3px solid #ff5722;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
}

.nav-item:hover .submenu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-item {
  border-bottom: 1px solid var(--border-light);
}

.submenu-item:last-child {
  border-bottom: none;
}

.submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.submenu-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding-left: 20px;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 8px 12px;
  font-size: 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   3.5. SINGLE FRAME ACTIVITY SLIDESHOW (1 Khung hình gọn ~7cm, đổi từng ảnh liên tục)
   ========================================================================== */
.activity-showcase-section {
  background: #f8fafc;
  padding: 10px 0 12px 0;
  border-bottom: 2px solid #e2e8f0;
}

.activity-single-frame-wrapper {
  position: relative;
  height: 220px;
  /* Chuẩn ~7cm trên màn hình */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 40, 90, 0.1);
  background: #0f172a;
  cursor: pointer;
  border: 1px solid #cbd5e1;
}

.activity-single-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.02);
}

.activity-single-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.activity-single-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.activity-single-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 35px 20px 14px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  color: #fff;
}

.activity-single-badge {
  background: #ff5722;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.activity-single-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.activity-frame-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  z-index: 10;
  opacity: 0.7;
}

.activity-single-frame-wrapper:hover .activity-frame-nav {
  opacity: 1;
}

.activity-frame-nav:hover {
  background: #ff5722;
  border-color: #ff5722;
  transform: translateY(-50%) scale(1.1);
}

.frame-prev {
  left: 14px;
}

.frame-next {
  right: 14px;
}

.activity-frame-dots {
  position: absolute;
  bottom: 12px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.frame-dot.active {
  background: #ffeb3b;
  width: 22px;
  border-radius: 6px;
}

/* ==========================================================================
   4. MARQUEE / TICKER THÔNG BÁO MỚI
   ========================================================================== */
.breaking-ticker {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.ticker-inner {
  display: flex;
  align-items: center;
}

.ticker-label {
  background: #d32f2f;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
  padding-right: 22px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding: 4px 12px;
  font-size: 13px;
}

.ticker-content a {
  color: #2c3e50;
  font-weight: 500;
  margin-right: 35px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-content a:hover {
  color: var(--brand-pink);
}

.ticker-content a::before {
  content: "★";
  color: #ff9800;
  font-size: 11px;
}

/* ==========================================================================
   5. FEATURE HERO SECTION (Slider & Tin Mới Nhất)
   ========================================================================== */
.feature-hero-section {
  margin-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* Slider */
.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 18px 16px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
}

.hero-slide-badge {
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}

.hero-slide-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-title a {
  color: #fff;
}

.hero-slide-title a:hover {
  color: #ffeb3b;
  text-decoration: none;
}

.hero-slide-meta {
  font-size: 12px;
  color: #cfd8dc;
  display: flex;
  gap: 14px;
}

.slider-arrows {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.btn-slider-nav {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.btn-slider-nav:hover {
  background: #ff5722;
  border-color: #ff5722;
}

/* Hero Latest News List */
.hero-latest-news {
  display: flex;
  flex-direction: column;
}

.block-header-mini {
  background: #0d47a1;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.latest-news-list {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 8px 12px;
  overflow-y: auto;
  max-height: 334px;
}

.latest-news-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #cbd5e1;
  transition: background 0.2s;
}

.latest-news-item:last-child {
  border-bottom: none;
}

.latest-news-thumb {
  width: 75px;
  height: 55px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.latest-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.latest-news-item:hover .latest-news-thumb img {
  transform: scale(1.08);
}

.latest-news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.latest-news-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1e293b;
}

.latest-news-title:hover {
  color: #0b5ed7;
  text-decoration: none;
}

.latest-news-date {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==========================================================================
   6. QUICK CTA SHORTCUTS (Các biểu tượng phím tắt mầm non)
   ========================================================================== */
.quick-shortcuts-section {
  margin-bottom: 24px;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shortcut-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
}

.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: #fff;
}

.shortcut-card.card-admission {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.shortcut-card.card-menu {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.shortcut-card.card-schedule {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.shortcut-card.card-gallery {
  background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}

.shortcut-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.shortcut-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.shortcut-content p {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

/* ==========================================================================
   7. MAIN PORTAL LAYOUT (Cột Trái 280px + Cột Chính)
   ========================================================================== */
.portal-body-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-bottom: 30px;
  align-items: start;
}

.sidebar-left-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 7.1. TOP BANNER LINKS (PORTAL, MAIL MOET, BÁO LÂM ĐỒNG) */
.sidebar-top-banners {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.banner-portal-lamdong {
  background: #00a2e8;
  background: linear-gradient(180deg, #00b4db 0%, #0083b0 100%);
  border: 1px solid #006d94;
  border-radius: 4px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-portal-lamdong:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 131, 176, 0.35);
  text-decoration: none;
}

.banner-portal-lamdong-text {
  font-family: 'Be Vietnam Pro', 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffeb3b;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

/* Mail Bộ Giáo Dục Banner */
.banner-mail-moet {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.banner-mail-moet:hover {
  transform: translateY(-2px);
  border-color: #0056b3;
  text-decoration: none;
}

.moet-emblem-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.moet-text-group {
  display: flex;
  flex-direction: column;
}

.moet-text-mail {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #3b5998;
  line-height: 1.1;
  margin-bottom: 2px;
}

.moet-text-dept {
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  color: #0056b3;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.moet-text-sub {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-size: 7.8px;
  font-weight: 600;
  color: #1e3a8a;
  letter-spacing: 0.2px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Lâm Đồng Online Banner */
.banner-lamdong-online {
  background: #fbf7ee;
  border: 1px solid #d9ccb4;
  border-radius: 4px;
  padding: 6px 8px 8px 8px;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.banner-lamdong-online:hover {
  transform: translateY(-2px);
  border-color: #f25c05;
  text-decoration: none;
}

.lamdong-online-title {
  font-family: 'Oswald', 'Be Vietnam Pro', 'Arial Black', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f25c05;
  letter-spacing: 0.8px;
  line-height: 1.15;
  margin-bottom: 3px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lamdong-online-sub1,
.lamdong-online-sub2 {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  color: #262626;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* 7.2. BLOCK THÀNH VIÊN (MEMBER LOGIN BLOCK) */
.block-member-portal {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.block-member-header {
  background: #eceff1;
  color: #1e293b;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid #cbd5e1;
}

.block-member-body {
  padding: 12px;
}

.member-login-notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #1e293b;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 12px;
}

.sidebar-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #ffffff;
  height: 36px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.sidebar-input-group:focus-within {
  border-color: #337ab7;
  box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.2);
}

.sidebar-input-addon {
  background: #eceff1;
  border-right: 1px solid #cbd5e1;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-input-control {
  flex: 1;
  border: none;
  padding: 0 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  background: transparent;
  width: 100%;
}

.sidebar-input-req {
  color: #f97316;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-right: 8px;
  flex-shrink: 0;
}

.sidebar-login-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.btn-sidebar-reset {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-sidebar-reset:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-sidebar-submit {
  background: #337ab7;
  border: 1px solid #2e6da4;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-sidebar-submit:hover {
  background: #286090;
  border-color: #204d74;
}

.sidebar-login-footer-link {
  text-align: right;
  margin-top: 4px;
}

.sidebar-login-footer-link a {
  color: #337ab7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-login-footer-link a:hover {
  color: #23527c;
  text-decoration: underline;
}

/* Logged-in profile view inside Sidebar */
.sidebar-user-profile-view {
  display: none;
  padding: 4px 0;
}

.sidebar-user-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
}

.sidebar-user-avatar {
  font-size: 26px;
  width: 44px;
  height: 44px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-info h5 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.35;
}

.sidebar-user-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-sidebar-action-rbac {
  background: #ffeb3b;
  color: #092c66;
  border: 1px solid #fbc02d;
  padding: 8px 10px;
  border-radius: 5px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-sidebar-action-rbac:hover {
  background: #ffffff;
  color: #0d47a1;
  border-color: #0d47a1;
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.2);
}

.btn-sidebar-action-dnd {
  background: #0d47a1;
  color: #ffffff;
  border: 1px solid #0a3880;
  padding: 8px 10px;
  border-radius: 5px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-sidebar-action-dnd:hover {
  background: #1565c0;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.3);
}

.btn-sidebar-action-footer {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
  padding: 8px 10px;
  border-radius: 5px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-sidebar-action-footer:hover {
  background: #0369a1;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.btn-sidebar-action-logout {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 7px 10px;
  border-radius: 5px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.1px;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-sidebar-action-logout:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* 7.3. BLOCK THỐNG KÊ (VISITOR STATS BLOCK) */
.block-stats-portal {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.block-stats-header {
  background: #337ab7;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
}

.block-stats-body {
  padding: 8px 12px;
}

.stats-row-live {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.stats-row-live .stats-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.stats-row-live .stats-val {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.stats-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: #475569;
}

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

.stats-sub-row strong {
  color: #0f172a;
  font-weight: 700;
}

/* Portal Box Header Styling */
.nv-block-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.nv-block-title {
  background: linear-gradient(to right, #0d47a1, #1976d2);
  color: #fff;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ff9800;
}

.nv-block-title span.title-icon {
  margin-right: 8px;
  font-size: 16px;
}

.nv-block-title a.view-all-link {
  color: #ffeb3b;
  font-size: 12px;
  text-transform: none;
  font-weight: 500;
}

.nv-block-title a.view-all-link:hover {
  text-decoration: underline;
}

/* Special Module Title Styles */
.nv-block-box.box-preschool .nv-block-title {
  background: linear-gradient(to right, #e91e63, #ff4081);
  border-bottom-color: #ffeb3b;
}

.nv-block-box.box-dining .nv-block-title {
  background: linear-gradient(to right, #00897b, #26a69a);
  border-bottom-color: #ffca28;
}

.nv-block-box.box-notice .nv-block-title {
  background: linear-gradient(to right, #d32f2f, #f44336);
  border-bottom-color: #ffc107;
}

.nv-block-content {
  padding: 16px;
}

/* ==========================================================================
   8. TABBED NEWS MODULE (Tin Tức - Hoạt Động Nhà Trường)
   ========================================================================== */
.tab-nav-header {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid #0d47a1;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-tab {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-tab:hover {
  background: #cbd5e1;
}

.btn-tab.active {
  background: #0d47a1;
  color: #fff;
}

.news-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Main Featured Article in Box */
.main-news-feature {
  border-right: 1px solid var(--border-light);
  padding-right: 14px;
}

.main-news-feature .feature-img {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.main-news-feature .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.main-news-feature:hover .feature-img img {
  transform: scale(1.05);
}

.main-news-feature .feature-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.main-news-feature .feature-title a {
  color: #0f172a;
}

.main-news-feature .feature-title a:hover {
  color: var(--primary-color);
}

.main-news-feature .feature-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.main-news-feature .feature-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sub news list on the right side of Box */
.sub-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-news-item {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

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

.sub-news-thumb {
  width: 90px;
  height: 65px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.sub-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-news-info {
  flex: 1;
}

.sub-news-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.sub-news-title:hover {
  color: var(--primary-color);
}

.sub-news-meta {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   9. DINING & NUTRITION MODULE (Thực đơn dinh dưỡng tuần của Bé)
   ========================================================================== */
.nutrition-widget {
  background: #fdfefe;
}

.day-selector-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.btn-day-tab {
  flex: 1;
  min-width: 90px;
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-day-tab:hover {
  background: #e2e8f0;
}

.btn-day-tab.active {
  background: #00897b;
  color: #fff;
  border-color: #00897b;
}

.meal-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.meal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.meal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.meal-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.meal-badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: #fff;
}

.badge-breakfast {
  background: #ff9800;
}

.badge-lunch {
  background: #e91e63;
}

.badge-snack {
  background: #20c997;
}

.meal-dish-list {
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meal-dish-list li {
  position: relative;
  padding-left: 14px;
}

.meal-dish-list li::before {
  content: "🍲";
  position: absolute;
  left: 0;
  font-size: 10px;
}

.nutrition-stats-row {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  color: #166534;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nutrition-stats-row .btn-print-menu {
  background: #15803d;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nutrition-stats-row .btn-print-menu:hover {
  background: #166534;
}

/* ==========================================================================
   10. PRESCHOOL ACTIVITIES GRID (Góc Sáng Tạo & Kỹ Năng Của Bé)
   ========================================================================== */
.activity-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.activity-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.activity-card-thumb {
  height: 130px;
  position: relative;
  overflow: hidden;
}

.activity-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.activity-card:hover .activity-card-thumb img {
  transform: scale(1.08);
}

.activity-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.activity-card-body {
  padding: 10px 12px;
}

.activity-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-card-title a {
  color: #1e293b;
}

.activity-card-title a:hover {
  color: #e91e63;
}

/* ==========================================================================
   11. NOTICE & ANNOUNCEMENT LIST (Thông Báo & 3 Công Khai)
   ========================================================================== */
.notice-table-list {
  display: flex;
  flex-direction: column;
}

.notice-table-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-color);
  gap: 12px;
}

.notice-table-item:last-child {
  border-bottom: none;
}

.notice-title-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.notice-tag-pdf {
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
}

.notice-text {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.notice-text:hover {
  color: #d32f2f;
}

.notice-date-badge {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   12. PHOTO & VIDEO GALLERY (Góc Ảnh Mầm Non)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

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

.gallery-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 6px 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   13. SIDEBAR BLOCKS (Các Block Cột Trái / Cột Phải)
   ========================================================================== */
.sidebar-admissions-banner {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.sidebar-admissions-banner h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-admissions-banner p {
  font-size: 12px;
  margin-bottom: 12px;
  opacity: 0.95;
}

.btn-open-admission {
  background: #ffeb3b;
  color: #b71c1c;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-open-admission:hover {
  background: #ffffff;
  transform: scale(1.04);
}

/* Weekly Schedule Block */
.schedule-block-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-block-item {
  padding: 8px;
  background: #f8fafc;
  border-left: 3px solid #0d47a1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
}

.schedule-block-item strong {
  color: #0d47a1;
  display: block;
  margin-bottom: 2px;
}

/* Poll / Thăm Dò Ý Kiến Block */
.poll-block-wrap {
  font-size: 13px;
}

.poll-question {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  line-height: 1.4;
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.poll-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
}

.poll-actions {
  display: flex;
  gap: 8px;
}

.btn-poll-vote {
  background: #0d47a1;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-poll-vote:hover {
  background: #1565c0;
}

.btn-poll-result {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
}

.poll-results-box {
  margin-top: 10px;
  background: #f8fafc;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.poll-result-bar-item {
  margin-bottom: 8px;
}

.poll-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 2px;
}

.poll-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.poll-bar-fill {
  height: 100%;
  background: #20c997;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* Dropdown Liên Kết Ngành */
.select-weblink {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  color: #334155;
  background: #fff;
  outline: none;
}

/* Ban Giám Hiệu Hotline Contacts */
.contact-staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}

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

.staff-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.staff-info h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 1px;
}

.staff-info p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

.staff-info a.phone-link {
  color: #d32f2f;
  font-weight: 700;
  font-size: 12px;
}

/* Visitor Counter */
.visitor-counter-table {
  width: 100%;
  font-size: 12px;
}

.visitor-counter-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.visitor-counter-table td {
  padding: 5px 0;
}

.visitor-counter-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: #0d47a1;
}

.stat-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Weather Đạ Huoai 2 Widget */
.weather-widget-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.weather-temp {
  font-size: 26px;
  font-weight: 800;
}

.weather-city {
  font-size: 13px;
  font-weight: 600;
}

.weather-desc {
  font-size: 11px;
  opacity: 0.9;
}

/* ==========================================================================
   14. FOOTER (Chuẩn Cổng Thông Tin Bộ GD&ĐT)
   ========================================================================== */
.site-footer {
  background: #0a2540;
  color: #cbd5e1;
  font-size: 13px;
  border-top: 4px solid #ff9800;
  padding-top: 30px;
  position: relative;
}

/* Footer Admin Toolbar */
.footer-admin-toolbar {
  background: rgba(13, 71, 161, 0.45);
  border: 1px dashed rgba(255, 235, 59, 0.65);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.footer-admin-toolbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-admin-toolbar-title {
  color: #ffeb3b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-footer-edit {
  background: #ffeb3b;
  color: #092c66;
  border: 1px solid #fbc02d;
  padding: 7px 15px;
  border-radius: 4px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-footer-edit:hover {
  background: #ffffff;
  color: #0d47a1;
  border-color: #0d47a1;
  transform: translateY(-1px);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 4fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4.footer-title {
  color: #ffc107;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: #ff5722;
}

.footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.footer-info-list li a {
  color: #93c5fd;
}

.footer-info-list li a:hover {
  color: #fff;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-list a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: #ffc107;
  padding-left: 4px;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.social-btn:hover {
  background: #ff5722;
  color: #fff;
}

.footer-bottom-bar {
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  background: #06182a;
}

/* ==========================================================================
   15. MODALS & POPUPS (Tuyển sinh, Đăng nhập, Chi tiết bài viết, Tra cứu)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-header {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.form-label span.req {
  color: #dc2626;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit-form {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-submit-form:hover {
  background: #15803d;
}

.btn-cancel-modal {
  background: #e2e8f0;
  color: #475569;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* Modal Article Detail Specifics */
.article-detail-header {
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.article-detail-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.article-detail-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 14px;
  align-items: center;
}

.article-detail-body {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.article-detail-body img {
  margin: 14px auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-detail-body p {
  margin-bottom: 12px;
}

/* Admin Panel Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th {
  background: #0d47a1;
  color: #fff;
  padding: 8px;
  text-align: left;
}

.admin-table td {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.badge-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status.approved,
.badge-status.published {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-status.pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-status.draft {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.badge-status.rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   15.5. ROLE-BASED ACCESS CONTROL (RBAC) - 3 NHÓM ĐĂNG TIN & PHÂN QUYỀN
   ========================================================================== */

/* Role Badges */
.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-role-admin {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.badge-role-bgh {
  background: linear-gradient(135deg, #0d47a1, #1e40af);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.3);
}

.badge-role-gv {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

/* Top Bar RBAC Component */
.top-rbac-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-top-login {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #ffeb3b, #fbc02d);
  color: #092c66;
  border: 1px solid #fdd835;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  text-transform: none;
}

.btn-top-login:hover {
  background: #ffffff;
  color: #0d47a1;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-top-logout {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-top-logout:hover {
  background: #ef4444;
  color: #fff;
}

.btn-top-rbac {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-top-rbac:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  color: #0f172a;
}

/* Nav Item Login */
.nav-link-login {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: rgba(255, 235, 59, 0.15);
  border: 1px solid rgba(255, 235, 59, 0.4) !important;
  color: #ffeb3b !important;
  font-weight: 600 !important;
  font-size: 12px;
  border-radius: 4px;
  margin: 4px 6px;
  padding: 6px 14px !important;
  text-transform: none;
}

.nav-link-login:hover {
  background: #ffeb3b !important;
  color: #092c66 !important;
}

/* Modal Login Specifics */
.modal-window-login {
  max-width: 480px;
  width: 95%;
}

.login-brand-header {
  text-align: center;
  padding: 8px 0 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.login-brand-header h4 {
  font-size: 16px;
  color: #0d47a1;
  font-weight: 800;
  margin-top: 6px;
}

.quick-login-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 18px;
}

.quick-login-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.btn-quick-login-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s;
  text-align: left;
}

.btn-quick-login-item:hover {
  background: #f0fdf4;
  border-color: #16a34a;
  transform: translateX(2px);
}

.top-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.top-role-pill:hover {
  background: rgba(255, 255, 255, 0.25);
}

.badge-pending-count {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 2px;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

/* Modal RBAC Dashboard Window */
.modal-window-rbac {
  max-width: 1260px;
  width: 96%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}

.modal-window-rbac .modal-body {
  overflow-y: auto;
  padding: 14px 18px;
  background: #ffffff;
}

/* User Status & Fast Role Switcher Box */
.rbac-user-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.rbac-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rbac-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid #0284c7;
  flex-shrink: 0;
}

.rbac-user-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rbac-user-details p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.rbac-role-switch-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-switch-role {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-switch-role:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-switch-role.active {
  background: #0d47a1;
  color: #ffffff;
  border-color: #0d47a1;
  box-shadow: 0 2px 4px rgba(13, 71, 161, 0.25);
}

.btn-switch-role.active.role-admin {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-switch-role.active.role-gv {
  background: #16a34a;
  border-color: #16a34a;
}

/* RBAC Navigation Tabs */
.rbac-tabs-nav {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.btn-rbac-tab {
  flex: 1;
  min-width: 140px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-rbac-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.btn-rbac-tab.active {
  background: #ffffff;
  color: #0d47a1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rbac-tab-content {
  display: none;
}

.rbac-tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

/* Post Creator Editor */
.rbac-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.rbac-role-notice {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rbac-role-notice.notice-admin {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.rbac-role-notice.notice-bgh {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.rbac-role-notice.notice-gv {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  padding: 6px;
  border-radius: 6px 6px 0 0;
  flex-wrap: wrap;
}

.btn-editor-tool {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  transition: 0.15s;
}

.btn-editor-tool:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.editor-textarea {
  width: 100%;
  min-height: 160px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 6px 6px;
  font-family: var(--font-base);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.editor-textarea:focus {
  outline: none;
  border-color: #0d47a1;
}

/* Preset Image Picker */
.preset-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.preset-img-item {
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  height: 75px;
}

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

.preset-img-item.selected {
  border-color: #0d47a1;
  box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.3);
}

.preset-img-item .preset-check {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  background: #0d47a1;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  align-items: center;
  justify-content: center;
}

.preset-img-item.selected .preset-check {
  display: flex;
}

/* Post Management & Workflow Table */
.workflow-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-filter-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: 0.15s;
}

.btn-filter-pill:hover,
.btn-filter-pill.active {
  background: #0d47a1;
  color: #ffffff;
  border-color: #0d47a1;
}

.rbac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rbac-table th {
  background: #092c66;
  color: #ffffff;
  padding: 10px 12px;
  font-weight: 700;
  text-align: left;
  border: none;
}

.rbac-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.rbac-table tr:hover {
  background: #f8fafc;
}

.table-post-thumb {
  width: 50px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
}

.btn-action-table {
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.btn-action-table.btn-approve {
  background: #16a34a;
  color: #ffffff;
}

.btn-action-table.btn-approve:hover {
  background: #15803d;
}

.btn-action-table.btn-delete {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.btn-action-table.btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-action-table.btn-view {
  background: #f1f5f9;
  color: #0284c7;
  border: 1px solid #cbd5e1;
}

.btn-action-table.btn-view:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Permission Matrix Table */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.matrix-table th {
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

.matrix-table th:first-child {
  text-align: left;
  background: #0f172a;
}

.matrix-table th.th-admin {
  background: #b91c1c;
}

.matrix-table th.th-bgh {
  background: #0d47a1;
}

.matrix-table th.th-gv {
  background: #15803d;
}

.matrix-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.matrix-table td.col-perm {
  text-align: center;
  font-weight: 600;
}

.matrix-table tr:nth-child(even) {
  background: #f8fafc;
}

.matrix-table tr:hover {
  background: #f1f5f9;
}

/* User Management Header & Form Styles */
.user-mgmt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.form-add-user-box {
  background: #ffffff;
  border: 1px solid #0d47a1;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.12);
  animation: fadeIn 0.25s ease-out;
}

.form-add-user-title {
  background: #0d47a1;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.select-role-quick {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.select-role-quick:focus {
  border-color: #0d47a1;
}

.user-card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.btn-card-action {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
  background: #f8fafc;
  color: #334155;
}

.btn-card-action:hover {
  background: #e2e8f0;
}

.btn-card-action.btn-del-user {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

.btn-card-action.btn-del-user:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-card-action.btn-switch-login {
  background: #0d47a1;
  color: #ffffff;
  border-color: #0d47a1;
  grid-column: span 2;
}

.btn-card-action.btn-switch-login:hover {
  background: #092c66;
}

.btn-card-action.btn-active-user {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  grid-column: span 2;
  cursor: default;
}

/* User Account Cards Grid */
.rbac-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.rbac-user-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.rbac-user-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.rbac-user-card.current {
  border: 2px solid #0d47a1;
  background: #f0f7ff;
}

.rbac-user-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rbac-user-card-avatar {
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rbac-user-card-title h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.rbac-user-card-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
}

.rbac-perm-list {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 12px;
  list-style: none;
  padding: 0;
}

.rbac-perm-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toast Notifications */
.rbac-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid #10b981;
}

@keyframes slideToast {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Sidebar RBAC Panel Widget */
.widget-rbac-box {
  background: linear-gradient(135deg, #092c66, #0d47a1);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.widget-rbac-box h3 {
  font-size: 13px;
  color: #ffeb3b;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.widget-rbac-box p {
  font-size: 12px;
  color: #d1e0ff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.widget-role-indicator {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-btn-action {
  width: 100%;
  background: #ffeb3b;
  color: #092c66;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.widget-btn-action:hover {
  background: #ffffff;
  color: #0d47a1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   16. RESPONSIVE DESIGN (Tương thích Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider-wrap {
    height: 280px;
  }

  .portal-body-layout {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid-2col {
    grid-template-columns: 1fr;
  }

  .main-news-feature {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
    padding-right: 0;
  }

  .meal-cards-grid {
    grid-template-columns: 1fr;
  }

  .activity-cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .header-branding {
    flex-direction: column;
  }

  .header-action-box {
    align-items: center;
    width: 100%;
  }

  .header-search-form {
    width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
    margin: 8px 15px;
  }

  .nav-menu-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu-list.show {
    display: flex;
  }

  .nav-link {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .submenu-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #092c66;
    border-top: none;
    padding-left: 15px;
  }

  .submenu-link {
    color: #e2e8f0;
  }

  .shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {

  .top-bar,
  .site-header,
  .main-navbar,
  .breaking-ticker,
  .hero-slider-wrap,
  .shortcuts-grid,
  .site-footer,
  .sidebar-col,
  .btn-slider-nav,
  .btn-print-menu,
  .btn-open-admission,
  .nv-admin-side-bar,
  .nv-dnd-floating-toolbar {
    display: none !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .portal-body-layout {
    grid-template-columns: 1fr !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }
}

/* ==========================================================================
   19. ADMIN SIDEBAR (DOCK TRÁI - BÌNH THƯỜNG THU GỌN, RÊ CHUỘT MỞ RỘNG)
   ========================================================================== */
.nv-admin-side-bar {
  position: fixed !important;
  top: 130px;
  left: 0;
  width: 52px;
  background: rgba(21, 101, 192, 0.88); /* Xanh chuẩn mờ nhẹ như ảnh */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 2px 6px 24px rgba(0, 30, 80, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: none;
  z-index: 99995;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.3s ease;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

/* KHI RÊ CHUỘT VÀO (:hover) HOẶC CHẠM TRÊN MOBILE/TABLET (.expanded) -> MỞ RỘNG HIỆN ĐẦY ĐỦ */
.nv-admin-side-bar:hover,
.nv-admin-side-bar.expanded {
  width: 320px;
  background: #1565c0; /* Xanh đậm đặc hoàn toàn khớp ảnh */
  box-shadow: 4px 12px 38px rgba(0, 20, 60, 0.5);
}

.nv-admin-side-menu {
  display: flex;
  flex-direction: column;
  width: 320px; /* Giữ cố định kích thước bên trong để text không bị wrap khi trượt */
}

.nv-admin-menu-item {
  display: flex;
  align-items: center;
  height: 52px;
  width: 320px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease;
  cursor: pointer;
  overflow: hidden;
}

.nv-admin-menu-item:last-child {
  border-bottom: none;
}

.nv-admin-menu-item:hover {
  background: #1976d2;
  color: #ffffff;
  text-decoration: none;
}

.nv-admin-menu-item.active {
  background: #0d47a1;
  color: #ffeb3b;
  font-weight: 700;
}

/* Ô vuông icon 52px bên trái cố định */
.nv-menu-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.nv-menu-icon i {
  font-size: 20px;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.nv-menu-icon svg {
  display: block;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.nv-admin-menu-item:hover .nv-menu-icon i,
.nv-admin-menu-item:hover .nv-menu-icon svg {
  transform: scale(1.12);
}

.nv-admin-menu-item.active .nv-menu-icon i,
.nv-admin-menu-item.active .nv-menu-icon svg {
  color: #ffeb3b;
}

/* Phần chữ nhãn chức năng */
.nv-menu-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 18px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
}

/* Khi hover thanh bar hoặc expanded -> hiện chữ mượt mà */
.nv-admin-side-bar:hover .nv-menu-label,
.nv-admin-side-bar.expanded .nv-menu-label {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   20. FLOATING STICKY TOOLBAR KHI BẬT KÉO THẢ BLOCK
   ========================================================================== */
.nv-dnd-floating-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #092c66, #0d47a1 40%, #1565c0);
  border-bottom: 3px solid #ffeb3b;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 99990;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  font-family: 'Be Vietnam Pro', sans-serif;
  animation: nvSlideDown 0.25s ease-out;
}

@keyframes nvSlideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.nv-dnd-toolbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nv-dnd-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.dnd-indicator-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 1.5s infinite;
}

.dnd-title {
  color: #ffeb3b;
  letter-spacing: 0.3px;
}

.dnd-subtitle {
  color: #cbd5e1;
  font-size: 12px;
}

.nv-dnd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dnd-action {
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-dnd-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-dnd-add {
  background: #16a34a;
}

.btn-dnd-save {
  background: #0284c7;
}

.btn-dnd-reset {
  background: #d97706;
}

.btn-dnd-close {
  background: #dc2626;
}

/* ==========================================================================
   21. TRẠNG THÁI BODY & CÁC BLOCK KHI BẬT KÉO THẢ (DND ACTIVE MODE)
   ========================================================================== */
body.nv-dnd-active {
  padding-top: 50px !important;
}

body.nv-dnd-active .dnd-block-item {
  border: 2px dashed #2563eb !important;
  border-radius: 8px !important;
  margin-bottom: 22px !important;
  position: relative !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.nv-dnd-active .dnd-block-item:hover {
  border-color: #1d4ed8 !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22) !important;
}

/* Thanh điều khiển trên đầu mỗi block */
.nv-block-admin-handle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
  cursor: grab;
  gap: 8px;
}

.nv-block-admin-handle:active {
  cursor: grabbing;
}

.handle-left-info {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.handle-grip-icon {
  font-size: 14px;
  color: #ffeb3b;
  cursor: grab;
}

.handle-block-title {
  color: #ffffff;
}

.handle-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-handle-tool {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-handle-tool:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-handle-tool.btn-tool-edit {
  background: #ffeb3b;
  color: #0f172a;
  border-color: #fde047;
  font-weight: 700;
}

.btn-handle-tool.btn-tool-edit:hover {
  background: #facc15;
}

.btn-handle-tool.btn-tool-hide {
  background: rgba(239, 68, 68, 0.25);
  color: #fee2e2;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-handle-tool.btn-tool-hide:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Dragging & Placeholder Styles */
.dnd-block-dragging {
  opacity: 0.38 !important;
  border: 2px dashed #f59e0b !important;
  transform: scale(0.98);
}

.dnd-drop-above {
  box-shadow: 0 -6px 0 0 #10b981 !important;
  border-top-color: #10b981 !important;
}

.dnd-drop-below {
  box-shadow: 0 6px 0 0 #10b981 !important;
  border-bottom-color: #10b981 !important;
}

/* In-place content editable visual feedback */
body.nv-dnd-active [contenteditable="true"] {
  outline: 1px dashed rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
  border-radius: 2px;
  cursor: text;
  transition: outline 0.15s ease, background 0.15s ease;
}

body.nv-dnd-active [contenteditable="true"]:hover {
  outline: 1px dashed #2563eb;
  background: rgba(239, 246, 255, 0.6);
}

body.nv-dnd-active [contenteditable="true"]:focus {
  outline: 2px solid #2563eb;
  background: #ffffff;
}

/* Block theme header variations */
.theme-blue .nv-block-title,
.theme-blue .block-member-header,
.theme-blue .block-stats-header {
  background: #0d47a1 !important;
  color: #fff !important;
}

.theme-teal .nv-block-title,
.theme-teal .block-member-header,
.theme-teal .block-stats-header {
  background: #00897b !important;
  color: #fff !important;
}

.theme-amber .nv-block-title,
.theme-amber .block-member-header,
.theme-amber .block-stats-header {
  background: #d97706 !important;
  color: #fff !important;
}

.theme-rose .nv-block-title,
.theme-rose .block-member-header,
.theme-rose .block-stats-header {
  background: #e11d48 !important;
  color: #fff !important;
}

.theme-purple .nv-block-title,
.theme-purple .block-member-header,
.theme-purple .block-stats-header {
  background: #7c3aed !important;
  color: #fff !important;
}

.theme-slate .nv-block-title,
.theme-slate .block-member-header,
.theme-slate .block-stats-header {
  background: #334155 !important;
  color: #fff !important;
}

/* Hidden block placeholder */
.dnd-block-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .nv-dnd-toolbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nv-dnd-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   16. WORD TO NEWS CONVERTER STYLES (TỰ ĐỘNG CHUYỂN FILE WORD THÀNH BÀI ĐĂNG)
   ========================================================================== */
.word-converter-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 2px dashed #3b82f6;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  position: relative;
  transition: all 0.25s ease;
}

.word-converter-card.dragover {
  border-color: #10b981;
  background: #ecfdf5;
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.word-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.word-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #2b579a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(43, 87, 154, 0.3);
}

.word-card-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 4px 0;
  letter-spacing: 0.3px;
}

.word-card-text p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

.word-card-text code {
  background: #dbeafe;
  color: #1e40af;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 700;
}

.word-upload-dropzone {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-icon {
  font-size: 36px;
  color: #3b82f6;
  transition: transform 0.2s ease;
}

.word-converter-card.dragover .dropzone-icon {
  transform: scale(1.2);
  color: #10b981;
}

.dropzone-text {
  font-size: 13px;
  color: #334155;
}

.dropzone-text strong {
  color: #1e40af;
}

.dropzone-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-word-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #2b579a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(43, 87, 154, 0.25);
  transition: all 0.15s ease;
}

.btn-word-browse:hover {
  background: #1e3f72;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(43, 87, 154, 0.35);
}

.btn-word-instant-publish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.25);
  transition: all 0.15s ease;
}

.btn-word-instant-publish:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(22, 163, 74, 0.35);
}

.word-import-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeIn 0.3s ease;
}

.word-status-loading {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.word-status-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-word-success-publish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-word-success-publish:hover {
  background: #15803d;
}

.word-quick-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
}

.btn-quick-word-import {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-word-import:hover {
  background: #2b579a;
  color: #ffffff;
  border-color: #2b579a;
}

/* Badge attached docx in article modal */
.article-docx-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2b579a;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 20px;
}

.docx-badge-icon {
  font-size: 26px;
  color: #2b579a;
}

.docx-badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  font-size: 12px;
  color: #334155;
}

.docx-badge-info strong {
  color: #1e293b;
  font-size: 13px;
}

.docx-badge-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ==========================================================================
   22. CMS ARTICLE PUBLISHER INTERFACE (FORM ĐĂNG BÀI VIẾT CHUẨN CMS - CHÍNH XÁC THEO HÌNH ẢNH)
   ========================================================================== */
.cms-classic-wrapper {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #333333;
  margin-top: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* 1. Header Bar: Thêm bài viết & Biểu tượng quả địa cầu */
.cms-classic-header {
  background: #eef3f6;
  border-bottom: 1px solid #d2dbe0;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-classic-title {
  color: #136d88;
  font-size: 15.5px;
  font-weight: bold;
}

.cms-classic-header-icon {
  color: #136d88;
  font-size: 16px;
  cursor: default;
}

/* 2. Khung Thông báo từ Hệ thống */
.cms-notice-section {
  margin: 10px 14px 12px;
}

.cms-notice-title {
  font-size: 12.5px;
  font-weight: bold;
  color: #777777;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cms-notice-card {
  border: 1px solid #e2e2e2;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cms-notice-bubble-icon {
  color: #888888;
  font-size: 16px;
  flex-shrink: 0;
}

.cms-notice-text-content {
  font-size: 12.5px;
  color: #333333;
  flex: 1;
  line-height: 1.45;
}

.btn-notice-download-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-notice-download-link:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Banner thông báo nạp file Word thành công */
.cms-word-success-banner {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 5px solid #16a34a;
  border-radius: 3px;
  padding: 10px 14px;
  margin: 0 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #14532d;
  font-size: 12.5px;
  animation: fadeIn 0.2s ease-in;
}

.btn-close-alert {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #166534;
  padding: 0 4px;
  line-height: 1;
}

/* 3. Bố cục 2 cột Form Đăng tin */
.cms-classic-grid {
  display: flex;
  gap: 20px;
  padding: 0 14px;
}

.cms-classic-left {
  flex: 1 1 73%;
  min-width: 0;
}

.cms-classic-right {
  flex: 0 0 27%;
  min-width: 270px;
}

/* Các bảng Form có viền xám chuẩn CMS */
.cms-table-bordered {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e5e5;
  margin-bottom: 12px;
  background: #ffffff;
}

.cms-table-bordered td {
  border: 1px solid #e5e5e5;
  padding: 7px 10px;
  font-size: 13px;
  vertical-align: middle;
}

.col-title-label {
  width: 155px;
  font-weight: bold;
  color: #333333;
  background: #ffffff;
}

.col-title-ctrl {
  background: #ffffff;
}

.text-req {
  color: #d9534f;
  font-weight: bold;
}

/* Controls input / select */
.cms-ctrl-text,
.cms-ctrl-select {
  height: 30px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 13px;
  color: #333333;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cms-ctrl-text:focus,
.cms-ctrl-select:focus,
.cms-ctrl-textarea:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px rgba(102, 175, 233, .6);
}

.cms-counter-inline {
  margin-left: 10px;
  font-size: 12.5px;
  color: #333333;
}

.btn-refresh-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #333333;
  margin-left: 6px;
  vertical-align: middle;
  transition: color 0.15s, transform 0.2s;
}

.btn-refresh-icon:hover {
  color: #136d88;
  transform: rotate(45deg);
}

.btn-cms-cyan-browse {
  background: #5bc0de;
  border: 1px solid #46b8da;
  color: #ffffff;
  height: 30px;
  padding: 0 14px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  transition: background 0.15s;
}

.btn-cms-cyan-browse:hover {
  background: #31b0d5;
}

/* Thumbnail preview */
.cms-thumb-preview-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  vertical-align: middle;
}

.cms-thumb-preview-wrap img {
  height: 28px;
  max-width: 50px;
  object-fit: cover;
  border: 1px solid #cccccc;
  border-radius: 2px;
}

.btn-thumb-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* Khối nhập văn bản độc lập */
.cms-block-group {
  margin-bottom: 12px;
}

.cms-block-label {
  font-size: 12.5px;
  color: #333333;
  margin-bottom: 5px;
}

.cms-label-hint {
  font-style: italic;
  color: #555555;
}

.cms-ctrl-textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
  resize: vertical;
  background: #ffffff;
  outline: none;
}

/* ================= CKEDITOR 4 THEME MOONO REPLICA ================= */
.ckeditor-classic-box {
  border: 1px solid #c7c7c7;
  border-radius: 3px 3px 0 0;
  background: #ffffff;
}

.ckeditor-classic-toolbar {
  background: linear-gradient(180deg, #f5f5f5 0%, #e6e6e6 100%);
  border-bottom: 1px solid #c7c7c7;
  padding: 5px 6px;
}

.cke-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: 3px;
}

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

.cke-group {
  display: flex;
  align-items: center;
  gap: 1px;
}

.cke-sep {
  width: 1px;
  height: 18px;
  background: #c7c7c7;
  margin: 0 4px;
}

.btn-cke {
  min-width: 24px;
  height: 23px;
  padding: 1px 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  color: #444444;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.btn-cke:hover {
  background: #e0e0e0;
  border-color: #b5b5b5;
}

.btn-cke-html {
  padding: 1px 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #2563eb;
}

.cke-combo {
  height: 23px;
  border: 1px solid #cccccc;
  border-radius: 2px;
  font-size: 11.5px;
  padding: 1px 4px;
  background: #ffffff;
  color: #333333;
}

.ckeditor-classic-canvas {
  min-height: 360px;
  max-height: 600px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  color: #222222;
}

.ckeditor-classic-canvas p {
  margin: 0 0 10px;
}

.ckeditor-classic-canvas img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 3px;
}

.ckeditor-classic-source {
  width: 100%;
  border: none;
  padding: 14px 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  box-sizing: border-box;
  outline: none;
  background: #fdfdfd;
}

.ckeditor-classic-footer {
  height: 20px;
  background: #f0f0f0;
  border-top: 1px solid #c7c7c7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  color: #777777;
}

.cke-status-path {
  font-family: Arial, sans-serif;
}

.cke-status-resizer {
  font-size: 10px;
  cursor: se-resize;
  color: #999999;
}

/* ================= CỘT PHẢI ================= */
.cms-side-section {
  margin-bottom: 14px;
}

.cms-side-heading {
  font-size: 13px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 5px;
}

.cms-side-heading-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: bold;
  color: #333333;
}

.cms-hint-meta {
  font-size: 11px;
  color: #777777;
  font-style: italic;
  font-weight: normal;
}

/* Khung cuộn cây danh mục */
.cms-side-cat-box {
  height: 185px;
  overflow-y: scroll;
  border: 1px solid #dcdcdc;
  background: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
}

.cms-check-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cms-classic-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333333;
  cursor: pointer;
  user-select: none;
  font-weight: normal;
  margin: 0;
}

.cms-classic-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

.cms-classic-checkbox.sub {
  margin-left: 22px;
  color: #555555;
}

/* Hàng chọn ngày giờ đăng */
.cms-datetime-classic-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.btn-cal-picker {
  background: #ffffff;
  border: 1px solid #cccccc;
  height: 28px;
  padding: 0 7px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cal-picker:hover {
  background: #f5f5f5;
}

/* ================= HÀNG NÚT BẤM CHÍNH GIỮA Ở CUỐI TRANG ================= */
.cms-action-bar-center {
  text-align: center;
  padding: 20px 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cms-amber {
  background: #f0ad4e;
  border: 1px solid #eea236;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cms-amber:hover {
  background: #ec971f;
  border-color: #d58512;
}

.btn-cms-blue {
  background: #337ab7;
  border: 1px solid #2e6da4;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cms-blue:hover {
  background: #286090;
  border-color: #204d74;
}

.btn-cms-green {
  background: #5cb85c;
  border: 1px solid #4cae4c;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-cms-green:hover {
  background: #449d44;
  border-color: #398439;
}

.btn-cms-slate {
  background: #6c757d;
  border: 1px solid #5a6268;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-cms-slate:hover {
  background: #5a6268;
  border-color: #545b62;
  color: #ffffff;
}

/* Dòng Benchmark dưới cùng */
.cms-benchmark-bar {
  border-top: 2px solid #f39c12;
  margin: 16px 14px 10px;
  padding-top: 6px;
  font-size: 11.5px;
  color: #888888;
}

/* Modal Browse Server Images */
.modal-browse-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
}

.browse-gallery-item {
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.browse-gallery-item:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.browse-gallery-item.selected {
  border-color: #16a34a;
  background: #f0fdf4;
}

.browse-gallery-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.browse-gallery-item span {
  font-size: 11px;
  padding: 4px 6px;
  text-align: center;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .cms-classic-grid {
    flex-direction: column;
  }
  .cms-classic-right {
    min-width: 100%;
  }
}
/* ==========================================================================
   SỬA LỖI TRÀN NGANG: menu trên laptop/tablet, cột bên trên điện thoại
   ========================================================================== */
@media screen and (min-width: 769px) {
  .nav-menu-list {
    flex-wrap: wrap;
  }

  .nav-item {
    flex: 1 0 auto;
  }
}

@media screen and (max-width: 992px) {
  .portal-body-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-body-layout > * {
    min-width: 0;
  }
}

@media screen and (min-width: 769px) and (max-width: 1100px) {
  .submenu-dropdown {
    min-width: 220px;
  }
}

/* Điện thoại: thanh công cụ quản trị thành dải icon ở đáy, không che nội dung */
@media screen and (max-width: 768px) {
  .nv-admin-side-bar,
  .nv-admin-side-bar:hover,
  .nv-admin-side-bar.expanded {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 48px;
    border-radius: 0;
  }

  .nv-admin-side-bar .nv-admin-side-menu {
    flex-direction: row;
    width: 100%;
  }

  .nv-admin-side-bar .nv-admin-menu-item {
    flex: 1;
    width: auto;
    height: 48px;
    justify-content: center;
    border-bottom: none;
  }

  .nv-admin-side-bar .nv-menu-label {
    display: none;
  }

  body {
    padding-bottom: 48px;
  }
}

/* Điện thoại: menu mở ra vừa khung, cuộn được khi dài */
@media screen and (max-width: 768px) {
  .main-navbar .container {
    display: block;
  }

  .main-navbar .nav-menu-list {
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    align-items: stretch;
    max-height: calc(100vh - 140px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .main-navbar .nav-item {
    flex: 0 0 auto;
    width: 100%;
  }
}
