:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --accent: #b10c0c;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
}

.text-muted {
  color: var(--muted);
}
a {
  color: #222222;
  text-decoration: none;
}

a:hover {
  color: #b10c0c;
}


.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 600;
}

.max-w-screen-xl {
  max-width: 1200px;
  width: 100%;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.header-top {
  transition: opacity 0.6s ease, max-height 0.6s ease;
  max-height: 96px;
  opacity: 1;
  position: relative;
}

@media (min-width: 768px) {
  .header-top {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

.site-header.compact .header-top {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  padding: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

.category-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  gap: 16px;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.category-divider {
  height: 1px;
  background: rgba(226, 232, 240, 0.9);
  width: 100%;
}

.site-header.compact .category-divider {
  display: none;
}

.site-header.compact .category-nav {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  border-bottom: none;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.site-header.compact {
  border-bottom: none;
}

.site-header.compact {
  -webkit-box-shadow: 0 1px 3px rgba(80, 80, 80, .2), 0 3px 5px rgba(80, 80, 80, .15);
  box-shadow: 0 1px 3px rgba(80, 80, 80, .2), 0 3px 5px rgba(80, 80, 80, .15);
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  border-bottom: 1px solid #e0e0e0;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 768px) {
  .site-header.compact {
    padding: 5px;
  }
}

.category-tab {
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
}

.category-tab:hover {
  border-bottom-color: #0ea5e9;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

@media (min-width: 768px) {
  .mobile-drawer {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}
.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-inner {
  transform: translateX(0);
}

.mobile-drawer-inner a,
.mobile-drawer-inner button {
  border-radius: 999px;
}

.mobile-drawer-inner .text-sm a,
.mobile-drawer-inner .text-sm button {
  border: 1px solid #e2e8f0;
  color: #222222;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  overflow-x: auto;
  white-space: nowrap;
}

.mobile-tabs a {
  flex: 0 0 auto;
}
.logo-wrap {
  position: relative;
  z-index: 1;
}

.logo-img {
  height: 2rem;
}

@media (max-width: 768px) {
  .logo-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-img {
    height: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header.compact .category-nav {
    display: flex;
    padding: 0;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }
}

.search-input {
  padding-left: 1rem;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

.search.search-vne {
  position: relative;
  align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
}

.search.search-vne input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding-right: 36px;
  min-width: 220px;
}

.btn-search-vne {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-search-vne svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .site-header.compact .header-top {
    opacity: 1;
    max-height: 56px;
    overflow: visible;
    pointer-events: auto;
  }

  .site-header.compact .logo-wrap,
  .site-header.compact .search-form,
  .site-header.compact .auth-links {
    display: none;
  }

  #mobile-search {
    display: none;
    padding: 0 1rem 0.75rem;
  }

  #mobile-search.show {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .site-header.compact .category-nav a.category-tab {
    display: none;
  }

  .site-header.compact .category-nav {
    padding: 5px;
  }
}

@media (max-width: 768px) {
  .site-header.compact #category-menu {
    display: none;
  }
}



@media (max-width: 768px) {
  .mobile-menu-btn {
    position: static;
  }
}

.mobile-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.mobile-drawer-inner .text-sm a,
.mobile-drawer-inner .text-sm button {
  padding: 8px 14px;
}

.category-nav a {
  display: inline-block;
}

#category-pagination a {
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#category-pagination a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  background: #0f172a;
  color: #ffffff;
  border-color: #222222;
}

.article-title {
  font-size: 32px;
  line-height: 150%;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222222;
}

.article-content {
  background: #FCFAF6;
  border-radius: 20px;
  color: #222;
  font-size: 18px;
  line-height: 160%;
  font-weight: 400;
  margin-bottom: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  .article-content {
    background: #FFFFFF;
    font-size: 16px;
    line-height: 160%;
  }

  .article-title {
    font-size: 24px;
    line-height: 150%;
  }
}

@media (max-width: 768px) {
  [style*="#FCFAF6"],
  [style*="#fcfaf6"] {
    background: #FFFFFF !important;
  }
}

.article-content p {
  margin: 0 0 15px;
  line-height: inherit;
}

.article-content h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #222222;
  font-family: "Merriweather", Georgia, serif;
}

.article-content h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #222222;
  font-family: "Merriweather", Georgia, serif;
}

/* Normalize Tailwind text sizes to be smaller overall */
.text-3xl {
  font-size: 1.5rem;
}

.text-2xl {
  font-size: 1.25rem;
}

.text-xl {
  font-size: 1.125rem;
}

.text-lg {
  font-size: 1rem;
}

.text-base {
  font-size: 0.9375rem;
}

.text-sm {
  font-size: 0.8125rem;
}

/* Fallback styles if Tailwind CDN fails */
.bg-slate-900 {
  background-color: #222222;
  color: #ffffff;
}

.bg-sky-600 {
  background-color: #0ea5e9;
  color: #ffffff;
}

.text-white {
  color: #ffffff;
}

.border {
  border: 1px solid #e2e8f0;
}

.border-slate-200 {
  border-color: #e2e8f0;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-logo {
  width: 300px;
  height: 300px;
  background: url("../images/logo/logo-xuhuong24.png") no-repeat center / contain;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

body.loading-active {
  overflow: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.no-scroll {
  overflow: hidden;
}







.article-signature {
  text-align: right;
  font-weight: 600;
  margin-top: 16px;
}

.article-signature .sig-author {
  font-weight: 400;
}











.mobile-search-only {
  display: block;
  width: 100%;
}

.mobile-search-only input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.mobile-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 12px 10px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.mobile-menu-list a {
  position: relative;
  color: #222222;
  font-weight: 600;
  padding: 8px 12px 8px 28px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #eef2f7;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mobile-menu-list a::before {
  content: "\2022";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b10c0c;
  font-size: 14px;
  line-height: 1;
}

.mobile-menu-list a:hover {
  color: #b10c0c;
  border-color: #f1c5c5;
  box-shadow: 0 4px 10px rgba(177, 12, 12, 0.08);
  transform: translateY(-1px);
}

#category-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer .category-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  white-space: normal;
}

.auth-links-mobile-menu{
  display: flex;
  justify-content: center;
}



.mobile-menu-list::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-list::-webkit-scrollbar-thumb {
  background: rgba(34,34,34,0.2);
  border-radius: 999px;
}









.mobile-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-inner {
  transform: translateX(0);
}
.mobile-drawer-inner a,
.mobile-drawer-inner button {
  border-radius: 999px;
}

.mobile-drawer-inner .text-sm a,
.mobile-drawer-inner .text-sm button {
  border: 1px solid #e2e8f0;
  color: #222222;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  overflow-x: auto;
  white-space: nowrap;
}

.mobile-tabs a {
  flex: 0 0 auto;
}

.logo-wrap {
  position: relative;
  z-index: 1;
}

.logo-img {
  height: 2rem;
}

@media (max-width: 768px) {
  .logo-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-img {
    height: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header.compact .category-nav {
    display: flex;
    padding: 0;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }
}

.search-input {
  padding-left: 1rem;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

.search.search-vne {
  position: relative;
  align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
}

.search.search-vne input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding-right: 36px;
  min-width: 220px;
}

.btn-search-vne {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-search-vne svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .site-header.compact .header-top {
    opacity: 1;
    max-height: 56px;
    overflow: visible;
    pointer-events: auto;
  }

  .site-header.compact .logo-wrap,
  .site-header.compact .search-form,
  .site-header.compact .auth-links {
    display: none;
  }

  #mobile-search {
    display: none;
    padding: 0 1rem 0.75rem;
  }

  #mobile-search.show {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .site-header.compact .category-nav a.category-tab {
    display: none;
  }

  .site-header.compact .category-nav {
    padding: 5px;
  }
}

@media (max-width: 768px) {
  .site-header.compact #category-menu {
    display: none;
  }
}



@media (max-width: 768px) {
  .mobile-menu-btn {
    position: static;
  }
}

.mobile-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.mobile-drawer-inner .text-sm a,
.mobile-drawer-inner .text-sm button {
  padding: 8px 14px;
}

.category-nav a {
  display: inline-block;
}

#category-pagination a {
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#category-pagination a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  background: #0f172a;
  color: #ffffff;
  border-color: #222222;
}

.article-title {
  font-size: 32px;
  line-height: 150%;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222222;
}

.article-content {
  background: #FCFAF6;
  border-radius: 20px;
  color: #222;
  font-size: 18px;
  line-height: 160%;
  font-weight: 400;
  margin-bottom: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  .article-content {
    background: #FFFFFF;
    font-size: 16px;
    line-height: 160%;
  }

  .article-title {
    font-size: 24px;
    line-height: 150%;
  }
}

@media (max-width: 768px) {
  [style*="#FCFAF6"],
  [style*="#fcfaf6"] {
    background: #FFFFFF !important;
  }
}

.article-content p {
  margin: 0 0 15px;
  line-height: inherit;
}

.article-content h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #222222;
  font-family: "Merriweather", Georgia, serif;
}

.article-content h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #222222;
  font-family: "Merriweather", Georgia, serif;
}

/* Normalize Tailwind text sizes to be smaller overall */
.text-3xl {
  font-size: 1.5rem;
}

.text-2xl {
  font-size: 1.25rem;
}

.text-xl {
  font-size: 1.125rem;
}

.text-lg {
  font-size: 1rem;
}

.text-base {
  font-size: 0.9375rem;
}

.text-sm {
  font-size: 0.8125rem;
}

/* Fallback styles if Tailwind CDN fails */
.bg-slate-900 {
  background-color: #222222;
  color: #ffffff;
}

.bg-sky-600 {
  background-color: #0ea5e9;
  color: #ffffff;
}

.text-white {
  color: #ffffff;
}

.border {
  border: 1px solid #e2e8f0;
}

.border-slate-200 {
  border-color: #e2e8f0;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-logo {
  width: 300px;
  height: 300px;
  background: url("../images/logo/logo-xuhuong24.png") no-repeat center / contain;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

body.loading-active {
  overflow: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.no-scroll {
  overflow: hidden;
}







.article-signature {
  text-align: right;
  font-weight: 600;
  margin-top: 16px;
}

.article-signature .sig-author {
  font-weight: 400;
}











.mobile-search-only {
  display: block;
  width: 100%;
}

.mobile-search-only input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.mobile-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 12px 10px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.mobile-menu-list a {
  position: relative;
  color: #222222;
  font-weight: 600;
  padding: 8px 12px 8px 28px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #eef2f7;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mobile-menu-list a::before {
  content: "\2022";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b10c0c;
  font-size: 14px;
  line-height: 1;
}

.mobile-menu-list a:hover {
  color: #b10c0c;
  border-color: #f1c5c5;
  box-shadow: 0 4px 10px rgba(177, 12, 12, 0.08);
  transform: translateY(-1px);
}

#category-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer .category-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  white-space: normal;
}

.auth-links-mobile-menu{
  display: flex;
  justify-content: center;
}



.mobile-menu-list::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-list::-webkit-scrollbar-thumb {
  background: rgba(34,34,34,0.2);
  border-radius: 999px;
}









.mobile-drawer-inner a,
.mobile-drawer-inner button {
  border-radius: 999px;
}

.mobile-drawer-inner .text-sm a,
.mobile-drawer-inner .text-sm button {
  border: 1px solid #e2e8f0;
  color: #222222;
}

.mobile-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  overflow-x: auto;
  white-space: nowrap;
}

.mobile-tabs a {
  flex: 0 0 auto;
}

.logo-wrap {
  position: relative;
  z-index: 1;
}

.logo-img {
  height: 2rem;
}

@media (max-width: 768px) {
  .logo-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-img {
    height: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header.compact .category-nav {
    display: flex;
    padding: 0;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }
}

.search-input {
  padding-left: 1rem;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

.search.search-vne {
  position: relative;
  align-items: center;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
}

.search.search-vne input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding-right: 36px;
  min-width: 220px;
}

.btn-search-vne {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-search-vne svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .site-header.compact .header-top {
    opacity: 1;
    max-height: 56px;
    overflow: visible;
    pointer-events: auto;
  }

  .site-header.compact .logo-wrap,
  .site-header.compact .search-form,
  .site-header.compact .auth-links {
    display: none;
  }

  #mobile-search {
    display: none;
    padding: 0 1rem 0.75rem;
  }

  #mobile-search.show {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .site-header.compact .category-nav a.category-tab {
    display: none;
  }

  .site-header.compact .category-nav {
    padding: 5px;
  }
}

@media (max-width: 768px) {
  .site-header.compact #category-menu {
    display: none;
  }
}



@media (max-width: 768px) {
  .mobile-menu-btn {
    position: static;
  }
}

.mobile-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.mobile-drawer-inner .text-sm a,
.mobile-drawer-inner .text-sm button {
  padding: 8px 14px;
}

.category-nav a {
  display: inline-block;
}

#category-pagination a {
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

#category-pagination a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  background: #0f172a;
  color: #ffffff;
  border-color: #222222;
}

.article-title {
  font-size: 32px;
  line-height: 150%;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222222;
}

.article-content {
  background: #FCFAF6;
  border-radius: 20px;
  color: #222;
  font-size: 18px;
  line-height: 160%;
  font-weight: 400;
  margin-bottom: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  .article-content {
    background: #FFFFFF;
    font-size: 16px;
    line-height: 160%;
  }

  .article-title {
    font-size: 24px;
    line-height: 150%;
  }
}

@media (max-width: 768px) {
  [style*="#FCFAF6"],
  [style*="#fcfaf6"] {
    background: #FFFFFF !important;
  }
}

.article-content p {
  margin: 0 0 15px;
  line-height: inherit;
}

.article-content h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #222222;
  font-family: "Merriweather", Georgia, serif;
}

.article-content h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #222222;
  font-family: "Merriweather", Georgia, serif;
}

/* Normalize Tailwind text sizes to be smaller overall */
.text-3xl {
  font-size: 1.5rem;
}

.text-2xl {
  font-size: 1.25rem;
}

.text-xl {
  font-size: 1.125rem;
}

.text-lg {
  font-size: 1rem;
}

.text-base {
  font-size: 0.9375rem;
}

.text-sm {
  font-size: 0.8125rem;
}

/* Fallback styles if Tailwind CDN fails */
.bg-slate-900 {
  background-color: #222222;
  color: #ffffff;
}

.bg-sky-600 {
  background-color: #0ea5e9;
  color: #ffffff;
}

.text-white {
  color: #ffffff;
}

.border {
  border: 1px solid #e2e8f0;
}

.border-slate-200 {
  border-color: #e2e8f0;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-logo {
  width: 300px;
  height: 300px;
  background: url("../images/logo/logo-xuhuong24.png") no-repeat center / contain;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

body.loading-active {
  overflow: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.no-scroll {
  overflow: hidden;
}







.article-signature {
  text-align: right;
  font-weight: 600;
  margin-top: 16px;
}

.article-signature .sig-author {
  font-weight: 400;
}











.mobile-search-only {
  display: block;
  width: 100%;
}

.mobile-search-only input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.mobile-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 12px 10px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.mobile-menu-list a {
  position: relative;
  color: #222222;
  font-weight: 600;
  padding: 8px 12px 8px 28px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #eef2f7;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mobile-menu-list a::before {
  content: "\2022";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b10c0c;
  font-size: 14px;
  line-height: 1;
}

.mobile-menu-list a:hover {
  color: #b10c0c;
  border-color: #f1c5c5;
  box-shadow: 0 4px 10px rgba(177, 12, 12, 0.08);
  transform: translateY(-1px);
}

#category-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer .category-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  white-space: normal;
}

.auth-links-mobile-menu{
  display: flex;
  justify-content: center;
}



.mobile-menu-list::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu-list::-webkit-scrollbar-thumb {
  background: rgba(34,34,34,0.2);
  border-radius: 999px;
}

















.mobile-menu-close {
  margin-left: auto;
}







/* Search page hero */
.search-hero {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 28px;
  background:
    radial-gradient(1200px 200px at 10% -20%, rgba(177, 12, 12, 0.12), transparent 60%),
    radial-gradient(900px 200px at 90% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-hero-inner {
  display: grid;
  gap: 14px;
}

.search-hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.search-hero-title {
  font-family: "Playfair Display", "Merriweather", serif;
  font-size: 32px;
  line-height: 1.2;
  color: #0f172a;
}

.search-hero-subtitle {
  color: #475569;
  max-width: 640px;
}

.search-hero-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}

.search-hero-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-size: 16px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.search-hero-form input:focus {
  outline: none;
  border-color: rgba(177, 12, 12, 0.6);
  box-shadow: 0 0 0 4px rgba(177, 12, 12, 0.12);
}

.search-hero-form button {
  justify-self: start;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: #b10c0c;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(177, 12, 12, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-hero-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(177, 12, 12, 0.25);
}

@media (min-width: 768px) {
  .search-hero {
    padding: 36px 40px;
  }
  .search-hero-title {
    font-size: 38px;
  }
  .search-hero-form {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .search-hero-form button {
    justify-self: end;
  }
}