/*
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 Pinterest tattoo niche websites.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: Proprietary
Text Domain: neo-tattoos-theme
*/

/* ══════════════════════════════════════════════════
   CSS Variables
   ══════════════════════════════════════════════════ */

:root {
  /* Colors */
  --tj-bg-primary: #FAFAF8;
  --tj-bg-surface: #FFFFFF;
  --tj-bg-secondary: #F5F3F0;
  --tj-text-primary: #1A1818;
  --tj-text-secondary: #5A5550;
  --tj-text-tertiary: #9A948C;
  --tj-heading-color: #1A1818;
  --tj-accent: #C8A87E;
  --tj-accent-hover: #B8956A;
  --tj-cta: #D4456A;
  --tj-cta-hover: #C03858;
  --tj-border: #E8E4DF;
  --tj-border-light: #F0EDE8;
  --tj-header-bg: #FFFFFF;

  /* Typography */
  --tj-font-heading: 'DM Serif Display', Georgia, serif;
  --tj-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --tj-container: 1200px;
  --tj-container-narrow: 780px;
  --tj-gap: 24px;
  --tj-radius: 8px;
  --tj-radius-sm: 4px;
  --tj-radius-pill: 100px;

  /* Card borders & shadows — accent-tinted */
  --tj-card-border: rgba(200, 168, 126, 0.25);
  --tj-card-shadow: 0 2px 16px rgba(200, 168, 126, 0.1);
  --tj-card-shadow-hover: 0 8px 32px rgba(200, 168, 126, 0.22);

  /* Transitions */
  --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: hidden;
}

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.25;
  color: var(--tj-heading-color);
}


/* ══════════════════════════════════════════════════
   Container
   ══════════════════════════════════════════════════ */

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


/* ══════════════════════════════════════════════════
   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 — Scrolling Posts Ticker
   ══════════════════════════════════════════════════ */

.tj-top-bar {
  background: var(--tj-bg-surface);
  border-bottom: 1px solid var(--tj-border-light);
  overflow: hidden;
  height: 64px;
}

.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: 8px;
  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: 45px;
  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%); }
}

.tj-hide-mobile { }


/* ══════════════════════════════════════════════════
   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 20px rgba(0,0,0,0.06);
}

.tj-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.tj-header-brand a,
.tj-site-title {
  font-family: var(--tj-font-heading);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--tj-text-primary);
}

.tj-nav { margin: 0 auto; }

.tj-nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.tj-nav-list li a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  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-text-primary);
}

.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%; }

/* Dropdown */
.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 30px 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-text-primary); }

.tj-header-btn {
  display: inline-flex;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--tj-text-primary);
  color: var(--tj-bg-surface);
  border-radius: var(--tj-radius-pill);
  transition: background var(--tj-speed) var(--tj-ease);
}

.tj-header-btn:hover { background: var(--tj-text-secondary); }

/* Hamburger */
.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); }

/* Search overlay */
.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: 1px 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-text-primary);
  color: var(--tj-bg-surface);
  border-radius: var(--tj-radius);
  transition: background var(--tj-speed) var(--tj-ease);
}

.tj-search-submit:hover { background: var(--tj-accent); }


/* ══════════════════════════════════════════════════
   Main Content
   ══════════════════════════════════════════════════ */

.tj-main {
  min-height: 60vh;
}


/* ══════════════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════════════ */

.tj-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: var(--tj-bg-secondary);
}

.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(26,24,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: 720px; margin: 0 auto; }

.tj-hero-subheading {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tj-accent);
  margin-bottom: 16px;
}

.tj-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}

.tj-hero-desc {
  font-size: 17px;
  color: var(--tj-text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.tj-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tj-hero-pill {
  display: inline-flex;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1px 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);
}

.tj-hero-pill:hover {
  background: var(--tj-accent);
  color: #fff;
  border-color: var(--tj-accent);
}

.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: 60px 0; }

.tj-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.tj-section-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 0;
}

/* Decorative gold underline on all section headings */
.tj-section-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--tj-accent);
  margin-top: 8px;
  border-radius: 2px;
}

/* Centre-align underline for sections that are text-centered */
.tj-cat-carousel-section .tj-section-title::after,
.tj-tabs-section .tj-section-title::after,
.tj-mission-section .tj-section-title::after,
.tj-about-covers .tj-section-title::after,
.tj-about-trust .tj-section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.tj-section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--tj-accent);
  transition: color var(--tj-speed) var(--tj-ease);
}

.tj-section-link:hover { color: var(--tj-accent-hover); }


/* ── Posts Tabbed Slider Wrapper + Nav Arrows ──────── */
.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: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tj-bg-surface);
  border: 1px solid var(--tj-card-border);
  border-radius: 50%;
  box-shadow: var(--tj-card-shadow);
  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;
  box-shadow: var(--tj-card-shadow-hover);
}

@media (max-width: 768px) {
  .tj-slider-nav-btn { display: none; }
}


/* ── Archive Page — Gaps between sections ──────────── */
.tj-archive {
  max-width: var(--tj-container);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Gap between hero and filters bar */
.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; /* gap above AND below */
  flex-wrap: wrap;
}

/* Filter pills — explicit color to prevent inheritance issues */
.tj-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.tj-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--tj-font-body);
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-pill);
  background: var(--tj-bg-surface);
  color: #5A5550; /* hardcoded fallback — prevents white-on-white inheritance */
  color: var(--tj-text-secondary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
  transition: all var(--tj-speed) var(--tj-ease);
}

.tj-filter-pill:hover,
.tj-filter-pill.active {
  background: var(--tj-accent);
  color: #fff;
  border-color: var(--tj-accent);
}

/* Gap between filters bar and post grid */
.tj-archive-grid {
  display: grid;
  gap: var(--tj-gap);
  margin-top: 4px;
  margin-bottom: 40px;
}

.tj-text-center { text-align: center; }


/* ══════════════════════════════════════════════════
   Category Carousel
   ══════════════════════════════════════════════════ */

.tj-cat-carousel-section { background: var(--tj-bg-surface); }

.tj-cat-carousel-section .tj-section-title {
  text-align: center;
  margin-bottom: 36px;
}

/* ── Category Carousel — CSS auto-scroll (seamless loop) ─── */
.tj-cat-carousel-outer {
  overflow: hidden;
  padding: 10px 0 14px;
}

.tj-cat-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: tj-marquee 35s linear infinite;
}

.tj-cat-carousel-section:hover .tj-cat-carousel-track {
  animation-play-state: paused;
}

/* tj-marquee keyframes already defined in critical CSS */

.tj-cat-card {
  flex: 0 0 160px;
  text-align: center;
  padding: 28px 16px;
  background: var(--tj-bg-surface);
  border: 1px solid var(--tj-card-border);
  border-radius: var(--tj-radius);
  transition: all var(--tj-speed) var(--tj-ease);
  box-shadow: var(--tj-card-shadow);
}

.tj-cat-card:hover {
  border-color: var(--tj-accent);
  transform: translateY(-4px);
  box-shadow: var(--tj-card-shadow-hover);
}

.tj-cat-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--tj-accent);
}

.tj-cat-card-name {
  font-family: var(--tj-font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tj-cat-card-count {
  font-size: 12px;
  color: var(--tj-text-tertiary);
}


/* ══════════════════════════════════════════════════
   Author / About Section
   ══════════════════════════════════════════════════ */

.tj-author-section { background: var(--tj-bg-primary); }

.tj-author-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tj-author-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tj-accent);
  margin-bottom: 16px;
  padding: 4px 16px;
  border: 1px solid var(--tj-accent);
  border-radius: var(--tj-radius-pill);
}

.tj-author-heading {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 20px;
  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: 420px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.tj-author-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tj-bg-secondary);
  border: 2px solid var(--tj-border);
  font-family: var(--tj-font-heading);
  font-size: 48px;
  color: var(--tj-accent);
}


/* ══════════════════════════════════════════════════
   Post Grid
   ══════════════════════════════════════════════════ */

.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); }


/* ══════════════════════════════════════════════════
   Post Card
   ══════════════════════════════════════════════════ */

.tj-card {
  background: var(--tj-bg-surface);
  border: 1px solid var(--tj-card-border);
  border-radius: var(--tj-radius);
  overflow: hidden;
  transition: all var(--tj-speed) var(--tj-ease);
  box-shadow: var(--tj-card-shadow);
}

.tj-card:hover {
  border-color: var(--tj-accent);
  box-shadow: var(--tj-card-shadow-hover);
  transform: translateY(-4px);
}

.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.05); }

.tj-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--tj-bg-secondary);
}

.tj-card-body { padding: 20px; }

.tj-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--tj-accent);
  margin-bottom: 8px;
}

.tj-card-title {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
  font-family: var(--tj-font-heading);
}

.tj-card-meta {
  font-size: 13px;
  color: var(--tj-text-tertiary);
}

.tj-meta-sep { margin: 0 6px; }


/* ══════════════════════════════════════════════════
   Tabbed Category Slider
   ══════════════════════════════════════════════════ */

.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-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px 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);
}

.tj-tab-btn:hover,
.tj-tab-btn.active {
  background: var(--tj-accent);
  color: #fff;
  border-color: var(--tj-accent);
}

.tj-tab-panel { display: none; }
.tj-tab-panel.active { display: block; }

/* .tj-tab-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
} */

/* .tj-tab-slider::-webkit-scrollbar { display: none; }

.tj-tab-loading {
  padding: 40px;
  text-align: center;
  color: var(--tj-text-tertiary);
  width: 100%;
} */

.tj-slider-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--tj-bg-surface);
  border-radius: var(--tj-radius);
  overflow: hidden;
  border: 1px solid var(--tj-card-border);
  box-shadow: var(--tj-card-shadow);
  transition: all var(--tj-speed) var(--tj-ease);
}

.tj-slider-card:hover {
  border-color: var(--tj-accent);
  box-shadow: var(--tj-card-shadow-hover);
  transform: translateY(-2px);
}

.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: 14px;
  font-weight: 500;
  padding: 14px 16px;
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════
   Mission Section
   ══════════════════════════════════════════════════ */

.tj-mission-section { background: var(--tj-bg-surface); }

.tj-mission-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.tj-mission-title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
}

.tj-mission-text {
  font-size: 16px;
  color: var(--tj-text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.tj-mission-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.tj-stat { text-align: center; }

.tj-stat-number {
  display: block;
  font-family: var(--tj-font-heading);
  font-size: 36px;
  color: var(--tj-accent);
}

.tj-stat-label {
  font-size: 14px;
  color: var(--tj-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ══════════════════════════════════════════════════
   Newsletter Section
   ══════════════════════════════════════════════════ */

.tj-newsletter-section {
  background: var(--tj-bg-secondary);
}

.tj-newsletter-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.tj-newsletter-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
}

.tj-newsletter-desc {
  color: var(--tj-text-secondary);
  margin-bottom: 24px;
}

.tj-newsletter-form {
  display: flex;
  gap: 12px;
}

.tj-newsletter-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  background: var(--tj-bg-surface);
  font-family: var(--tj-font-body);
  outline: none;
  transition: border-color var(--tj-speed) var(--tj-ease);
}

.tj-newsletter-input:focus { border-color: var(--tj-accent); }

.tj-newsletter-btn {
  padding: 14px 28px;
  background: var(--tj-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--tj-radius);
  transition: background var(--tj-speed) var(--tj-ease);
}

.tj-newsletter-btn:hover { background: var(--tj-cta-hover); }


/* Archive styles consolidated above */


/* ══════════════════════════════════════════════════
   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: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px 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 16px;
}

.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;
}

/* Breadcrumbs */
.tj-breadcrumbs {
  padding: 16px 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; }

/* Single header */
.tj-single-header {
  max-width: var(--tj-container-narrow);
  padding: 20px 0 28px;
}

.tj-single-cat-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius-pill);
  color: var(--tj-text-secondary);
  margin-bottom: 16px;
  transition: all var(--tj-speed) var(--tj-ease);
}

.tj-single-cat-pill:hover {
  border-color: var(--tj-accent);
  color: var(--tj-accent);
}

.tj-single-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Author meta bar */
.tj-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.tj-single-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.tj-single-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tj-single-author {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.tj-single-date {
  font-size: 13px;
  color: var(--tj-text-tertiary);
}

/* Layout: content + sidebar */
.tj-single-layout {
  display: block;
}

.tj-single-layout.tj-has-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Featured image */
.tj-single-featured {
  margin-bottom: 32px;
  border-radius: var(--tj-radius);
  overflow: hidden;
}

.tj-single-featured img {
  width: 100%;
  border-radius: var(--tj-radius);
}

/* Entry content */
.tj-entry-content {
  font-size: 16.5px;
  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; }

/* Drop cap */
.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-text-primary);
}

/* Left-border H2/H3 headings in content */
.tj-entry-content h2,
.tj-entry-content h3 {
  margin: 2em 0 0.8em;
  padding-left: 16px;
  border-left: 3px solid var(--tj-accent);
}

.tj-entry-content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
}

.tj-entry-content h3 {
  font-size: clamp(18px, 2vw, 22px);
}

/* Pinterest iframe responsive */
.pin-embed {
  width: 500px !important;
  overflow: hidden;
  border: 2px solid rgba(200, 168, 126, 0.4);
  border-radius: 25px;
}

/* 1. Force all Preformatted Code Blocks to wrap text cleanly on mobile */
pre, 
code,
pre code {
    white-space: pre-wrap !important;       /* Modern browsers */
    white-space: -moz-pre-wrap !important;  /* Mozilla legacy fallback */
    word-wrap: break-word !important;        /* IE/Edge support */
    word-break: break-word !important;
    max-width: 100% !important;
}

iframe, 
embed, 
object, 
video {
    max-width: 100%;
    box-sizing: border-box;
}

/* .tj-entry-content iframe {
  max-width: 100%;
  border-radius: var(--tj-radius);
  margin: 1.5em auto;
  display: block;
  border: 2px solid var(--tj-card-border);
  box-shadow: var(--tj-card-shadow);
} */

/* Pinterest pin embeds — tighter spacing, centered, with accent border */
/* .tj-entry-content span[data-pin-id],
.tj-entry-content .pin-it-embed,
.tj-entry-content .pinterest-embed {
  display: block;
  margin: 1.5em auto;
} */

/* .tj-entry-content span[data-pin-id] iframe,
.tj-entry-content iframe[src*="pinterest"],
.tj-entry-content iframe[src*="assets.pinterest"] {
  margin: 0 auto;
  border: 2px solid rgba(200, 168, 126, 0.4);
  border-radius: var(--tj-radius);
  box-shadow: 0 4px 20px rgba(200, 168, 126, 0.15);
} */


/* ══════════════════════════════════════════════════
   Social Share (Inline)
   ══════════════════════════════════════════════════ */

.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: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px 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; }


/* ══════════════════════════════════════════════════
   Floating Bookmark + Share
   ══════════════════════════════════════════════════ */

.tj-floating-actions {
  position: fixed;
  right: 24px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.tj-float-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tj-bg-surface);
  border: 1px solid var(--tj-border);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  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-float-share-menu {
  flex-direction: column;
  gap: 8px;
  position: absolute;
  right: 0;
  bottom: 56px;
}

.tj-share-floating {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tj-share-floating .tj-share-btn {
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}


/* ══════════════════════════════════════════════════
   FAQ Accordion
   ══════════════════════════════════════════════════ */

.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.faq-item.open {
  box-shadow: #B8956A;
	padding-bottom: 15px;
}
.faq-item.open .faq-question {
  background: #C8A87E;
	color: #fff ;
  }

.faq-question:hover {
  background: #C8A87E;
	color: #fff;
}

.faq-question {
  width: 100%;
  padding: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center
  transition: background 0.15s ease;
}

.faq-answer p {
  padding:10px 20px 20px 10px;
}


/* .tj-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--tj-border-light);
}

.tj-faq .tj-section-title { margin-bottom: 24px; }

.tj-faq-item {
  border-bottom: 1px solid var(--tj-border-light);
  transition: background var(--tj-speed) var(--tj-ease);
  border-radius: var(--tj-radius-sm);
  padding: 0 4px;
}

.tj-faq-item.open {
  background: rgba(200, 168, 126, 0.04);
  border-bottom-color: var(--tj-card-border);
}

.tj-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: var(--tj-text-primary);
}

.tj-faq-question svg {
  flex-shrink: 0;
  transition: transform var(--tj-speed) var(--tj-ease);
  color: var(--tj-text-tertiary);
}

.tj-faq-item.open .tj-faq-question svg { transform: rotate(180deg); }

.tj-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--tj-ease);
}

.tj-faq-answer p {
  padding-bottom: 18px;
  font-size: 15px;
  color: var(--tj-text-secondary);
  line-height: 1.7;
} */


/* ══════════════════════════════════════════════════
   Related Posts
   ══════════════════════════════════════════════════ */

.tj-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--tj-border-light);
}

/* ══════════════════════════════════════════════════
   Related Posts — Slider Variant
   ══════════════════════════════════════════════════ */

.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 280px;
  scroll-snap-align: start;
}


/* ══════════════════════════════════════════════════
   FAQ — Supports both .tj-faq-* and .faq-* classes
   (for content with pre-existing FAQ HTML)
   ══════════════════════════════════════════════════ */

/* Non-prefixed FAQ classes (from post content) */
.faq-item {
  border-bottom: 1px solid var(--tj-border-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: var(--tj-text-primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--tj-font-body);
}

.faq-question:hover { color: var(--tj-accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--tj-ease);
}

.faq-answer p {
  padding-bottom: 18px;
  font-size: 15px;
  color: var(--tj-text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 2000px;
}


/* ══════════════════════════════════════════════════
   Sidebar
   ══════════════════════════════════════════════════ */

.tj-sidebar-sticky {
  position: sticky;
  top: 90px;
}

.tj-sidebar-widget {
  padding: 24px;
  margin-bottom: 24px;
  background: var(--tj-bg-surface);
  border: 1px solid var(--tj-card-border);
  border-radius: var(--tj-radius);
  box-shadow: var(--tj-card-shadow);
  transition: box-shadow var(--tj-speed) var(--tj-ease);
}

.tj-sidebar-widget:hover {
  box-shadow: var(--tj-card-shadow-hover);
}

.tj-sidebar-widget-title {
  font-size: 18px;
  margin-bottom: 16px;
}

/* Sidebar search */
.tj-sidebar-search-form {
  display: flex;
  gap: 0;
}

.tj-sidebar-search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px 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 14px;
  border: 1px 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);
}

/* Sidebar latest posts */
.tj-sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tj-sidebar-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tj-sidebar-post-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--tj-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.tj-sidebar-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tj-sidebar-post-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--tj-accent);
}

.tj-sidebar-post-title {
  font-size: 14px;
  font-weight: 500;
  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); }

/* Sidebar categories pills */
.tj-sidebar-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tj-sidebar-cat-pill {
  display: inline-flex;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px 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);
}

/* Sidebar newsletter */
.tj-sidebar-newsletter {
  background: var(--tj-bg-secondary);
  border-color: var(--tj-border);
}

.tj-sidebar-newsletter-desc {
  font-size: 14px;
  color: var(--tj-text-secondary);
  margin-bottom: 16px;
}

.tj-sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tj-sidebar-newsletter-input {
  padding: 12px 14px;
  font-size: 14px;
  border: 1px 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: 12px;
  background: var(--tj-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  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: var(--tj-bg-surface);
  border-top: 1px solid var(--tj-border-light);
  margin-top: 0;
}

.tj-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 20px;
}

.tj-footer-logo {
  font-family: var(--tj-font-heading);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--tj-text-primary);
}

.tj-footer-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.tj-footer-menu li a {
  font-size: 14px;
  color: var(--tj-text-secondary);
  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 var(--tj-border-light);
  padding: 16px 0;
}

.tj-footer-bottom-inner { text-align: center; }

.tj-copyright {
  font-size: 13px;
  color: var(--tj-text-tertiary);
}


/* ══════════════════════════════════════════════════
   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: 16px 0;
}

.tj-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tj-cookie-inner p { font-size: 14px; margin: 0; }
.tj-cookie-inner a { color: var(--tj-accent); text-decoration: underline; }

.tj-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.tj-cookie-accept {
  padding: 8px 20px;
  background: var(--tj-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--tj-radius);
}

.tj-cookie-decline {
  padding: 8px 20px;
  background: transparent;
  color: var(--tj-bg-primary);
  font-size: 13px;
  font-weight: 500;
  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: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tj-text-primary);
  color: var(--tj-bg-surface);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  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 Page
   ══════════════════════════════════════════════════ */

.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(28px, 4vw, 36px);
  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: 14px 18px;
  font-size: 15px;
  border: 1px 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: 14px 24px;
  background: var(--tj-text-primary);
  color: var(--tj-bg-surface);
  font-size: 14px;
  font-weight: 600;
  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; }


/* ══════════════════════════════════════════════════
   Page Templates
   ══════════════════════════════════════════════════ */

.tj-page { padding: 48px 0 60px; }

.tj-page-inner { max-width: var(--tj-container-narrow); margin: 0 auto; }

.tj-page-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 32px;
  text-align: center;
}

.tj-page-content { font-size: 16px; line-height: 1.8; }


/* ── About Page ───────────────────────────────── */

.tj-about { padding: 48px 0 60px; }

.tj-about-header {
  text-align: center;
  padding: 32px 0 48px;
}

.tj-about-monogram {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--tj-text-primary);
  border-radius: 50%;
  font-family: var(--tj-font-heading);
  font-size: 28px;
}

.tj-about-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.tj-about-tagline {
  font-size: 15px;
  color: var(--tj-text-secondary);
  letter-spacing: 1px;
}

.tj-about-section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.tj-about-gold-line {
  width: 60px;
  height: 2px;
  background: var(--tj-accent);
  margin-bottom: 24px;
}

.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-bottom: 60px;
}

.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: 48px 0 60px; }

.tj-about-covers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tj-about-cover-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--tj-bg-surface);
  border: 1px solid var(--tj-card-border);
  border-radius: var(--tj-radius);
  box-shadow: var(--tj-card-shadow);
  transition: all var(--tj-speed) var(--tj-ease);
}

.tj-about-cover-card:hover {
  border-color: var(--tj-accent);
  box-shadow: var(--tj-card-shadow-hover);
  transform: translateY(-3px);
}

.tj-about-cover-icon {
  color: var(--tj-accent);
  margin-bottom: 16px;
}

.tj-about-cover-card h3 {
  font-family: var(--tj-font-heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.tj-about-cover-card p {
  font-size: 14px;
  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: 32px;
}

.tj-about-trust-item {
  padding: 24px 24px 24px 20px;
  border-left: 3px solid var(--tj-accent);
  border-radius: 0 var(--tj-radius) var(--tj-radius) 0;
  background: var(--tj-bg-surface);
  box-shadow: var(--tj-card-shadow);
  transition: box-shadow var(--tj-speed) var(--tj-ease);
}

.tj-about-trust-item:hover {
  box-shadow: var(--tj-card-shadow-hover);
}

.tj-about-trust-item h3 {
  font-family: var(--tj-font-heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.tj-about-trust-item p {
  font-size: 14px;
  color: var(--tj-text-secondary);
  line-height: 1.7;
}

.tj-about-extra { padding-top: 48px; }


/* ── Contact Page ─────────────────────────────── */

.tj-contact-header { text-align: center; margin-bottom: 40px; }

.tj-about-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tj-accent);
  margin-bottom: 12px;
}

.tj-contact-desc {
  max-width: 520px;
  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: 24px;
}

.tj-contact-info-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.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;
}

/* ── Legal / Guidelines ───────────────────────── */

.tj-legal { padding-bottom: 60px; }

.tj-legal-updated,
.tj-guidelines-updated {
  text-align: center;
  font-size: 14px;
  color: var(--tj-text-tertiary);
  margin: -20px 0 32px;
}

.tj-legal-content h2 {
  margin-top: 2em;
  font-size: 22px;
  padding-left: 0;
  border-left: none;
}

.tj-legal-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--tj-border-light);
  font-size: 14px;
  color: var(--tj-text-secondary);
}

.tj-legal-footer a { color: var(--tj-accent); }


/* ── No Results ───────────────────────────────── */

.tj-no-results {
  text-align: center;
  padding: 60px 20px;
}

.tj-no-results-title {
  font-size: clamp(24px, 3vw, 32px);
  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 16px;
  border: 1px solid var(--tj-border);
  border-radius: var(--tj-radius);
  font-family: var(--tj-font-body);
  font-size: 15px;
  outline: none;
}

.tj-no-results-btn {
  padding: 12px 20px;
  background: var(--tj-text-primary);
  color: var(--tj-bg-surface);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--tj-radius);
}

.tj-no-results-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}


/* ══════════════════════════════════════════════════
   Accessibility — Focus Styles
   ══════════════════════════════════════════════════ */

/* Remove default outline only when not using keyboard */
*:focus { outline: none; }

/* Visible focus ring for keyboard users */
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);
}

/* Skip-link for screen readers */
.tj-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--tj-text-primary);
  color: var(--tj-bg-surface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.tj-skip-link:focus { top: 0; }

/* Screen-reader only */
.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 Widget Area
   ══════════════════════════════════════════════════ */

.tj-footer-widgets {
  background: var(--tj-bg-secondary);
  padding: 48px 0;
  border-top: 1px solid var(--tj-border-light);
}

.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: 18px;
  margin-bottom: 16px;
  color: var(--tj-text-primary);
}

.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: 14px;
  color: var(--tj-text-secondary);
  transition: color var(--tj-speed) var(--tj-ease);
}

.tj-footer-widget ul li a:hover { color: var(--tj-accent); }


/* ══════════════════════════════════════════════════
   Reduced Motion Support
   ══════════════════════════════════════════════════ */

@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 { animation: none; }
}


/* ══════════════════════════════════════════════════
   WordPress Core — Alignment & Captions
   ══════════════════════════════════════════════════ */

.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: 13px;
  color: var(--tj-text-tertiary);
  text-align: center;
  margin-top: 8px;
}

.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-item { flex: 1 1 auto; }


/* ══════════════════════════════════════════════════
   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: 300px; }
  .tj-author-label { margin: 0 auto 16px; }

  .tj-mission-stats { gap: 32px; }
}


/* ══════════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .tj-hide-mobile { display: none !important; }

  .tj-header-inner { height: 60px; }

  .tj-menu-toggle { display: flex; }

  .tj-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    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: 20px;
  }

  .tj-nav-list li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    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 16px;
    background: transparent;
  }

  .tj-header-btn { display: none; }

  .tj-hero { padding: 48px 20px 40px; }
  .tj-hero-title { font-size: 28px; }

  .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-archive-search { width: 100%; }
  .tj-archive-search-input { width: 100%; }

  .tj-newsletter-form { flex-direction: column; }

  .tj-cookie-inner { flex-direction: column; text-align: center; }

  .tj-footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .tj-footer-menu { flex-wrap: wrap; justify-content: center; }

  .tj-floating-actions { right: 16px; bottom: 80px; }

  .tj-about-covers-grid { grid-template-columns: 1fr; }

  .tj-single-title { font-size: 26px; }

  .tj-404-search { flex-direction: column; }

  .tj-section { padding: 40px 0; }
}


/* ══════════════════════════════════════════════════
   Section Color CSS Variables (with fallbacks)
   Overridden by admin panel via inline style in <head>
   ══════════════════════════════════════════════════ */

:root {
  /* Homepage section backgrounds — fallback to existing design tokens */
  --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-bg-secondary);
  --tj-newsletter-heading:    var(--tj-heading-color);
  --tj-newsletter-text:       var(--tj-text-secondary);
  --tj-newsletter-btn:        var(--tj-cta);
  /* About page section backgrounds */
  --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);
}

/* Apply section color variables to each section */
.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-newsletter-btn        { background: var(--tj-newsletter-btn); }

.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          { background: var(--tj-covers-bg); }
.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); }


/* ══════════════════════════════════════════════════
   Page Hero Header
   ══════════════════════════════════════════════════ */

.tj-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  background-color: var(--tj-accent);
  background-image: linear-gradient(135deg, var(--tj-text-primary) 0%, var(--tj-text-secondary) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.tj-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tj-page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 20px;
  max-width: var(--tj-container);
  width: 100%;
  margin: 0 auto;
}

/* Alignment variants */
.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(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
}

.tj-page-hero-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  line-height: 1.7;
  margin: 0;
}

.tj-hero-align-center .tj-page-hero-desc { margin: 0 auto; }
.tj-hero-align-right  .tj-page-hero-desc { margin: 0 0 0 auto; }

/* Fade-up entrance animation */
.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(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .tj-page-hero { min-height: 240px; }
  .tj-page-hero-inner { padding: 32px 20px; }
  .tj-page-hero-title { font-size: clamp(22px, 6vw, 32px); }
}


/* ══════════════════════════════════════════════════
   Author Sidebar Widget
   ══════════════════════════════════════════════════ */

.tj-sidebar-author {
  text-align: center;
}

.tj-sidebar-author-img-wrap {
  display: inline-block;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--tj-card-border);
  box-shadow: var(--tj-card-shadow);
  transition: all var(--tj-speed) var(--tj-ease);
  margin-bottom: 12px;
}

.tj-sidebar-author:hover .tj-sidebar-author-img-wrap {
  border-color: var(--tj-accent);
  box-shadow: var(--tj-card-shadow-hover);
}

.tj-sidebar-author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tj-sidebar-author-name {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--tj-font-body);
  color: var(--tj-text-primary);
  margin-bottom: 4px;
}

.tj-sidebar-author-role {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tj-accent);
  margin-bottom: 10px;
}

.tj-sidebar-author-bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--tj-text-secondary);
  margin-bottom: 12px;
}

.tj-sidebar-author-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tj-author-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--tj-card-border);
  color: var(--tj-text-secondary);
  box-shadow: var(--tj-card-shadow);
  transition: all var(--tj-speed) var(--tj-ease);
}

.tj-author-social-link:hover {
  background: var(--tj-accent);
  border-color: var(--tj-accent);
  color: #fff;
  box-shadow: var(--tj-card-shadow-hover);
}

.tj-sidebar-author-btn {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  background: transparent;
  border: 1px solid var(--tj-card-border);
  border-radius: var(--tj-radius);
  color: var(--tj-text-secondary);
  transition: all var(--tj-speed) var(--tj-ease);
  box-shadow: var(--tj-card-shadow);
}

.tj-sidebar-author-btn:hover {
  background: var(--tj-accent);
  border-color: var(--tj-accent);
  color: #fff;
  box-shadow: var(--tj-card-shadow-hover);
}


/* ══════════════════════════════════════════════════
   Infinite Scroll
   ══════════════════════════════════════════════════ */

.tj-load-sentinel {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.tj-load-spinner {
  width: 32px;
  height: 32px;
  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: 14px;
  color: var(--tj-text-tertiary);
  text-align: center;
  padding: 16px 0;
}


/* ══════════════════════════════════════════════════
   Print Styles
   ══════════════════════════════════════════════════ */

@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; }
}
