/*
Theme Name: Neo Tattoos Theme
Theme URI: https://bilalahmad.site/neo-tattoos-theme
Author: NeoThe1
Author URI: https://bilalahmad.site
Description: Lightweight editorial theme for UpcycleGuide — sustainable DIY niche.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: Proprietary
Text Domain: neo-tattoos-theme
*/

:root {
  /* ── UpcycleGuide Colors ── */
  --tj-bg-primary:      #F5F2EC;   /* recycled paper */
  --tj-bg-surface:      #FFFFFF;
  --tj-bg-secondary:    #EBE6DA;   /* aged parchment */
  --tj-text-primary:    #252018;
  --tj-text-secondary:  #524832;
  --tj-text-tertiary:   #9A8C74;
  --tj-heading-color:   #252018;
  --tj-accent:          #5C7A3E;   /* olive green */
  --tj-accent-hover:    #4A6430;
  --tj-cta:             #B84C2A;   /* rust */
  --tj-cta-hover:       #9A3C1E;
  --tj-border:          #DDD5C4;
  --tj-border-light:    #EAE3D5;
  --tj-header-bg:       #FFFFFF;

  /* ── Typography ── */
  --tj-font-heading: 'Playfair Display', Georgia, serif;
  --tj-font-body:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Layout ── */
  --tj-container:        1200px;
  --tj-container-narrow: 780px;
  --tj-gap:              24px;
  --tj-radius:           4px;       /* very tight — raw/natural feel */
  --tj-radius-sm:        2px;
  --tj-radius-pill:      100px;

  /* ── Card shadows — earthy olive tint ── */
  --tj-card-border:       rgba(92, 122, 62, 0.18);
  --tj-card-shadow:       0 2px 10px rgba(92, 122, 62, 0.07);
  --tj-card-shadow-hover: 0 8px 24px rgba(92, 122, 62, 0.16);

  --tj-ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --tj-speed: 0.25s;
}

/* ══════════════════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--tj-font-body);
  color: var(--tj-text-primary);
  background: var(--tj-bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.tj-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--tj-font-heading); font-weight: 400; line-height: 1.35; color: var(--tj-heading-color); }

/* ══════════════════════════════════════════════════
   Container
   ══════════════════════════════════════════════════ */
.tj-container { width: 100%; max-width: var(--tj-container); margin: 0 auto; padding: 0 20px; }

/* ══════════════════════════════════════════════════
   Pills & Buttons
   ══════════════════════════════════════════════════ */
.tj-filter-pills, .tj-hero-pills { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }

.tj-filter-pill,
.tj-hero-pill,
.tj-single-cat-pill,
.tj-tab-btn,
.tj-author-btn {
  display: inline-flex; align-items: center;
  padding: 7px 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius-pill);
  background: var(--tj-bg-surface); color: var(--tj-text-secondary);
  transition: all var(--tj-speed) var(--tj-ease); text-decoration: none;
}
.tj-filter-pill:hover, .tj-filter-pill.active,
.tj-tab-btn:hover, .tj-tab-btn.active,
.tj-hero-pill:hover, .tj-single-cat-pill:hover, .tj-author-btn:hover {
  background: var(--tj-accent); color: #fff; border-color: var(--tj-accent);
}
.tj-single-cat-pill { padding: 4px 18px; margin: 12px 0; }
.tj-author-btn { margin-top: 24px; padding: 12px 48px; }

/* ══════════════════════════════════════════════════
   Progress Bar
   ══════════════════════════════════════════════════ */
.tj-progress-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 9999; }
.tj-progress-fill { height: 100%; width: 0; background: var(--tj-accent); transition: width 0.1s linear; }

/* ══════════════════════════════════════════════════
   Top Bar
   ══════════════════════════════════════════════════ */
.tj-top-bar { background: var(--tj-bg-secondary); border-bottom: 1px solid var(--tj-border-light); overflow: hidden; height: 50px; }
.tj-top-bar-track { display: flex; align-items: center; gap: 0; width: max-content; animation: tj-marquee 60s linear infinite; }
.tj-top-bar-item { display: flex; align-items: center; gap: 8px; padding: 5px; font-size: 13px; color: var(--tj-text-secondary); border-right: 1px solid var(--tj-border-light); transition: color var(--tj-speed) var(--tj-ease); flex-shrink: 0; max-width: 260px; }
.tj-top-bar-item:hover { color: var(--tj-text-primary); }
.tj-top-bar-item img { width: 60px; height: 40px; border-radius: var(--tj-radius-sm); object-fit: cover; flex-shrink: 0; }
.tj-top-bar-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; white-space: normal; }
@keyframes tj-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════
   Header
   ══════════════════════════════════════════════════ */
.tj-header { position: sticky; top: 0; z-index: 1000; background: var(--tj-header-bg); border-bottom: 1px solid var(--tj-border-light); transition: box-shadow var(--tj-speed) var(--tj-ease); }
.tj-header.scrolled { box-shadow: 0 2px 16px rgba(37,32,24,0.06); }
.tj-header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.tj-header-brand a, .tj-site-title { font-family: var(--tj-font-heading); font-size: 21px; letter-spacing: 0.3px; color: var(--tj-text-primary); }
.tj-nav { margin: 0 auto; }
.tj-nav-list { display: flex; list-style: none; gap: 28px; align-items: center; }
.tj-nav-list li a { font-size: 13px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--tj-text-secondary); padding: 6px 0; position: relative; transition: color var(--tj-speed) var(--tj-ease); }
.tj-nav-list li a:hover, .tj-nav-list li.current-menu-item > a, .tj-nav-list li.current-menu-parent > a { color: var(--tj-accent); }
.tj-nav-list li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--tj-accent); transition: width var(--tj-speed) var(--tj-ease); }
.tj-nav-list li a:hover::after, .tj-nav-list li.current-menu-item > a::after { width: 100%; }
.tj-nav-list li { position: relative; }
.tj-nav-list .sub-menu { position: absolute; top: 100%; left: -12px; background: var(--tj-bg-surface); border: 1px solid var(--tj-border-light); border-radius: var(--tj-radius); min-width: 200px; list-style: none; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--tj-speed) var(--tj-ease); box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
.tj-nav-list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.tj-nav-list .sub-menu li a { display: block; padding: 8px 20px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.tj-nav-list .sub-menu li a::after { display: none; }
.tj-header-actions { display: flex; align-items: center; gap: 16px; }
.tj-search-toggle { display: flex; align-items: center; color: var(--tj-text-secondary); transition: color var(--tj-speed) var(--tj-ease); }
.tj-search-toggle:hover { color: var(--tj-accent); }
.tj-header-btn { display: inline-flex; padding: 8px 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; background: var(--tj-accent); color: #fff; border-radius: var(--tj-radius-pill); transition: background var(--tj-speed) var(--tj-ease); }
.tj-header-btn:hover { background: var(--tj-accent-hover); }
.tj-menu-toggle { display: none; width: 24px; height: 24px; position: relative; }
.tj-hamburger, .tj-hamburger::before, .tj-hamburger::after { position: absolute; width: 20px; height: 2px; background: var(--tj-text-primary); transition: all var(--tj-speed) var(--tj-ease); }
.tj-hamburger { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.tj-hamburger::before { content: ''; top: -6px; left: 0; }
.tj-hamburger::after { content: ''; top: 6px; left: 0; }
.tj-menu-toggle[aria-expanded="true"] .tj-hamburger { background: transparent; }
.tj-menu-toggle[aria-expanded="true"] .tj-hamburger::before { top: 0; transform: rotate(45deg); }
.tj-menu-toggle[aria-expanded="true"] .tj-hamburger::after { top: 0; transform: rotate(-45deg); }
.tj-search-overlay { position: absolute; top: 100%; left: 0; width: 100%; background: var(--tj-bg-surface); border-bottom: 1px solid var(--tj-border); padding: 20px 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all var(--tj-speed) var(--tj-ease); }
.tj-search-overlay.open { opacity: 1; visibility: visible; transform: translateY(0); }
.tj-search-form { display: flex; gap: 12px; max-width: 600px; margin: 0 auto; }
.tj-search-input { flex: 1; padding: 12px 16px; font-size: 15px; border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius); background: var(--tj-bg-primary); font-family: var(--tj-font-body); outline: none; transition: border-color var(--tj-speed) var(--tj-ease); }
.tj-search-input:focus { border-color: var(--tj-accent); }
.tj-search-submit { display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--tj-accent); color: #fff; border-radius: var(--tj-radius); transition: background var(--tj-speed) var(--tj-ease); }
.tj-search-submit:hover { background: var(--tj-accent-hover); }

/* ══════════════════════════════════════════════════
   Main
   ══════════════════════════════════════════════════ */
.tj-main { min-height: 60vh; }

/* ══════════════════════════════════════════════════
   Hero — leaf-vein texture + earthy tones
   ══════════════════════════════════════════════════ */
.tj-hero {
  text-align: center;
  padding: 72px 20px 56px;
  background: var(--tj-bg-secondary);
  position: relative;
  background-image:
    linear-gradient(rgba(92,122,62,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,122,62,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.tj-hero-has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; color: #fff; }
.tj-hero-has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(37,32,24,0.55); }
.tj-hero-has-bg .tj-hero-inner { position: relative; z-index: 1; }
.tj-hero-has-bg .tj-hero-title, .tj-hero-has-bg .tj-hero-subheading, .tj-hero-has-bg .tj-hero-desc { color: #fff; }
.tj-hero-inner { max-width: 680px; margin: 0 auto; }
.tj-hero-subheading {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--tj-accent); margin-bottom: 18px;
}
.tj-hero-subheading::before { content: '♻'; font-size: 14px; opacity: 0.8; }
.tj-hero-title { font-size: clamp(30px, 4.5vw, 50px); margin-bottom: 16px; font-weight: 400; }
.tj-hero-desc { font-size: 16px; color: var(--tj-text-secondary); max-width: 520px; margin: 0 auto 28px; line-height: 1.7; }
.tj-hero-has-bg .tj-hero-pill { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
.tj-hero-has-bg .tj-hero-pill:hover { background: var(--tj-accent); border-color: var(--tj-accent); }

/* ══════════════════════════════════════════════════
   Section Common
   ══════════════════════════════════════════════════ */
.tj-section { padding: 56px 0; }
.tj-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.tj-section-title { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 0; position: relative; display: inline-block; }
.tj-section-title::after { content: ''; display: block; width: 36px; height: 3px; background: var(--tj-accent); margin-top: 6px; border-radius: 2px; }
.tj-cat-carousel-section .tj-section-title::after,
.tj-tabs-section .tj-section-title::after,
.tj-mission-section .tj-section-title::after { margin-left: auto; margin-right: auto; }
.tj-section-link { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: var(--tj-accent); text-transform: uppercase; transition: color var(--tj-speed) var(--tj-ease); }
.tj-section-link:hover { color: var(--tj-accent-hover); }

/* ══════════════════════════════════════════════════
   Category Carousel — rough-edge natural cards
   ══════════════════════════════════════════════════ */
.tj-cat-carousel-section { background: var(--tj-bg-surface); border-top: 1px solid var(--tj-border-light); border-bottom: 1px solid var(--tj-border-light); }
.tj-cat-carousel-section .tj-section-title { text-align: center; margin-bottom: 36px; }
.tj-cat-carousel-outer { overflow: hidden; padding: 10px 0 14px; }
.tj-cat-carousel-track { display: flex; gap: 16px; width: max-content; animation: tj-marquee 40s linear infinite; }
.tj-cat-carousel-section:hover .tj-cat-carousel-track { animation-play-state: paused; }
/* Torn-paper card style */
.tj-cat-card {
  flex: 0 0 155px; text-align: center; padding: 24px 14px;
  background: var(--tj-bg-primary);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  position: relative;
  transition: all var(--tj-speed) var(--tj-ease);
}
.tj-cat-card::before {
  content: '';
  position: absolute; top: -2px; left: 0; right: 0; height: 3px;
  background: var(--tj-accent);
  border-radius: var(--tj-radius) var(--tj-radius) 0 0;
  transform: scaleX(0);
  transition: transform var(--tj-speed) var(--tj-ease);
}
.tj-cat-card:hover::before { transform: scaleX(1); }
.tj-cat-card:hover { transform: translateY(-3px); box-shadow: var(--tj-card-shadow-hover); border-color: var(--tj-accent); }
.tj-cat-card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--tj-accent); }
.tj-cat-card-name { font-family: var(--tj-font-body); font-size: 13px; font-weight: 700; margin-bottom: 3px; color: var(--tj-text-primary); }
.tj-cat-card-count { font-size: 11px; color: var(--tj-text-tertiary); }

/* ══════════════════════════════════════════════════
   Tabbed Slider
   ══════════════════════════════════════════════════ */
.tj-tab-slider-wrap { position: relative; display: flex; align-items: center; gap: 4px; }
.tj-tab-slider { display: flex; gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1; min-width: 0; padding: 8px 4px 12px; }
.tj-tab-slider::-webkit-scrollbar { display: none; }
.tj-slider-nav-btn { flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--tj-bg-surface); border: 1.5px solid var(--tj-border); border-radius: 50%; color: var(--tj-text-secondary); transition: all var(--tj-speed) var(--tj-ease); z-index: 2; }
.tj-slider-nav-btn:hover { background: var(--tj-accent); border-color: var(--tj-accent); color: #fff; }
@media (max-width: 768px) { .tj-slider-nav-btn { display: none; } }

/* ══════════════════════════════════════════════════
   Archive
   ══════════════════════════════════════════════════ */
.tj-archive { max-width: var(--tj-container); margin: 0 auto; padding: 0 20px 60px; }
.tj-archive-filters { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 14px 20px; background: var(--tj-bg-secondary); border-radius: var(--tj-radius); margin: 28px 0; flex-wrap: wrap; }
.tj-archive-grid { display: grid; gap: var(--tj-gap); margin-top: 4px; margin-bottom: 40px; }
.tj-text-center { text-align: center; }

/* ══════════════════════════════════════════════════
   Author Section
   ══════════════════════════════════════════════════ */
.tj-author-section { background: var(--tj-bg-primary); border-top: 1px solid var(--tj-border-light); border-bottom: 1px solid var(--tj-border-light); }
.tj-author-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tj-author-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--tj-accent); margin-bottom: 14px; padding: 4px 14px; border: 1.5px solid var(--tj-accent); border-radius: var(--tj-radius-pill); }
.tj-author-heading { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; line-height: 1.2; }
.tj-author-desc { font-size: 15px; color: var(--tj-text-secondary); line-height: 1.8; }
.tj-author-image img, .tj-author-image .tj-author-placeholder { width: 100%; max-width: 400px; aspect-ratio: 1; object-fit: cover; border-radius: var(--tj-radius); margin: 0 auto; }
.tj-author-placeholder { display: flex; align-items: center; justify-content: center; background: var(--tj-bg-secondary); border: 2px dashed var(--tj-border); font-family: var(--tj-font-heading); font-size: 48px; color: var(--tj-accent); }

/* ══════════════════════════════════════════════════
   Post Grid & Cards
   ══════════════════════════════════════════════════ */
.tj-post-grid { display: grid; gap: var(--tj-gap); }
.tj-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tj-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tj-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tj-card { background: var(--tj-bg-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); overflow: hidden; transition: all var(--tj-speed) var(--tj-ease); }
.tj-card:hover { border-color: var(--tj-accent); transform: translateY(-3px); box-shadow: var(--tj-card-shadow-hover); }
.tj-card-link { display: block; }
.tj-card-image { overflow: hidden; aspect-ratio: 3/2; }
.tj-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--tj-ease); }
.tj-card:hover .tj-card-image img { transform: scale(1.04); }
.tj-card-placeholder { width: 100%; height: 100%; background: var(--tj-bg-secondary); }
.tj-card-body { padding: 18px 20px; }
.tj-card-cat { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tj-accent); margin-bottom: 7px; }
.tj-card-title { font-size: 17px; line-height: 1.35; margin-bottom: 8px; font-family: var(--tj-font-heading); }
.tj-card-meta { font-size: 12px; color: var(--tj-text-tertiary); }
.tj-meta-sep { margin: 0 5px; }

/* ══════════════════════════════════════════════════
   Tabs Section
   ══════════════════════════════════════════════════ */
.tj-tabs-section { background: var(--tj-bg-secondary); }
.tj-tabs-section .tj-section-title { text-align: center; margin-bottom: 28px; }
.tj-tabs-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tj-tab-panel { display: none; }
.tj-tab-panel.active { display: block; }
.tj-slider-card { flex: 0 0 210px; scroll-snap-align: start; background: var(--tj-bg-surface); border-radius: var(--tj-radius); overflow: hidden; border: 1px solid var(--tj-border); transition: all var(--tj-speed) var(--tj-ease); }
.tj-slider-card:hover { border-color: var(--tj-accent); transform: translateY(-2px); box-shadow: var(--tj-card-shadow-hover); }
.tj-slider-card-link { display: block; }
.tj-slider-card-image { overflow: hidden; aspect-ratio: 4/3; }
.tj-slider-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--tj-ease); }
.tj-slider-card:hover .tj-slider-card-image img { transform: scale(1.05); }
.tj-slider-card-title { font-family: var(--tj-font-body); font-size: 13px; font-weight: 600; padding: 12px 14px; line-height: 1.4; }

/* ══════════════════════════════════════════════════
   Mission Section
   ══════════════════════════════════════════════════ */
.tj-mission-section { background: var(--tj-bg-surface); border-top: 1px solid var(--tj-border-light); }
.tj-mission-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.tj-mission-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.tj-mission-text { font-size: 15px; color: var(--tj-text-secondary); line-height: 1.8; margin-bottom: 36px; }
.tj-mission-stats { display: flex; justify-content: center; gap: 40px; }
.tj-stat { text-align: center; }
.tj-stat-number { display: block; font-family: var(--tj-font-heading); font-size: 34px; color: var(--tj-accent); }
.tj-stat-label { font-size: 12px; color: var(--tj-text-tertiary); text-transform: uppercase; letter-spacing: 1.5px; }

/* ══════════════════════════════════════════════════
   Newsletter — olive green
   ══════════════════════════════════════════════════ */
.tj-newsletter-section { background: var(--tj-accent); }
.tj-newsletter-inner { text-align: center; max-width: 480px; margin: 0 auto; }
.tj-newsletter-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; color: #fff; }
.tj-newsletter-desc { color: rgba(255,255,255,0.82); margin-bottom: 24px; font-size: 15px; }
.tj-newsletter-form { display: flex; gap: 10px; }
.tj-newsletter-input { flex: 1; padding: 13px 18px; font-size: 14px; border: none; border-radius: var(--tj-radius); background: rgba(255,255,255,0.95); font-family: var(--tj-font-body); outline: none; }
.tj-newsletter-input:focus { background: #fff; }
.tj-newsletter-btn { padding: 13px 22px; background: var(--tj-cta); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; border: none; border-radius: var(--tj-radius); transition: background var(--tj-speed) var(--tj-ease); }
.tj-newsletter-btn:hover { background: var(--tj-cta-hover); }

/* ══════════════════════════════════════════════════
   Pagination
   ══════════════════════════════════════════════════ */
.tj-pagination { display: flex; justify-content: center; gap: 6px; padding-top: 16px; }
.tj-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius); color: var(--tj-text-secondary); background: var(--tj-bg-surface); transition: all var(--tj-speed) var(--tj-ease); }
.tj-page-link:hover, .tj-page-active { background: var(--tj-accent); color: #fff; border-color: var(--tj-accent); }
.tj-page-prev, .tj-page-next { padding: 0 14px; }
.tj-page-link.dots, .tj-page-link[aria-disabled="true"] { background: transparent; border-color: transparent; cursor: default; }

/* ══════════════════════════════════════════════════
   Single Post
   ══════════════════════════════════════════════════ */
.tj-single { max-width: var(--tj-container); margin: 0 auto; padding: 0 20px 60px; }
.tj-breadcrumbs { padding: 14px 0; font-size: 12px; color: var(--tj-text-tertiary); letter-spacing: 0.5px; text-transform: uppercase; }
.tj-breadcrumbs a { color: var(--tj-text-tertiary); transition: color var(--tj-speed) var(--tj-ease); }
.tj-breadcrumbs a:hover { color: var(--tj-accent); }
.tj-breadcrumbs .tj-breadcrumb-sep { margin: 0 8px; }
.tj-single-header { padding: 20px 0 28px; }
.tj-single-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 20px; line-height: 1.2; }
.tj-single-meta { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.tj-single-avatar { border-radius: 50%; object-fit: cover; content: url(""); height: 50px; width: 50px; }
.tj-single-meta-text { display: flex; flex-direction: column; gap: 2px; }
.tj-single-author { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
.tj-single-date { font-size: 13px; color: var(--tj-accent); }
.tj-single-layout { display: block; }
.tj-single-layout.tj-has-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
@media screen and (max-width: 960px) { .tj-single-layout.tj-has-sidebar { grid-template-columns: 100% !important; } }
.tj-single-featured { margin-bottom: 32px; border-radius: var(--tj-radius); overflow: hidden; }
.tj-single-featured img { width: 100%; border-radius: var(--tj-radius); }
.tj-entry-content { font-size: 16px; line-height: 1.8; color: var(--tj-text-primary); }
.tj-entry-content p { margin-bottom: 1.5em; text-align: justify; }
.tj-entry-content a { color: var(--tj-accent); text-decoration: underline; text-underline-offset: 3px; }
.tj-entry-content a:hover { color: var(--tj-accent-hover); }
.tj-entry-content img { border-radius: var(--tj-radius); margin: 1.5em 0; }
.tj-entry-content blockquote { border-left: 3px solid var(--tj-accent); padding: 16px 24px; margin: 1.5em 0; font-style: italic; color: var(--tj-text-secondary); background: var(--tj-bg-secondary); border-radius: 0 var(--tj-radius) var(--tj-radius) 0; }
.tj-entry-content ul, .tj-entry-content ol { margin: 1em 0 1.5em 1.5em; }
.tj-entry-content li { margin-bottom: 0.5em; }
.tj-drop-cap .tj-entry-content > p:first-of-type::first-letter { float: left; font-family: var(--tj-font-heading); font-size: 4em; line-height: 0.85; padding-right: 12px; padding-top: 6px; color: var(--tj-accent); }
.tj-entry-content h2, .tj-entry-content h3 { margin: 2em 0 0.8em; padding-left: 14px; border-left: 3px solid var(--tj-accent); }
.tj-entry-content h2 { font-size: clamp(20px, 2.5vw, 26px); }
.tj-entry-content h3 { font-size: clamp(17px, 2vw, 20px); }
pre, code, pre code { white-space: pre-wrap !important; word-wrap: break-word !important; word-break: break-word !important; max-width: 100% !important; }
iframe, embed, object, video { max-width: 100%; box-sizing: border-box; }

/* ══════════════════════════════════════════════════
   Social Share & Floating
   ══════════════════════════════════════════════════ */
.tj-share-inline { display: flex; gap: 10px; padding: 24px 0; border-top: 1px solid var(--tj-border-light); margin-top: 32px; }
.tj-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--tj-radius); border: 1.5px solid var(--tj-border); color: var(--tj-text-secondary); transition: all var(--tj-speed) var(--tj-ease); }
.tj-share-btn:hover { color: var(--tj-bg-surface); }
.tj-share-pinterest:hover { background: #E60023; border-color: #E60023; }
.tj-share-facebook:hover { background: #1877F2; border-color: #1877F2; }
.tj-share-x:hover { background: #000; border-color: #000; }
.tj-share-whatsapp:hover { background: #25D366; border-color: #25D366; }
.tj-share-copy:hover { background: var(--tj-accent); border-color: var(--tj-accent); }
.tj-share-copy.copied { background: #22c55e; border-color: #22c55e; color: #fff; }
.tj-floating-actions { position: fixed; right: 24px; bottom: 120px; display: flex; flex-direction: column-reverse; gap: 12px; z-index: 100; }
.tj-float-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--tj-bg-surface); border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius); box-shadow: 0 2px 10px rgba(0,0,0,0.07); color: var(--tj-text-secondary); transition: all var(--tj-speed) var(--tj-ease); }
.tj-float-btn:hover { color: var(--tj-accent); border-color: var(--tj-accent); }
.tj-bookmark-btn.bookmarked { color: var(--tj-accent); border-color: var(--tj-accent); }
.tj-share-floating { display: flex; flex-direction: column; gap: 8px; background-color: #fff; }
.tj-share-floating .tj-share-btn { width: 38px; height: 38px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* ══════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════ */
.faq-item { background: #fff; border: 1px solid var(--tj-border-light); border-radius: var(--tj-radius); margin-bottom: 8px; overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.faq-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.faq-item.open { border-color: var(--tj-accent); }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 20px !important; font-size: 15px; font-weight: 700; text-align: left; font-family: var(--tj-font-body); color: var(--tj-text-primary); background: none; border: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.faq-question:hover, .faq-item.open .faq-question { background: var(--tj-accent); color: #fff !important; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--tj-ease); }
.faq-item.open .faq-answer { max-height: 2000px !important; padding: 15px; }

/* ══════════════════════════════════════════════════
   Related Posts
   ══════════════════════════════════════════════════ */
.tj-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--tj-border-light); }
.tj-related .tj-section-title { margin-bottom: 24px; }
.tj-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tj-related-slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
.tj-related-slider::-webkit-scrollbar { display: none; }
.tj-related-slider .tj-card { flex: 0 0 270px; scroll-snap-align: start; }

/* ══════════════════════════════════════════════════
   Sidebar
   ══════════════════════════════════════════════════ */
.tj-sidebar-sticky { position: sticky; top: 88px; }
.tj-sidebar-widget { padding: 22px; margin-bottom: 20px; background: var(--tj-bg-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); }
.tj-sidebar-widget-title { font-size: 17px; margin-bottom: 14px; }
.tj-sidebar-search-form { display: flex; }
.tj-sidebar-search-input { flex: 1; padding: 10px 12px; font-size: 14px; border: 1.5px solid var(--tj-border); border-right: none; border-radius: var(--tj-radius) 0 0 var(--tj-radius); background: var(--tj-bg-primary); font-family: var(--tj-font-body); outline: none; }
.tj-sidebar-search-input:focus { border-color: var(--tj-accent); }
.tj-sidebar-search-btn { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--tj-border); border-left: none; border-radius: 0 var(--tj-radius) var(--tj-radius) 0; background: var(--tj-bg-primary); color: var(--tj-text-tertiary); }
.tj-sidebar-posts-list { display: flex; flex-direction: column; gap: 14px; }
.tj-sidebar-post-item { display: flex; gap: 10px; align-items: center; }
.tj-sidebar-post-thumb { width: 72px; height: 72px; border-radius: var(--tj-radius-sm); object-fit: cover; flex-shrink: 0; }
.tj-sidebar-post-info { display: flex; flex-direction: column; gap: 3px; }
.tj-sidebar-post-cat { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--tj-accent); text-transform: uppercase; }
.tj-sidebar-post-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--tj-text-primary); transition: color var(--tj-speed) var(--tj-ease); }
.tj-sidebar-post-item:hover .tj-sidebar-post-title { color: var(--tj-accent); }
.tj-sidebar-cat-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.tj-sidebar-cat-pill { display: inline-flex; padding: 5px 12px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius-pill); color: var(--tj-text-secondary); transition: all var(--tj-speed) var(--tj-ease); }
.tj-sidebar-cat-pill:hover, .tj-sidebar-cat-pill.active { background: var(--tj-accent); color: #fff; border-color: var(--tj-accent); }
.tj-sidebar-newsletter { background: var(--tj-bg-secondary); }
.tj-sidebar-newsletter-desc { font-size: 13px; color: var(--tj-text-secondary); margin-bottom: 14px; }
.tj-sidebar-newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.tj-sidebar-newsletter-input { padding: 11px 14px; font-size: 13px; border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius); background: var(--tj-bg-surface); font-family: var(--tj-font-body); outline: none; }
.tj-sidebar-newsletter-input:focus { border-color: var(--tj-accent); }
.tj-sidebar-newsletter-btn { padding: 11px; background: var(--tj-cta); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; border: none; border-radius: var(--tj-radius); transition: background var(--tj-speed) var(--tj-ease); }
.tj-sidebar-newsletter-btn:hover { background: var(--tj-cta-hover); }

/* ══════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════ */
.tj-footer { background: #1A1A10; border-top: 1px solid var(--tj-border-light); }
.tj-footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 32px 20px; }
.tj-footer-logo { font-family: var(--tj-font-heading); font-size: 20px; color: #fff; }
.tj-footer-menu { display: flex; list-style: none; gap: 24px; }
.tj-footer-menu li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color var(--tj-speed) var(--tj-ease); }
.tj-footer-menu li a:hover { color: var(--tj-accent); }
.tj-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
.tj-footer-bottom-inner { text-align: center; }
.tj-copyright { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ══════════════════════════════════════════════════
   Cookie Banner
   ══════════════════════════════════════════════════ */
.tj-cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--tj-text-primary); color: var(--tj-bg-primary); z-index: 9998; padding: 14px 0; }
.tj-cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tj-cookie-inner p { font-size: 13px; margin: 0; }
.tj-cookie-inner a { color: var(--tj-accent); text-decoration: underline; }
.tj-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.tj-cookie-accept { padding: 8px 18px; background: var(--tj-accent); color: #fff; font-size: 12px; font-weight: 700; border: none; border-radius: var(--tj-radius); }
.tj-cookie-decline { padding: 8px 18px; background: transparent; color: var(--tj-bg-primary); font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--tj-radius); }

/* ══════════════════════════════════════════════════
   Back to Top
   ══════════════════════════════════════════════════ */
.tj-back-to-top { position: fixed; bottom: 24px; right: 15px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--tj-accent); color: #fff; border-radius: var(--tj-radius); box-shadow: 0 4px 14px rgba(92,122,62,0.35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--tj-speed) var(--tj-ease); z-index: 99; }
.tj-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ══════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════ */
.tj-404 { padding: 60px 0; }
.tj-404-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.tj-404-code { display: block; font-family: var(--tj-font-heading); font-size: clamp(64px, 10vw, 120px); color: var(--tj-border); line-height: 1; margin-bottom: 8px; }
.tj-404-title { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.tj-404-desc { color: var(--tj-text-secondary); margin-bottom: 28px; }
.tj-404-search { display: flex; gap: 12px; max-width: 440px; margin: 0 auto 32px; }
.tj-404-search-input { flex: 1; padding: 13px 16px; font-size: 14px; border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius); background: var(--tj-bg-surface); font-family: var(--tj-font-body); outline: none; }
.tj-404-search-btn { padding: 13px 22px; background: var(--tj-accent); color: #fff; font-size: 13px; font-weight: 700; border: none; border-radius: var(--tj-radius); }
.tj-404-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 48px; }
.tj-404-latest { text-align: left; }
.tj-404-latest .tj-section-title { text-align: center; margin-bottom: 24px; }

/* ══════════════════════════════════════════════════
   Pages — About / Contact / Legal
   ══════════════════════════════════════════════════ */
.tj-page { padding: 48px 0 60px; }
.tj-page-inner { max-width: var(--tj-container-narrow); margin: 0 auto; }
.tj-page-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 32px; text-align: center; }
.tj-page-content { font-size: 16px; line-height: 1.8; }
.tj-about { padding: 48px 0 60px; }
.tj-about-header { text-align: center; padding: 32px 0 48px; }
.tj-about-monogram { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; border: 2px solid var(--tj-accent); border-radius: var(--tj-radius); font-family: var(--tj-font-heading); font-size: 26px; color: var(--tj-accent); background: var(--tj-bg-secondary); }
.tj-about-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.tj-about-tagline { font-size: 14px; color: var(--tj-text-secondary); letter-spacing: 1px; }
.tj-about-section-title { font-size: clamp(20px, 3vw, 28px); margin-bottom: 8px; }
.tj-about-gold-line { width: 48px; height: 3px; background: var(--tj-accent); margin-bottom: 24px; border-radius: 2px; }
.tj-about-gold-line.tj-center { margin: 0 auto 32px; }
.tj-about-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 50px 0; }
.tj-about-mission-text p { color: var(--tj-text-secondary); line-height: 1.8; margin-bottom: 1em; }
.tj-about-mission-image img { width: 100%; border-radius: var(--tj-radius); }
.tj-about-covers { padding: 50px 0; }
.tj-about-covers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tj-about-cover-card { text-align: center; padding: 28px 16px; background: var(--tj-bg-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); transition: all var(--tj-speed) var(--tj-ease); }
.tj-about-cover-card:hover { border-color: var(--tj-accent); transform: translateY(-3px); box-shadow: var(--tj-card-shadow-hover); }
.tj-about-cover-icon { color: var(--tj-accent); margin-bottom: 14px; }
.tj-about-cover-card h3 { font-family: var(--tj-font-heading); font-size: 17px; margin-bottom: 7px; }
.tj-about-cover-card p { font-size: 13px; color: var(--tj-text-secondary); line-height: 1.6; }
.tj-about-trust { padding: 48px 0; }
.tj-about-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tj-about-trust-item { padding: 22px 22px 22px 18px; border-left: 3px solid var(--tj-accent); border-radius: 0 var(--tj-radius) var(--tj-radius) 0; background: var(--tj-bg-surface); }
.tj-about-trust-item h3 { font-family: var(--tj-font-heading); font-size: 17px; margin-bottom: 7px; }
.tj-about-trust-item p { font-size: 13px; color: var(--tj-text-secondary); line-height: 1.7; }
.tj-about-extra { padding-top: 48px; }
.tj-contact-header { text-align: center; margin-bottom: 40px; }
.tj-about-label { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--tj-accent); margin-bottom: 12px; }
.tj-contact-desc { max-width: 500px; margin: 0 auto; color: var(--tj-text-secondary); }
.tj-contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; max-width: var(--tj-container); }
.tj-contact-info-item { margin-bottom: 22px; }
.tj-contact-info-item h3 { font-size: 15px; margin-bottom: 3px; }
.tj-contact-info-item p { font-size: 14px; color: var(--tj-text-secondary); }
.tj-contact-info-item a { color: var(--tj-accent); text-decoration: underline; text-underline-offset: 3px; }
.tj-legal { padding-bottom: 60px; }
.tj-legal-updated, .tj-guidelines-updated { text-align: center; font-size: 13px; color: var(--tj-text-tertiary); margin: -20px 0 32px; }
.tj-legal-content h2 { margin-top: 2em; font-size: 20px; padding-left: 0; border-left: none; }
.tj-legal-footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--tj-border-light); font-size: 13px; color: var(--tj-text-secondary); }
.tj-legal-footer a { color: var(--tj-accent); }
.tj-no-results { text-align: center; padding: 60px 20px; }
.tj-no-results-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.tj-no-results-desc { color: var(--tj-text-secondary); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.tj-no-results-search { display: flex; gap: 12px; max-width: 400px; margin: 0 auto 24px; }
.tj-no-results-input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius); font-family: var(--tj-font-body); font-size: 14px; outline: none; }
.tj-no-results-btn { padding: 12px 18px; background: var(--tj-accent); color: #fff; font-size: 13px; font-weight: 700; border: none; border-radius: var(--tj-radius); }
.tj-no-results-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ══════════════════════════════════════════════════
   Accessibility
   ══════════════════════════════════════════════════ */
*:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--tj-accent); outline-offset: 2px; border-radius: var(--tj-radius-sm); }
.tj-skip-link { position: absolute; top: -100px; left: 0; z-index: 10000; padding: 10px 18px; background: var(--tj-accent); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.tj-skip-link:focus { top: 0; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* ══════════════════════════════════════════════════
   Footer Widgets
   ══════════════════════════════════════════════════ */
.tj-footer-widgets { background: #141410; padding: 44px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.tj-footer-widgets-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.tj-footer-widget-title { font-family: var(--tj-font-heading); font-size: 17px; margin-bottom: 14px; color: rgba(255,255,255,0.8); }
.tj-footer-widget ul { list-style: none; padding: 0; }
.tj-footer-widget ul li { margin-bottom: 8px; }
.tj-footer-widget ul li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color var(--tj-speed) var(--tj-ease); }
.tj-footer-widget ul li a:hover { color: var(--tj-accent); }

/* ══════════════════════════════════════════════════
   Sidebar Author Widget
   ══════════════════════════════════════════════════ */
.tj-sidebar-author { text-align: center; }
.tj-sidebar-author-img-wrap { display: inline-block; padding: 3px; border-radius: var(--tj-radius); border: 2px solid var(--tj-border); margin-bottom: 12px; transition: all var(--tj-speed) var(--tj-ease); }
.tj-sidebar-author:hover .tj-sidebar-author-img-wrap { border-color: var(--tj-accent); }
.tj-sidebar-author-img { width: 80px; height: 80px; border-radius: var(--tj-radius); object-fit: cover; display: block; }
.tj-sidebar-author-name { font-size: 15px; font-weight: 700; font-family: var(--tj-font-body); color: var(--tj-text-primary); margin-bottom: 3px; }
.tj-sidebar-author-role { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tj-accent); margin-bottom: 10px; }
.tj-sidebar-author-bio { font-size: 13px; line-height: 1.6; color: var(--tj-text-secondary); margin-bottom: 12px; }
.tj-sidebar-author-social { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.tj-author-social-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--tj-radius-sm); border: 1.5px solid var(--tj-border); color: var(--tj-text-secondary); transition: all var(--tj-speed) var(--tj-ease); }
.tj-author-social-link:hover { background: var(--tj-accent); border-color: var(--tj-accent); color: #fff; }
.tj-sidebar-author-btn { display: block; padding: 9px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-align: center; background: transparent; border: 1.5px solid var(--tj-border); border-radius: var(--tj-radius); color: var(--tj-text-secondary); transition: all var(--tj-speed) var(--tj-ease); }
.tj-sidebar-author-btn:hover { background: var(--tj-accent); border-color: var(--tj-accent); color: #fff; }

/* ══════════════════════════════════════════════════
   Infinite Scroll
   ══════════════════════════════════════════════════ */
.tj-load-sentinel { height: 60px; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.tj-load-spinner { width: 30px; height: 30px; border: 3px solid var(--tj-border-light); border-top-color: var(--tj-accent); border-radius: 50%; animation: tj-spin 0.7s linear infinite; }
@keyframes tj-spin { to { transform: rotate(360deg); } }
.tj-load-end { font-size: 13px; color: var(--tj-text-tertiary); text-align: center; padding: 16px 0; }

/* ══════════════════════════════════════════════════
   Page Hero
   ══════════════════════════════════════════════════ */
.tj-page-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; background-color: var(--tj-accent); background-image: linear-gradient(135deg, var(--tj-text-primary) 0%, #524832 100%); background-size: cover; background-position: center center; overflow: hidden; }
.tj-page-hero-overlay { position: absolute; inset: 0; z-index: 1; }
.tj-page-hero-inner { position: relative; z-index: 2; padding: 44px 20px; max-width: var(--tj-container); width: 100%; margin: 0 auto; }
.tj-hero-align-center .tj-page-hero-inner { text-align: center; }
.tj-hero-align-left   .tj-page-hero-inner { text-align: left; }
.tj-hero-align-right  .tj-page-hero-inner { text-align: right; }
.tj-page-hero-title { font-family: var(--tj-font-heading); font-size: clamp(26px, 4vw, 48px); font-weight: 400; line-height: 1.2; color: #fff; margin: 0 0 10px; }
.tj-page-hero-desc { font-size: clamp(14px, 1.5vw, 16px); color: rgba(255,255,255,0.8); max-width: 580px; line-height: 1.7; margin: 0; }
.tj-hero-align-center .tj-page-hero-desc { margin: 0 auto; }
.tj-page-hero-animate .tj-page-hero-title, .tj-page-hero-animate .tj-page-hero-desc { animation: tj-hero-fadein 0.6s var(--tj-ease) both; }
.tj-page-hero-animate .tj-page-hero-desc { animation-delay: 0.1s; }
@keyframes tj-hero-fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .tj-page-hero { min-height: 220px; } .tj-page-hero-inner { padding: 28px 20px; } }

/* ══════════════════════════════════════════════════
   Section Color Variables
   ══════════════════════════════════════════════════ */
:root {
  --tj-hero-bg:                var(--tj-bg-secondary);
  --tj-hero-heading:           var(--tj-heading-color);
  --tj-hero-text:              var(--tj-text-secondary);
  --tj-carousel-bg:            var(--tj-bg-surface);
  --tj-carousel-heading:       var(--tj-heading-color);
  --tj-author-section-bg:      var(--tj-bg-primary);
  --tj-author-section-heading: var(--tj-heading-color);
  --tj-author-section-text:    var(--tj-text-secondary);
  --tj-posts-section-bg:       var(--tj-bg-surface);
  --tj-posts-section-heading:  var(--tj-heading-color);
  --tj-mission-bg:             var(--tj-bg-surface);
  --tj-mission-heading:        var(--tj-heading-color);
  --tj-mission-text:           var(--tj-text-secondary);
  --tj-newsletter-bg:          var(--tj-accent);
  --tj-newsletter-heading:     #ffffff;
  --tj-newsletter-text:        rgba(255,255,255,0.82);
  --tj-newsletter-btn:         var(--tj-cta);
  --tj-about-mission-bg:       var(--tj-bg-primary);
  --tj-about-mission-heading:  var(--tj-heading-color);
  --tj-about-mission-text:     var(--tj-text-secondary);
  --tj-covers-bg:              var(--tj-bg-surface);
  --tj-covers-heading:         var(--tj-heading-color);
  --tj-covers-text:            var(--tj-text-secondary);
  --tj-trust-bg:               var(--tj-bg-primary);
  --tj-trust-heading:          var(--tj-heading-color);
  --tj-trust-text:             var(--tj-text-secondary);
}
.tj-hero { background: var(--tj-hero-bg); }
.tj-hero-title { color: var(--tj-hero-heading); }
.tj-hero-desc { color: var(--tj-hero-text); }
.tj-cat-carousel-section { background: var(--tj-carousel-bg); }
.tj-cat-carousel-section .tj-section-title { color: var(--tj-carousel-heading); }
.tj-author-section { background: var(--tj-author-section-bg); }
.tj-author-heading { color: var(--tj-author-section-heading); }
.tj-author-desc { color: var(--tj-author-section-text); }
.tj-latest-section { background: var(--tj-posts-section-bg); }
.tj-latest-section .tj-section-title { color: var(--tj-posts-section-heading); }
.tj-mission-section { background: var(--tj-mission-bg); }
.tj-mission-title { color: var(--tj-mission-heading); }
.tj-mission-text { color: var(--tj-mission-text); }
.tj-newsletter-section { background: var(--tj-newsletter-bg); }
.tj-newsletter-title { color: var(--tj-newsletter-heading); }
.tj-newsletter-desc { color: var(--tj-newsletter-text); }
.tj-about-mission { background: var(--tj-about-mission-bg); }
.tj-about-mission-text h2 { color: var(--tj-about-mission-heading); }
.tj-about-mission-text p { color: var(--tj-about-mission-text); }
.tj-about-covers .tj-about-section-title { color: var(--tj-covers-heading); }
.tj-about-cover-card h3 { color: var(--tj-covers-heading); }
.tj-about-cover-card p { color: var(--tj-covers-text); }
.tj-about-trust { background: var(--tj-trust-bg); }
.tj-about-trust-item h3 { color: var(--tj-trust-heading); }
.tj-about-trust-item p { color: var(--tj-trust-text); }

/* ══════════════════════════════════════════════════
   WP Alignment / Print / Reduced Motion
   ══════════════════════════════════════════════════ */
.aligncenter { display: block; margin: 1.5em auto; }
.alignleft { float: left; margin: 0.5em 1.5em 0.5em 0; }
.alignright { float: right; margin: 0.5em 0 0.5em 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--tj-text-tertiary); text-align: center; margin-top: 6px; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-item { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } .tj-top-bar-track, .tj-cat-carousel-track { animation: none; } }
@media print { .tj-header, .tj-top-bar, .tj-footer, .tj-cookie-banner, .tj-back-to-top, .tj-floating-actions, .tj-progress-bar, .tj-share-inline, .tj-sidebar { display: none !important; } body { font-size: 12pt; line-height: 1.6; } .tj-single-layout.tj-has-sidebar { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════
   Responsive — Tablet (≤ 960px)
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .tj-single-layout.tj-has-sidebar { grid-template-columns: 1fr; gap: 40px; }
  .tj-about-mission { grid-template-columns: 1fr; gap: 32px; }
  .tj-about-covers-grid { grid-template-columns: repeat(2, 1fr); }
  .tj-about-trust-grid { grid-template-columns: 1fr; }
  .tj-contact-layout { grid-template-columns: 1fr; }
  .tj-related-grid { grid-template-columns: repeat(2, 1fr); }
  .tj-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tj-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tj-author-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .tj-author-image img, .tj-author-image .tj-author-placeholder { max-width: 280px; }
  .tj-author-label { margin: 0 auto 16px; }
  .tj-mission-stats { gap: 28px; }
}

/* ══════════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tj-hide-mobile { display: none !important; }
  .tj-header-inner { height: 58px; }
  .tj-menu-toggle { display: flex; }
  .tj-nav { position: fixed; top: 58px; left: 0; width: 100%; height: calc(100vh - 58px); background: var(--tj-bg-surface); transform: translateX(-100%); transition: transform var(--tj-speed) var(--tj-ease); overflow-y: auto; z-index: 999; }
  .tj-nav.open { transform: translateX(0); }
  .tj-nav-list { flex-direction: column; gap: 0; padding: 16px; }
  .tj-nav-list li a { display: block; padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--tj-border-light); }
  .tj-nav-list li a::after { display: none; }
  .tj-nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; background: transparent; }
  .tj-header-btn { display: none; }
  .tj-hero { padding: 44px 20px 36px; }
  .tj-hero-title { font-size: 26px; }
  .tj-grid-2, .tj-grid-3, .tj-grid-4 { grid-template-columns: 1fr; }
  .tj-related-grid { grid-template-columns: 1fr; }
  .tj-archive-filters { flex-direction: column; align-items: stretch; }
  .tj-newsletter-form { flex-direction: column; }
  .tj-cookie-inner { flex-direction: column; text-align: center; }
  .tj-footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .tj-footer-menu { flex-wrap: wrap; justify-content: center; }
  .tj-floating-actions { right: 14px; bottom: 72px; }
  .tj-about-covers-grid { grid-template-columns: 1fr; }
  .tj-single-title { font-size: 24px; }
  .tj-404-search { flex-direction: column; }
  .tj-section { padding: 36px 0; }
  .tj-mission-stats { gap: 20px; }
}