/*
Theme Name: PN New Theme
Theme URI: 
Author: Antigravity
Author URI: 
Description: A custom WordPress theme for PN New Theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pn-new-theme
*/

body {
  font-family: "Roboto", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9fafb;
  /* Gray background for single posts mostly */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Legacy header style removed
header {
    background: #f4f4f4;
    padding: 20px 0;
    border-bottom: 3px solid #b30000;
}
*/

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
}

footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}

/* =========================================
   BCA Header Styles
   ========================================= */

:root {
  --bca-red: #ba0a30;
  --bca-yellow-bg: #fdf1de;
  --bca-text-dark: #333;
  --bca-red-hover: #960826;
}

/* Reset additions */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

.header-wrapper {
  width: 100%;
  position: relative;
  z-index: 50;
}

/* sticky behavior */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* --- Top Banner (Red) --- */
.bca-banner {
  background-color: #001A72;
  background-position: center;
  border-bottom: 1px solid #e5e7eb;
  height: 128px;
  /* Desktop height */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease-in-out;
}

.bca-logo-link {
  display: block;
  max-width: 100%;
}

.bca-logo-img {
  height: auto;
  max-height: 84px;
  object-fit: contain;
}

/* --- Main Navigation (Yellow) --- */
.bca-navbar {
  background-color: var(--bca-yellow-bg);
  border-bottom: 1px solid #d1d5db;
}

.bca-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* Desktop Menu List */
.main-menu-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Navigation Bar */
.bca-navbar {
  background-color: #fbf5e2;
  /* Light cream */
  border-bottom: 2px solid #ba0a30;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: box-shadow 0.3s ease;
}

.bca-navbar .container {
  display: flex;
  justify-content: center;
  /* Center menu */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  /* Anchor for absolute elements */
  height: 60px;
  flex-wrap: nowrap;
}

.main-menu-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  /* Center align items */
  align-items: center;
  height: 100%;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  /* Increased gap for better spacing */
  align-items: center;
  height: 100%;
}

.main-menu li {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-menu li a {
  text-decoration: none;
  color: #9f1c20;
  /* Darker red */
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  padding: 0 5px;
  /* Side padding only, height handled by flex */
}

.main-menu li a:hover,
.main-menu li.current-menu-item a {
  color: #ba0a30;
  border-bottom-color: #ba0a30;
}

/* Icons & Ultilities */
.header-actions {
  display: flex;
  align-items: center;
  position: absolute;
  /* Fixed to right */
  right: 15px;
  /* Align with container padding */
  top: 0;
  height: 100%;
  z-index: 100;
}

/* Dynamic Search Box */
.search-box {
  display: flex;
  align-items: center;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-form {
  display: flex;
  align-items: center;
  position: relative;
  /* For absolute button */
}

.search-box.active {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
}

/* Input Styling */
.search-input {
  width: 0;
  max-width: 0;
  height: 34px !important;
  /* Fixed height */
  line-height: 34px;
  /* Vertically center text */
  border: 1px solid transparent;
  background: transparent;
  border-radius: 20px;
  padding: 0;
  /* Reset padding for hidden */
  font-size: 14px;
  color: #333;
  opacity: 0;
  outline: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-box.active .search-input {
  width: 250px;
  max-width: 250px;
  border-color: #ba0a30;
  /* Red border */
  background: #fff;
  opacity: 1;
  padding: 0 40px 0 15px;
  /* Left text, Right icon space */
}

/* Search Button (Magnifying Glass) */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ba0a30;
  transition: transform 0.3s ease;
  /* Absolute Positioning inside Form */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  height: 34px;
  width: 34px;
}

.search-box.active .search-btn {
  transform: translateY(-50%);
  /* No scaling needed */
}

.search-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  /* Make it a bit bolder if possible or just standard */
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  /* On banner */
  font-size: 24px;
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bca-banner {
    height: 60px;
    justify-content: space-between;
    padding: 0 15px;
  }

  .bca-logo-img {
    max-height: 40px;
  }

  .mobile-menu-active .main-menu li a {
    color: #fff;
  }
}

/* =========================================
   BCA Footer Styles
   ========================================= */

body {
  overflow-x: hidden;
  /* Prevent horizontal scrollbars from full-width elements */
}

.site-footer {
  position: relative;
  width: 100vw;
  /* Force viewport width */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  /* Negative margin trick to break out of containers if nested */
  margin-right: -50vw;
  background-color: #001A72;
  color: #fff;
  padding-top: 30px;
  border-top: 4px solid #fcebbd;
  box-sizing: border-box;
}

.site-footer .footer-center a {
	color: yellow !important;
}

/* Ensure container inside footer centers the content */
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* --- Top Footer: Menu --- */
.footer-nav {
  text-align: center;
  margin-bottom: 20px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-menu li a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
}

.footer-menu li a:hover {
  text-decoration: underline;
}

/* --- Center Content --- */
.footer-center {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

.footer-content-1,
.footer-content-2 {
  font-size: 14px;
  line-height: 1.6;
}

.footer-content-1 p,
.footer-content-2 p {
  margin: 5px 0;
}

/* --- Copyright Bar --- */
.footer-copyright-wrapper {
  background-color: rgba(0, 0, 0, 0.15);
  width: 100%;
  margin-top: 20px;
}

.footer-copyright-content {
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }

  .footer-center {
    padding: 10px;
  }
}

/* =========================================
   Single Post Styles
   ========================================= */

.single-page-container {
  padding: 40px 15px;
  display: flex;
  justify-content: center;
}

.single-content-box {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
  width: 100%;
  max-width: 900px;
}

/* Breadcrumbs */
.bca-breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.bca-breadcrumb a {
  color: #ba0a30;
  text-decoration: none;
  font-weight: 500;
}

.bca-breadcrumb a:hover {
  text-decoration: underline;
}

.bca-breadcrumb .separator,
.bca-breadcrumb span.breadcrumb_last,
.bca-breadcrumb strong {
  color: #555;
  /* Gray for separator and last item */
  font-weight: normal;
}

/* Handle Yoast specific IDs if needed, but the above generic selectors work well since we wrap it */
#breadcrumbs {
  margin: 0;
  padding: 0;
  display: inline-block;
}

/* Entry Header */
.entry-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.entry-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
  line-height: 1.3;
}

.entry-meta {
  font-size: 14px;
  color: #777;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
}

/* Entry Content */
.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #111;
}

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

/* 2. Image Optimization */
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption {
  max-width: 100% !important;
  /* Ensure container never overflows parent */
  margin-left: auto !important;
  margin-right: auto !important;
}

.entry-content img {
  max-width: 90% !important;
  /* Force image to be 90% of its container */
  width: auto !important;
  /* Ensure aspect ratio is maintained */
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Caption Styling */
.entry-content figcaption,
.wp-caption-text {
  text-align: center;
  font-style: italic;
  color: #888;
  margin-top: 10px;
  font-size: 14px;
  margin-bottom: 25px;
  /* Spacing after caption before next paragraph */
}

/* 4. Table Styling */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.entry-content table th,
.entry-content table td {
  padding: 12px 15px;
  border: 1px solid #eee;
}

/* First row (Header) */
.entry-content table thead tr {
  background-color: #fef9c3;
  /* Light yellow */
  /* If you want a specific yellow, e.g. #fff9c4 or similar */
}

.entry-content table thead th,
.entry-content table tr:first-child th {
  text-align: center;
  font-weight: bold;
  color: #333;
}

/* Rows from 2nd onwards */
.entry-content table tbody tr,
.entry-content table tr:not(:first-child) {
  background-color: #ffffff;
}

.entry-content table tbody td,
.entry-content table tr:not(:first-child) td {
  text-align: left;
  color: #333;
}

/* Related Posts */
.related-posts {
  margin-top: 50px;
  border-top: 2px solid #f0f0f0;
  padding-top: 30px;
}

.related-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ba0a30;
  border-left: 4px solid #ba0a30;
  padding-left: 10px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* Equal gap */
}

/* 3. Related Posts Grid Styling */
.related-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* Light shadow */
  border: 1px solid #f0f0f0;
  /* Thin border */
  overflow: hidden;
  /* To verify image border-radius works with container */
  padding-bottom: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.related-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
  display: block;
}

.related-item h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  padding: 0 15px;
  /* Add padding for text inside the card */
}

.related-item h3 a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.related-item h3 a:hover {
  color: #ba0a30;
}

/* Comments */
.comments-area {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
}

/* ... previous code ... */

/* =========================================
   CATEGORY PAGE STYLES
   ========================================= */

.category-page-wrapper {
  background-color: #f9fafb;
  /* min-height: 100vh;
  padding-bottom: 50px; */
  width: 100%;
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Layout 70/30 */
.category-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.category-main {
  width: 70%;
  /* Ensure it doesn't shrink */
  flex: 0 0 70%;
}

.category-sidebar {
  width: 30%;
  flex: 0 0 30%;
  min-height: 10px;
  /* Placeholder height */
}

/* Category Header */
.category-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.category-header .page-title {
  font-size: 28px;
  font-weight: bold;
  color: #ba0a30;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.category-header .title-divider {
  width: 60px;
  height: 3px;
  background-color: #ba0a30;
  display: block;
  margin-top: 10px;
  /* Adjust if needed relative to text */
}

/* Post List Item (Card) */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  /* Increase gap slightly */
}

.post-list-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  /* Lighter shadow */
  border-bottom: 1px solid #f0f0f0;
  /* Thin separator */
  padding: 20px;
  gap: 25px;
  align-items: flex-start;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.post-list-item:hover {
  background-color: #fafafa;
  /* Slight gray on hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  /* Highlight shadow */
}

/* Left: Thumbnail (30%) */
.category-post-thumbnail {
  flex: 0 0 35%;
  /* Increased slightly to match visual weight of 900x500 ratio often requiring more width than strictly 30% if content is dense, or keep 30% but ensure ratio. Let's stick to 30-32% range for balance */
  max-width: 35%;
}

.category-post-thumbnail img.category-img {
  width: 100%;
  /* Enforce Landscape 16:9 ratio */
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  /* Requested radius */
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Right: Content (70% -> remaining) */
.category-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Align top */
}

.post-list-title {
  margin: 0 0 12px 0;
  font-size: 24px;
  /* Larger and Bolder */
  font-weight: 800;
  line-height: 1.3;
  font-family: sans-serif;
}

.post-list-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}

.post-list-title a:hover {
  color: #ba0a30;
}

.post-list-excerpt {
  font-size: 16px;
  color: #333;
  /* Darker for readability */
  line-height: 1.6;
  /* Comfortable spacing */
  margin-bottom: 15px;

  /* Clamp to 4 lines */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  /* Strict left align */
}

.post-list-meta {
  font-size: 14px;
  color: #777;
  font-weight: 500;
  margin-top: auto;
  text-align: left;
}

/* Pagination */
.bca-pagination {
  margin-top: 40px;
  text-align: center;
}

.bca-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
}

.bca-pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
}

.bca-pagination .page-numbers:hover {
  border-color: #ba0a30;
  color: #ba0a30;
}

.bca-pagination .page-numbers.current {
  background-color: #ba0a30;
  color: #fff;
  border-color: #ba0a30;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list li {
  margin-bottom: 20px;
}

/* Comment Body Layout */
.comment-body {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

/* Avatar */
.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Content Wrapper */
.comment-content-wrapper {
  flex: 1;
  background-color: #f1f1f1;
  /* Optional: very subtle bg for contrast or keep white */
  padding: 16px;
  border-radius: 8px;
  /* Keep minimal if using white */
}

/* Meta: Name & Time */
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.comment-author cite,
.comment-author a {
  font-style: normal;
  font-weight: bold;
  color: #111;
  text-decoration: none;
}

.comment-time {
  font-size: 13px;
  color: #888;
}

/* Comment Text */
.comment-text p {
  margin: 5px 0 10px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

/* Reply Link */
.comment-reply a {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
}

.comment-reply a:hover {
  color: #ba0a30;
  text-decoration: underline;
}

/* Threaded Comments / Nested Levels */
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 50px;
  /* Vertical Line */
  padding-left: 20px;
}

/* Remove bullets if they appear */
.comment-list,
.children {
  list-style: none !important;
}

/* Comment Form Styling */
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-submit .submit {
  background: #ba0a30;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.form-submit .submit:hover {
  background: #900825;
}

/* Responsive */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .single-content-box {
    padding: 20px;
  }
}

.editor-content-wrapper li {
  margin-bottom: 0.8em;
}

.editor-content-wrapper figure,
.editor-content-wrapper figure img {
  margin-top: 2rem;
}

.editor-content-wrapper figure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.faq-content-wrapper,
.editor-content-wrapper {
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
    rgba(0, 0, 0, 0.1) 0px 4px 30px 0px;
  border-radius: 8px;
  padding: 20px;
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* --- Desktop: Ẩn nút toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Mobile: Thiết lập Responsive --- */
@media screen and (max-width: 991px) {
  /* Hiển thị nút toggle trên mobile */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  /* Container của Menu chính */
  .bca-navbar {
    position: fixed;
    top: 0;
    left: -100%; /* Giấu menu sang trái */
    width: 280px; /* Chiều rộng menu mobile */
    height: 100vh;
    background: #fff; /* Màu nền menu mobile */
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 80px; /* Chừa chỗ cho header */
    display: block; /* Đè lên layout cũ */
  }

  /* Khi Menu được kích hoạt */
  .mobile-menu-active .bca-navbar {
    left: 0; /* Đẩy menu ra */
  }

  /* Biến danh sách menu thành cột dọc */
  .main-menu {
    flex-direction: column;
    display: flex;
    padding: 0 20px;
  }

  .main-menu li {
    /* margin: 10px 0; */
    list-style: none;
  }

  .main-menu a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  /* Lớp phủ mờ phía sau khi mở menu */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .mobile-menu-active .mobile-menu-overlay {
    display: block;
  }
}

/* --- RESPONSIVE MOBILE TỐI ƯU --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 8px;
  }

  /* 1. Chỉnh lại Banner */
  .bca-banner {
    height: 80px;
    justify-content: space-between;
    padding: 0 15px;
  }

  .menu-toggle {
    display: block; /* Hiện nút hamburger */
    order: -1;
  }

  .bca-logo-img {
    max-height: 60px;
  }

  /* 2. Biến Navbar thành Sidebar trượt */
  .bca-navbar {
    position: fixed;
    top: 0;
    left: -100%; /* Giấu menu sang trái */
    width: 80%; /* Chiều rộng sidebar */
    max-width: 300px;
    height: 100vh;
    background-color: #fff; /* Nền trắng cho sạch sẽ */
    z-index: 9999;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block; /* Hủy flex của desktop */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  /* Khi Menu mở */
  .mobile-menu-active .bca-navbar {
    left: 0;
  }

  /* 3. Chỉnh lại Container bên trong Navbar */
  .bca-navbar .container {
    flex-direction: column; /* Xếp dọc */
    height: auto;
    padding: 20px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* 4. Định dạng lại Menu Items */
  .main-menu-container {
    width: 100%;
    /* margin-top: 20px; */
  }

  .main-menu {
    flex-direction: column; /* Xếp dọc các mục menu */
    gap: 0;
    width: 100%;
    height: auto;
  }

  .main-menu li {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
  }

  .main-menu li a {
    padding: 15px 0;
    width: 100%;
    height: auto;
    font-size: 14px;
    color: #333 !important; /* Chữ tối trên nền trắng */
    border-bottom: none;
    justify-content: flex-start;
  }

  /* 5. Chỉnh lại Search Box trên Mobile */
  .header-actions {
    position: relative; /* Hủy absolute của desktop */
    right: auto;
    top: auto;
    width: 100%;
    margin-bottom: 20px;
    order: -1; /* Đưa search lên đầu menu */
  }

  .search-box,
  .search-form {
    width: 100%;
  }

  .search-input {
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    border-color: #ddd !important;
    background: #f5f5f5 !important;
    padding: 0 40px 0 15px !important;
  }

  /* 6. Lớp phủ mờ khi mở menu */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
  }

  .mobile-menu-active .mobile-menu-overlay {
    display: block;
  }
}

.editor-content-wrapper img, 
footer img {
  max-width: 100% !important;
}
