/* =========================================================
   TRƯỜNG THCS-THPT TRẦN TRƯỜNG SINH – PORTAL
   Custom CSS bổ trợ cho Tailwind
   Palette: #1A365D (navy) · #D69E2E (gold) · #F7FAFC (bg) · #2D3748 (text)
   ========================================================= */

/* ---------- BASE ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  overflow-x: hidden;
}

/* Focus visible rõ ràng – WCAG */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #D69E2E;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: #1A365D;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 9999;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
#siteHeader {
  border-bottom: 1px solid #E2E8F0;
}
#siteHeader.is-scrolled {
  box-shadow: 0 4px 16px rgba(26, 54, 93, 0.08);
}

/* Desktop nav link */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #2D3748;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: #D69E2E;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link:hover {
  color: #1A365D;
  background-color: #F7FAFC;
}
.nav-link:hover::after,
.nav-link-active::after {
  transform: scaleX(1);
}
.nav-link-active {
  color: #1A365D;
}

/* Mobile nav link */
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #2D3748;
  border-bottom: 1px solid #EDF2F7;
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}
.mobile-nav-link:last-child {
  border-bottom: none;
}
.mobile-nav-link:hover,
.mobile-nav-link-active {
  background-color: #F7FAFC;
  color: #1A365D;
  padding-left: 18px;
}

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero-carousel {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-carousel .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
}
.hero-carousel .slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-carousel .slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 36, 64, 0.92) 0%,
    rgba(15, 36, 64, 0.72) 40%,
    rgba(15, 36, 64, 0.25) 75%,
    rgba(15, 36, 64, 0.05) 100%
  );
}

.slide-content {
  position: relative;
  height: 100%;
  max-width: 720px;
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(214, 158, 46, 0.18);
  border: 1px solid rgba(214, 158, 46, 0.55);
  color: #ECC94B;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.slide-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #D69E2E;
  color: #0F2440;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid #D69E2E;
  box-shadow: 0 6px 18px rgba(214, 158, 46, 0.35);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: #ECC94B;
  border-color: #ECC94B;
  color: #0F2440;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 158, 46, 0.45);
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 5;
}
.carousel-arrow:hover {
  background: #D69E2E;
  border-color: #D69E2E;
  color: #0F2440;
}
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot:hover {
  background: rgba(255, 255, 255, 0.85);
}
.dot.active {
  width: 32px;
  background: #D69E2E;
}

/* =========================================================
   SECTION TITLE
   ========================================================= */
.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D69E2E;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1A365D;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
  margin: 0;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #D69E2E;
  border-radius: 2px;
}

/* =========================================================
   NEWS CARD
   ========================================================= */
.news-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 54, 93, 0.12);
  border-color: #CBD5E0;
}

.news-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EDF2F7;
}
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img {
  transform: scale(1.06);
}

.news-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1A365D;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.news-card-date {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.news-card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}
.news-card-title a {
  color: #2D3748;
  transition: color 0.2s ease;
}
.news-card-title a:hover {
  color: #1A365D;
}

.news-card-excerpt {
  font-size: 13.5px;
  color: #718096;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1 1 auto;
}

.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1A365D;
  transition: color 0.2s ease, gap 0.2s ease;
  align-self: flex-start;
}
.news-card-more:hover {
  color: #D69E2E;
  gap: 10px;
}

/* =========================================================
   WIDGET (Sidebar)
   ========================================================= */
.widget {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(26, 54, 93, 0.04);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #1A365D;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #EDF2F7;
  position: relative;
}
.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: #D69E2E;
  border-radius: 2px;
}

/* Quick list */
.quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-list li {
  border-bottom: 1px dashed #EDF2F7;
}
.quick-list li:last-child {
  border-bottom: none;
}
.quick-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: #2D3748;
  transition: color 0.2s ease, padding 0.2s ease, background-color 0.2s ease;
  border-radius: 6px;
}
.quick-list li a i {
  color: #1A365D;
  width: 16px;
  text-align: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.quick-list li a:hover {
  color: #1A365D;
  padding-left: 6px;
  background-color: #F7FAFC;
}
.quick-list li a:hover i {
  color: #D69E2E;
}

/* Quick link grid */
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1A365D;
  text-align: center;
  transition: all 0.25s ease;
}
.quick-link i {
  font-size: 18px;
  color: #1A365D;
  transition: color 0.25s ease, transform 0.25s ease;
}
.quick-link:hover {
  background: #1A365D;
  border-color: #1A365D;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.2);
}
.quick-link:hover i {
  color: #D69E2E;
  transform: scale(1.15);
}

/* Events */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #EDF2F7;
}
.event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.event-item:first-child {
  padding-top: 0;
}
.event-date {
  flex-shrink: 0;
  width: 52px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1A365D 0%, #2C5282 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(26, 54, 93, 0.2);
}
.event-day {
  font-size: 20px;
  font-weight: 800;
}
.event-month {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 3px;
  color: #D69E2E;
  text-transform: uppercase;
}
.event-info {
  min-width: 0;
}
.event-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #2D3748;
  line-height: 1.4;
  margin-bottom: 3px;
}
.event-title:hover {
  color: #1A365D;
}
.event-meta {
  font-size: 11.5px;
  color: #718096;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-heading {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  position: relative;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: #D69E2E;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 9px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  transition: color 0.2s ease, padding 0.2s ease;
}
.footer-links a:hover {
  color: #D69E2E;
  padding-left: 6px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}
.footer-contact i {
  color: #D69E2E;
  margin-top: 4px;
  flex-shrink: 0;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1A365D;
  color: #fff;
  border: none;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(26, 54, 93, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s ease;
  z-index: 60;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #D69E2E;
  color: #0F2440;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(214, 158, 46, 0.45);
}

/* =========================================================
   AUDIO
   ========================================================= */
#schoolSong {
  border-radius: 8px;
  outline: none;
  height: 40px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1023.98px) {
  .hero-carousel { height: 440px; }
  .slide-title { font-size: 2rem; }
  .slide-content { padding: 0 3rem; }
}

/* Mobile */
@media (max-width: 767.98px) {
  .hero-carousel { height: 380px; }
  .slide-content {
    padding: 0 1.5rem;
    max-width: 100%;
  }
  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  .slide-desc {
    font-size: 0.9rem;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide-tag {
    font-size: 10.5px;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .btn-primary {
    font-size: 13.5px;
    padding: 10px 20px;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
  }
  .carousel-arrow.prev { left: 10px; }
  .carousel-arrow.next { right: 10px; }

  .section-title { font-size: 1.25rem; }
}

/* Small mobile */
@media (max-width: 479.98px) {
  .hero-carousel { height: 340px; }
  .slide-content { padding: 0 1.25rem; }
  .slide-title { font-size: 1.3rem; }
  .carousel-dots { bottom: 14px; }
  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }
}

/* Print */
@media print {
  .back-to-top,
  #siteHeader,
  .hero-carousel,
  aside,
  footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
/* Form controls */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1A365D;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 14px;
  color: #2D3748;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: #1A365D;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
}
.form-hint {
  font-size: 11.5px;
  color: #718096;
  margin-top: 5px;
}

/* Modal xem văn bản */
.view-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.view-modal.hidden { display: none; }
.view-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 64, 0.72);
  backdrop-filter: blur(4px);
}
.view-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 1080px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.view-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #1A365D;
  color: #fff;
  gap: 12px;
}
.view-modal-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.view-modal-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.view-modal-btn:hover { background: #D69E2E; color: #0F2440; }
.view-modal-body { flex: 1 1 auto; background: #EDF2F7; }
.view-modal-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Iframe Sheets */
.sheet-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 65%;
  border-radius: 10px;
  overflow: hidden;
  background: #EDF2F7;
  border: 1px solid #E2E8F0;
}
.sheet-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Widget list (thông báo) */
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-item { border-bottom: 1px dashed #EDF2F7; }
.widget-item:last-child { border-bottom: none; }
.widget-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  color: #2D3748;
  transition: all 0.2s ease;
  border-radius: 8px;
}
.widget-item-link:hover { background: #F7FAFC; padding-left: 10px; }
.widget-item-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #1A365D, #2C5282);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.widget-item-body { flex: 1 1 auto; min-width: 0; }
.widget-item-title {
  display: block; font-size: 13.5px; font-weight: 600;
  color: #2D3748; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.widget-item-meta { display: block; font-size: 11.5px; color: #718096; margin-top: 3px; }
.widget-item-cta { color: #D69E2E; font-size: 14px; flex-shrink: 0; }

/* Admin */
.admin-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid #E2E8F0;
  border-radius: 10px; background: #fff; transition: all 0.2s ease;
}
.admin-item:hover { border-color: #CBD5E0; box-shadow: 0 4px 14px rgba(26,54,93,0.08); }
.admin-item-main { flex: 1 1 auto; min-width: 0; }
.admin-item-title {
  font-size: 14.5px; font-weight: 700; color: #2D3748;
  margin: 6px 0 4px; line-height: 1.4;
}
.admin-item-meta { font-size: 12px; color: #718096; margin: 0; }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-btn {
  padding: 8px 12px; border-radius: 8px; border: 1px solid #E2E8F0;
  background: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
  display: inline-flex; align-items: center;
}
.admin-btn-edit { color: #1A365D; }
.admin-btn-edit:hover { background: #1A365D; color: #fff; border-color: #1A365D; }
.admin-btn-del { color: #C53030; }
.admin-btn-del:hover { background: #C53030; color: #fff; border-color: #C53030; }
.admin-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-news { background: #EBF4FF; color: #2B6CB0; }
.badge-ann  { background: #FFF5F5; color: #C53030; }
.badge-tkb  { background: #F0FFF4; color: #2F855A; }
.badge-exam { background: #FFFAF0; color: #B7791F; }

@media (max-width: 640px) {
  .admin-item { flex-direction: column; align-items: stretch; }
  .admin-item-actions { justify-content: flex-end; }
  .view-modal-panel { height: 88vh; }
}
/* Admin toolbar */
.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EDF2F7;
}
@media (min-width: 640px) {
  .admin-toolbar {
    flex-direction: row;
    align-items: center;
  }
}
.admin-toolbar-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.admin-toolbar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 13px;
  pointer-events: none;
}
.admin-toolbar-input {
  width: 100%;
  padding: 10px 40px 10px 36px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #2D3748;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-toolbar-input:focus {
  outline: none;
  border-color: #1A365D;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}
.admin-toolbar-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #718096;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-toolbar-clear:hover {
  background: #F7FAFC;
  color: #1A365D;
}
.admin-toolbar-filter {
  flex: 0 0 auto;
  min-width: 180px;
}
.admin-toolbar-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #2D3748;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-toolbar-select:focus {
  outline: none;
  border-color: #1A365D;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}
.admin-result-info {
  font-size: 12.5px;
  color: #718096;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #F7FAFC;
  border-radius: 8px;
  border-left: 3px solid #D69E2E;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* ===== News card video ===== */
.news-card-video-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #0F2440;
  overflow: hidden;
}
.news-card-video-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.news-card-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 767.98px) {
  .news-card-video-wrap {
    aspect-ratio: 16 / 11;
  }
}
/* =====================================================
   QUILLJS EDITOR
   ===================================================== */
.quill-toolbar {
  border: 1px solid #E2E8F0 !important;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0 !important;
  background: #F7FAFC;
  padding: 6px 8px !important;
}

.quill-toolbar .ql-formats {
  margin-right: 10px !important;
}

.quill-toolbar button,
.quill-toolbar select {
  border-radius: 4px !important;
  transition: background 0.15s ease;
}

.quill-toolbar button:hover,
.quill-toolbar select:hover {
  background: rgba(26, 54, 93, 0.08) !important;
}

.quill-toolbar button.ql-active,
.quill-toolbar select.ql-active {
  color: #1A365D !important;
  background: rgba(26, 54, 93, 0.12) !important;
}

.quill-toolbar .ql-stroke {
  stroke: #1A365D !important;
}

.quill-toolbar .ql-fill {
  fill: #1A365D !important;
}

.quill-toolbar .ql-picker-label {
  color: #1A365D !important;
  font-weight: 600;
}

.quill-toolbar .ql-picker-options {
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.12) !important;
}

.quill-editor {
  min-height: 260px;
  max-height: 600px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0 !important;
  border-radius: 0 0 10px 10px !important;
  font-size: 15px;
  line-height: 1.65;
  color: #2D3748;
}

.quill-editor:focus-within {
  border-color: #1A365D !important;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
}

.quill-editor .ql-editor {
  min-height: 260px;
  padding: 14px 16px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

.quill-editor .ql-editor.ql-blank::before {
  color: #A0AEC0;
  font-style: normal;
  left: 16px;
  right: 16px;
}

/* Định dạng nội dung bên trong editor */
.quill-editor .ql-editor h1,
.quill-editor .ql-editor h2,
.quill-editor .ql-editor h3,
.quill-editor .ql-editor h4 {
  color: #1A365D;
  font-weight: 700;
  line-height: 1.3;
  margin: 14px 0 8px;
}

.quill-editor .ql-editor h1 { font-size: 22px; }
.quill-editor .ql-editor h2 { font-size: 19px; }
.quill-editor .ql-editor h3 { font-size: 17px; }
.quill-editor .ql-editor h4 { font-size: 15.5px; }

.quill-editor .ql-editor p {
  margin-bottom: 10px;
}

.quill-editor .ql-editor blockquote {
  border-left: 4px solid #D69E2E;
  padding-left: 14px;
  color: #4A5568;
  background: #FFFAF0;
  margin: 12px 0;
  padding: 8px 14px;
  border-radius: 4px;
  font-style: italic;
}

.quill-editor .ql-editor a {
  color: #1A365D;
  text-decoration: underline;
}

.quill-editor .ql-editor img,
.quill-editor .ql-editor iframe {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}

.quill-editor .ql-editor iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
}

/* Responsive */
@media (max-width: 640px) {
  .quill-toolbar {
    padding: 4px 6px !important;
  }
  .quill-toolbar .ql-formats {
    margin-right: 6px !important;
  }
  .quill-editor {
    min-height: 200px;
  }
  .quill-editor .ql-editor {
    min-height: 200px;
    padding: 10px 12px;
    font-size: 14.5px;
  }
}