/* ==========================================================================
   NHÀ HẠT ÉTOFFE - BLOG & JOURNAL STYLES (PURE CSS - NO BUILDER BLOAT)
   ========================================================================== */

.nhe-blog-hero {
  background: linear-gradient(180deg, #FAF8F5 0%, #F4EDE4 100%);
  padding: 60px 24px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(74, 59, 50, 0.08);
}

.nhe-blog-hero .nhe-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #C19A6B;
  display: block;
  margin-bottom: 8px;
}

.nhe-blog-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  color: #4A3B32;
  margin: 0 0 12px;
  font-weight: 700;
}

.nhe-blog-hero p {
  font-size: 15px;
  color: #6E6259;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.nhe-blog-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.nhe-cat-pill {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #4A3B32;
  background: #FFFFFF;
  border: 1px solid rgba(74, 59, 50, 0.15);
  transition: all 0.2s ease;
}

.nhe-cat-pill:hover,
.nhe-cat-pill.active {
  background: #4A3B32;
  color: #FAF8F5;
  border-color: #4A3B32;
}

/* BLOG GRID CONTAINER */
.nhe-blog-container {
  max-width: 1240px;
  margin: 50px auto 80px;
  padding: 0 24px;
}

.nhe-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.nhe-post-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(74, 59, 50, 0.05);
  border: 1px solid rgba(74, 59, 50, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nhe-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(74, 59, 50, 0.12);
}

.nhe-post-thumb-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F3ECE2;
}

.nhe-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nhe-post-card:hover .nhe-post-img {
  transform: scale(1.05);
}

.nhe-post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nhe-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9A8E85;
  margin-bottom: 10px;
}

.nhe-post-cat {
  color: #C19A6B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nhe-post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.35;
  color: #4A3B32;
  margin: 0 0 12px;
}

.nhe-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.nhe-post-title a:hover {
  color: #C19A6B;
}

.nhe-post-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #6E6259;
  margin: 0 0 18px;
  flex-grow: 1;
}

.nhe-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(74, 59, 50, 0.08);
  padding-top: 14px;
  margin-top: auto;
}

.nhe-readmore-link {
  font-size: 13px;
  font-weight: 700;
  color: #C19A6B;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.nhe-readmore-link:hover {
  gap: 10px;
  color: #9A7A4A;
}

/* SINGLE POST EDITORIAL FRAMED CARD STYLING */
.nhe-single-article {
  max-width: 1240px;
  width: 95%;
  margin: 48px auto 80px;
  padding: 56px 68px;
  background: #FFFFFF;
  border: 1px solid rgba(74, 59, 50, 0.09);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(74, 59, 50, 0.06), 0 2px 8px rgba(74, 59, 50, 0.02);
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.nhe-single-header {
  margin-bottom: 32px;
  text-align: center;
}

.nhe-single-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  color: #4A3B32;
  margin: 16px 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nhe-single-content {
  font-size: 17px;
  line-height: 1.85;
  color: #382F28;
  max-width: 1060px;
  margin: 0 auto;
}

.nhe-single-content p {
  margin-bottom: 24px;
}

.nhe-single-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 28px);
  color: #4A3B32;
  margin-top: 48px;
  margin-bottom: 18px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(74, 59, 50, 0.08);
}

.nhe-single-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  color: #5D4A3F;
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.nhe-single-content blockquote {
  border-left: 3.5px solid #C19A6B;
  margin: 32px 0;
  font-style: italic;
  color: #5D4A3F;
  background: #FAF8F5;
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  line-height: 1.7;
}

.nhe-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 24px auto;
  display: block;
  box-shadow: 0 8px 24px rgba(74, 59, 50, 0.06);
}

.nhe-single-content figure {
  margin: 28px 0;
  text-align: center;
}

.nhe-single-content figcaption {
  font-size: 13px;
  color: #7A6D62;
  font-style: italic;
  margin-top: 8px;
}

.nhe-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(74, 59, 50, 0.04);
}

.nhe-single-content table th {
  background: #4A3B32;
  color: #FAF8F5;
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  font-size: 14px;
}

.nhe-single-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(74, 59, 50, 0.08);
  font-size: 14px;
  background: #FFFFFF;
}

.nhe-single-content table tr:nth-child(even) td {
  background: #FAF8F5;
}

/* ==========================================================================
   EDITORIAL ESSAY DESIGN SYSTEM & ZERO-AI TYPOGRAPHY (EDITORIAL STANDARD)
   ========================================================================== */

/* Fix Drop Cap: Paragraph itself remains normal body text; only the first letter is drop-capped */
.nhe-single-content p.drop-cap,
.editorial-article p.drop-cap,
p.drop-cap {
  font-size: 17.5px !important;
  line-height: 1.85 !important;
  color: #382F28 !important;
  font-family: inherit !important;
  float: none !important;
  margin-bottom: 24px !important;
}

.nhe-single-content p.drop-cap::first-letter,
.editorial-article p.drop-cap::first-letter,
p.drop-cap::first-letter,
.nhe-single-content span.drop-cap,
.editorial-article span.drop-cap,
span.drop-cap {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  line-height: 44px;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 4px;
  color: #C19A6B;
  font-weight: 700;
}

/* Sapo Editorial Hook */
.nhe-single-content .editorial-hook,
.editorial-hook {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.8;
  color: #5D4A3F;
  border-left: 3.5px solid #C19A6B;
  background: #FAF8F5;
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 32px;
}

/* Unnested Editorial Article Container */
.nhe-single-content .editorial-article {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Prevent Duplicate H1 inside content if single.php already renders H1 */
.nhe-single-content .editorial-header h1.editorial-title,
.nhe-single-content h1.editorial-title {
  display: none;
}

/* Editorial Figure & Images */
.editorial-figure {
  margin: 36px 0;
  text-align: center;
}

.editorial-img-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(74, 59, 50, 0.08);
}

.editorial-caption {
  font-size: 13.5px;
  color: #7A6D62;
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

/* Editorial Table */
.editorial-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid rgba(74, 59, 50, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(74, 59, 50, 0.04);
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
  line-height: 1.6;
}

.editorial-table th {
  background: #4A3B32;
  color: #FAF8F5;
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(74, 59, 50, 0.15);
}

.editorial-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(74, 59, 50, 0.08);
  color: #382F28;
  vertical-align: top;
  background: #FFFFFF;
}

.editorial-table tr:nth-child(even) td {
  background: #FAF8F5;
}

/* Editorial Note Box */
.editorial-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #FAF8F5;
  border: 1px solid rgba(193, 154, 107, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}

.editorial-note-icon {
  font-size: 22px;
  line-height: 1;
  color: #C19A6B;
}

.editorial-note-text {
  font-size: 15px;
  line-height: 1.7;
  color: #5D4A3F;
}

/* Visual Interactive Widgets (HTML/CSS/JS Pure Interactive Simulator) */
.visual-widget-wrap {
  margin: 40px 0;
  background: #FCFBF9;
  border: 1px solid rgba(74, 59, 50, 0.12);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 6px 24px rgba(74, 59, 50, 0.05);
  text-align: center;
}

.visual-widget-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #C19A6B;
  background: rgba(193, 154, 107, 0.12);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.visual-widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: #4A3B32;
  margin: 0 0 8px;
}

.visual-widget-subtitle {
  font-size: 14px;
  color: #7A6D62;
  margin: 0 0 24px;
}

.visual-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.visual-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(74, 59, 50, 0.18);
  background: #FFFFFF;
  color: #4A3B32;
  cursor: pointer;
  transition: all 0.25s ease;
}

.visual-btn:hover {
  border-color: #C19A6B;
  color: #C19A6B;
}

.visual-btn.active {
  background: #4A3B32 !important;
  color: #FFFFFF !important;
  border-color: #4A3B32 !important;
  box-shadow: 0 4px 12px rgba(74, 59, 50, 0.25);
}

.visual-stage {
  background: #FFFFFF;
  border: 1px solid rgba(74, 59, 50, 0.08);
  border-radius: 12px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

.visual-result-text {
  font-size: 15px;
  color: #382F28;
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.65;
}

/* Call To Action Box (Editorial CTA Sign-off) */
.editorial-cta {
  background: #FAF8F5;
  border: 1px solid rgba(193, 154, 107, 0.35);
  border-radius: 16px;
  padding: 38px 28px;
  margin: 54px 0 36px;
  text-align: center;
}

.editorial-cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #4A3B32;
  margin: 0 0 10px;
}

.editorial-cta-desc {
  font-size: 15px;
  color: #6E6259;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.editorial-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.editorial-btn {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  padding: 13px 26px;
  border-radius: 999px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.editorial-btn-dark {
  background: #4A3B32 !important;
  color: #FFFFFF !important;
  border: 1px solid #4A3B32;
  box-shadow: 0 6px 20px rgba(74, 59, 50, 0.2);
}

.editorial-btn-dark:hover {
  background: #2F241C !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.editorial-btn-gold {
  background: #C19A6B !important;
  color: #FFFFFF !important;
  border: 1px solid #C19A6B;
  box-shadow: 0 6px 20px rgba(193, 154, 107, 0.3);
}

.editorial-btn-gold:hover {
  background: #9A7A4A !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Nguồn tham khảo & Modal Popup */
.editorial-ref-wrap {
  margin: 40px 0 0;
  display: flex;
  justify-content: flex-end;
}

.editorial-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #4A3B32;
  border: 1px solid rgba(74, 59, 50, 0.18);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(74, 59, 50, 0.04);
}

.editorial-ref-btn:hover {
  border-color: #C19A6B;
  color: #C19A6B;
  background: #FAF8F5;
}

.editorial-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 22, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.editorial-modal-backdrop.active {
  display: flex !important;
}

.editorial-modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.editorial-modal-header {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(74, 59, 50, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.editorial-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #4A3B32;
  margin: 0 0 4px;
}

.editorial-modal-sub {
  font-size: 13px;
  color: #7A6D62;
  margin: 0;
}

.editorial-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #7A6D62;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.editorial-modal-close:hover {
  color: #4A3B32;
}

.editorial-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: #382F28;
}

.editorial-modal-group {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(74, 59, 50, 0.08);
}

.editorial-modal-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.editorial-modal-group h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #C19A6B;
  margin: 0 0 8px;
}

.editorial-modal-group p {
  margin: 0 0 6px;
  font-size: 14px;
  text-align: left;
}

.editorial-modal-group a {
  color: #4A3B32;
  text-decoration: underline;
  word-break: break-all;
}

.nhe-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  margin: 44px 0 32px;
  border-top: 1px solid rgba(74, 59, 50, 0.1);
  border-bottom: 1px solid rgba(74, 59, 50, 0.1);
}

.nhe-share-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nhe-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.nhe-share-btn.zalo { background: #0068FF; }
.nhe-share-btn.fb { background: #1877F2; }

/* Responsive adjustments across Tablet & Mobile */
@media (max-width: 1024px) {
  .nhe-single-article {
    max-width: 94%;
    margin: 36px auto 60px;
    padding: 44px 40px;
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  .nhe-blog-hero h1 { font-size: 28px; }
  .nhe-blog-grid { grid-template-columns: 1fr; }
  .nhe-single-article {
    max-width: 95%;
    margin: 20px auto 40px;
    padding: 28px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(74, 59, 50, 0.05);
  }
  .nhe-single-title {
    font-size: 24px;
    line-height: 1.3;
  }
  .nhe-single-content {
    font-size: 15.5px;
    line-height: 1.75;
  }
  .nhe-single-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
