body {
  font-family: "Be Vietnam Pro", sans-serif;
  line-height: 1.6;
}

.font-headline,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Work Sans", sans-serif;
}

.font-label {
  font-family: "Inter", sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.site-wrap {
  min-height: 100vh;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  display: inline-block;
}

.main-navigation .menu,
.main-navigation .menu-menu-1-container,
.main-navigation .menu-primary-container,
.main-navigation .menu-footer-container,
.main-navigation .page_item_has_children,
.main-navigation .menu-item {
  list-style: none;
}

/* Fix #2: Nav items sử dụng font Inter (label font) như demo */
.main-navigation .menu a,
.main-navigation .page_item a,
.mobile-menu-panel .menu a {
  font-family: "Inter", sans-serif;
  color: #52525b;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-navigation .menu a:hover,
.main-navigation .page_item a:hover {
  color: #15803d;
}

/* Fix #9: Active nav item với border-bottom underline như demo,
   chỉ scope vào .main-navigation (desktop nav), không ảnh hưởng mobile panel */
.main-navigation .menu .current-menu-item > a,
.main-navigation .menu .current-menu-ancestor > a,
.main-navigation .page_item.current_page_item > a,
.main-navigation .page_item.current_page_parent > a {
  color: #14532d;
  font-weight: 700;
  border-bottom: 2px solid #14532d;
  padding-bottom: 0.25rem;
}

/* Generic active state (mobile menu, fallback) */
.current-menu-item > a,
.current-menu-ancestor > a {
  color: #14532d;
  font-weight: 700;
}

.current_page_item > a,
.current_page_parent > a {
  color: #14532d;
  font-weight: 700;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2rem 1.25rem;
}

.entry-content p {
  margin: 0 0 1rem;
}

.post-thumbnail {
  overflow: hidden;
  border-radius: 0.75rem;
}

.posts-pagination {
  margin-top: 2.5rem;
}

.posts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.4rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

.posts-pagination .page-numbers.current {
  background: #0d631b;
  color: #ffffff;
}

.mobile-menu-panel {
  display: none;
}

.mobile-menu-panel.is-open {
  display: block;
}

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

/* Fix #3: Dùng ghost border (outline-variant 20%) thay vì solid border */
.comment-list .comment-body {
  background: #fff;
  border: 1px solid rgba(191, 202, 186, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
}

.comment-list .reply a {
  color: #0d631b;
  font-weight: 700;
}

/* Fix #3: Ghost border cho comment form inputs */
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(191, 202, 186, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
}

.nh-legal-main .entry-content p:last-child {
  margin-bottom: 0;
}

.nh-about-main .entry-content {
  color: #243640;
}

.nh-contact-main input,
.nh-contact-main textarea {
  color: #0f172a;
}

/* TOC sidebar */
#nh-toc-list a {
  display: block;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}

#nh-toc-list a.toc-active {
  color: #0d631b;
  font-weight: 700;
}

@media (min-width: 1360px) and (max-width: 1500px) {
  .max-w-7xl {
    max-width: 1280px !important;
  }

  .nh-about-hero {
    min-height: 760px !important;
  }

  .nh-about-main .text-7xl {
    font-size: 4.35rem !important;
    line-height: 1.02 !important;
  }

  .nh-about-main .text-5xl,
  .nh-contact-main .text-5xl,
  .nh-legal-main .text-5xl {
    font-size: 3.35rem !important;
    line-height: 1.08 !important;
  }

  .nh-about-main .py-24,
  .nh-contact-main .py-24,
  .nh-legal-main .py-24 {
    padding-top: 5.25rem !important;
    padding-bottom: 5.25rem !important;
  }

  .nh-about-main .p-12,
  .nh-contact-main .p-12,
  .nh-legal-main .p-12 {
    padding: 2.5rem !important;
  }

  .nh-about-main .gap-12,
  .nh-contact-main .gap-12,
  .nh-legal-main .gap-12 {
    gap: 2.25rem !important;
  }

  .nh-legal-aside {
    width: 17rem !important;
  }

  .nh-contact-grid .lg\:col-span-5 {
    grid-column: span 5 / span 5 !important;
  }

  .nh-contact-grid .lg\:col-span-7 {
    grid-column: span 7 / span 7 !important;
  }

  .posts-pagination {
    margin-top: 2.1rem;
  }
}

@media (max-width: 767px) {
  .nh-about-hero {
    min-height: 520px;
  }

  .nh-about-main .text-5xl,
  .nh-about-main .text-6xl,
  .nh-about-main .text-7xl,
  .nh-contact-main .text-5xl,
  .nh-contact-main .text-6xl,
  .nh-legal-main .text-5xl,
  .nh-legal-main .text-6xl {
    font-size: 2.1rem !important;
    line-height: 1.18 !important;
  }

  .nh-about-main .px-6,
  .nh-contact-main .px-6,
  .nh-legal-main .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .nh-about-main .p-12,
  .nh-contact-main .p-12,
  .nh-legal-main .p-12,
  .nh-legal-main .p-10 {
    padding: 1.25rem !important;
  }

  .nh-contact-grid {
    gap: 1rem;
  }

  .nh-legal-main {
    padding-top: 1.5rem !important;
    padding-bottom: 5.5rem !important;
  }

  .nh-legal-content {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
  }

  .nh-legal-main .grid-cols-12 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  .nh-legal-main .col-span-12,
  .nh-legal-main .lg\\:col-span-8,
  .nh-legal-main .lg\\:col-span-4 {
    grid-column: span 1 / span 1 !important;
  }

  .desktop-only {
    display: none !important;
  }

  .nh-contact-main {
    padding-bottom: 1.5rem !important;
  }

  /* Fix #10: Padding bottom để không bị mobile nav che khuất */
  body {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 420px) {
  body {
    line-height: 1.52;
  }

  .nh-about-main .text-5xl,
  .nh-about-main .text-6xl,
  .nh-about-main .text-7xl,
  .nh-contact-main .text-5xl,
  .nh-contact-main .text-6xl,
  .nh-legal-main .text-5xl,
  .nh-legal-main .text-6xl {
    font-size: 1.92rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
  }

  .nh-about-main .text-4xl,
  .nh-contact-main .text-4xl,
  .nh-legal-main .text-4xl,
  .nh-legal-main .text-3xl {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }

  .nh-about-main .min-h-\[819px\] {
    min-height: 470px !important;
  }

  .nh-contact-main .py-12,
  .nh-legal-main .pb-20 {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .nh-about-main .rounded-3xl,
  .nh-contact-main .rounded-3xl,
  .nh-legal-main .rounded-3xl {
    border-radius: 1rem !important;
  }

  .nh-about-main .p-8,
  .nh-contact-main .p-8,
  .nh-legal-main .p-8 {
    padding: 1rem !important;
  }

  .nh-about-main .mb-16,
  .nh-contact-main .mb-16,
  .nh-legal-main .mb-16 {
    margin-bottom: 1.25rem !important;
  }

  .nh-about-main .gap-8,
  .nh-contact-main .gap-8,
  .nh-legal-main .gap-8 {
    gap: 0.9rem !important;
  }

  .nh-contact-main .h-80,
  .nh-legal-main .h-64 {
    height: 210px !important;
  }

  .nh-legal-main .text-2xl {
    font-size: 1.28rem !important;
    line-height: 1.24 !important;
  }

  .nh-legal-main .text-xl {
    font-size: 1.1rem !important;
  }

  .nh-legal-main .text-lg {
    font-size: 1rem !important;
  }

  .posts-pagination .page-numbers {
    min-width: 2.2rem;
    height: 2.2rem;
    margin-right: 0.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .nh-legal-main {
    gap: 1rem !important;
  }

  .nh-legal-main .sticky {
    position: static !important;
    top: auto !important;
  }

  .nh-contact-main .lg\:col-span-5,
  .nh-contact-main .lg\:col-span-7,
  .nh-legal-main .w-72 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .nh-about-main .auto-rows-\[240px\] {
    grid-auto-rows: minmax(180px, auto) !important;
  }
}

/* ── Drop cap trên đoạn đầu bài viết (demo-accurate) ── */
.single-post .entry-content > p:first-of-type::first-letter,
.entry-content.has-drop-cap > p:first-of-type::first-letter {
  font-size: 4.5rem;
  font-weight: 800;
  color: #0d631b;
  float: left;
  line-height: 0.8;
  margin-right: 0.45rem;
  margin-top: 0.12rem;
  font-family: "Work Sans", sans-serif;
}

/* ── Callout / highlight box (border-l-4 accent) ── */
.entry-content .wp-block-group.is-style-callout,
.entry-content .callout-box {
  padding: 1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
  background: #e6f6ff;
}

/* ── Numbered section badge (01 02 03) ── */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: #a3f69c;
  color: #002204;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Work Sans", sans-serif;
  flex-shrink: 0;
}

/* ── Knowledge Blade — glassmorphic sidebar widget ── */
.nh-glass-widget {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(7, 30, 39, 0.08);
  border-radius: 1rem;
}

/* ── Market price widget (sidebar) ── */
.nh-market-widget {
  background: rgba(254, 215, 202, 0.3);
  border-radius: 0.75rem;
}

/* ── Author bio card ── */
.nh-author-bio {
  background: #e6f6ff;
  border-radius: 1rem;
}

/* ── Trending posts large numbers ── */
.nh-trending-num {
  font-size: 1.875rem;
  font-weight: 900;
  color: rgba(191, 202, 186, 0.4);
  font-family: "Work Sans", sans-serif;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
a:hover .nh-trending-num {
  color: rgba(13, 99, 27, 0.3);
}

/* ── Floating Knowledge Blade ── */
#nh-scroll-top {
  transition: opacity 0.25s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

@media (max-width: 640px) {
  .nh-about-team .grid,
  .nh-contact-main .grid,
  .nh-legal-main .grid {
    gap: 0.9rem !important;
  }

  .nh-about-main .aspect-\[3\/4\] {
    aspect-ratio: 4 / 5 !important;
  }

  .nh-contact-main .rounded-\[2rem\] {
    border-radius: 1.2rem !important;
  }

  .nh-contact-main .min-h-\[140px\] {
    min-height: 110px !important;
  }
}
