/*
 * Peak Journalism Main Stylesheet
 * Ultra-fast, responsive, editorial layout
 */

:root {
    --pj-primary: #dc2626;
    --pj-primary-dark: #b91c1c;
    --pj-primary-light: #fef2f2;
    --pj-dark: #0f172a;
    --pj-dark-surface: #1e293b;
    --pj-text: #1e293b;
    --pj-text-muted: #64748b;
    --pj-text-light: #94a3b8;
    --pj-bg: #ffffff;
    --pj-bg-alt: #f8fafc;
    --pj-border: #e2e8f0;
    --pj-border-light: #f1f5f9;
    --pj-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --pj-font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
    --pj-radius: 6px;
    --pj-radius-lg: 10px;
    --pj-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --pj-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --pj-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --pj-container: 1240px;
    --pj-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--pj-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pj-text);
    background-color: var(--pj-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--pj-transition);
}

a:hover {
    color: var(--pj-primary);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--pj-dark);
    margin-top: 0;
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.pj-container {
    width: 100%;
    max-width: var(--pj-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.pj-topbar {
    background-color: var(--pj-dark);
    color: #cbd5e1;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
}

.pj-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pj-date-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}

.pj-edition-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pj-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pj-topbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 14px;
}

.pj-topbar-menu a {
    color: #cbd5e1;
}

.pj-topbar-menu a:hover {
    color: #ffffff;
}

.pj-topbar-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pj-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-size: 0.6875rem;
    font-weight: 700;
}

.pj-social-link:hover {
    background: var(--pj-primary);
    color: #ffffff;
}

/* ==========================================================================
   Main Masthead & Branding
   ========================================================================== */
.pj-masthead {
    background: var(--pj-bg);
    border-bottom: 1px solid var(--pj-border);
    padding: 24px 0 20px;
}

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

.pj-branding {
    flex: 1;
}

.pj-site-title {
    font-family: var(--pj-font-sans);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--pj-dark);
    line-height: 1.1;
    display: inline-block;
}

.pj-title-highlight {
    color: var(--pj-primary);
}

.pj-site-tagline {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--pj-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pj-masthead-extra {
    display: flex;
    align-items: center;
}

.pj-tagline-box {
    border-left: 2px solid var(--pj-border);
    padding-left: 20px;
    text-align: right;
}

.pj-badge-editorial {
    display: inline-block;
    background: var(--pj-primary-light);
    color: var(--pj-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.pj-mission-mini {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
    max-width: 280px;
    line-height: 1.35;
}

.pj-mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.pj-search-trigger {
    background: none;
    border: none;
    color: var(--pj-text);
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
}

.pj-menu-toggle {
    background: none;
    border: 1px solid var(--pj-border);
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pj-hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--pj-dark);
    transition: var(--pj-transition);
}

/* ==========================================================================
   Navigation Bar (Sticky)
   ========================================================================== */
.pj-navbar-wrap {
    background-color: #ffffff;
    border-bottom: 2px solid var(--pj-dark);
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: var(--pj-shadow-sm);
}

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

.pj-main-navigation {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pj-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.pj-nav-menu > li > a {
    display: block;
    padding: 14px 16px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pj-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
}

.pj-nav-menu > li > a:hover,
.pj-nav-menu > li.current-menu-item > a {
    color: var(--pj-primary);
}

.pj-nav-menu > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: var(--pj-primary);
}

.pj-nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pj-text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
}

.pj-nav-search-btn:hover {
    color: var(--pj-dark);
    border-color: var(--pj-text-muted);
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */
.pj-breaking-ticker {
    background-color: #fff5f5;
    border-bottom: 1px solid #fed7d7;
    padding: 8px 0;
    font-size: 0.875rem;
}

.pj-ticker-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pj-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--pj-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.pj-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pjPulse 1.4s infinite ease-in-out;
}

@keyframes pjPulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

.pj-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.pj-ticker-list {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    transition: transform 0.4s ease-in-out;
}

.pj-ticker-item {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pj-ticker-time {
    color: var(--pj-primary);
    font-weight: 700;
    font-size: 0.8125rem;
}

.pj-ticker-link {
    color: var(--pj-dark);
    font-weight: 600;
}

.pj-ticker-link:hover {
    color: var(--pj-primary);
    text-decoration: underline;
}

.pj-ticker-controls {
    display: flex;
    gap: 4px;
}

.pj-ticker-prev,
.pj-ticker-next {
    background: #ffffff;
    border: 1px solid #fed7d7;
    color: var(--pj-text-muted);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.pj-ticker-prev:hover,
.pj-ticker-next:hover {
    background: var(--pj-primary);
    color: #ffffff;
    border-color: var(--pj-primary);
}

/* ==========================================================================
   Hero 5-Story Section
   ========================================================================== */
.pj-hero-section {
    padding: 24px 0 16px;
    background: #ffffff;
}

.pj-hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 24px;
}

/* Main Lead Hero */
.pj-hero-main {
    display: flex;
    flex-direction: column;
}

.pj-hero-media {
    position: relative;
    border-radius: var(--pj-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: var(--pj-bg-alt);
}

.pj-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pj-hero-main:hover .pj-hero-img {
    transform: scale(1.03);
}

.pj-hero-badge-wrap {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}

.pj-hero-content {
    padding-top: 16px;
}

.pj-hero-title {
    font-family: var(--pj-font-serif);
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.pj-hero-title a {
    color: var(--pj-dark);
}

.pj-hero-title a:hover {
    color: var(--pj-primary);
}

.pj-hero-kicker,
.pj-hero-excerpt {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 12px;
}

/* Sub-Hero 2x2 Grid */
.pj-hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pj-hero-sub-card {
    display: flex;
    flex-direction: column;
    background: var(--pj-bg);
}

.pj-sub-media {
    border-radius: var(--pj-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--pj-bg-alt);
    margin-bottom: 10px;
}

.pj-sub-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pj-hero-sub-card:hover .pj-sub-img {
    transform: scale(1.04);
}

.pj-sub-badge-wrap {
    margin-bottom: 6px;
}

.pj-sub-title {
    font-family: var(--pj-font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.pj-sub-title a {
    color: var(--pj-dark);
}

.pj-sub-title a:hover {
    color: var(--pj-primary);
}

/* Category Badges */
.pj-cat-badge {
    display: inline-block;
    background-color: var(--pj-primary);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.2;
}

.pj-cat-badge:hover {
    color: #ffffff;
    opacity: 0.9;
}

.pj-cat-india { background-color: #d97706; }
.pj-cat-world { background-color: #2563eb; }
.pj-cat-politics { background-color: #7c3aed; }
.pj-cat-business { background-color: #059669; }
.pj-cat-technology { background-color: #0891b2; }
.pj-cat-sports { background-color: #ea580c; }
.pj-cat-entertainment { background-color: #db2777; }
.pj-cat-education { background-color: #4f46e5; }
.pj-cat-health { background-color: #10b981; }

/* Article Meta */
.pj-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
}

.pj-article-meta svg {
    vertical-align: -2px;
}

.pj-meta-sep {
    color: var(--pj-border);
}

/* Placeholder for missing thumbnails */
.pj-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: 1px;
}

.pj-thumb-placeholder-mini {
    font-size: 0.8125rem;
}

/* ==========================================================================
   Trending Stories Strip
   ========================================================================== */
.pj-trending-strip {
    background-color: var(--pj-bg-alt);
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    padding: 18px 0;
    margin: 16px 0 32px;
}

.pj-trending-header {
    margin-bottom: 12px;
}

.pj-trending-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pj-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pj-trending-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.pj-trending-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pj-trending-num {
    font-family: var(--pj-font-serif);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #cbd5e1;
    flex-shrink: 0;
}

.pj-trending-card:hover .pj-trending-num {
    color: var(--pj-primary);
}

.pj-trending-details {
    flex: 1;
}

.pj-trending-cat {
    display: block;
    margin-bottom: 4px;
}

.pj-trending-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.pj-trending-title a {
    color: var(--pj-dark);
}

.pj-trending-title a:hover {
    color: var(--pj-primary);
}

/* ==========================================================================
   Main Editorial Layout & Grids
   ========================================================================== */
.pj-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    margin-bottom: 48px;
}

.pj-content-area {
    min-width: 0;
}

.pj-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--pj-dark);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.pj-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pj-title-accent {
    width: 8px;
    height: 18px;
    background-color: var(--pj-primary);
    border-radius: 2px;
    display: inline-block;
}

.pj-view-all {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--pj-primary);
    text-transform: uppercase;
}

.pj-news-block {
    margin-bottom: 40px;
}

.pj-cards-grid {
    display: grid;
    gap: 24px;
}

.pj-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pj-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* News Card */
.pj-news-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.pj-card-thumb-wrap {
    position: relative;
    border-radius: var(--pj-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--pj-bg-alt);
    margin-bottom: 12px;
}

.pj-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pj-news-card:hover .pj-card-img {
    transform: scale(1.04);
}

.pj-card-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
}

.pj-card-title {
    font-family: var(--pj-font-serif);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.pj-card-title a {
    color: var(--pj-dark);
}

.pj-card-title a:hover {
    color: var(--pj-primary);
}

.pj-card-excerpt {
    font-size: 0.9375rem;
    color: var(--pj-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Dual Block Layout (India & World) */
.pj-dual-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.pj-list-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pj-list-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pj-border);
}

.pj-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pj-list-thumb {
    width: 110px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--pj-bg-alt);
}

.pj-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pj-list-content {
    flex: 1;
}

.pj-list-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px 0;
}

.pj-list-title a {
    color: var(--pj-dark);
}

.pj-list-title a:hover {
    color: var(--pj-primary);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.pj-sidebar-area {
    min-width: 0;
}

.pj-widget {
    background: #ffffff;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    padding: 22px;
    margin-bottom: 28px;
}

.pj-widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--pj-dark);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.pj-widget-editorial {
    background: #f8fafc;
    border-left: 4px solid var(--pj-primary);
}

.pj-editorial-blurb {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pj-editorial-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pj-btn-outline {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid var(--pj-border);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--pj-dark);
    background: #ffffff;
}

.pj-btn-outline:hover {
    border-color: var(--pj-primary);
    color: var(--pj-primary);
}

.pj-popular-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pj-popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pj-border-light);
}

.pj-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pj-popular-index {
    font-family: var(--pj-font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--pj-primary);
    flex-shrink: 0;
}

.pj-popular-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px 0;
}

.pj-popular-title a {
    color: var(--pj-dark);
}

.pj-popular-title a:hover {
    color: var(--pj-primary);
}

/* ==========================================================================
   Single Article Layout (Google News Compliant)
   ========================================================================== */
.pj-single-main {
    padding-top: 20px;
}

.pj-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pj-breadcrumb-sep {
    color: var(--pj-border);
}

.pj-breadcrumb-current {
    color: var(--pj-text);
    font-weight: 600;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pj-entry-header {
    margin-bottom: 24px;
}

.pj-header-category {
    margin-bottom: 12px;
}

.pj-entry-title {
    font-family: var(--pj-font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.pj-entry-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Byline Strip */
.pj-byline-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    margin-bottom: 16px;
}

.pj-byline-author-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pj-author-avatar-img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.pj-byline-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pj-dark);
}

.pj-byline-dates {
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pj-read-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pj-text-muted);
}

/* Social Share Bar */
.pj-social-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pj-share-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pj-text-muted);
}

.pj-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pj-share-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
}

.pj-share-wa { background-color: #25d366; }
.pj-share-x { background-color: #0f1419; }
.pj-share-fb { background-color: #1877f2; }
.pj-share-li { background-color: #0a66c2; }
.pj-copy-link { background-color: #475569; }

.pj-share-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Featured Media */
.pj-featured-figure {
    margin: 0 0 28px 0;
    border-radius: var(--pj-radius);
    overflow: hidden;
    background: var(--pj-bg-alt);
}

.pj-single-feat-img {
    width: 100%;
    height: auto;
}

.pj-featured-caption {
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
    padding: 8px 12px;
    background: var(--pj-bg-alt);
    border-left: 3px solid var(--pj-primary);
}

/* Editorial Body Typography */
.pj-entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 36px;
}

.pj-entry-content p {
    margin-bottom: 1.5rem;
}

.pj-entry-content p.lead,
.pj-entry-content > p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--pj-dark);
}

.pj-entry-content blockquote {
    font-family: var(--pj-font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--pj-dark);
    border-left: 4px solid var(--pj-primary);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
}

.pj-entry-content h2 {
    font-size: 1.75rem;
    margin-top: 36px;
    margin-bottom: 16px;
}

.pj-entry-content h3 {
    font-size: 1.35rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

/* Source Attribution Box (Requirement 5) */
.pj-source-attribution-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0284c7;
    border-radius: var(--pj-radius);
    padding: 16px 20px;
    margin: 28px 0;
}

.pj-source-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0369a1;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.pj-source-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--pj-text);
}

.pj-source-text a {
    color: #0284c7;
    font-weight: 600;
}

/* Corrections Notice Box */
.pj-corrections-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--pj-radius);
    padding: 14px 18px;
    margin: 24px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pj-corrections-copy {
    font-size: 0.875rem;
    color: #991b1b;
}

.pj-corrections-copy strong {
    display: block;
    margin-bottom: 2px;
}

.pj-corrections-copy a {
    color: var(--pj-primary-dark);
    font-weight: 700;
    text-decoration: underline;
}

/* Tags */
.pj-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 24px 0 32px;
}

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

.pj-post-tags a {
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
}

.pj-post-tags a:hover {
    background: var(--pj-primary);
    color: #ffffff;
    border-color: var(--pj-primary);
}

/* Author Bio Box */
.pj-author-box {
    display: flex;
    gap: 20px;
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    padding: 24px;
    margin: 36px 0;
}

.pj-author-box-avatar {
    flex-shrink: 0;
}

.pj-box-avatar-img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.pj-author-role {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--pj-primary);
    letter-spacing: 0.5px;
}

.pj-author-box-name {
    font-size: 1.25rem;
    margin: 2px 0 8px;
}

.pj-author-box-bio {
    font-size: 0.9375rem;
    color: #475569;
    margin-bottom: 12px;
}

.pj-author-archive-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--pj-primary);
}

/* Post Navigation (Prev/Next) */
.pj-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    margin: 32px 0;
}

.pj-nav-hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pj-text-muted);
    margin-bottom: 4px;
}

.pj-nav-previous a,
.pj-nav-next a {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--pj-dark);
}

.pj-nav-next {
    text-align: right;
}

/* Related Posts Section */
.pj-related-section {
    margin: 40px 0;
}

/* Comments */
.pj-comments-area {
    margin-top: 48px;
}

.pj-comments-title {
    font-size: 1.35rem;
    border-bottom: 2px solid var(--pj-dark);
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.pj-comment-list {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
}

.pj-comment-list .comment-body {
    padding: 16px 0;
    border-bottom: 1px solid var(--pj-border-light);
}

.pj-comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pj-comment-list .comment-author img {
    border-radius: 50%;
}

.pj-comment-list .comment-metadata {
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
    margin-bottom: 8px;
}

.pj-btn-primary {
    background-color: var(--pj-primary);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-block;
    transition: var(--pj-transition);
}

.pj-btn-primary:hover {
    background-color: var(--pj-primary-dark);
    color: #ffffff;
}

/* ==========================================================================
   Newsletter Pre-Footer
   ========================================================================== */
.pj-newsletter-section {
    background-color: var(--pj-dark);
    color: #ffffff;
    padding: 44px 0;
    border-top: 4px solid var(--pj-primary);
}

.pj-newsletter-inner {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 36px;
    align-items: center;
}

.pj-kicker-sub {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--pj-primary);
    letter-spacing: 1px;
}

.pj-newsletter-title {
    color: #ffffff;
    font-family: var(--pj-font-serif);
    font-size: 1.75rem;
    margin: 4px 0 8px;
}

.pj-newsletter-desc {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9375rem;
}

.pj-newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.pj-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.9375rem;
}

.pj-newsletter-form input::placeholder {
    color: #94a3b8;
}

.pj-newsletter-form button {
    background-color: var(--pj-primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.pj-newsletter-form button:hover {
    background-color: var(--pj-primary-dark);
}

.pj-newsletter-privacy {
    font-size: 0.75rem;
    color: #64748b;
}

.pj-newsletter-privacy a {
    color: #94a3b8;
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.pj-site-footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding-top: 48px;
    font-size: 0.875rem;
}

.pj-footer-grid {
    display: grid;
    grid-template-columns: 4fr 2.5fr 2.5fr 3fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-footer-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.pj-footer-desc {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 12px 0 16px;
}

.pj-footer-meta p {
    margin-bottom: 6px;
    font-size: 0.8125rem;
}

.pj-footer-meta a {
    color: #cbd5e1;
}

.pj-footer-meta a:hover {
    color: #ffffff;
}

.pj-footer-col-title {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-left: 3px solid var(--pj-primary);
    padding-left: 10px;
}

.pj-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pj-footer-links a {
    color: #94a3b8;
}

.pj-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.pj-trust-badge {
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.pj-trust-icon {
    color: #10b981;
    font-weight: 900;
}

.pj-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.pj-back-to-top button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.pj-back-to-top button:hover {
    background: var(--pj-primary);
    color: #ffffff;
    border-color: var(--pj-primary);
}

/* ==========================================================================
   Search Modal & Mobile Drawer
   ========================================================================== */
.pj-search-modal,
.pj-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.pj-search-modal.active,
.pj-mobile-drawer.active {
    display: block;
}

.pj-search-modal-backdrop,
.pj-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
}

.pj-search-modal-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 100px auto 0;
    padding: 20px;
}

.pj-search-modal-close,
.pj-drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: -40px;
    right: 20px;
}

.pj-search-modal-box {
    background: #ffffff;
    border-radius: var(--pj-radius-lg);
    padding: 32px;
    box-shadow: var(--pj-shadow-md);
}

.pj-search-modal-heading {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--pj-dark);
}

.pj-modal-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pj-modal-search-field {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--pj-border);
    border-radius: 6px;
    font-size: 1rem;
}

.pj-modal-search-field:focus {
    outline: none;
    border-color: var(--pj-primary);
}

.pj-modal-search-submit {
    background-color: var(--pj-primary);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.pj-search-trending-tags {
    font-size: 0.8125rem;
    color: var(--pj-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pj-search-trending-tags a {
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Mobile Drawer Panel */
.pj-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    background: #ffffff;
    z-index: 2;
    overflow-y: auto;
    padding: 24px;
    box-shadow: var(--pj-shadow-md);
}

.pj-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--pj-border);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.pj-drawer-title {
    font-weight: 900;
    font-size: 1.25rem;
}

.pj-drawer-close {
    position: static;
    color: var(--pj-dark);
    font-size: 1.75rem;
}

.pj-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pj-mobile-menu li a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
    border-bottom: 1px solid var(--pj-border-light);
    color: var(--pj-dark);
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* ==========================================================================
   Pages & Forms Templates (Contact / About / Corrections / 404)
   ========================================================================== */
.pj-archive-header {
    margin-bottom: 28px;
    border-bottom: 2px solid var(--pj-dark);
    padding-bottom: 12px;
}

.pj-archive-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--pj-primary);
    letter-spacing: 1px;
}

.pj-archive-title {
    font-family: var(--pj-font-serif);
    font-size: 2rem;
    margin: 4px 0 8px;
}

.pj-archive-description {
    font-size: 0.9375rem;
    color: #475569;
}

.pj-pagination {
    margin-top: 36px;
    text-align: center;
}

.pj-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
}

.pj-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--pj-border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pj-pagination .current {
    background-color: var(--pj-primary);
    color: #ffffff;
    border-color: var(--pj-primary);
}

/* 404 Layout */
.pj-404-wrap {
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
}

.pj-404-number {
    font-family: var(--pj-font-serif);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--pj-primary);
    display: block;
}

.pj-404-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.pj-404-desc {
    color: #475569;
    margin-bottom: 24px;
}

.pj-cat-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.pj-cat-cloud a {
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Contact & Policy Page Features */
.pj-contact-cards-grid,
.pj-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
}

.pj-contact-card,
.pj-pillar-card {
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    padding: 20px;
}

.pj-contact-card h3,
.pj-pillar-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.pj-tip-form-box {
    background: #ffffff;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    padding: 28px;
    margin-top: 32px;
    box-shadow: var(--pj-shadow-sm);
}

.pj-editorial-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.pj-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pj-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pj-form-field label {
    font-size: 0.875rem;
    font-weight: 600;
}

.pj-form-field input,
.pj-form-field select,
.pj-form-field textarea {
    padding: 10px 14px;
    border: 1px solid var(--pj-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9375rem;
}

.pj-form-field input:focus,
.pj-form-field textarea:focus {
    outline: none;
    border-color: var(--pj-primary);
}

.pj-masthead-team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.pj-team-member {
    background: var(--pj-bg-alt);
    border: 1px solid var(--pj-border);
    padding: 16px;
    border-radius: 4px;
}

.pj-team-member h4 {
    margin-bottom: 6px;
    color: var(--pj-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .pj-hero-grid {
        grid-template-columns: 1fr;
    }

    .pj-hero-sub-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pj-trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pj-main-layout {
        grid-template-columns: 1fr;
    }

    .pj-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pj-newsletter-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pj-topbar {
        display: none;
    }

    .pj-masthead {
        padding: 14px 0;
    }

    .pj-masthead-extra {
        display: none;
    }

    .pj-mobile-actions {
        display: flex;
    }

    .pj-site-title {
        font-size: 1.75rem;
    }

    .pj-navbar-wrap {
        display: none;
    }

    .pj-hero-sub-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pj-trending-grid {
        grid-template-columns: 1fr;
    }

    .pj-grid-2,
    .pj-grid-3,
    .pj-dual-block,
    .pj-contact-cards-grid,
    .pj-pillars-grid,
    .pj-form-row,
    .pj-masthead-team {
        grid-template-columns: 1fr;
    }

    .pj-entry-title {
        font-size: 1.85rem;
    }

    .pj-byline-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pj-footer-grid {
        grid-template-columns: 1fr;
    }

    .pj-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .pj-post-navigation {
        grid-template-columns: 1fr;
    }

    .pj-nav-next {
        text-align: left;
    }
}
