/* ===================================================
   MODULAR BIM THEME — MAIN STYLESHEET
   Fonts: Merriweather + Source Sans 3 (loaded non-blocking via header.php)
   =================================================== */

/* Font fallback stack until web fonts load */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #CC2222; --dark: #111; --mid: #444; --muted: #666;
  --light: #999; --border: #E2E2E2; --bg: #F7F7F7;
  --white: #fff; --sidebar-w: 300px;
  /* --sticky-top is set dynamically by JS based on real element heights */
  --sticky-top: 32px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent,var(--red)); }
img { max-width: 100%; height: auto; }

/* ===== TOP BAR ===== */
.top-bar { background: var(--topbar-bg,#1a1a1a); padding: 6px 0; font-size: 11px; color: #aaa; letter-spacing: 0.03em; position: sticky; top: 0; z-index: 1000; }
.top-bar .inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.top-bar a { color: #aaa; }
.top-bar a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 0; flex-wrap: wrap; }

/* ===== HEADER ===== */
#site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: var(--sticky-top); z-index: 900; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 24px; }
.site-logo { font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.5px; white-space: nowrap; color: var(--dark); flex-shrink: 0; display: flex; align-items: center; gap: 0; }
.site-logo .logo-accent { color: var(--accent,var(--red)); }
.site-logo .logo-tagline { font-size: 11px; font-weight: 400; color: var(--light); letter-spacing: 0.02em; margin-left: 6px; vertical-align: middle; }
.header-nav { display: flex; gap: 2px; align-items: center; flex: 1; justify-content: center; flex-wrap: nowrap; }
.header-nav a { font-size: 13px; font-weight: 600; color: var(--dark); padding: 4px 10px; white-space: nowrap; transition: color 0.2s; }
.header-nav a:hover, .header-nav a.nav-active { color: var(--accent,var(--red)); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-signup { background: var(--accent,var(--red)); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 20px; letter-spacing: 0.04em; text-transform: uppercase; border: none; cursor: pointer; white-space: nowrap; transition: background 0.2s; display: inline-block; }
.btn-signup:hover { background: var(--accent-dark,#aa1111); color: #fff; }
.search-icon { font-size: 18px; color: var(--mid); cursor: pointer; line-height: 1; padding: 4px; text-decoration: none; }
.search-icon:hover { color: var(--accent,var(--red)); }

/* ===== TOPICS IN MAIN NAV ===== */
.nav-topics-wrap { position: relative; z-index: 950; }
.nav-topics-btn { background: none; border: 1px solid var(--border); font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 600; color: var(--dark); padding: 4px 10px; cursor: pointer; white-space: nowrap; transition: all 0.2s; display: flex; align-items: center; gap: 4px; }
.nav-topics-btn:hover { color: var(--accent,var(--red)); border-color: var(--accent,var(--red)); }
.nav-topics-btn.open { color: var(--accent,var(--red)); border-color: var(--accent,var(--red)); }
.nav-topics-drop { display: none; position: fixed; top: auto; left: 50%; transform: translateX(-50%); background: var(--white); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.15); min-width: 540px; z-index: 9999; padding: 20px; }
.nav-topics-drop.open { display: block; }
.ntd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ntd-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid #f5f5f5; }
.ntd-item:hover { background: #fafafa; }
.ntd-item:hover .ntd-title { color: var(--accent,var(--red)); }
.ntd-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: #f5f5f5; border-radius: 2px; }
.ntd-title { font-size: 13px; font-weight: 600; color: var(--dark); transition: color 0.15s; }
.ntd-sub { font-size: 11px; color: var(--light); margin-top: 1px; }
.ntd-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.ntd-footer a { font-size: 12px; color: var(--accent,var(--red)); font-weight: 600; }

/* ===== SUB NAV ===== */
.sub-nav { background: #f8f8f8; border-bottom: 1px solid var(--border); border-top: 3px solid var(--accent,var(--red)); position: relative; z-index: 1; }
.sub-nav .inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 0; overflow-x: auto; }
.sub-nav .sub-links { display: flex; flex: 1; overflow-x: auto; }
.sub-nav a { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 9px 13px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid transparent; transition: all 0.2s; display: inline-block; }
.sub-nav a:hover { color: var(--accent,var(--red)); border-bottom-color: var(--accent,var(--red)); }
.sub-nav a.sub-active, .sub-nav .current-cat > a { color: var(--accent,var(--red)) !important; border-bottom: 2px solid var(--accent,var(--red)); }
.topics-wrap { position: relative; z-index: 850; margin-left: auto; flex-shrink: 0; border-left: 1px solid var(--border); padding-left: 12px; }
.topics-btn { background: none; border: 1px solid var(--border); font-family: 'Source Sans 3', sans-serif; font-size: 11.5px; font-weight: 700; color: var(--dark); padding: 5px 12px; cursor: pointer; white-space: nowrap; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.05em; }
.topics-btn:hover, .topics-btn.active { border-color: var(--accent,var(--red)); color: var(--accent,var(--red)); background: #fff8f8; }
.topics-menu { display: none; position: fixed; background: var(--white); border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.15); min-width: 220px; z-index: 9999; }
.topics-menu.open { display: block; }
.topics-menu a { display: block; padding: 10px 18px; font-size: 13px; color: var(--dark); border-bottom: 1px solid var(--border); transition: all 0.15s; font-weight: 500; }
.topics-menu a:last-child { border-bottom: none; }
.topics-menu a:hover { background: #fafafa; color: var(--accent,var(--red)); padding-left: 22px; }

/* ===== MOBILE NAV ===== */
.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(--dark); transition: all 0.3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; background: var(--white); border-top: 3px solid var(--accent,var(--red)); padding: 0 20px 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); max-height: 80vh; overflow-y: auto; position: relative; z-index: 880; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; gap: 8px; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--dark); border-bottom: 1px solid var(--border); transition: color 0.2s; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent,var(--red)); }
.mobile-nav .mobile-topics-label { padding: 12px 0 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); border-top: 1px solid var(--border); margin-top: 4px; display: block; }

/* ===== PAGE WRAPPER ===== */
.site-content { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION LABEL ===== */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent,var(--red)); border-bottom: 3px solid var(--accent,var(--red)); display: inline-block; padding-bottom: 4px; margin-bottom: 0; }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col { display: flex; gap: 44px; padding: 32px 0 40px; }
.main-col { flex: 1; min-width: 0; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; }

/* ===== HERO SECTION ===== */
.hero-section { border-bottom: 1px solid var(--border); padding-bottom: 0; margin-bottom: 0; }
.hero-label-bar { padding: 18px 0 12px; display: flex; align-items: center; gap: 12px; }
.hero-label-bar .section-label { margin-bottom: 0; }

.hero-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; border: 1px solid var(--border); margin-bottom: 0; }
.hero-top-img { position: relative; overflow: hidden; cursor: pointer; }
.hero-top-img a { display: block; }
.hero-top-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.hero-top-img .hero-placeholder { width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #6a96b0; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; background: linear-gradient(135deg, #1B2B3B 0%, #2C4A60 60%, #1E3448 100%); }
.hero-cat-badge { position: absolute; top: 14px; left: 14px; background: var(--accent,var(--red)); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; }
.hero-top-text { padding: 28px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--border); }
.hero-top-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent,var(--red)); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.hero-top-cat::before { content: '◆'; font-size: 7px; }
.hero-top-title { font-family: 'Merriweather', serif; font-size: 24px; font-weight: 900; line-height: 1.28; letter-spacing: -0.02em; margin-bottom: 12px; }
.hero-top-title a { color: var(--dark); }
.hero-top-title a:hover { color: var(--accent,var(--red)); }
.hero-top-excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.68; margin-bottom: 14px; }
.hero-top-meta { font-size: 11.5px; color: var(--light); }
.hero-top-meta strong { color: var(--mid); }

.hero-bottom { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero-card { padding: 18px 20px; border-right: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.hero-card:last-child { border-right: none; }
.hero-card:hover { background: #fafafa; }
.hero-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 12px; }
.hero-card-thumb .hero-placeholder-sm { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; background: linear-gradient(135deg, #1B2B3B, #2C4A60); }
.hero-card-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent,var(--red)); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.hero-card-cat::before { content: '◆'; font-size: 6px; }
.hero-card-title { font-family: 'Merriweather', serif; font-size: 14px; font-weight: 700; line-height: 1.38; margin-bottom: 6px; }
.hero-card-title a { color: var(--dark); }
.hero-card-title a:hover { color: var(--accent,var(--red)); }
.hero-card-meta { font-size: 11px; color: var(--light); }

/* ===== NO POSTS PLACEHOLDER ===== */
.starter-hero { border: 2px dashed var(--border); padding: 48px 32px; text-align: center; background: var(--bg); margin-bottom: 28px; }
.starter-hero-icon { font-size: 40px; margin-bottom: 16px; }
.starter-hero h2 { font-family: 'Merriweather', serif; font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--mid); }
.starter-hero p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 480px; margin: 0 auto 20px; }
.starter-hero a { display: inline-block; background: var(--accent,var(--red)); color: #fff; padding: 10px 24px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ===== HERO PLACEHOLDER (no featured image) ===== */
.hero-placeholder { width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1B2B3B 0%, #2C4A60 60%, #1E3448 100%); text-align: center; padding: 20px; }
.hero-placeholder span { font-family: 'Merriweather', serif; font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.6); line-height: 1.4; }
.hero-placeholder-sm { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.hero-placeholder-sm.placeholder-pattern { background: linear-gradient(135deg, #2d3e2d, #3d5e3d); }
/* Vary colors for different small cards */
.hero-bottom .hero-card:nth-child(1) .hero-placeholder-sm { background: linear-gradient(135deg,#2d2a1e,#5e5030); }
.hero-bottom .hero-card:nth-child(2) .hero-placeholder-sm { background: linear-gradient(135deg,#2a2040,#4a3a70); }
.hero-bottom .hero-card:nth-child(3) .hero-placeholder-sm { background: linear-gradient(135deg,#1e2d3a,#2e4a5a); }

/* ===== ARTICLE LIST FEED ===== */
.feed-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.feed-header .section-label { margin-bottom: 0; }
.feed-header a { font-size: 12px; color: var(--accent,var(--red)); font-weight: 600; }

.article-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.article-item:hover .art-title { color: var(--accent,var(--red)); }
.art-thumb img { width: 150px; aspect-ratio: 4/3; object-fit: cover; display: block; }
.art-thumb .art-placeholder { width: 150px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; background: linear-gradient(135deg, #1e2d3a, #2e4a5a); }
.art-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent,var(--red)); margin-bottom: 5px; display: flex; align-items: center; gap: 4px; }
.art-cat::before { content: '◆'; font-size: 6px; }
.art-title { font-family: 'Merriweather', serif; font-size: 16px; font-weight: 700; line-height: 1.36; margin-bottom: 7px; color: var(--dark); transition: color 0.2s; }
.art-title a { color: var(--dark); }
.art-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.62; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { font-size: 11px; color: var(--light); }

/* ===== NEWSLETTER SIGN-UP CTA BANNER ===== */
.signup-cta-banner { background: var(--dark); margin: 10px 0; padding: 0; }
.signup-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; }
.signup-cta-phone { width: 60px; flex-shrink: 0; }
.signup-cta-phone-mock { width: 52px; height: 90px; background: #333; border-radius: 8px; border: 2px solid #555; display: flex; align-items: center; justify-content: center; }
.signup-cta-phone-screen { width: 36px; height: 62px; background: linear-gradient(160deg,#1B2B3B,#2C4A60); border-radius: 3px; }
.signup-cta-text h3 { font-family: 'Merriweather', serif; font-size: 19px; font-weight: 900; color: #fff; margin-bottom: 5px; line-height: 1.3; }
.signup-cta-text p { font-size: 13px; color: #aaa; line-height: 1.5; }
.signup-cta-form { display: flex; gap: 0; flex-shrink: 0; }
.signup-cta-form input { padding: 10px 16px; border: 1px solid #444; background: #222; font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #fff; outline: none; width: 230px; }
.signup-cta-form input::placeholder { color: #666; }
.signup-cta-form input:focus { border-color: var(--accent,var(--red)); }
.signup-cta-form button { background: var(--accent,var(--red)); color: #fff; border: none; padding: 10px 20px; font-family: 'Source Sans 3', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.signup-cta-form button:hover { background: #ff2222; }

/* ===== LOAD MORE ===== */
.load-more-wrap { text-align: center; padding: 28px 0 8px; }
.btn-load-more { background: var(--white); color: var(--dark); border: 2px solid var(--border); padding: 12px 36px; font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.btn-load-more:hover { border-color: var(--accent,var(--red)); color: var(--accent,var(--red)); }

/* ===== BOTTOM NEWSLETTER CTA ===== */
.bottom-cta-section { display: flex; align-items: center; justify-content: space-between; background: #f2f2f2; padding: 56px; margin: 40px 0 0; gap: 48px; }
.bottom-cta-bar { width: 44px; height: 4px; background: var(--accent,var(--red)); margin-bottom: 18px; }
.bottom-cta-title { font-family: 'Merriweather', serif; font-size: 28px; font-weight: 900; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.02em; }
.bottom-cta-sub { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; max-width: 420px; }
.bottom-cta-form { display: flex; gap: 0; max-width: 460px; }
.bottom-cta-input { flex: 1; padding: 12px 16px; border: 1px solid #ccc; background: var(--white); font-family: 'Source Sans 3', sans-serif; font-size: 14px; color: var(--dark); outline: none; transition: border-color 0.2s; }
.bottom-cta-input:focus { border-color: var(--accent,var(--red)); }
.bottom-cta-btn { background: #2a3a8a; color: #fff; border: none; padding: 12px 24px; font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.bottom-cta-btn:hover { background: #1a2a6a; }
.bottom-cta-right { flex-shrink: 0; }
.bottom-cta-phone-wrap { position: relative; width: 200px; height: 280px; }
.bottom-cta-circle { position: absolute; width: 220px; height: 220px; background: #2a3a8a; border-radius: 50%; bottom: 0; right: -20px; opacity: 0.9; }
.bottom-cta-dot { position: absolute; width: 14px; height: 14px; background: var(--accent,var(--red)); border-radius: 50%; top: 30px; right: 10px; }
.bottom-cta-phone { position: absolute; top: 0; left: 10px; width: 160px; z-index: 2; background: #111; border-radius: 16px; padding: 10px 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.35); border: 3px solid #222; }
.bottom-cta-screen { background: #fff; border-radius: 8px; padding: 10px; }
.bcs-header { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.bcs-logo-dot { width: 8px; height: 8px; background: var(--accent,var(--red)); border-radius: 50%; }
.bcs-brand { font-size: 8px; font-weight: 900; letter-spacing: 0.1em; color: #111; }
.bcs-date { font-size: 7px; color: #999; margin-bottom: 8px; }
.bcs-art-cat { font-size: 7px; font-weight: 700; color: var(--accent,var(--red)); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.bcs-art-title { font-family: 'Merriweather', serif; font-size: 8.5px; font-weight: 700; line-height: 1.3; color: #111; margin-bottom: 3px; }
.bcs-divider { border: none; border-top: 1px solid #eee; margin: 6px 0; }

/* ===== SIDEBAR ===== */
.sidebar-block { background: var(--white); border: 1px solid var(--border); padding: 20px; margin-bottom: 22px; }
.sidebar-block-title { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dark); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 3px solid var(--accent,var(--red)); }
.services-list { list-style: none; margin-bottom: 16px; }
.services-list li { font-size: 13px; color: var(--mid); padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.services-list li::before { content: '›'; color: var(--accent,var(--red)); font-size: 17px; font-weight: 700; line-height: 1; }
.services-list li:last-child { border-bottom: none; }
.btn-consult { display: block; width: 100%; background: var(--accent,var(--red)); color: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px; border: none; cursor: pointer; transition: background 0.2s; }
.btn-consult:hover { background: var(--accent-dark,#aa1111); color: #fff; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 4px; }
.form-input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: var(--dark); outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--accent,var(--red)); }
.form-input::placeholder { color: var(--light); }
.btn-signup-sm { background: #1a3a5c; color: #fff; border: none; padding: 9px; font-family: 'Source Sans 3', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; width: 100%; }
.btn-signup-sm:hover { background: #0d2840; }
.consult-card { background: var(--consult-bg,#1a2a3a); color: #fff; padding: 20px; margin-bottom: 22px; }
.consult-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.consult-card p { font-size: 12.5px; color: #aac4dc; line-height: 1.55; margin-bottom: 14px; }
.btn-consult-white { display: block; width: 100%; background: var(--accent,var(--red)); color: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px; border: none; cursor: pointer; transition: background 0.2s; }
.btn-consult-white:hover { background: #ff3333; color: #fff; }
.popular-list { list-style: none; }
.popular-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.popular-item:last-child { border-bottom: none; }
.popular-item:hover .pop-title { color: var(--accent,var(--red)); }
.pop-num { font-size: 18px; font-weight: 900; color: var(--border); font-family: 'Merriweather', serif; flex-shrink: 0; line-height: 1; width: 20px; }
.pop-title { font-size: 12.5px; font-weight: 600; color: var(--dark); line-height: 1.4; transition: color 0.2s; }
.pop-cat { font-size: 10px; color: var(--accent,var(--red)); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 5px; margin: 28px 0; }
.pagination .page-numbers { padding: 6px 13px; border: 1px solid var(--border); font-size: 13px; color: var(--mid); cursor: pointer; background: var(--white); transition: all 0.2s; font-family: 'Source Sans 3', sans-serif; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--accent,var(--red)); color: #fff; border-color: var(--accent,var(--red)); }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 12px; color: var(--light); padding: 14px 0 6px; }
.breadcrumb a { color: var(--accent,var(--red)); }
.breadcrumb span { margin: 0 5px; }

/* ===== SINGLE POST ===== */
.art-page-header { padding: 10px 0 18px; border-bottom: 1px solid var(--border); }
.art-page-cat { display: inline-block; background: var(--accent,var(--red)); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; margin-bottom: 14px; }
.art-page-title { font-family: 'Merriweather', serif; font-size: 30px; font-weight: 900; line-height: 1.24; letter-spacing: -0.02em; margin-bottom: 14px; }
.art-page-meta { font-size: 12px; color: var(--light); border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 20px; }
.art-page-meta strong { color: var(--mid); }
.art-hero-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; margin-bottom: 24px; }
.article-body { font-size: 16px; line-height: 1.78; color: #333; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: 'Merriweather', serif; font-size: 22px; font-weight: 700; margin: 32px 0 14px; color: var(--dark); }
.article-body h3 { font-family: 'Merriweather', serif; font-size: 18px; font-weight: 700; margin: 24px 0 10px; color: var(--dark); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; }
.article-body ul li, .article-body ol li { margin-bottom: 7px; }
.article-body blockquote { border-left: 4px solid var(--accent,var(--red)); padding: 12px 20px; margin: 24px 0; background: #fafafa; font-style: italic; color: var(--mid); font-size: 17px; line-height: 1.65; }
.article-body img { max-width: 100%; height: auto; margin: 20px 0; }
.related-articles { margin-top: 40px; padding-top: 28px; border-top: 3px solid var(--accent,var(--red)); }
.related-articles h3 { font-family: 'Merriweather', serif; font-size: 20px; font-weight: 900; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card a { color: var(--dark); display: block; }
.related-card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; display: block; margin-bottom: 10px; }
.related-card-placeholder { aspect-ratio: 16/10; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 10px; background: linear-gradient(135deg, #2d3e2d, #3d5e3d); }
.related-card h4 { font-family: 'Merriweather', serif; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--dark); margin-top: 6px; }
.related-card h4:hover { color: var(--accent,var(--red)); }

/* ===== CATEGORY PAGE ===== */
.cat-header { padding: 28px 0 20px; border-bottom: 3px solid var(--accent,var(--red)); margin-bottom: 28px; }
.cat-header h1 { font-family: 'Merriweather', serif; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.cat-header p { font-size: 15px; color: var(--muted); max-width: 620px; line-height: 1.6; }
.cat-article { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: start; }
.cat-article:first-child { border-top: 1px solid var(--border); }
.cat-article:hover .art-title { color: var(--accent,var(--red)); }
.cat-thumb img { width: 200px; aspect-ratio: 16/10; object-fit: cover; display: block; }
.cat-thumb .cat-placeholder { width: 200px; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 9px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; background: linear-gradient(135deg, #1B2B3B, #2C4A60); }

/* ===== SERVICES PAGE ===== */
.services-page-hero { background: #1a2a3a; color: #fff; padding: 52px 0 40px; margin-bottom: 0; }
.services-page-hero .inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.services-hero-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #e88; margin-bottom: 12px; }
.services-hero-title { font-family: 'Merriweather', serif; font-size: 34px; font-weight: 900; line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 14px; max-width: 640px; }
.services-hero-sub { font-size: 16px; color: #aac4dc; line-height: 1.7; max-width: 580px; margin-bottom: 24px; }
.services-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; padding: 5px 12px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin: 0 0 48px; }
.service-card { padding: 32px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background 0.2s; }
.service-card:hover { background: #fafafa; }
.service-card-icon { font-size: 28px; margin-bottom: 14px; }
.service-card-title { font-family: 'Merriweather', serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.service-card-list { list-style: none; margin-bottom: 18px; }
.service-card-list li { font-size: 13px; color: var(--mid); padding: 4px 0; display: flex; align-items: center; gap: 7px; }
.service-card-list li::before { content: '→'; color: var(--accent,var(--red)); font-size: 12px; }
.service-card-cta { font-size: 12px; font-weight: 700; color: var(--accent,var(--red)); letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s; }
.service-card-cta:hover { gap: 10px; }
.pbd-cta-section { background: linear-gradient(135deg, #1a2a3a 0%, #0d1a28 100%); padding: 48px; margin: 0 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pbd-cta-left h2 { font-family: 'Merriweather', serif; font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.pbd-cta-left p { font-size: 14.5px; color: #aac4dc; line-height: 1.65; max-width: 480px; }
.pbd-cta-right { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; align-items: center; }
.btn-pbd-primary { background: var(--accent,var(--red)); color: #fff; border: none; padding: 13px 28px; font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn-pbd-primary:hover { background: #ff2222; color: #fff; }
.btn-pbd-ghost { color: rgba(255,255,255,0.6); font-size: 12px; text-align: center; }
.btn-pbd-ghost a { color: #aac4dc; text-decoration: underline; }
.svc-form-section { max-width: 680px; margin: 0 auto 48px; }
.svc-form-section h2 { font-family: 'Merriweather', serif; font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.svc-form-section > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.svc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== ABOUT PAGE ===== */
.about-main { padding: 32px 0; }
.about-main h1 { font-family: 'Merriweather', serif; font-size: 28px; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.02em; }
.about-intro { font-size: 15.5px; color: var(--mid); line-height: 1.75; margin-bottom: 14px; max-width: 620px; }
.about-items { list-style: none; margin: 28px 0 36px; }
.about-item { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.about-item:first-child { border-top: 1px solid var(--border); }
.about-item-icon { width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #f5f5f5; border-radius: 2px; }
.about-item-body h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.about-item-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.about-item-body a { font-size: 13px; color: var(--accent,var(--red)); font-weight: 600; }
.about-sub-heading { font-family: 'Merriweather', serif; font-size: 19px; font-weight: 700; margin: 28px 0 16px; }
.about-pub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.about-pub-card { border: 1px solid var(--border); padding: 18px; }
.about-pub-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.about-pub-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.about-pub-link { font-size: 13.5px; color: var(--accent,var(--red)); }
.about-pub-link:hover { text-decoration: underline; }

/* ===== CONTACT PAGE ===== */
.contact-header { text-align: center; padding: 48px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.contact-header::before { content: ''; display: block; width: 40px; height: 3px; background: var(--accent,var(--red)); margin: 0 auto 20px; }
.contact-header h1 { font-family: 'Merriweather', serif; font-size: 34px; font-weight: 900; margin-bottom: 10px; }
.contact-header p { font-size: 15px; color: var(--muted); }
.contact-boxes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.contact-box { border: 1px solid var(--border); padding: 24px; text-align: center; }
.contact-box h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; color: var(--dark); }
.contact-box a { font-size: 13px; color: var(--accent,var(--red)); display: block; margin-bottom: 6px; }
.contact-form-section { max-width: 680px; }
.contact-form-section h2 { font-family: 'Merriweather', serif; font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid); margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); font-family: 'Source Sans 3', sans-serif; font-size: 14px; color: var(--dark); outline: none; background: var(--white); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent,var(--red)); }
.form-group textarea { height: 140px; resize: vertical; }
.btn-submit { background: var(--accent,var(--red)); color: #fff; border: none; padding: 12px 32px; font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--accent-dark,#aa1111); }

/* ===== FOOTER ===== */
footer { background: var(--white); border-top: 1px solid var(--border); margin-top: 48px; }
.footer-main { max-width: 1240px; margin: 0 auto; padding: 40px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 28px; }
.footer-brand .site-logo { font-size: 18px; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 240px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.social-btn { width: 30px; height: 30px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--mid); font-weight: 700; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.social-btn:hover { background: var(--accent,var(--red)); color: #fff; border-color: var(--accent,var(--red)); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent,var(--red)); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: var(--light); }
.footer-bottom a { font-size: 12px; color: var(--light); margin-left: 14px; }
.footer-bottom a:hover { color: var(--accent,var(--red)); }

/* ===== CASE STUDY LABEL ===== */
.case-study-badge { display: inline-block; background: #1a2a3a; color: #aac4dc; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; margin-bottom: 14px; }

/* ===== SEARCH FORM ===== */
.search-form { display: flex; gap: 0; }
.search-form input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid var(--border); font-family: 'Source Sans 3', sans-serif; font-size: 14px; color: var(--dark); outline: none; }
.search-form input[type="search"]:focus { border-color: var(--accent,var(--red)); }
.search-form button { background: var(--accent,var(--red)); color: #fff; border: none; padding: 10px 16px; cursor: pointer; font-size: 14px; }

/* ===== 404 PAGE ===== */
.error-404-content { text-align: center; padding: 80px 24px; }
.error-404-content h1 { font-family: 'Merriweather', serif; font-size: 60px; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 20px; }
.error-404-content h2 { font-family: 'Merriweather', serif; font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.error-404-content p { font-size: 15px; color: var(--muted); margin-bottom: 28px; }

/* ===== WP ALIGNMENTS ===== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 5px; font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) { .top-bar-right { display: none; } }

/* On mobile, top-bar wraps to 2 lines sometimes — set header to stick below it */
@media (max-width: 480px) {
}

@media (max-width: 960px) {
  .two-col { flex-direction: column; }
  .sidebar { width: 100%; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-top-text { border-left: none; border-top: 1px solid var(--border); }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-boxes { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .header-nav { display: none; }
  .signup-cta-inner { flex-direction: column; text-align: center; gap: 20px; }
  .signup-cta-form { width: 100%; }
  .signup-cta-form input { width: 100%; }
  .about-pub-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 16px; }
  .site-logo { font-size: 18px; }
  .site-logo .logo-tagline { display: none; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-top-text { border-left: none; border-top: 1px solid var(--border); padding: 20px; }
  .hero-top-title { font-size: 20px; }
  .hero-bottom { grid-template-columns: 1fr 1fr; gap: 0; }
  .two-col { flex-direction: column; gap: 28px; }
  .sidebar { width: 100%; }
  .site-content { padding: 0 16px; }
  .article-item { grid-template-columns: 110px 1fr; gap: 12px; }
  .art-thumb img { width: 110px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-main { padding: 28px 16px; }
  .contact-boxes { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cat-article { grid-template-columns: 1fr; }
  .cat-thumb img { width: 100% !important; aspect-ratio: 16/9 !important; }
  .signup-cta-inner { flex-direction: column; text-align: center; padding: 22px 20px; gap: 18px; }
  .signup-cta-phone { display: none; }
  .signup-cta-form { width: 100%; flex-direction: column; }
  .signup-cta-form input { width: 100%; }
  .bottom-cta-section { flex-direction: column; padding: 36px 24px; gap: 32px; }
  .bottom-cta-right { display: none; }
  .bottom-cta-form { flex-direction: column; max-width: 100%; }
  .bottom-cta-input { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .pbd-cta-section { flex-direction: column; padding: 28px 20px; gap: 24px; }
  .services-hero-title { font-size: 24px; }
  .svc-form-grid { grid-template-columns: 1fr; }
  .nav-topics-drop { min-width: calc(100vw - 32px); left: 0; transform: none; right: auto; }
  .ntd-grid { grid-template-columns: 1fr; }
  .sub-nav { top: 56px; }
  .sub-nav .inner { padding: 0 16px; }
  .about-pub-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .article-item { grid-template-columns: 1fr; }
  .art-thumb img { width: 100% !important; aspect-ratio: 16/9 !important; object-fit: cover; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-top-title { font-size: 18px; }
  .art-page-title { font-size: 20px; }
  .bottom-cta-title { font-size: 20px; }
  .contact-boxes { grid-template-columns: 1fr; }
  .site-content { padding: 0 12px; }
  .hero-top-text { padding: 16px; }
  .hero-card { padding: 14px; }
  .services-hero-title { font-size: 22px; }
  .about-pub-grid { grid-template-columns: 1fr; }
  .svc-form-grid { grid-template-columns: 1fr; }
  .cat-header h1 { font-size: 22px; }
  .footer-grid { gap: 20px; }
  .site-logo { font-size: 16px; }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent,var(--red)); }
.breadcrumb .bc-sep { color: var(--border); font-size: 14px; }
.breadcrumb span:last-child { color: var(--dark); font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */
.art-page-header { margin-bottom: 24px; }
.art-page-cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent,var(--red));
  text-decoration: none;
  margin-bottom: 12px;
}
.art-page-cat:hover { opacity: 0.8; }
.art-page-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.art-page-meta {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 24px;
}
.art-page-meta strong { color: var(--dark); }

.art-hero-wrap { margin-bottom: 28px; }
.art-hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article body typography */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark);
  max-width: 700px;
}
.article-body h2 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--dark);
  line-height: 1.3;
}
.article-body h3 {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 6px; line-height: 1.7; }
.article-body blockquote {
  border-left: 4px solid var(--accent,var(--red));
  margin: 24px 0;
  padding: 12px 20px;
  background: #fafafa;
  font-style: italic;
  color: var(--mid);
}
.article-body img { max-width: 100%; height: auto; margin: 16px 0; }
.article-body a { color: var(--accent,var(--red)); text-decoration: underline; }
.article-body a:hover { opacity: 0.8; }
.article-body strong { font-weight: 700; color: var(--dark); }
.article-body pre { background: #f4f4f4; padding: 16px; overflow-x: auto; font-size: 13px; margin-bottom: 18px; }
.article-body code { background: #f4f4f4; padding: 2px 6px; font-size: 13px; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

.art-page-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--mid);
  text-decoration: none;
}
.art-tag:hover { border-color: var(--accent,var(--red)); color: var(--accent,var(--red)); }

/* Page links (multi-page posts) */
.page-links { margin: 24px 0; font-size: 13px; font-weight: 600; }
.page-links a { margin: 0 4px; color: var(--accent,var(--red)); }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-articles { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--border); }
.related-header { margin-bottom: 20px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card a { text-decoration: none; display: block; }
.related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}
.related-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1B2B3B, #2C4A60);
  margin-bottom: 10px;
}
.related-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent,var(--red));
  margin-bottom: 6px;
}
.related-card h4 {
  font-family: 'Merriweather', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin: 0 0 6px;
}
.related-card h4:hover { color: var(--accent,var(--red)); }
.related-date { font-size: 11px; color: var(--muted); }
.related-header .section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); border-bottom: 2px solid var(--accent,var(--red)); padding-bottom: 4px; }

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .related-card img { aspect-ratio: 16/7; }
  .article-body { font-size: 15px; }
  .art-page-title { font-size: 22px; }
}

/* ============================================================
   LOAD MORE / PAGINATION
   ============================================================ */
.load-more-wrap {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.load-more-wrap .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 2px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--mid);
  text-decoration: none;
}
.load-more-wrap .page-numbers.current,
.load-more-wrap .page-numbers:hover { background: var(--accent,var(--red)); color: #fff; border-color: var(--accent,var(--red)); }
.load-more-wrap .nav-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
