/*
Theme Name: reseller software tool reviews
Theme URI: https://nicheengine.com
Description: Custom theme generated by NicheEngine.
Version: 1.0
Author: NicheEngine
Text Domain: ne-reseller-software-tool-reviews
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #2563EB;
    --secondary: #0F172A;
    --accent: #10B981;
    --bg: #F8FAFC;
    --text: #1E293B;
    --text-light: #64748B;
    --font-h: 'Inter', -apple-system, sans-serif;
    --font-b: 'Source Sans 3', -apple-system, sans-serif;
    --hw: 700;
    --bw: 400;
    --max-w: 1200px;
    --content-w: 760px;
}
html { scroll-behavior: smooth; overflow-y: scroll; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 10000; font-size: 14px; transition: top 0.2s; }
.skip-link:focus { top: 0; }
body { font-family: var(--font-b); font-weight: var(--bw); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-h); font-weight: var(--hw); line-height: 1.25; color: var(--text); }
h1 { font-size: 2.4rem; margin-bottom: 0.5em; }
h2 { font-size: 1.8rem; margin: 1.8em 0 0.6em; }
h3 { font-size: 1.4rem; margin: 1.5em 0 0.5em; }
p { margin-bottom: 1.2em; }
blockquote { border-left: 4px solid var(--primary); padding: 1em 1.5em; margin: 1.5em 0; background: rgba(0,0,0,0.02); font-style: italic; color: var(--text-light); }
ul, ol { margin: 0 0 1.2em 1.5em; }
li { margin-bottom: 0.4em; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95em; }
th, td { border: 1px solid #e5e7eb; padding: 10px 14px; text-align: left; }
th { background: var(--primary); color: #fff; font-weight: 600; }
tr:nth-child(even) { background: #f9fafb; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.site-header.sticky-header { position: sticky; top: 0; }
.site-tagline { font-size: 0.75rem; color: var(--text-light); margin-top: 2px; }
.header-cta { display: inline-block; padding: 8px 20px; background: var(--primary); color: #fff !important; font-weight: 600; font-size: 0.85rem; border-radius: 6px; margin-left: 16px; transition: background 0.2s; white-space: nowrap; }
.header-cta:hover { background: var(--secondary); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.site-logo img { max-height: 44px; width: auto; }
.site-title { font-family: var(--font-h); font-weight: var(--hw); font-size: 1.4rem; }
.site-title a { color: var(--text); }
.site-title a:hover { text-decoration: none; }

/* Nav */
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-size: 0.95rem; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--primary); border-bottom-color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.35)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 40px 24px; }
.hero h1 { font-size: 2.8rem; color: #fff; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; opacity: 0.92; margin-bottom: 28px; }
.hero-btn { display: inline-block; padding: 14px 32px; background: var(--primary); color: #fff; font-weight: 600; border-radius: 8px; transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.hero-btn:hover { background: var(--secondary); color: #fff; transform: translateY(-1px); }

/* Layout */
.site-main { max-width: var(--max-w); margin: 0 auto; padding: 40px 24px; }
.content-area { max-width: var(--content-w); margin: 0 auto; }
.content-area > .single-post { max-width: none; width: 100%; margin: 0; }

/* Post Cards */
.posts-grid { display: grid; gap: 32px; }
.post-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.post-card-image { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-category { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 8px; }
.post-card h2 { font-size: 1.3rem; margin: 0 0 10px; line-height: 1.35; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 12px; }
.post-card-meta { font-size: 0.82rem; color: var(--text-light); }

/* Single Post */
.single-post { max-width: var(--content-w); margin: 0 auto; }
.single-post .entry-header { margin-bottom: 32px; }
.single-post .entry-category { display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 12px; }
.single-post .entry-title { font-size: 2.4rem; line-height: 1.2; margin-bottom: 16px; }
.single-post .entry-meta { font-size: 0.9rem; color: var(--text-light); }
.single-post .featured-image { width: 100%; border-radius: 12px; margin-bottom: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.single-post .entry-content { font-size: 1.15rem; line-height: 1.9; }
.single-post .entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; font-weight: 500; }
.single-post .entry-content a:hover { color: var(--secondary); text-decoration-thickness: 2px; }
.single-post .entry-content p { margin-bottom: 1.5em; }
.single-post .entry-content h2 { padding-top: 20px; margin-top: 2em; border-top: 1px solid #e5e7eb; }
.single-post .entry-content h3 { margin-top: 1.6em; }
.single-post .entry-content ul, .single-post .entry-content ol { margin-bottom: 1.5em; line-height: 2; }
.single-post .entry-content li { margin-bottom: 0.5em; }

/* Tables */
.wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wp-block-table th { background: var(--primary); color: #fff; font-weight: 700; text-align: left; padding: 12px 16px; }
.wp-block-table td { padding: 10px 16px; border-bottom: 1px solid #e5e7eb; }
.wp-block-table tr:hover td { background: #f9fafb; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.5em 0; }
.entry-content th { background: var(--primary); color: #fff; font-weight: 700; text-align: left; padding: 12px 16px; }
.entry-content td { padding: 10px 16px; border-bottom: 1px solid #e5e7eb; }
.entry-content tr:hover td { background: #f9fafb; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.bc-sep { margin: 0 6px; opacity: 0.5; }

/* Pillar Post — text above, clean image below */
.pillar-header { background: var(--bg); border-bottom: 1px solid #e5e7eb; padding: 48px 24px 40px; }
.pillar-header-inner { max-width: 860px; margin: 0 auto; }
.pillar-header-inner .breadcrumb { margin-bottom: 16px; }
.pillar-header-inner .entry-title { font-size: 2.6rem; line-height: 1.15; margin-bottom: 12px; max-width: 800px; }
.pillar-header-inner .entry-meta { color: var(--text-light); }
.pillar-featured-img { max-width: var(--max-w); margin: 0 auto; padding: 32px 24px 0; }
.pillar-featured-img img { width: 100%; max-width: 860px; display: block; margin: 0 auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.single-post.pillar-post { max-width: var(--max-w); }
.pillar-post .entry-content { max-width: 860px; margin: 0 auto; }
.pillar-post .toc { max-width: 860px; margin: 0 auto 40px; }
.pillar-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); background: rgba(37,99,235,0.08); padding: 5px 14px; border-radius: 6px; margin-bottom: 16px; }

/* Table of Contents */
.toc { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px 28px; margin-bottom: 40px; }
.toc-title { font-family: var(--font-h); font-weight: var(--hw); font-size: 1rem; margin-bottom: 14px; color: var(--text); }
.toc-list { margin: 0; padding: 0 0 0 20px; }
.toc-list li { padding: 5px 0; font-size: 0.93rem; }
.toc-list a { color: var(--text); border-bottom: 1px solid transparent; }
.toc-list a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* Related Cluster Articles (on pillar posts) */
.related-cluster { margin-top: 60px; padding-top: 40px; border-top: 2px solid #e5e7eb; }
.related-cluster .section-title { text-align: left; font-size: 1.4rem; margin-bottom: 24px; }

/* Pillar Hub Section (auto-generated "In This Guide" links) */
.pillar-hub-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--primary); }
.pillar-hub-section h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 8px; }
.pillar-hub-section h3 { font-size: 1.05rem; margin-top: 20px; margin-bottom: 8px; color: var(--text); }
.pillar-hub-section p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 16px; }
.pillar-hub-section ul { list-style: none; padding: 0; margin: 0 0 16px; }
.pillar-hub-section li { padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.95rem; }
.pillar-hub-section li:last-child { border-bottom: none; }
.pillar-hub-section li a { color: var(--primary); font-weight: 500; }
.pillar-hub-section li a:hover { color: var(--secondary); }

/* Pillar Backlink (on cluster posts) */
.pillar-backlink { margin-top: 40px; padding: 20px 24px; background: rgba(37,99,235,0.04); border: 1px solid rgba(37,99,235,0.15); border-radius: 12px; }
.pillar-backlink-label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 6px; }
.pillar-backlink-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* Affiliate Disclosure (auto-appended to posts) */
.affiliate-disclosure { background: #f8f9fa; border-left: 3px solid var(--text-light); padding: 12px 16px; margin-bottom: 28px; border-radius: 0 6px 6px 0; font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }
.affiliate-disclosure p { margin: 0; }
.affiliate-disclosure a { color: var(--text-light); text-decoration: underline; }

/* Quick Answer (AEO) */
.quick-answer { background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02)); border: 1px solid rgba(37,99,235,0.2); border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; padding: 20px 24px; margin-bottom: 28px; }
.quick-answer-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 8px; }
.quick-answer p { font-size: 1.05rem; line-height: 1.7; margin: 0; color: var(--text); }

/* Key Takeaways (AEO) */
.key-takeaways { background: #f8faf8; border: 1px solid rgba(34,197,94,0.2); border-left: 4px solid var(--accent, #22c55e); border-radius: 0 12px 12px 0; padding: 20px 24px; margin-bottom: 32px; }
.key-takeaways-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, #22c55e); margin-bottom: 12px; }
.key-takeaways ul { margin: 0; padding: 0 0 0 20px; }
.key-takeaways li { padding: 4px 0; font-size: 0.95rem; line-height: 1.6; }

/* Pull Quotes */
.wp-block-pullquote, .pull-quote { border: none; padding: 32px 0; margin: 2em 0; text-align: center; position: relative; }
.wp-block-pullquote::before, .pull-quote::before { content: "\201C"; font-size: 5rem; line-height: 1; color: var(--primary); opacity: 0.15; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-family: Georgia, serif; }
.wp-block-pullquote p, .pull-quote p { font-size: 1.4rem; line-height: 1.5; font-style: italic; color: var(--text); max-width: 600px; margin: 0 auto; font-weight: 500; }
.wp-block-pullquote cite, .pull-quote cite { display: block; margin-top: 12px; font-size: 0.85rem; font-style: normal; color: var(--text-light); }

/* Tip / Note / Warning Boxes */
.tip-box, .note-box, .warning-box { border-radius: 12px; padding: 20px 24px; margin: 1.5em 0; position: relative; padding-left: 56px; }
.tip-box::before, .note-box::before, .warning-box::before { position: absolute; left: 20px; top: 20px; font-size: 1.3rem; }
.tip-box { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.2); }
.tip-box::before { content: "\1F4A1"; }
.note-box { background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.2); }
.note-box::before { content: "\2139\FE0F"; }
.warning-box { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); }
.warning-box::before { content: "\26A0\FE0F"; }
.tip-box strong:first-child, .note-box strong:first-child, .warning-box strong:first-child { display: block; margin-bottom: 6px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tip-box strong:first-child { color: #16a34a; }
.note-box strong:first-child { color: #2563eb; }
.warning-box strong:first-child { color: #d97706; }

/* Bottom Line / Verdict Box */
.bottom-line { background: var(--primary); color: #fff; border-radius: 12px; padding: 28px 32px; margin: 2em 0; }
.bottom-line-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; margin-bottom: 8px; }
.bottom-line p { font-size: 1.1rem; line-height: 1.7; margin: 0; color: rgba(255,255,255,0.95); }
.bottom-line a { color: #fff; text-decoration: underline; }

/* Product Recommendation Card */
.product-pick { display: flex; gap: 24px; background: #fff; border: 2px solid var(--primary); border-radius: 14px; padding: 24px; margin: 2em 0; align-items: flex-start; }
.product-pick-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.product-pick h4 { margin: 0 0 8px; font-size: 1.15rem; }
.product-pick p { font-size: 0.95rem; color: var(--text-light); margin: 0 0 12px; line-height: 1.6; }
.product-pick-btn { display: inline-block; padding: 10px 24px; background: var(--primary); color: #fff; font-weight: 600; border-radius: 8px; text-decoration: none; font-size: 0.9rem; }
.product-pick-btn:hover { background: var(--secondary); color: #fff; }

/* Comparison Table Enhancement */
.entry-content table { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.entry-content th:first-child { border-radius: 0; }
.entry-content th:last-child { border-radius: 0; }

/* Styled HR Divider */
.entry-content hr { border: none; height: 1px; background: linear-gradient(to right, transparent, var(--primary), transparent); margin: 3em 0; opacity: 0.3; }

/* Section Alternating Backgrounds - use .section-alt class explicitly */
.section-alt { background: #f8f9fa; width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; padding: 60px 24px; }

/* Quick Pick Highlight */
.quick-pick { max-width: var(--max-w); margin: 0 auto; padding: 48px 24px; }
.quick-pick-inner { display: flex; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 16px; padding: 32px 40px; color: #fff; }
.quick-pick-icon { font-size: 3rem; flex-shrink: 0; }
.quick-pick-body { flex: 1; }
.quick-pick-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; margin-bottom: 4px; }
.quick-pick-body h3 { color: #fff; font-size: 1.3rem; margin: 0 0 8px; }
.quick-pick-body p { opacity: 0.9; margin: 0; font-size: 0.95rem; }
.quick-pick-btn { display: inline-block; margin-top: 12px; padding: 10px 24px; background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; border-radius: 8px; text-decoration: none; backdrop-filter: blur(4px); }
.quick-pick-btn:hover { background: rgba(255,255,255,0.3); color: #fff; }

/* Category Hero (for archive pages) */
.category-hero { position: relative; min-height: 280px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 0; }
.category-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--primary); }
.category-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.35) 100%); }
.category-hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 40px 24px; width: 100%; }
.category-hero-content h1 { color: #fff; font-size: 2.2rem; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.category-hero-content p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 600px; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.category-hero-content .cat-count-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }
.subcategory-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.subcategory-nav a { padding: 6px 16px; background: rgba(255,255,255,0.15); color: #fff; border-radius: 20px; font-size: 0.85rem; font-weight: 500; text-decoration: none; backdrop-filter: blur(4px); transition: all 0.2s; }
.subcategory-nav a:hover { background: rgba(255,255,255,0.3); color: #fff; }
.subcategory-nav a.current { background: var(--primary); }

/* Pillar Feature on Category Page */
.category-pillar { max-width: var(--max-w); margin: -40px auto 32px; padding: 0 24px; position: relative; z-index: 3; }
.category-pillar-card { display: flex; gap: 24px; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; align-items: center; }
.category-pillar-card img { width: 200px; height: 140px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.category-pillar-body { flex: 1; }
.category-pillar-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 6px; }
.category-pillar-body h2 { font-size: 1.15rem; margin: 0 0 8px; }
.category-pillar-body h2 a { color: var(--text); }
.category-pillar-body h2 a:hover { color: var(--primary); }
.category-pillar-body p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.5; }

@media (max-width: 768px) {
    .quick-pick-inner { flex-direction: column; text-align: center; padding: 24px; }
    .product-pick { flex-direction: column; }
    .category-pillar-card { flex-direction: column; }
    .category-pillar-card img { width: 100%; height: 180px; }
}

/* Footer */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 48px 24px 24px; margin-top: 60px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: left; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col .widget-title { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer-col .widget { margin-bottom: 16px; }
.footer-col .widget a { color: rgba(255,255,255,0.7); }
.footer-col .widget a:hover { color: #fff; }
.footer-col .widget ul { list-style: none; padding: 0; }
.footer-col .widget li { margin-bottom: 6px; font-size: 0.9rem; }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8) !important; font-size: 0; text-indent: -9999px; transition: all 0.2s; }
.social-link:hover { background: var(--primary); color: #fff !important; }
.social-link::after { text-indent: 0; display: block; font-size: 0.75rem; font-weight: 700; }
.social-link[title="Facebook"]::after { content: "f"; }
.social-link[title="Instagram"]::after { content: "ig"; }
.social-link[title="Youtube"]::after { content: "yt"; }
.social-link[title="Tiktok"]::after { content: "tk"; }
.social-link[title="Pinterest"]::after { content: "p"; }
.social-link[title="Twitter"]::after { content: "x"; }
.footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 24px; margin: 0 0 20px; padding: 0; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; opacity: 0.6; }

/* Front Page Sections */
.section { max-width: var(--max-w); margin: 0 auto; padding: 60px 24px; }
.section-title { font-size: 1.6rem; margin-bottom: 8px; text-align: center; }
.section-subtitle { font-size: 1rem; color: var(--text-light); text-align: center; margin-bottom: 36px; }
.posts-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Featured Posts */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.featured-card { position: relative; border-radius: 12px; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; }
.featured-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-card .featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%); }
.featured-card .featured-body { position: relative; z-index: 2; padding: 28px; color: #fff; }
.featured-card .featured-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--primary); padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 10px; }
.featured-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.featured-card h3 a { color: #fff; }
.featured-card h3 a:hover { opacity: 0.9; }
.featured-card p { font-size: 0.9rem; opacity: 0.85; margin: 0; }

/* Category Browse */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: var(--max-w); margin: 0 auto; box-sizing: border-box; overflow: hidden; }
.topic-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.25s; border: 1px solid #e5e7eb; box-sizing: border-box; max-width: 100%; }
.topic-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.topic-card-header { display: block; position: relative; height: 180px; background-size: cover; background-position: center; background-color: var(--primary); text-decoration: none; }
.topic-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, transparent 100%); }
.topic-card-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px; z-index: 1; }
.topic-card-title h3 { color: #fff; font-size: 1.25rem; margin: 0 0 4px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.topic-card-count { color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.topic-card-children { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-card-body { padding: 20px; }
.topic-card-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin: 0 0 14px; }
.topic-card-guide-link { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; margin-bottom: 14px; }
.topic-card-guide-link:hover { text-decoration: underline; }
.topic-child-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: #f3f4f6; border-radius: 20px; font-size: 0.85rem; font-weight: 500; color: var(--text); transition: all 0.2s; text-decoration: none; }
.topic-child-chip:hover { background: var(--primary); color: #fff; }
.topic-child-chip:hover .cat-count { background: rgba(255,255,255,0.25); color: #fff; }
.topic-child-chip .cat-count { font-size: 0.75rem; background: #e5e7eb; padding: 2px 8px; border-radius: 12px; color: var(--text-light); transition: all 0.2s; }

/* About Block */
.about-block { max-width: 700px; margin: 0 auto; text-align: center; }
.about-block p { font-size: 1.1rem; line-height: 1.8; color: var(--text-light); }
.about-divider { width: 60px; height: 3px; background: var(--primary); margin: 0 auto 24px; border-radius: 2px; }

/* Newsletter CTA */
.newsletter-section { background: var(--primary); color: #fff; width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; padding: 60px 24px; text-align: center; }
.newsletter-section h2 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.newsletter-section p { opacity: 0.9; margin-bottom: 24px; font-size: 1.05rem; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.15); color: #fff; border-radius: 8px; font-size: 1rem; font-family: var(--font-b); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.2); }
.newsletter-form button { padding: 14px 28px; background: #fff; color: var(--primary); border: none; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.newsletter-form button:hover { background: #f0f0f0; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 0.9rem; color: var(--text); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { background: #f3f4f6; text-decoration: none; }

/* Search */
.search-form { display: flex; gap: 8px; max-width: 500px; }
.search-form input[type="search"] { flex: 1; padding: 10px 16px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 1rem; font-family: var(--font-b); }
.search-form button { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Responsive */
@media (max-width: 900px) {
    .posts-grid-3 { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .single-post .entry-title { font-size: 1.8rem; }
    .pillar-header-inner .entry-title { font-size: 2rem; }
    .main-nav { display: none; }
    .main-nav.active { display: block; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 16px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
    .main-nav.active ul { flex-direction: column; gap: 0; }
    .main-nav.active li { padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
    .menu-toggle { display: block; }
    .newsletter-form { flex-direction: column; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero { min-height: 360px; }
    .hero h1 { font-size: 1.6rem; }
    .pillar-header-inner .entry-title { font-size: 1.6rem; }
    .pillar-header { padding: 32px 16px 28px; }
    .featured-card { min-height: 240px; }
    .section { padding: 40px 16px; }
    .toc { padding: 16px 20px; }
    .topic-grid { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .topic-card { display: block !important; grid-template-columns: none !important; border-radius: 12px !important; overflow: hidden !important; border: 1px solid #e5e7eb; }
    .topic-card-header { height: 180px !important; min-height: 0 !important; border-radius: 0 !important; order: 0 !important; }
    .topic-card-body { padding: 20px !important; display: block !important; order: 0 !important; }
    .topic-card-children { padding: 0 !important; }
    .topic-card:nth-child(even) { grid-template-columns: none !important; }
    .topic-card:nth-child(even) .topic-card-header { order: 0 !important; }
    .topic-card:nth-child(even) .topic-card-body { order: 0 !important; }
}

/* ═══ Theme Style: bold ═══ */

/* ═══ Pillar Layout: grid ═══ */
