/* ===== Global Background - Màu trắng ===== */
/* Áp dụng màu nền trắng cho toàn bộ website */

/* CRITICAL: Flexbox layout để footer luôn ở cuối */
html {
  background-color: #ffffff !important;
  background: #ffffff !important;
  height: 100% !important;
  min-height: 100vh !important;
}

body {
  background-color: #ffffff !important;
  background: #ffffff !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* CRITICAL: #page phải flex để đẩy footer xuống cuối */
#page,
#page.site {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* CRITICAL: #content và #main phải flex */
#content,
#primary,
#main,
.site-main,
main#main {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

/* DISABLED: Footer layout rules moved to fix-footer.css
/* CRITICAL: Footer luôn ở cuối */
footer,
footer.nembien-footer,
footer.site-footer {
  /* Layout rules removed - handled by fix-footer.css */
  width: 100% !important;
  clear: both !important;
  display: block !important;
  visibility: visible !important;
}

/* Trang chủ - đảm bảo nền trắng */
body.home,
body.home .cola-home-page,
body.home #page,
body.home .site-content {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Đảm bảo các container chính cũng có nền trắng */
.site-content,
#content,
.main_body,
main#main,
.site-main,
#page {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Category và Archive pages */
body.category,
body.archive,
body.category .site-content,
body.archive .site-content,
body.category #content,
body.archive #content,
body.category #page,
body.archive #page {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Match page */
body .matches_page,
.matches_page {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Highlights page */
body .highlights,
.highlights {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Page templates */
body.page-template,
.page-template .site-content,
.page-template #content,
.page-template #page {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Ty-le-keo page */
body.page-template-page-ty-le-keo,
.ty-le-keo-page {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Single highlights */
body.single-highlights,
body.single-highlights .site-content,
body.single-highlights #content {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Archive giaitri */
body.post-type-archive-giaitri,
body.archive.post-type-archive-giaitri {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Đảm bảo các card/box có nền trắng */
.card,
.bg-white,
.entry-content,
.post-content {
  background-color: #ffffff !important;
}

/* Single post pages */
body.single,
body.single-post,
body.single .site-content,
body.single #content,
body.single #page,
body.single-post .site-content,
body.single-post #content,
body.single-post #page {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Single phonglive */
body.single-phonglive,
body.single-phonglive .site-content,
body.single-phonglive #content {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Single giaitri */
body.single-giaitri,
body.single-giaitri .site-content,
body.single-giaitri #content {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Single trandau */
body.single-trandau,
body.single-trandau .site-content,
body.single-trandau #content {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Archive pages - tất cả các loại */
body.archive,
body.post-type-archive,
body.taxonomy,
body.date,
body.author,
body.archive .site-content,
body.post-type-archive .site-content,
body.taxonomy .site-content,
body.archive #content,
body.post-type-archive #content,
body.taxonomy #content {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Blog và search pages */
body.blog,
body.search,
body.blog .site-content,
body.search .site-content,
body.blog #content,
body.search #content {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Footer - Đổi màu nền từ teal/xanh sang đỏ đậm */
.bootscore-footer,
footer.bg-body-tertiary,
footer.site-footer {
  background: linear-gradient(145deg, #8b0a0a 0%, #6e0808 100%) !important;
  background-color: #8b0a0a !important;
}

/* Footer text màu vàng/trắng */
.bootscore-footer,
.bootscore-footer a,
.bootscore-footer p,
.bootscore-footer li,
footer.bg-body-tertiary,
footer.bg-body-tertiary a {
  color: #fef3c7 !important;
}

.bootscore-footer a:hover,
footer.bg-body-tertiary a:hover {
  color: #ffffff !important;
}

/* Right fix buttons - đổi màu nền */
.right-fix .icon-team a {
  background: linear-gradient(145deg, #8b0a0a 0%, #6e0808 100%) !important;
}

/* Phần copyright dưới footer - màu đỏ đậm */
.bootscore-info,
.bootscore-info.bg-body-tertiary {
  background: #8b0a0a !important;
  background-color: #8b0a0a !important;
}

/* Ẩn nút "Sáng" (theme toggle button) - Ẩn tất cả các nút có thể liên quan đến theme toggle */
[class*="theme-toggle"],
[class*="dark-toggle"],
[class*="light-toggle"],
[class*="mode-toggle"],
[class*="theme-switch"],
[class*="theme-switcher"],
*[aria-label*="Sáng"],
*[aria-label*="sáng"],
*[title*="Sáng"],
*[title*="sáng"],
*[data-theme-toggle],
*[data-dark-toggle],
*[data-light-toggle],
*[data-mode-toggle] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ẩn nút có text "Sáng" - sử dụng attribute selector */
button[aria-label*="Sáng"],
a[aria-label*="Sáng"],
div[aria-label*="Sáng"],
button[title*="Sáng"],
a[title*="Sáng"],
div[title*="Sáng"],
button[aria-label*="sáng"],
a[aria-label*="sáng"],
div[aria-label*="sáng"],
button[title*="sáng"],
a[title*="sáng"],
div[title*="sáng"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

