/* Shared public-site finishing layer.
   Loaded last so old and special pages use one navigation/footer system. */

:root {
  --site-shell: min(1830px, calc(100vw - 64px));
  --site-red: #e00000;
  --site-red-dark: #aa0000;
  --site-yellow: #ffef00;
}

/* ================================================================
   CÁC KIỂU TRÍCH DẪN TRONG BÀI VIẾT
   ================================================================ */
.article-body .news-pull-quote,
.news-detail-content .news-pull-quote,
.article-content .news-pull-quote {
  box-sizing: border-box;
  width: 100%;
  white-space: normal;
}

.article-body .news-pull-quote .news-quote-text,
.article-body .news-pull-quote .news-quote-author,
.article-body .news-pull-quote > strong,
.news-detail-content .news-pull-quote .news-quote-text,
.news-detail-content .news-pull-quote .news-quote-author,
.news-detail-content .news-pull-quote > strong,
.article-content .news-pull-quote .news-quote-text,
.article-content .news-pull-quote .news-quote-author,
.article-content .news-pull-quote > strong {
  display: block;
}

.article-body .news-pull-quote.news-quote-classic,
.news-detail-content .news-pull-quote.news-quote-classic,
.article-content .news-pull-quote.news-quote-classic {
  position: relative;
  margin: 34px 0 !important;
  padding: 30px 28px 24px !important;
  border: 0 !important;
  border-top: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  color: #991b1b !important;
  background: transparent !important;
  text-align: center !important;
  font-family: "Noto Serif", "Times New Roman", serif !important;
  font-size: inherit !important;
  font-style: italic !important;
  font-weight: 500 !important;
  line-height: 1.62 !important;
}

.news-pull-quote.news-quote-classic::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 20px;
  color: #dc2626;
  font: 700 3.3rem/1 Georgia, serif;
}

.article-body .news-pull-quote.news-quote-frame,
.news-detail-content .news-pull-quote.news-quote-frame,
.article-content .news-pull-quote.news-quote-frame {
  position: relative;
  margin: 46px 0 32px !important;
  padding: 48px 28px 25px !important;
  border: 2px solid #c81e32 !important;
  color: #111827 !important;
  background: #fff !important;
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word;
  font-family: "Noto Serif", "Times New Roman", serif !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.68 !important;
}

.news-pull-quote.news-quote-frame::before {
  content: "““";
  position: absolute;
  top: -34px;
  left: 22px;
  padding: 0 11px;
  color: #c81e32;
  background: #fff;
  font: 700 5.2rem/.82 Georgia, serif;
  letter-spacing: -22px;
}

.article-body .news-pull-quote.news-quote-accent,
.news-detail-content .news-pull-quote.news-quote-accent,
.article-content .news-pull-quote.news-quote-accent {
  position: relative;
  margin: 32px 0 !important;
  padding: 26px 30px !important;
  border: 0 !important;
  border-left: 6px solid #c9001b !important;
  border-radius: 0 15px 15px 0 !important;
  color: #1e293b !important;
  background: linear-gradient(135deg, #fff7f7, #f8fafc) !important;
  text-align: left !important;
  font-family: "Noto Serif", "Times New Roman", serif !important;
  font-size: inherit !important;
  font-style: italic !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

.article-body .news-pull-quote.news-quote-dark,
.news-detail-content .news-pull-quote.news-quote-dark,
.article-content .news-pull-quote.news-quote-dark {
  position: relative;
  margin: 34px 0 !important;
  padding: 34px 36px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 17px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 100% 0, rgba(220,38,38,.42), transparent 42%),
    #111827 !important;
  text-align: left !important;
  font-family: "Noto Serif", "Times New Roman", serif !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  box-shadow: 0 15px 34px rgba(15,23,42,.18);
}

.news-pull-quote.news-quote-dark::before {
  content: "“";
  position: absolute;
  top: 3px;
  right: 20px;
  color: rgba(251,113,133,.52);
  font: 700 6rem/1 Georgia, serif;
}

.article-body .news-pull-quote .news-quote-author,
.article-body .news-pull-quote > strong,
.news-detail-content .news-pull-quote .news-quote-author,
.news-detail-content .news-pull-quote > strong,
.article-content .news-pull-quote .news-quote-author,
.article-content .news-pull-quote > strong {
  display: block;
  margin-top: 15px;
  color: inherit;
  text-align: right;
  text-align-last: right;
  font-family: inherit;
  font-size: .84em;
  font-style: normal;
  font-weight: 800;
  line-height: 1.48;
}

.news-pull-quote.news-quote-classic .news-quote-author,
.news-pull-quote.news-quote-classic > strong {
  text-align: center;
}

@media (max-width: 640px) {
  .article-body .news-pull-quote.news-quote-frame,
  .news-detail-content .news-pull-quote.news-quote-frame,
  .article-content .news-pull-quote.news-quote-frame {
    margin-top: 40px !important;
    padding: 40px 18px 20px !important;
    font-size: inherit !important;
    line-height: 1.6 !important;
  }

  .news-pull-quote.news-quote-frame::before {
    top: -27px;
    left: 12px;
    padding: 0 8px;
    font-size: 4.2rem;
    letter-spacing: -18px;
  }

  .article-body .news-pull-quote.news-quote-classic,
  .article-body .news-pull-quote.news-quote-accent,
  .article-body .news-pull-quote.news-quote-dark,
  .news-detail-content .news-pull-quote.news-quote-classic,
  .news-detail-content .news-pull-quote.news-quote-accent,
  .news-detail-content .news-pull-quote.news-quote-dark,
  .article-content .news-pull-quote.news-quote-classic,
  .article-content .news-pull-quote.news-quote-accent,
  .article-content .news-pull-quote.news-quote-dark {
    padding: 23px 18px !important;
    font-size: inherit !important;
  }

  .article-body .news-pull-quote .news-quote-author,
  .article-body .news-pull-quote > strong,
  .news-detail-content .news-pull-quote .news-quote-author,
  .news-detail-content .news-pull-quote > strong,
  .article-content .news-pull-quote .news-quote-author,
  .article-content .news-pull-quote > strong {
    font-size: .86em;
    text-align: left;
  }

  .news-pull-quote.news-quote-classic .news-quote-author,
  .news-pull-quote.news-quote-classic > strong {
    text-align: center;
  }
}

@media (min-width: 821px) {
  body:not(.header-scrolled) > nav .nav-container {
    width: var(--site-shell) !important;
    max-width: none !important;
    margin-inline: auto !important;
    display: flex !important;
    align-items: stretch !important;
  }

  body:not(.header-scrolled) > nav .nav-menu {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
  }

  body:not(.header-scrolled) > nav .nav-menu > li {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body:not(.header-scrolled) > nav .nav-menu > li:first-child {
    flex: 0 0 66px !important;
  }

  body:not(.header-scrolled) > nav .nav-menu > li > a {
    min-height: 53px !important;
    height: 100% !important;
    padding-inline: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body:not(.header-scrolled) > nav .nav-actions {
    position: static !important;
    flex: 0 0 auto !important;
    min-height: 53px !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding-inline: 8px !important;
    align-self: stretch !important;
    background: var(--site-red) !important;
  }

  body:not(.header-scrolled) > nav .nav-action-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.header-scrolled > nav .nav-menu:not(.open) {
    display: none !important;
  }

  /* Contact page uses a compact standalone navigation structure. */
  body > .main-nav .nav-inner {
    width: var(--site-shell) !important;
    max-width: none !important;
    min-height: 53px !important;
    margin-inline: auto !important;
    justify-content: stretch !important;
  }

  body > .main-nav .nav-inner > li:not(.nav-action-item) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body > .main-nav .nav-inner > li:first-child {
    flex: 0 0 66px !important;
  }

  body > .main-nav .nav-inner > li > a,
  body > .main-nav .nav-dropdown-toggle {
    min-height: 53px !important;
    width: 100% !important;
    padding-inline: 12px !important;
    text-align: center !important;
  }

  body > .main-nav .nav-action-item {
    flex: 0 0 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body > .main-nav .nav-action-item + .nav-action-item {
    margin-left: 0 !important;
  }

  body > .main-nav .nav-action-item > a {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ---------- Unified footer: common pages ---------- */
body > footer:not(.site-footer),
body > footer.site-footer {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 36px 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--site-red) !important;
  color: rgba(255,255,255,.92) !important;
  border-top: 4px solid #a00000 !important;
  font-family: "Be Vietnam Pro", Inter, Arial, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

body > footer .footer-container,
body > footer.site-footer .footer-main {
  width: min(1400px, calc(100% - 64px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 42px 0 36px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, .68fr) minmax(330px, .92fr) !important;
  align-items: start !important;
  gap: clamp(28px, 4vw, 64px) !important;
}

body > footer .footer-col,
body > footer.site-footer .footer-main > section {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.92) !important;
  text-align: left !important;
}

/* ── Logo ── */
body > footer .footer-logo-wrap,
body > footer.site-footer .footer-brand .footer-logo {
  display: block !important;
  width: min(240px, 100%) !important;
  height: auto !important;
  margin: 0 0 14px !important;
}

body > footer .footer-logo-wrap img,
body > footer.site-footer .footer-brand .footer-logo {
  display: block !important;
  width: 100% !important;
  max-width: 240px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ── Description text ── */
body > footer .footer-col > p,
body > footer.site-footer .footer-brand > p {
  margin: 0 0 14px !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 11.5px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

/* ── Section headings ── */
body > footer .footer-col > h3,
body > footer.site-footer .footer-heading {
  margin: 0 0 14px !important;
  padding: 0 0 0 10px !important;
  color: #fff !important;
  border: 0 !important;
  border-left: 3px solid rgba(255,255,255,.7) !important;
  font-size: 13.5px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

/* ── Quick links ── */
body > footer .footer-links {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body > footer .footer-links li,
body > footer .footer-links a {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  transition: color .18s, padding-left .18s !important;
}

body > footer .footer-links a:hover {
  color: #fff !important;
  padding-left: 4px !important;
}

/* ── Social buttons ── */
body > footer .social-links {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
}

body > footer .social-btn,
body > footer.site-footer .footer-social {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: .8rem !important;
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  transition: background .2s, border-color .2s !important;
}

body > footer .social-btn:hover,
body > footer.site-footer .footer-social:hover {
  background: rgba(255,255,255,.22) !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* ── Visit counter ── */
body > footer .footer-visit-counter,
body > footer.site-footer .footer-visits {
  margin: 14px 0 0 !important;
  padding: 12px 14px !important;
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 8px !important;
  color: #fff !important;
}

body > footer .footer-visit-title,
body > footer.site-footer .footer-visits-title {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

body > footer .footer-visit-row {
  display: grid !important;
  grid-template-columns: 9px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 6px 0 0 !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 11.5px !important;
}

body > footer .footer-visit-dot { border-radius: 50% !important; width: 9px !important; height: 9px !important; }
body > footer .online-dot { background: #4ade80 !important; }
body > footer .total-dot { background: #fde047 !important; }

body > footer .footer-visit-value,
body > footer.site-footer .visit-value {
  color: #fff !important;
  font-weight: 800 !important;
}

/* ── Contact list ── */
body > footer .footer-contact-list {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  list-style: none !important;
}

body > footer .footer-contact-list li {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
}

body > footer .footer-contact-list i,
body > footer .contact-icon {
  color: var(--site-yellow) !important;
  margin-top: 2px !important;
  font-size: .8rem !important;
}

body > footer .footer-contact-list a,
body > footer .contact-text {
  color: rgba(255,255,255,.88) !important;
  overflow-wrap: anywhere !important;
  text-decoration: none !important;
}

/* ── Sub-contacts / Ban chủ nhiệm ── */
body > footer .footer-sub-contacts,
body > footer.site-footer .footer-management {
  margin: 0 !important;
  padding: 12px 14px 6px !important;
  background: rgba(100,0,0,.18) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 8px !important;
  color: #fff !important;
}

body > footer .sub-contact-title,
body > footer.site-footer .footer-management-title {
  margin: 0 0 6px !important;
  padding: 0 0 8px !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.2) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

body > footer .sub-contact-title i,
body > footer.site-footer .footer-management-title i {
  margin-right: 6px !important;
  color: var(--site-yellow) !important;
}

body > footer .footer-members-list,
body > footer.site-footer .footer-members {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body > footer .footer-members-list li,
body > footer.site-footer .footer-members li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 7px 0 !important;
  border: 0 !important;
  border-bottom: 1px dashed rgba(255,255,255,.16) !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  white-space: nowrap !important;
}

body > footer .footer-members-list li:last-child,
body > footer.site-footer .footer-members li:last-child {
  border-bottom: 0 !important;
  padding-bottom: 4px !important;
}

body > footer .footer-member-role {
  font-weight: 700 !important;
  color: rgba(255,255,255,.75) !important;
  margin-right: 3px !important;
}

body > footer .footer-member-name {
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body > footer .footer-member-phone,
body > footer.site-footer .footer-phone {
  flex-shrink: 0 !important;
  color: var(--site-yellow) !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* ── Footer bottom bar ── */
body > footer .footer-bottom {
  width: 100% !important;
  margin: 0 !important;
  padding: 16px max(24px, calc((100vw - 1400px) / 2)) 20px !important;
  background: rgba(0,0,0,.12) !important;
  border-top: 1px solid rgba(255,255,255,.2) !important;
  color: rgba(255,255,255,.82) !important;
  text-align: center !important;
}

body > footer .footer-bottom p {
  margin: 0 auto 5px !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

body > footer .footer-bottom p:last-child {
  margin-bottom: 0 !important;
  color: rgba(255,255,255,.65) !important;
  font-size: 10.5px !important;
}

/* ---------- Mobile footer ---------- */
@media (max-width: 820px) {
  body > footer:not(.site-footer),
  body > footer.site-footer {
    margin-top: 24px !important;
    border-top-width: 3px !important;
    font-size: 12px !important;
  }

  body > footer .footer-container,
  body > footer.site-footer .footer-main {
    width: 100% !important;
    padding: 26px 18px 22px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  body > footer .footer-logo-wrap,
  body > footer.site-footer .footer-brand .footer-logo {
    width: min(200px, 72%) !important;
    margin: 0 auto 12px !important;
  }

  body > footer .footer-logo-wrap img,
  body > footer.site-footer .footer-brand .footer-logo {
    margin-inline: auto !important;
  }

  body > footer .footer-col,
  body > footer.site-footer .footer-main > section {
    text-align: center !important;
  }

  body > footer .footer-col > p,
  body > footer.site-footer .footer-brand > p {
    margin-bottom: 12px !important;
    font-size: 11px !important;
    text-align: center !important;
  }

  body > footer .social-links {
    justify-content: center !important;
  }

  /* Keep the visit counter, hide quick-link list on mobile. */
  body > footer .footer-container > .footer-col:nth-child(2) > h3,
  body > footer .footer-container > .footer-col:nth-child(2) > .footer-links,
  body > footer.site-footer .footer-main > section:nth-child(2) > .footer-heading,
  body > footer.site-footer .footer-main > section:nth-child(2) > .footer-links {
    display: none !important;
  }

  body > footer .footer-visit-counter,
  body > footer.site-footer .footer-visits {
    width: min(280px, 100%) !important;
    margin: 0 auto !important;
    padding: 10px 14px !important;
    text-align: left !important;
  }

  body > footer .footer-col > h3,
  body > footer.site-footer .footer-heading {
    display: inline-block !important;
    margin: 0 auto 14px !important;
    padding: 0 !important;
    border-left: 0 !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  body > footer .footer-contact-list {
    width: min(300px, 100%) !important;
    margin: 0 auto 14px !important;
    gap: 10px !important;
  }

  body > footer .footer-contact-list li {
    grid-template-columns: 18px minmax(0, 1fr) !important;
    gap: 7px !important;
    font-size: 11px !important;
    text-align: left !important;
  }

  body > footer .footer-sub-contacts,
  body > footer.site-footer .footer-management {
    width: min(300px, 100%) !important;
    margin-inline: auto !important;
    padding: 10px 12px 5px !important;
    text-align: left !important;
  }

  body > footer .footer-members-list li,
  body > footer.site-footer .footer-members li {
    font-size: 10.5px !important;
    padding: 6px 0 !important;
    white-space: normal !important;
  }

  body > footer .footer-member-phone,
  body > footer.site-footer .footer-phone {
    font-size: 10.5px !important;
  }

  body > footer .footer-bottom {
    padding: 14px 16px 18px !important;
  }

  body > footer .footer-bottom p {
    font-size: 9.5px !important;
    line-height: 1.55 !important;
  }
}

@media (min-width: 821px) and (max-width: 1250px) {
  body > footer .footer-container,
  body > footer.site-footer .footer-main {
    width: calc(100% - 48px) !important;
    grid-template-columns: 1fr .68fr 1fr !important;
    gap: 26px !important;
    padding: 36px 0 30px !important;
  }

  body > footer .footer-members-list li,
  body > footer.site-footer .footer-members li {
    white-space: normal !important;
    flex-wrap: wrap !important;
    font-size: 10.5px !important;
  }
}

/* ==========================================
   UNIFIED PRINT STYLING RULES (@media print)
   Chế độ in bài viết: 
   - Chỉ hiển thị 1 logo ở giữa trang
   - Ẩn hoàn toàn icon MENU và icon ĐĂNG NHẬP
   - Ẩn khối print-only-header bị lặp logo
   ========================================== */
@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  header.site-header,
  .site-header {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 2px dashed #b80000 !important;
    padding: 10px 0 15px 0 !important;
    margin-bottom: 20px !important;
    z-index: auto !important;
  }

  .site-header .header-container,
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .site-header .header-logo-wrap,
  .header-logo-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .site-header .site-logo,
  .site-logo {
    display: block !important;
    margin: 0 auto !important;
    max-height: 75px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  /* Ẩn icon MENU và icon ĐĂNG NHẬP (Admin) khi in */
  .header-mobile-btn,
  .header-mobile-btn.menu-btn,
  .header-mobile-btn.admin-btn,
  .menu-btn,
  .admin-btn,
  .nav-mobile-btn,
  nav,
  .nav-container,
  #navMenu {
    display: none !important;
  }

  /* Ẩn khối print-only-header tránh lỗi 2 logo */
  .print-only-header,
  .print-only-header * {
    display: none !important;
  }

  /* Ẩn các thành phần giao diện không cần thiết khi in */
  footer, aside, .footer, .sidebar, .sidebar-wrapper, .top-marquee,
  .article-controls, .article-share-section, .comments-section, .breadcrumb, .detail-breadcrumb,
  #detailBreadcrumbs, .related-news-section, .popular-sidebar, #widgetRelated,
  #backToTop, .btn, button, .popular-slider, .popular-news-widget, .related-articles,
  .chat-floating-btn, #chatAssistantWidget {
    display: none !important;
  }

  /* Chân trang thông tin bản in */
  .print-only-footer {
    display: block !important;
    margin-top: 30px !important;
    border-top: 1px dashed #666 !important;
    padding-top: 12px !important;
    font-size: 9pt !important;
    color: #333 !important;
    line-height: 1.5 !important;
  }

  .print-only-footer p {
    margin-bottom: 4px !important;
  }
}

/* ==========================================================================
   CALENDAR PAGE RECOVERY
   The legacy inline stylesheet contains an escaped/corrupted block immediately
   before the calendar rules. Keep this final layer self-contained so the public
   calendar remains stable even while old pages still carry that legacy CSS.
   ========================================================================== */
#calendarView {
  width: 100% !important;
  min-width: 0 !important;
}

#calendarView > .card-section {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07) !important;
}

#calendarView .calendar-week-header {
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) minmax(260px, 2fr) minmax(120px, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 88px !important;
  padding: 16px 20px !important;
  border: 0 !important;
  border-radius: 15px 15px 0 0 !important;
  background: linear-gradient(135deg, #960000 0%, #c90000 56%, #e00000 100%) !important;
  color: #fff !important;
  box-shadow: none !important;
}

#calendarView .calendar-week-title {
  min-width: 0 !important;
  text-align: center !important;
}

#calendarView .calendar-week-title h3 {
  margin: 0 0 4px !important;
  color: #fff !important;
  font-family: "Be Vietnam Pro", Inter, Arial, sans-serif !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
}

#calendarView .calendar-week-range {
  display: block !important;
  color: #ffef72 !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

#calendarView .calendar-nav-btn {
  display: inline-flex !important;
  width: max-content !important;
  min-height: 40px !important;
  padding: 8px 15px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .13) !important;
  color: #fff !important;
  font-family: "Be Vietnam Pro", Inter, Arial, sans-serif !important;
  font-size: .78rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#calendarView .calendar-nav-btn:last-child {
  justify-self: end !important;
}

#calendarView .calendar-nav-btn:hover,
#calendarView .calendar-nav-btn:focus-visible {
  border-color: #fff !important;
  background: #fff !important;
  color: #a50000 !important;
  transform: translateY(-1px) !important;
}

#calendarView .calendar-table-wrapper {
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  border: 0 !important;
  border-radius: 0 0 15px 15px !important;
  background: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  #calendarView > .card-section {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #calendarView .calendar-week-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    gap: 7px !important;
    min-height: 82px !important;
    margin-bottom: 12px !important;
    padding: 12px 10px !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 20px rgba(153, 0, 0, .16) !important;
  }

  #calendarView .calendar-week-title h3 {
    font-size: .82rem !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
  }

  #calendarView .calendar-week-range {
    font-size: .66rem !important;
    line-height: 1.4 !important;
  }

  #calendarView .calendar-nav-btn {
    width: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  #calendarView .calendar-nav-btn span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  #calendarView .calendar-nav-btn i {
    font-size: .72rem !important;
  }

  #calendarView .calendar-table-wrapper {
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  #calendarView .calendar-table tr {
    margin: 0 0 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .055) !important;
  }

  #calendarView .calendar-day-col {
    padding: 9px 12px !important;
  }

  #calendarView .calendar-table td:not(.calendar-day-col) {
    padding: 13px 14px !important;
  }

  #calendarView .calendar-event-empty {
    padding: 9px 10px !important;
  }

  /* Calendar pages can be very tall; keep the shared footer compact and safe. */
  body > footer .footer-container {
    gap: 16px !important;
    padding: 24px 16px 18px !important;
  }

  body > footer .footer-col {
    width: 100% !important;
    min-width: 0 !important;
  }

  body > footer .footer-logo-wrap {
    width: min(180px, 68%) !important;
    margin-bottom: 10px !important;
  }

  body > footer .footer-visit-counter,
  body > footer .footer-contact-list,
  body > footer .footer-sub-contacts {
    box-sizing: border-box !important;
    width: min(320px, 100%) !important;
  }

  body > footer .footer-members-list li {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body > footer .footer-member-info {
    min-width: 0 !important;
  }

  body > footer .footer-member-name {
    white-space: normal !important;
  }

  body > footer .footer-bottom {
    padding: 12px 14px 15px !important;
  }
}
