/*
Theme Name: pajonHD
Theme URI: https://pajonworld.com
Author: pajonworld
Author URI: https://pajonworld.com
Description: pajonHD v1.0 — A blazing-fast, SEO-optimized WordPress theme for personal finance and wealth-building content. Built for Yoast SEO, Elementor, WP Rocket, and AMP compatibility. White, Blue & Black color scheme. Version 1 — safe for live site deployment, no content will be altered.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pajonhd
Tags: blog, news, finance, seo, amp, elementor, yoast, fast, responsive, custom-menu, featured-images, widgets

pajonHD WordPress Theme — Version 1.0
Safe to install on live site. Does NOT delete, modify, or affect any existing posts, pages, media, or database content.
*/

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #111111;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   BRAND COLOR SYSTEM
   Primary Blue:   #0C447C (dark)  #185FA5 (mid)  #378ADD (accent)
   Navy:           #042C53
   White:          #ffffff
   Black:          #111111
   Light Blue Bg:  #E6F1FB
   Muted Blue:     #85B7EB
========================================================= */

:root {
    --pj-navy:       #042C53;
    --pj-blue-dark:  #0C447C;
    --pj-blue-mid:   #185FA5;
    --pj-blue:       #378ADD;
    --pj-blue-light: #E6F1FB;
    --pj-blue-muted: #85B7EB;
    --pj-white:      #ffffff;
    --pj-black:      #111111;
    --pj-gray-100:   #f7fafd;
    --pj-gray-200:   #eef2f7;
    --pj-gray-300:   #dde8f4;
    --pj-gray-500:   #6b7a8d;
    --pj-gray-700:   #374151;
    --pj-border:     #dde8f4;
    --pj-radius:     8px;
    --pj-radius-lg:  12px;
    --pj-radius-xl:  16px;
    --pj-shadow:     0 1px 3px rgba(12,68,124,0.08);
    --pj-shadow-md:  0 4px 16px rgba(12,68,124,0.12);
    --pj-font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pj-font-serif: Georgia, 'Times New Roman', serif;
    --pj-transition: 0.2s ease;
    --pj-max-width:  1200px;
    --pj-content-width: 780px;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pj-font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--pj-navy);
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: 1.25rem; color: var(--pj-gray-700); }
p:last-child { margin-bottom: 0; }

a {
    color: var(--pj-blue-mid);
    text-decoration: none;
    transition: color var(--pj-transition);
}
a:hover { color: var(--pj-blue-dark); }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
li { margin-bottom: 0.375rem; color: var(--pj-gray-700); }

blockquote {
    border-left: 4px solid var(--pj-blue);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--pj-blue-light);
    border-radius: 0 var(--pj-radius) var(--pj-radius) 0;
    font-style: italic;
    color: var(--pj-navy);
}

code {
    font-family: 'Courier New', monospace;
    background: var(--pj-gray-200);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--pj-navy);
}

pre {
    background: var(--pj-navy);
    color: var(--pj-blue-light);
    padding: 1.5rem;
    border-radius: var(--pj-radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr {
    border: none;
    border-top: 1px solid var(--pj-border);
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

th {
    background: var(--pj-blue-dark);
    color: var(--pj-white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pj-border);
    color: var(--pj-gray-700);
}

tr:nth-child(even) td { background: var(--pj-gray-100); }

/* =========================================================
   LAYOUT
========================================================= */
.container {
    max-width: var(--pj-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 3rem 0;
}

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

.content-full-width { max-width: var(--pj-content-width); margin: 0 auto; }

/* =========================================================
   TOP BAR
========================================================= */
.top-bar {
    background: var(--pj-navy);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pj-blue-dark);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    font-size: 0.75rem;
    color: var(--pj-blue-muted);
    letter-spacing: 0.04em;
}

.top-bar-right {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.top-bar-right a {
    font-size: 0.75rem;
    color: var(--pj-blue-muted);
    transition: color var(--pj-transition);
}

.top-bar-right a:hover { color: var(--pj-white); }


/* =========================================================
   LOGO — custom_logo support + text fallback
========================================================= */
.site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo-img { display:block; max-height:52px; width:auto; object-fit:contain; }
.site-logo-footer { max-height:40px; }
.site-logo-text { display:inline-flex; align-items:center; gap:.625rem; text-decoration:none; }
.site-logo-text .logo-mark {
    width:38px; height:38px; background:var(--pj-blue-dark); border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:.8125rem; color:var(--pj-white);
    letter-spacing:-.01em; flex-shrink:0;
}
.site-logo-text .logo-name { font-size:1.375rem; font-weight:800; color:var(--pj-navy); letter-spacing:-.02em; line-height:1; }
.site-logo-text--footer .logo-mark { background:var(--pj-blue-mid); }
.site-logo-text--footer .logo-name { color:var(--pj-blue-light); }


/* =========================================================
   SITE HEADER & NAVIGATION
========================================================= */
.site-header {
    background: var(--pj-white);
    border-bottom: 2px solid var(--pj-blue-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--pj-shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 0.625rem; }

.site-logo-mark {
    width: 38px;
    height: 38px;
    background: var(--pj-blue-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--pj-white);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--pj-navy);
    letter-spacing: -0.02em;
    line-height: 1;
}

.site-title a { color: inherit; }
.site-title a:hover { color: var(--pj-blue-mid); }
.site-title span { color: var(--pj-blue-mid); }

/* Primary Navigation */
.main-navigation { display: flex; align-items: center; }

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

.nav-menu li { position: relative; }

.nav-menu > li > a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pj-navy);
    border-radius: var(--pj-radius);
    transition: background var(--pj-transition), color var(--pj-transition);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    background: var(--pj-blue-light);
    color: var(--pj-blue-dark);
}

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--pj-white);
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius-lg);
    box-shadow: var(--pj-shadow-md);
    min-width: 200px;
    padding: 0.5rem;
    z-index: 100;
    list-style: none;
}

.nav-menu li:hover > .sub-menu { display: block; }

.nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--pj-gray-700);
    border-radius: 6px;
    transition: background var(--pj-transition);
}

.nav-menu .sub-menu a:hover {
    background: var(--pj-blue-light);
    color: var(--pj-blue-dark);
}

/* CTA Button in Nav */
.nav-cta {
    background: var(--pj-blue-dark);
    color: var(--pj-white) !important;
    padding: 0.5rem 1.125rem !important;
    border-radius: var(--pj-radius) !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
    transition: background var(--pj-transition) !important;
}

.nav-cta:hover { background: var(--pj-navy) !important; color: var(--pj-white) !important; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--pj-navy);
    border-radius: 1px;
    transition: all var(--pj-transition);
}

/* =========================================================
   CATEGORY FILTER BAR
========================================================= */
.category-filter-bar {
    background: var(--pj-gray-100);
    border-bottom: 1px solid var(--pj-border);
    padding: 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-filter-bar::-webkit-scrollbar { height: 0; }

.filter-pills {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.filter-pills a {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pj-blue-dark);
    background: var(--pj-white);
    border: 1px solid var(--pj-border);
    border-radius: 2rem;
    transition: all var(--pj-transition);
}

.filter-pills a:hover,
.filter-pills .current a {
    background: var(--pj-blue-dark);
    color: var(--pj-white);
    border-color: var(--pj-blue-dark);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
    background: var(--pj-navy);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 50%;
    background: var(--pj-blue-dark);
    opacity: 0.3;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--pj-blue-mid);
    color: var(--pj-blue-light);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3125rem 0.875rem;
    border-radius: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--pj-white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title span { color: var(--pj-blue); }

.hero-description {
    font-size: 1rem;
    color: var(--pj-blue-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--pj-radius);
    transition: all var(--pj-transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--pj-blue);
    color: var(--pj-white);
    border-color: var(--pj-blue);
}
.btn-primary:hover {
    background: var(--pj-blue-mid);
    border-color: var(--pj-blue-mid);
    color: var(--pj-white);
}

.btn-secondary {
    background: transparent;
    color: var(--pj-blue-light);
    border-color: var(--pj-blue-mid);
}
.btn-secondary:hover {
    background: var(--pj-blue-mid);
    color: var(--pj-white);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* Hero stats */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.hero-stat {
    background: var(--pj-blue-dark);
    border: 1px solid var(--pj-blue-mid);
    border-radius: var(--pj-radius-lg);
    padding: 1.25rem;
}

.hero-stat .stat-number {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--pj-white);
    display: block;
    margin-bottom: 0.25rem;
}

.hero-stat .stat-label {
    font-size: 0.75rem;
    color: var(--pj-blue-muted);
    display: block;
}

/* =========================================================
   FEATURED POSTS
========================================================= */
.featured-section {
    padding: 3rem 0 2rem;
    background: var(--pj-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--pj-blue-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.375rem;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--pj-navy);
    margin: 0;
}

.view-all-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--pj-blue-dark);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}
.view-all-link:hover { color: var(--pj-blue); }
.view-all-link::after { content: '→'; }

/* Featured grid: large card + sidebar stack */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
}

/* Post Card — Large */
.post-card-large {
    border-radius: var(--pj-radius-lg);
    overflow: hidden;
    border: 1px solid var(--pj-border);
    background: var(--pj-white);
    transition: box-shadow var(--pj-transition);
}
.post-card-large:hover { box-shadow: var(--pj-shadow-md); }

.post-card-large .post-thumbnail {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--pj-blue-dark);
}

.post-card-large .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card-large:hover .post-thumbnail img { transform: scale(1.03); }

.post-card-large .post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.post-card-large .post-body { padding: 1.5rem; }

/* Post Card — Small (sidebar stack) */
.post-card-small {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius-lg);
    background: var(--pj-white);
    transition: all var(--pj-transition);
    align-items: flex-start;
}
.post-card-small:hover {
    border-color: var(--pj-blue-dark);
    box-shadow: var(--pj-shadow);
}

.post-card-small .post-thumb-small {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--pj-radius);
    overflow: hidden;
    background: var(--pj-blue-light);
}
.post-card-small .post-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-small .post-info { flex: 1; min-width: 0; }

.small-stack { display: flex; flex-direction: column; gap: 0.75rem; }

/* Post Card — Grid (3 col) */
.post-card-grid {
    background: var(--pj-white);
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius-lg);
    overflow: hidden;
    transition: all var(--pj-transition);
}
.post-card-grid:hover {
    box-shadow: var(--pj-shadow-md);
    border-color: var(--pj-blue-muted);
    transform: translateY(-2px);
}

.post-card-grid .post-thumbnail {
    height: 180px;
    overflow: hidden;
    background: var(--pj-blue-dark);
    position: relative;
}
.post-card-grid .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card-grid:hover .post-thumbnail img { transform: scale(1.04); }

.post-card-grid .post-body { padding: 1.125rem; }

/* Posts grid — 3 col */
.posts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Posts grid — 2 col */
.posts-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

/* =========================================================
   POST META & BADGES
========================================================= */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--pj-blue);
    color: var(--pj-white);
    border-radius: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--pj-transition);
}
.category-badge:hover { background: var(--pj-blue-dark); color: var(--pj-white); }

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--pj-gray-500);
    flex-wrap: wrap;
    margin-bottom: 0.625rem;
}

.post-meta .meta-sep { color: var(--pj-border); }
.post-meta a { color: var(--pj-gray-500); }
.post-meta a:hover { color: var(--pj-blue-dark); }

.post-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pj-navy);
    margin-bottom: 0.625rem;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--pj-blue-mid); }

.post-title-lg {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--pj-navy);
    margin-bottom: 0.75rem;
}
.post-title-lg a { color: inherit; }
.post-title-lg a:hover { color: var(--pj-blue-mid); }

.post-title-sm {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pj-navy);
    margin-bottom: 0.375rem;
}
.post-title-sm a { color: inherit; }
.post-title-sm a:hover { color: var(--pj-blue-mid); }

.post-excerpt {
    font-size: 0.9375rem;
    color: var(--pj-gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pj-blue-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap var(--pj-transition);
}
.read-more:hover { color: var(--pj-blue); gap: 0.625rem; }
.read-more::after { content: '→'; }

/* Reading time bar */
.reading-bar {
    height: 3px;
    background: var(--pj-blue-light);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}
.reading-bar-fill {
    height: 100%;
    background: var(--pj-blue-dark);
    border-radius: 2px;
}

/* =========================================================
   CATEGORIES BLOCK
========================================================= */
.categories-block {
    background: var(--pj-navy);
    padding: 2.5rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.875rem;
}

.category-card {
    background: var(--pj-blue-dark);
    border: 1px solid var(--pj-blue-mid);
    border-radius: var(--pj-radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all var(--pj-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.category-card:hover {
    background: var(--pj-blue-mid);
    border-color: var(--pj-blue);
    transform: translateY(-2px);
}

.category-card-icon {
    width: 36px;
    height: 36px;
    background: var(--pj-blue-mid);
    border-radius: 8px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card:hover .category-card-icon { background: var(--pj-blue-dark); }

.category-card-name {
    color: var(--pj-blue-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.category-card-count {
    color: var(--pj-blue-mid);
    font-size: 0.6875rem;
    display: block;
}

/* =========================================================
   TRENDING BAR
========================================================= */
.trending-bar {
    background: var(--pj-white);
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    padding: 0.75rem 0;
    overflow: hidden;
}

.trending-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trending-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--pj-blue-dark);
    background: var(--pj-blue-light);
    padding: 0.3125rem 0.875rem;
    border-radius: 2rem;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trending-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-list a {
    font-size: 0.8125rem;
    color: var(--pj-navy);
    padding: 0.3125rem 0.875rem;
    border: 1px solid var(--pj-blue-light);
    border-radius: 2rem;
    transition: all var(--pj-transition);
}
.trending-list a:hover {
    background: var(--pj-blue-light);
    border-color: var(--pj-blue-muted);
    color: var(--pj-blue-dark);
}

/* =========================================================
   LATEST POSTS SECTION
========================================================= */
.latest-posts-section {
    padding: 3rem 0;
    background: var(--pj-gray-100);
}

/* =========================================================
   NEWSLETTER SECTION
========================================================= */
.newsletter-section {
    background: var(--pj-blue-dark);
    padding: 3.5rem 0;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-title {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 800;
    color: var(--pj-white);
    margin-bottom: 0.75rem;
}

.newsletter-desc {
    color: var(--pj-blue-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.newsletter-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nl-badge {
    background: var(--pj-blue-mid);
    color: var(--pj-blue-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3125rem 0.875rem;
    border-radius: 2rem;
}

.newsletter-form-box {
    background: var(--pj-white);
    border-radius: var(--pj-radius-xl);
    padding: 1.75rem;
}

.newsletter-form-box label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pj-gray-700);
    margin-bottom: 0.375rem;
}

.nl-input {
    width: 100%;
    border: 1.5px solid var(--pj-border);
    border-radius: var(--pj-radius);
    padding: 0.6875rem 1rem;
    font-size: 0.9375rem;
    color: var(--pj-black);
    margin-bottom: 0.875rem;
    outline: none;
    transition: border-color var(--pj-transition);
    font-family: var(--pj-font);
}
.nl-input:focus { border-color: var(--pj-blue-dark); }

.nl-submit {
    width: 100%;
    background: var(--pj-blue-dark);
    color: var(--pj-white);
    border: none;
    border-radius: var(--pj-radius);
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--pj-transition);
    font-family: var(--pj-font);
}
.nl-submit:hover { background: var(--pj-navy); }

.nl-disclaimer {
    font-size: 0.6875rem;
    color: var(--pj-gray-500);
    text-align: center;
    margin-top: 0.75rem;
}

/* =========================================================
   SINGLE POST PAGE
========================================================= */
.single-post-hero {
    background: var(--pj-navy);
    padding: 3rem 0 2.5rem;
}

.single-post-hero .post-category-badge { margin-bottom: 1rem; display: block; }

.single-post-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--pj-white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    max-width: 800px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--pj-blue-muted);
    font-size: 0.875rem;
}

.single-post-meta .sep { color: var(--pj-blue-mid); }

/* Author avatar */
.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pj-blue-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--pj-white);
    flex-shrink: 0;
}

/* Post content area */
.post-content-area {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--pj-gray-700);
}

.post-content-area h2 {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--pj-navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pj-blue-light);
}

.post-content-area h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pj-navy);
    margin: 2rem 0 0.75rem;
}

.post-content-area h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pj-navy);
    margin: 1.5rem 0 0.5rem;
}

.post-content-area p { margin-bottom: 1.5rem; }

.post-content-area ul li,
.post-content-area ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content-area img {
    border-radius: var(--pj-radius-lg);
    margin: 1.5rem 0;
}

.post-content-area .wp-caption {
    background: var(--pj-gray-100);
    border-radius: var(--pj-radius);
    padding: 0.75rem;
    margin: 1.5rem 0;
}

.post-content-area .wp-caption-text {
    font-size: 0.875rem;
    color: var(--pj-gray-500);
    text-align: center;
    margin: 0.5rem 0 0;
}

/* Table of Contents */
.pj-toc {
    background: var(--pj-blue-light);
    border: 1px solid var(--pj-blue-muted);
    border-left: 4px solid var(--pj-blue-dark);
    border-radius: var(--pj-radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.pj-toc-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pj-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.875rem;
}

.pj-toc ol {
    padding-left: 1.25rem;
    margin: 0;
}

.pj-toc ol li {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: var(--pj-navy);
}

.pj-toc a { color: var(--pj-blue-dark); font-weight: 600; }
.pj-toc a:hover { color: var(--pj-blue); }

/* Key Takeaways box */
.pj-takeaways {
    background: var(--pj-navy);
    color: var(--pj-white);
    border-radius: var(--pj-radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.pj-takeaways-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pj-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.pj-takeaways ul { padding-left: 1.25rem; margin: 0; }
.pj-takeaways li { color: var(--pj-blue-light); margin-bottom: 0.5rem; font-size: 0.9375rem; }

/* Share buttons */
.share-section {
    background: var(--pj-gray-100);
    border-radius: var(--pj-radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

.share-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pj-navy);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--pj-radius);
    transition: all var(--pj-transition);
    color: var(--pj-white);
    text-decoration: none;
}

.share-twitter { background: #1d9bf0; }
.share-twitter:hover { background: #0c85d0; color: var(--pj-white); }
.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #0c63d4; color: var(--pj-white); }
.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #1aab52; color: var(--pj-white); }
.share-copy { background: var(--pj-blue-dark); }
.share-copy:hover { background: var(--pj-navy); color: var(--pj-white); }

/* Author box */
.author-box {
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius-lg);
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 2.5rem 0;
}

.author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pj-blue-dark);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--pj-white);
}

.author-box-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pj-navy);
    margin-bottom: 0.25rem;
}

.author-box-role {
    font-size: 0.8125rem;
    color: var(--pj-blue-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.author-box-bio {
    font-size: 0.9375rem;
    color: var(--pj-gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Related posts */
.related-posts-section {
    padding: 2.5rem 0;
    background: var(--pj-gray-100);
    border-top: 1px solid var(--pj-border);
}

/* =========================================================
   SIDEBAR
========================================================= */
.sidebar { position: sticky; top: 88px; }

.widget {
    background: var(--pj-white);
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius-lg);
    padding: 1.375rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pj-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pj-blue-light);
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { border-bottom: 1px solid var(--pj-gray-100); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--pj-gray-700);
    transition: color var(--pj-transition);
}
.widget ul li a:hover { color: var(--pj-blue-dark); }

/* Widget: recent posts */
.widget-recent-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--pj-gray-100);
}
.widget-recent-post:last-child { border-bottom: none; }

.widget-recent-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--pj-radius);
    overflow: hidden;
    background: var(--pj-blue-light);
}
.widget-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }

.widget-recent-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pj-navy);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}
.widget-recent-title a { color: inherit; }
.widget-recent-title a:hover { color: var(--pj-blue-mid); }

.widget-recent-date { font-size: 0.75rem; color: var(--pj-gray-500); }

/* Widget: categories */
.widget-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.widget-category-count {
    font-size: 0.75rem;
    background: var(--pj-blue-light);
    color: var(--pj-blue-dark);
    padding: 0.125rem 0.5rem;
    border-radius: 2rem;
    font-weight: 700;
}

/* Widget: newsletter */
.widget-newsletter { background: var(--pj-navy); }
.widget-newsletter .widget-title { color: var(--pj-white); border-bottom-color: var(--pj-blue-mid); }
.widget-newsletter p { color: var(--pj-blue-muted); font-size: 0.875rem; }
.widget-newsletter .nl-input { font-size: 0.875rem; }
.widget-newsletter .nl-submit { font-size: 0.875rem; padding: 0.6875rem; }

/* =========================================================
   BREADCRUMBS (Yoast-compatible)
========================================================= */
.pj-breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    color: var(--pj-gray-500);
}

.pj-breadcrumbs a { color: var(--pj-blue-dark); }
.pj-breadcrumbs a:hover { color: var(--pj-blue); }
.pj-breadcrumbs .sep { margin: 0 0.5rem; color: var(--pj-border); }
.pj-breadcrumbs span[aria-current] { color: var(--pj-gray-500); }

/* =========================================================
   PAGINATION
========================================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--pj-radius);
    border: 1px solid var(--pj-border);
    color: var(--pj-navy);
    transition: all var(--pj-transition);
}

.pagination a:hover { background: var(--pj-blue-light); border-color: var(--pj-blue-muted); }
.pagination .current { background: var(--pj-blue-dark); color: var(--pj-white); border-color: var(--pj-blue-dark); }

/* =========================================================
   TRUST BAR
========================================================= */
.trust-bar {
    background: var(--pj-navy);
    padding: 0.875rem 0;
    border-top: 1px solid var(--pj-blue-dark);
}

.trust-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-check-icon {
    width: 20px;
    height: 20px;
    background: var(--pj-blue-mid);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-check-icon svg { width: 12px; height: 12px; }

.trust-item span {
    font-size: 0.75rem;
    color: var(--pj-blue-muted);
    font-weight: 500;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer { background: #011a35; }

.footer-main { padding: 3rem 0 2rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand-desc {
    font-size: 0.875rem;
    color: #4a6280;
    line-height: 1.75;
    margin-top: 0.875rem;
    margin-bottom: 0;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pj-blue-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { font-size: 0.875rem; color: #4a6280; transition: color var(--pj-transition); }
.footer-links a:hover { color: var(--pj-blue-muted); }

.footer-bottom {
    border-top: 1px solid var(--pj-blue-dark);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-inner p { font-size: 0.8125rem; color: #4a6280; margin: 0; }

.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { font-size: 0.8125rem; color: #4a6280; }
.footer-bottom-links a:hover { color: var(--pj-blue-muted); }

/* =========================================================
   SEARCH
========================================================= */
.search-form {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--pj-border);
    border-radius: var(--pj-radius);
    overflow: hidden;
    transition: border-color var(--pj-transition);
}
.search-form:focus-within { border-color: var(--pj-blue-dark); }

.search-input {
    flex: 1;
    border: none;
    padding: 0.6875rem 1rem;
    font-size: 0.9375rem;
    outline: none;
    font-family: var(--pj-font);
    color: var(--pj-black);
    background: var(--pj-white);
}

.search-submit {
    background: var(--pj-blue-dark);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    color: var(--pj-white);
    font-size: 0.9375rem;
    transition: background var(--pj-transition);
}
.search-submit:hover { background: var(--pj-navy); }

/* =========================================================
   ARCHIVE / CATEGORY PAGE
========================================================= */
.archive-hero {
    background: var(--pj-blue-dark);
    padding: 2.5rem 0;
}

.archive-hero h1 { color: var(--pj-white); font-size: 2rem; margin-bottom: 0.5rem; }
.archive-hero p { color: var(--pj-blue-muted); margin: 0; font-size: 0.9375rem; }

/* =========================================================
   NO RESULTS / 404
========================================================= */
.no-results { text-align: center; padding: 4rem 2rem; }
.no-results h1 { color: var(--pj-navy); margin-bottom: 1rem; }
.no-results p { color: var(--pj-gray-500); margin-bottom: 2rem; }

/* =========================================================
   ELEMENTOR COMPATIBILITY
========================================================= */
.elementor-section .container { max-width: 100%; padding: 0; }

/* =========================================================
   YOAST SEO COMPATIBILITY
========================================================= */
.yoast-breadcrumb { font-size: 0.8125rem; color: var(--pj-gray-500); }
.yoast-breadcrumb a { color: var(--pj-blue-dark); }
.yoast-breadcrumb span { color: var(--pj-gray-500); }

/* =========================================================
   RESPONSIVE — TABLET (max 1024px)
========================================================= */
@media (max-width: 1024px) {
    .content-sidebar-wrap { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; }
    .featured-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .newsletter-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .nav-cta { display: none; }
}

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

    .main-navigation { display: none; }
    .main-navigation.toggled { display: flex; }
    .menu-toggle { display: flex; }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pj-white);
        border-bottom: 2px solid var(--pj-blue-dark);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 0.25rem;
    }

    .nav-menu > li > a { padding: 0.75rem 1rem; font-size: 1rem; }

    .posts-grid-3 { grid-template-columns: 1fr; }
    .posts-grid-2 { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .author-box { flex-direction: column; }
    .newsletter-form-box { padding: 1.25rem; }
    .trust-bar-inner { gap: 0.5rem; }
    .trust-item span { font-size: 0.6875rem; }
}

/* =========================================================
   ADSENSE AD UNITS
   Policy: clearly labelled, separated from content/nav,
   no deceptive placement, no fake download/click labels.
========================================================= */
.pj-ad-unit {
    width: 100%;
    clear: both;
    overflow: hidden;
    text-align: center;
}

/* "Advertisement" label — required by AdSense policy */
.pj-ad-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--pj-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.375rem;
    text-align: center;
}

/* Homepage placements — full-width, breathing room */
.pj-ad-homepage-top,
.pj-ad-homepage-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    background: var(--pj-gray-100);
    margin: 0;
}

/* Between featured and categories */
.pj-ad-homepage-mid {
    padding: 1.25rem 0;
    background: var(--pj-gray-100);
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
}

/* Single post — top slot (below hero, above image) */
.pj-ad-single-top {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--pj-gray-100);
    border-radius: var(--pj-radius-lg);
    border: 1px solid var(--pj-border);
}

/* Mid-article injection — blends with content but clearly labelled */
.pj-ad-single-mid {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--pj-gray-100);
    border-radius: var(--pj-radius-lg);
    border: 1px dashed var(--pj-border);
}

/* Below content, above author box */
.pj-ad-single-bottom {
    margin: 2rem 0;
    padding: 1.25rem;
    background: var(--pj-gray-100);
    border-radius: var(--pj-radius-lg);
    border: 1px solid var(--pj-border);
}

/* Sidebar ad — sticky-safe */
.pj-ad-sidebar {
    margin-bottom: 1.5rem;
}

/* Archive/category page */
.pj-ad-archive {
    padding: 1.5rem 0;
    background: var(--pj-gray-100);
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    margin: 1.5rem 0;
}

/* Ensure ads never sit flush against images or nav
   (AdSense policy: no deceptive proximity) */
.post-thumbnail + .pj-ad-unit { margin-top: 1.5rem; }
.nav-menu + .pj-ad-unit { margin-top: 1.5rem; }

/* =========================================================
   PRINT
========================================================= */
@media print {
    .site-header, .site-footer, .sidebar, .newsletter-section,
    .trending-bar, .share-section, .related-posts-section { display: none; }
    .content-sidebar-wrap { grid-template-columns: 1fr; }
    body { font-size: 12pt; }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: var(--pj-white);
    border-radius: var(--pj-radius);
    box-shadow: var(--pj-shadow-md);
    clip: auto !important;
    clip-path: none;
    color: var(--pj-navy);
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 1rem;
    padding: 0.875rem 1.25rem;
    top: 1rem;
    width: auto;
    z-index: 9999;
}

:focus-visible {
    outline: 3px solid var(--pj-blue);
    outline-offset: 2px;
}
