/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--pd);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: 'Playfair Display', serif; font-size: 1.18rem;
  color: var(--gold); letter-spacing: 0.8px; font-weight: 700; line-height: 1.1;
}
.logo-text span {
  color: rgba(255,255,255,0.45); font-size: 0.65em;
  font-weight: 400; display: block; letter-spacing: 2.5px;
  font-family: 'Be Vietnam Pro', sans-serif; margin-top: 2px;
  text-transform: uppercase;
}
.custom-logo { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.custom-logo-wrap { max-width: 160px; }
.main-nav .nav-list { list-style: none; display: flex; gap: 4px; }
.main-nav .nav-link {
  color: rgba(255,255,255,0.8); font-size: 0.87rem; font-weight: 500;
  padding: 8px 14px; border-radius: 4px; letter-spacing: 0.3px;
  transition: var(--tr); display: block;
}
.main-nav .nav-link:hover,
.main-nav .current-menu-item .nav-link { color: var(--gold); background: rgba(212,175,55,0.1); }
.header-right { display: flex; align-items: center; gap: 8px; }
.search-toggle-btn {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; padding: 8px; border-radius: 4px;
  transition: var(--tr); display: flex;
}
.search-toggle-btn:hover { color: var(--gold); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); transition: var(--tr); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  background: #1A0B2E; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-nav.open { max-height: 320px; }
.mobile-nav-list { list-style: none; padding: 6px 0 14px; }
.mobile-nav-list a {
  display: block; padding: 13px 24px; color: rgba(255,255,255,0.8);
  font-size: 0.92rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--tr);
}
.mobile-nav-list a:hover { color: var(--gold); padding-left: 32px; }

/* Search Overlay */
.search-overlay {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--pd); border-top: 1px solid rgba(212,175,55,0.15);
  padding: 20px 0; z-index: 999;
  animation: slideDown 0.2s ease;
}
.search-overlay[hidden] { display: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.search-overlay-inner { position: relative; }
.search-form { display: flex; gap: 10px; align-items: center; }
.search-field {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(212,175,55,0.2);
  color: var(--white); padding: 11px 16px; border-radius: 6px;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 0.95rem;
}
.search-field::placeholder { color: rgba(255,255,255,0.4); }
.search-field:focus { outline: none; border-color: var(--gold); }
.search-close {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 1.2rem; cursor: pointer; padding: 6px;
  transition: var(--tr);
}
.search-close:hover { color: var(--gold); }
.search-live-results {
  margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px;
}
.search-result-item {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between;
}
.search-result-item a { color: rgba(255,255,255,0.85); font-size: 0.88rem; transition: var(--tr); }
.search-result-item a:hover { color: var(--gold); }
.search-result-date { color: rgba(255,255,255,0.35); font-size: 0.78rem; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(160deg, #100620 0%, #2E1A47 45%, #3D2460 75%, #1A0B30 100%);
  position: relative; overflow: hidden; padding: 96px 0 80px; text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(212,175,55,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 20% 100%, rgba(123,94,167,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(75,46,131,0.25) 0%, transparent 55%);
}
.hero-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star {
  position: absolute; background: white; border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%,100% { opacity: var(--op1,0.4); transform: scale(1); }
  50% { opacity: var(--op2,0.9); transform: scale(1.3); }
}
.hero-content { position: relative; z-index: 2; }
.hero-icon-wrap { margin: 0 auto 36px; display: inline-block; }
.hero-glow-ring {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto;
  background: radial-gradient(circle at 38% 38%, rgba(212,175,55,0.12), rgba(75,46,131,0.4) 60%, transparent);
  border: 1px solid rgba(212,175,55,0.2);
  display: flex; align-items: center; justify-content: center;
  animation: halo 4s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(212,175,55,0.1), 0 0 120px rgba(75,46,131,0.12);
  position: relative;
}
.hero-glow-ring::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.08);
  animation: halo 4s ease-in-out infinite reverse;
}
@keyframes halo {
  0%,100% { box-shadow: 0 0 60px rgba(212,175,55,0.1), 0 0 120px rgba(75,46,131,0.12); }
  50% { box-shadow: 0 0 90px rgba(212,175,55,0.22), 0 0 160px rgba(75,46,131,0.22); }
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  color: var(--white); line-height: 1.15; margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(212,175,55,0.18), 0 2px 20px rgba(0,0,0,0.25);
  min-height: 1.2em;
}
.hero h1 em, .hero h1 span { font-style: normal; }
.hero h1 .highlight { color: var(--gold-lt); }
.typing-cursor {
  display: inline-block; color: var(--gold); font-weight: 300;
  animation: blink-cursor 0.75s step-end infinite;
}
@keyframes blink-cursor {
  0%,100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-sub {
  font-size: clamp(1.1rem, 3vw, 1.8rem); color: rgba(255,255,255,0.58);
  font-weight: 300; letter-spacing: 0.8px; margin-bottom: 52px;
}

/* Reduce spacing on compact sections */
.sec-knowledge-compact { padding-top: 40px; }
.sec-knowledge-compact .sec-head { margin-bottom: 28px; }
.sec-community-compact { padding-top: 40px; }
.sec-community-compact .sec-head { margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { min-width: 158px; }

/* =============================================
   KNOWLEDGE CARDS
   ============================================= */
.knowledge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.know-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(75,46,131,0.07);
}
.kc-top {
  background: linear-gradient(145deg, var(--pm) 0%, var(--pd) 100%);
  padding: 22px 20px 18px; text-align: center; position: relative; overflow: hidden;
}
.kc-top::after {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 70px; height: 70px; background: rgba(212,175,55,0.07); border-radius: 50%;
}
.kc-top-link { text-decoration: none; display: block; }
.kc-icon { font-size: 2.4rem; margin-bottom: 8px; display: block; position: relative; z-index: 1; }
.kc-cat {
  font-family: 'Playfair Display', serif; font-size: 0.92rem; color: var(--gold);
  font-weight: 600; position: relative; z-index: 1; display: block;
}
.kc-body { padding: 14px 16px 18px; }
.kc-posts { list-style: none; }
.kc-posts li {
  padding: 9px 0; border-bottom: 1px solid rgba(75,46,131,0.07);
}
.kc-posts li:last-child { border-bottom: none; }
.kc-post-link { font-size: 0.82rem; color: var(--td); font-weight: 500; line-height: 1.45; display: block; }
.kc-post-link:hover { color: var(--pm); }
.kc-views-inline { font-size: 0.72rem; color: var(--tl); font-weight: 400; white-space: nowrap; }
.kc-empty { color: var(--tl); font-size: 0.82rem; padding: 12px 0; }
.kc-featured { background: rgba(212,175,55,0.06); border-radius: 4px; padding-left: 6px !important; padding-right: 6px !important; }
.kc-star { color: var(--gold); font-size: 0.72rem; flex-shrink: 0; margin-top: 2px; }

/* =============================================
   EXPERIENCE
   ============================================= */
.experience-sec { background: linear-gradient(150deg, #F0EBF8 0%, #EAE3F5 50%, var(--cream) 100%); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.exp-card {
  background: var(--white); border-radius: 16px; padding: 44px 32px 36px;
  text-align: center; box-shadow: var(--shadow);
  border: 1px solid rgba(75,46,131,0.09);
}
.exp-card.featured {
  background: linear-gradient(145deg, #3D2460, var(--pd));
  border-color: rgba(212,175,55,0.18);
  box-shadow: 0 8px 40px rgba(46,26,71,0.4);
}
.exp-icon { font-size: 3.2rem; margin-bottom: 18px; display: block; }
.exp-title { font-family: 'Playfair Display', serif; font-size: 1.08rem; color: var(--pd); margin-bottom: 12px; }
.exp-card.featured .exp-title { color: var(--gold); }
.exp-desc { font-size: 0.87rem; color: var(--tm); margin-bottom: 28px; font-weight: 300; line-height: 1.65; }
.exp-card.featured .exp-desc { color: rgba(255,255,255,0.68); }

/* =============================================
   PYRAMID
   ============================================= */
.pyramid-sec {
  background: linear-gradient(165deg, #100620 0%, #2E1A47 45%, #200A38 100%);
  padding: 48px 0 48px; position: relative; overflow: hidden;
}
.pyramid-sec .sec-head { margin-bottom: 28px; }
.pyramid-sec::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212,175,55,0.05) 0%, transparent 70%);
}
.pyramid-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 60px; flex-wrap: wrap;
}
.pyramid-svg-wrap { flex-shrink: 0; width: 100%; max-width: 480px; filter: drop-shadow(0 0 30px rgba(212,175,55,0.12)); }
.pyramid-svg { width: 100%; height: auto; }
.pyramid-tier { transition: opacity 0.2s; cursor: pointer; }
.pyramid-tier:hover { opacity: 0.85; }
.pyramid-cta { max-width: 300px; text-align: center; }
.pyramid-cta h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--white); margin-bottom: 12px; }
.pyramid-cta p { color: rgba(255,255,255,0.55); font-weight: 300; margin-bottom: 28px; font-size: 0.88rem; line-height: 1.72; }

/* =============================================
   POSTS GRID
   ============================================= */
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(75,46,131,0.06);
}
.post-thumb-wrap { position: relative; overflow: hidden; height: 150px; }
.post-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-img { transform: scale(1.05); }
.post-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s ease;
}
.post-thumb-placeholder span { font-size: 2.2rem; opacity: 0.4; }
.post-card:hover .post-thumb-placeholder { transform: scale(1.05); }
.post-cat-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px;
  border-radius: 3px; letter-spacing: 0.5px; text-transform: uppercase;
}
.post-body { padding: 14px 16px 18px; }
.post-title {
  font-family: 'Playfair Display', serif; font-size: 0.83rem; color: var(--td);
  line-height: 1.5; margin-bottom: 10px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--pm); }
.post-meta { font-size: 0.74rem; color: var(--tl); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* =============================================
   COMMUNITY SECTION
   ============================================= */
.community-box {
  background: var(--white); border-radius: 16px; padding: 36px;
  box-shadow: var(--shadow); border: 1px solid rgba(75,46,131,0.08);
  display: grid; grid-template-columns: 68px 1fr 1fr 190px; gap: 28px; align-items: start;
}
.comm-icon-col { text-align: center; padding-top: 6px; }
.comm-big-icon { font-size: 2.6rem; display: block; margin-bottom: 6px; }
.comm-icon-label { font-size: 0.7rem; color: var(--tl); line-height: 1.4; }
.comm-col-title {
  font-family: 'Playfair Display', serif; font-size: 0.8rem; color: var(--pm);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.comm-list { list-style: none; }
.comm-list li { padding: 9px 0; border-bottom: 1px solid rgba(75,46,131,0.05); }
.comm-list li:last-child { border-bottom: none; }
.comm-list a { font-size: 0.82rem; color: var(--td); font-weight: 500; line-height: 1.45; display: block; }
.comm-list a:hover { color: var(--pm); }
.comm-meta { font-size: 0.71rem; color: var(--tl); margin-top: 3px; display: block; }
.comm-action-col { text-align: center; }
.comm-action-title { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--pd); margin-bottom: 10px; }
.comm-action-desc { font-size: 0.83rem; color: var(--tm); font-weight: 300; margin-bottom: 20px; line-height: 1.62; }
.comm-members-count { font-size: 0.78rem; color: var(--tl); margin-top: 10px; }

/* =============================================
   SINGLE POST
   ============================================= */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid rgba(75,46,131,0.07); padding: 12px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--pm); }
.breadcrumb a:hover { color: var(--gold); }
.bc-sep { color: var(--tl); }
.bc-current { color: var(--td); font-weight: 500; }
.single-layout { background: var(--cream); }
.single-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 48px 0 72px; }
.single-article { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-header { padding: 36px 40px 28px; }
.article-cat { margin-bottom: 16px; display: inline-block; }
.article-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--pd); line-height: 1.25; margin-bottom: 16px;
}
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--tl); flex-wrap: wrap; }
.article-meta a { color: var(--pm); font-weight: 500; }
.meta-sep { color: var(--pp); }
.article-thumb { overflow: hidden; }
.article-img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.img-caption { text-align: center; font-size: 0.8rem; color: var(--tl); padding: 8px 16px; font-style: italic; }
.article-content {
  padding: 36px 40px; line-height: 1.85; font-size: 1rem;
  color: var(--td); font-weight: 400;
}
.article-content h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--pd); margin: 2em 0 0.75em; }
.article-content h3 { font-family: 'Playfair Display', serif; font-size: 1.18rem; color: var(--pd); margin: 1.6em 0 0.65em; }
.article-content p { margin-bottom: 1.3em; }
.article-content a { color: var(--pm); border-bottom: 1px solid rgba(75,46,131,0.2); }
.article-content a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.article-content blockquote {
  border-left: 3px solid var(--gold); margin: 1.5em 0;
  padding: 12px 20px; background: rgba(212,175,55,0.05);
  color: var(--tm); font-style: italic;
}
.article-content img { border-radius: 8px; margin: 1.5em auto; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1.3em; }
.article-content li { margin-bottom: 0.5em; }
.article-tags { padding: 0 40px 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags-label { font-size: 0.82rem; color: var(--tl); }
.tag-item {
  font-size: 0.78rem; padding: 4px 10px; border-radius: 4px;
  background: rgba(75,46,131,0.07); color: var(--pm); font-weight: 500;
}
.tag-item:hover { background: var(--pm); color: var(--white); }
.article-share { padding: 20px 40px; border-top: 1px solid rgba(75,46,131,0.07); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-share > span { font-size: 0.82rem; color: var(--tl); }
.share-btn { font-size: 0.8rem; padding: 6px 14px; border-radius: 4px; font-weight: 600; font-family: 'Be Vietnam Pro', sans-serif; }
.share-fb { background: #1877F2; color: white; }
.share-fb:hover { background: #0d63d1; }
.share-tw { background: #1DA1F2; color: white; }
.share-tw:hover { background: #0b83cc; }
.post-nav { background: var(--white); border-radius: var(--radius); margin-top: 24px; padding: 28px 32px; box-shadow: var(--shadow); }
.post-nav-inner { display: flex; justify-content: space-between; gap: 24px; }
.post-nav-prev, .post-nav-next { flex: 1; }
.post-nav-next { text-align: right; }
.nav-label { font-size: 0.75rem; color: var(--tl); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.post-nav-prev a, .post-nav-next a { font-size: 0.88rem; color: var(--pm); font-weight: 500; line-height: 1.4; }
.post-nav-prev a:hover, .post-nav-next a:hover { color: var(--gold); }
.related-posts { margin-top: 24px; }
.related-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--pd); margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.related-thumb-link { display: block; height: 130px; overflow: hidden; }
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.related-card:hover img { transform: scale(1.05); }
.related-post-title { padding: 12px 14px 14px; font-family: 'Playfair Display', serif; font-size: 0.82rem; color: var(--td); line-height: 1.45; }
.related-post-title a:hover { color: var(--pm); }
.comments-wrap { margin-top: 24px; background: var(--white); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.comments-wrap .comment-list { list-style: none; }
.comments-wrap .comment { padding: 16px 0; border-bottom: 1px solid rgba(75,46,131,0.07); }

/* Categories grid (thay bình luận) */
.categories-wrap {
  margin-top: 24px; background: var(--white); border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow);
}
.categories-wrap-title {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--pd);
  margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block;
}
.categories-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 10px; border-radius: 10px; text-align: center;
  background: var(--cream); border: 1px solid rgba(75,46,131,0.08);
  text-decoration: none;
}
.cat-card:hover { background: var(--pm); border-color: var(--pm); }
.cat-card-icon { font-size: 1.8rem; }
.cat-card-name {
  font-family: 'Playfair Display', serif; font-size: 0.85rem;
  font-weight: 600; color: var(--pd);
}
.cat-card:hover .cat-card-name { color: var(--gold); }
.cat-card-count { font-size: 0.72rem; color: var(--tl); }
.cat-card:hover .cat-card-count { color: rgba(255,255,255,0.6); }
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-wrap { padding: 20px 16px; }
}

/* Sidebar */
.single-sidebar, .archive-sidebar, .page-sidebar { position: sticky; top: 80px; }
.widget { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.widget-title {
  font-family: 'Playfair Display', serif; font-size: 0.9rem; color: var(--pd);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block;
}
.widget-search-form { display: flex; gap: 8px; }
.widget-search-form input {
  flex: 1; padding: 9px 12px; border: 1px solid rgba(75,46,131,0.15); border-radius: 5px;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 0.85rem; color: var(--td); background: var(--cream);
}
.widget-search-form input:focus { outline: none; border-color: var(--pm); }
.widget-search-form button { background: var(--pm); border: none; color: white; padding: 9px 14px; border-radius: 5px; cursor: pointer; font-size: 1rem; }
.widget-post-list { list-style: none; }
.widget-post-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(75,46,131,0.06); align-items: flex-start; gap: 8px; }
.widget-post-list li:last-child { border-bottom: none; }
.widget-post-list a { font-size: 0.82rem; color: var(--td); font-weight: 500; line-height: 1.4; flex: 1; }
.widget-post-list a:hover { color: var(--pm); }
.widget-post-list span { font-size: 0.72rem; color: var(--tl); flex-shrink: 0; }
.widget-cat-list { list-style: none; }
.widget-cat-list li { padding: 8px 0; border-bottom: 1px solid rgba(75,46,131,0.06); display: flex; justify-content: space-between; }
.widget-cat-list a { font-size: 0.83rem; color: var(--td); }
.widget-cat-list a:hover { color: var(--pm); }
.widget-cta .sidebar-cta-box {
  background: linear-gradient(145deg, var(--pm), var(--pd)); border-radius: 10px;
  padding: 24px; text-align: center; color: white;
}
.sidebar-cta-box .cta-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.sidebar-cta-box h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--gold); margin-bottom: 8px; }
.sidebar-cta-box p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 16px; font-weight: 300; }

/* =============================================
   ARCHIVE / SEARCH
   ============================================= */
.archive-layout { background: var(--cream); padding-bottom: 72px; }
.archive-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding-top: 48px; }
.archive-hero { margin-bottom: 36px; }
.archive-desc { margin-top: 6px; }
.no-posts, .no-results { text-align: center; padding: 48px; color: var(--tl); font-size: 0.95rem; }

/* Page layout */
.page-layout { background: var(--cream); padding-bottom: 72px; }
.page-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding-top: 48px; }
.page-article { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* =============================================
   404 PAGE
   ============================================= */
.error-404-page { background: var(--cream); min-height: 60vh; display: flex; align-items: center; }
.error-content { text-align: center; padding: 80px 0; }
.error-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.error-code { font-family: 'Playfair Display', serif; font-size: 5rem; color: var(--pm); line-height: 1; margin-bottom: 8px; }
.error-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--pd); margin-bottom: 12px; }
.error-desc { color: var(--tm); max-width: 480px; margin: 0 auto 24px; font-size: 0.92rem; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--pd); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-logo, .footer-brand .footer-logo a {
  font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--gold);
  letter-spacing: 0.8px; margin-bottom: 14px; display: block; font-weight: 700;
}
.footer-brand .custom-logo { height: 44px; width: auto; filter: brightness(10); margin-bottom: 14px; }
.footer-divider { width: 32px; height: 2px; background: var(--gold); margin: 14px 0; border-radius: 2px; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.42); line-height: 1.75; font-weight: 300; max-width: 280px; }
.footer-col-title { font-family: 'Playfair Display', serif; font-size: 0.86rem; color: var(--gold); margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-links, .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-col ul a, .footer-col a, .footer-widget a { color: rgba(255,255,255,0.6); font-size: 0.83rem; font-weight: 300; transition: var(--tr); }
.footer-links a:hover, .footer-col ul a:hover, .footer-col a:hover, .footer-widget a:hover { color: var(--gold); padding-left: 5px; }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); }
.footer-bottom a { color: var(--gold); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 44px; height: 44px; background: var(--pm); color: white;
  border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(46,26,71,0.35); cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: var(--tr); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--pd); transform: translateY(-3px); }

/* =============================================
   AUTH FORMS
   ============================================= */
.nc-auth-form {
  max-width: 440px; margin: 0 auto; padding: 36px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nc-auth-form h2 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  color: var(--pd); margin-bottom: 24px; text-align: center;
}
.nc-auth-form label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--td); margin-bottom: 6px; margin-top: 16px;
}
.nc-auth-form label span { color: #c0392b; }
.nc-auth-form input[type="text"],
.nc-auth-form input[type="email"],
.nc-auth-form input[type="password"],
.nc-auth-form input[type="number"] {
  width: 100%; padding: 10px 14px; border: 1px solid rgba(75,46,131,0.18);
  border-radius: 6px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 0.9rem;
  color: var(--td); background: var(--cream);
}
.nc-auth-form input:focus { outline: none; border-color: var(--pm); }
.nc-auth-form .btn { margin-top: 24px; }
.nc-auth-form .nc-remember {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 0.85rem; color: var(--tm); cursor: pointer;
}
.nc-auth-links {
  text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--tm);
}
.nc-auth-links a { color: var(--pm); font-weight: 500; }
.nc-auth-links a:hover { color: var(--gold); }
.nc-auth-error {
  background: #fdecea; color: #c0392b; padding: 10px 14px;
  border-radius: 6px; font-size: 0.85rem; margin-bottom: 16px; text-align: center;
}
.nc-auth-success {
  background: #e8f5e9; color: #2e7d32; padding: 10px 14px;
  border-radius: 6px; font-size: 0.85rem; margin-bottom: 16px; text-align: center;
}
.nc-auth-success a { color: var(--pm); font-weight: 600; }

/* Forum auth bar */
.nc-forum-auth-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 14px 20px; margin-bottom: 24px;
  background: var(--cream); border-radius: 8px; border: 1px solid rgba(75,46,131,0.08);
}
.nc-welcome { font-size: 0.9rem; color: var(--td); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .community-box { grid-template-columns: 1fr 1fr; }
  .comm-icon-col { grid-column: 1; }
  .comm-action-col { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .single-grid, .archive-grid, .page-grid { grid-template-columns: 1fr; }
  .single-sidebar, .archive-sidebar, .page-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 64px 0 56px; }
  .hero-btns .btn { min-width: 140px; padding: 10px 18px; font-size: 0.84rem; }
  .exp-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .community-box { grid-template-columns: 1fr; padding: 24px; }
  .comm-icon-col { display: none; }
  .pyramid-inner { flex-direction: column; gap: 40px; }
  .pyramid-cta { max-width: 100%; }
  .article-header, .article-content, .article-tags, .article-share { padding-left: 24px; padding-right: 24px; }
  .post-nav { padding: 20px; }
  .post-nav-inner { flex-direction: column; }
  .post-nav-next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .knowledge-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
