/*
Theme Name:         24 News PK - News & Magazine Theme
Theme URI:          https://24newspk.com
Author:             24 News PK Engineering Team
Author URI:         https://24newspk.com
Description:        Production-grade, Elementor-compatible WordPress News, Newspaper & Magazine theme for 24 News PK (Pakistan's Pulse, 24/7). Features a 5-tier Jannah-inspired header with dynamic measured More overflow navigation, Mega Menus, Breaking & Financial Marquees, 15+ Dynamic Homepage Magazine Sections, 13 Custom Elementor News Widgets, Dual Independent Sidebars (Homepage & Single Article), Light/Dark Skin Switcher, Urdu RTL Compatibility, and WCAG 2.2 AA Accessibility.
Version:            3.0.0
Requires at least:  6.4
Tested up to:       6.7
Requires PHP:       8.2
License:            GNU General Public License v2 or later
License URI:        https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        jannah-pulse-theme
Tags:               news, blog, two-columns, right-sidebar, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. 24 NEWS PK GLOBAL DESIGN SYSTEM & CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
	--jpt-primary: #082A54;
	--jpt-primary-hover: #0D3B73;
	--jpt-accent: #ED1024;
	--jpt-accent-hover: #C80B1C;
	--jpt-success: #16a34a;
	--jpt-warning: #d97706;
	--jpt-bg: #F5F7FA;
	--jpt-surface: #FFFFFF;
	--jpt-surface-alt: #EEF2F6;
	--jpt-dark-bar: #051B38;
	--jpt-nav-bg: #082A54;
	--jpt-text: #082A54;
	--jpt-text-body: #1E293B;
	--jpt-muted: #52637A;
	--jpt-border: #DCE2EB;
	--jpt-radius: 8px;
	--jpt-shadow: 0 4px 18px rgba(8, 42, 84, 0.06);
	--jpt-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--jpt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--jpt-font-urdu: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
	--jpt-container: 1280px;

	/* Elementor Global Color Synchronization */
	--e-global-color-primary: var(--jpt-primary);
	--e-global-color-secondary: var(--jpt-text-body);
	--e-global-color-text: var(--jpt-text-body);
	--e-global-color-accent: var(--jpt-accent);
}

[data-theme="dark"] {
	--jpt-primary: #1D4ED8;
	--jpt-primary-hover: #2563EB;
	--jpt-accent: #ED1024;
	--jpt-bg: #070D19;
	--jpt-surface: #0F172A;
	--jpt-surface-alt: #1E293B;
	--jpt-dark-bar: #030712;
	--jpt-nav-bg: #081E3E;
	--jpt-text: #F8FAFC;
	--jpt-text-body: #CBD5E1;
	--jpt-muted: #94A3B8;
	--jpt-border: #26334D;
	--jpt-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. RESET, ACCESSIBILITY & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	padding: 0;
	background-color: var(--jpt-bg);
	color: var(--jpt-text-body);
	font-family: var(--jpt-font-body);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--jpt-font-heading);
	color: var(--jpt-text);
	line-height: 1.28;
	margin-top: 0;
	font-weight: 800;
}
a {
	color: var(--jpt-text);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}
a:hover {
	color: var(--jpt-accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 2px solid var(--jpt-accent);
	outline-offset: 2px;
}
img, video, iframe {
	max-width: 100%;
	height: auto;
	display: block;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	background: var(--jpt-accent);
	color: #ffffff;
	padding: 10px 18px;
	border-radius: 6px;
	z-index: 99999;
	font-weight: 700;
}
.skip-link:focus {
	top: 12px;
	color: #ffffff;
}
.jpt-container {
	width: 100%;
	max-width: var(--jpt-container);
	margin: 0 auto;
	padding: 0 16px;
}

/* ==========================================================================
   3. 5-TIER HEADER, MEASURED "MORE" OVERFLOW NAV, MEGA MENU & SEARCH
   ========================================================================== */
.jpt-top-announcement {
	background: linear-gradient(90deg, #082A54 0%, #ED1024 100%);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 0;
	text-align: center;
}
.jpt-top-announcement .jpt-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
.jpt-top-announcement a {
	color: #ffffff;
	text-decoration: underline;
	font-weight: 700;
}

/* Tier 1: Top Utility Bar */
.jpt-topbar {
	background: var(--jpt-dark-bar);
	color: #cbd5e1;
	font-size: 12.5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 6px 0;
}
.jpt-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.jpt-topbar-left,
.jpt-topbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.jpt-top-util-menu {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.jpt-top-util-menu li a {
	color: #cbd5e1;
	font-size: 12px;
	font-weight: 600;
}
.jpt-top-util-menu li a:hover {
	color: #ffffff;
}
.jpt-live-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: #f8fafc;
}
.jpt-header-weather-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	padding: 2px 10px;
	border-radius: 99px;
	font-weight: 600;
}
.jpt-top-social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.jpt-top-social a {
	color: #cbd5e1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	transition: background 0.15s ease, color 0.15s ease;
}
.jpt-top-social a:hover {
	background: var(--jpt-accent);
	color: #ffffff;
}
.jpt-util-btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
	border-radius: 5px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.jpt-util-btn:hover {
	background: var(--jpt-accent);
	border-color: var(--jpt-accent);
	color: #ffffff;
}

/* Tier 2: Main Brand Masthead (24 News PK Logo + Leaderboard Ad) */
.jpt-masthead {
	background: var(--jpt-surface);
	padding: 18px 0;
	border-bottom: 1px solid var(--jpt-border);
}
.jpt-masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.jpt-masthead.jpt-header-layout-2 .jpt-masthead-inner {
	flex-direction: column;
	text-align: center;
}
.jpt-brand-identity {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 14px;
}
.jpt-brand-logo-link {
	display: inline-block;
	line-height: 0;
}
.jpt-brand-logo-img {
	height: 68px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
}
.jpt-logo-dark-only {
	display: none;
}
[data-theme="dark"] .jpt-logo-light-only {
	display: none;
}
[data-theme="dark"] .jpt-logo-dark-only {
	display: block;
}
.jpt-site-title {
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.03em;
	margin: 0;
	line-height: 1.05;
}
.jpt-site-title a {
	color: var(--jpt-text);
}
.jpt-site-title .jpt-logo-dot {
	color: var(--jpt-accent);
}
.jpt-edition-tag {
	display: block;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--jpt-accent);
	text-transform: uppercase;
	margin-top: 4px;
}
.jpt-header-ad-wrap {
	flex: 1;
	max-width: 760px;
}

/* Tier 3: Sticky Primary Navigation Bar with Measured "More" Overflow */
.jpt-primary-nav-bar {
	background: var(--jpt-nav-bg);
	color: #ffffff;
	position: relative;
	z-index: 1000;
	border-bottom: 3px solid var(--jpt-accent);
	box-shadow: 0 4px 12px rgba(8, 42, 84, 0.16);
}
.jpt-primary-nav-bar.is-sticky {
	position: sticky;
	top: 0;
}
.jpt-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	gap: 12px;
}
.jpt-nav-menu-viewport {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}
.jpt-main-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
	width: 100%;
}
/* Graceful wrap fallback when JS is disabled */
.no-js .jpt-main-menu {
	flex-wrap: wrap;
}
.jpt-main-menu > li {
	position: relative;
	flex-shrink: 0;
}
.jpt-main-menu > li > a,
.jpt-nav-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #f8fafc;
	font-family: var(--jpt-font-heading);
	font-weight: 700;
	font-size: 13px;
	padding: 15px 13px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
}
.jpt-main-menu > li:hover > a,
.jpt-main-menu > li.current-menu-item > a,
.jpt-main-menu > li.current-category-ancestor > a,
.jpt-nav-more-item:hover > .jpt-nav-more-btn,
.jpt-nav-more-item.is-open > .jpt-nav-more-btn {
	background: rgba(255, 255, 255, 0.1);
	border-bottom-color: var(--jpt-accent);
	color: #ffffff;
}
.jpt-menu-badge {
	display: inline-block;
	font-size: 9.5px;
	font-weight: 800;
	padding: 1px 5px;
	border-radius: 3px;
	background: var(--jpt-accent);
	color: #ffffff;
	margin-left: 4px;
	text-transform: uppercase;
}

/* Standard Sub-Menu & Measured "More" Overflow Dropdown */
.jpt-main-menu ul.sub-menu,
.jpt-nav-more-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: var(--jpt-surface);
	border: 1px solid var(--jpt-border);
	border-top: 3px solid var(--jpt-accent);
	border-radius: 0 0 8px 8px;
	box-shadow: var(--jpt-shadow);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	display: none;
	z-index: 1200;
}
.jpt-nav-more-dropdown {
	left: auto;
	right: 0;
	min-width: 240px;
}
.jpt-main-menu li:hover > ul.sub-menu,
.jpt-main-menu li:focus-within > ul.sub-menu,
.jpt-main-menu li.is-open > ul.sub-menu,
.jpt-nav-more-item:hover > .jpt-nav-more-dropdown,
.jpt-nav-more-item:focus-within > .jpt-nav-more-dropdown,
.jpt-nav-more-item.is-open > .jpt-nav-more-dropdown {
	display: block;
}
.jpt-main-menu ul.sub-menu li,
.jpt-nav-more-dropdown li {
	position: relative;
}
.jpt-main-menu ul.sub-menu li a,
.jpt-nav-more-dropdown li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 16px;
	color: var(--jpt-text);
	font-size: 13.5px;
	font-weight: 600;
	text-transform: none;
	border-bottom: 1px solid var(--jpt-surface-alt);
}
.jpt-main-menu ul.sub-menu li:last-child a,
.jpt-nav-more-dropdown li:last-child a {
	border-bottom: none;
}
.jpt-main-menu ul.sub-menu li a:hover,
.jpt-nav-more-dropdown li a:hover {
	background: var(--jpt-surface-alt);
	color: var(--jpt-accent);
}
/* Nested sub-menu inside More dropdown */
.jpt-nav-more-dropdown .jpt-mega-panel {
	display: none !important;
}
.jpt-nav-more-dropdown ul.sub-menu {
	position: static;
	border: none;
	box-shadow: none;
	padding: 0 0 0 14px;
	display: block;
	background: var(--jpt-surface-alt);
}

/* Category Mega Menu Panel */
.jpt-mega-panel {
	position: absolute;
	top: 100%;
	left: 0;
	width: 820px;
	max-width: 92vw;
	background: var(--jpt-surface);
	border: 1px solid var(--jpt-border);
	border-top: 3px solid var(--jpt-accent);
	border-radius: 0 0 8px 8px;
	box-shadow: var(--jpt-shadow);
	padding: 18px;
	display: none;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	z-index: 1200;
}
.jpt-mega-panel.jpt-mega-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}
.jpt-has-mega:hover > .jpt-mega-panel,
.jpt-has-mega:focus-within > .jpt-mega-panel,
.jpt-has-mega.is-open > .jpt-mega-panel {
	display: grid;
}
.jpt-mega-card .jpt-mini-title a {
	color: var(--jpt-text);
}
.jpt-mega-card .jpt-mini-title a:hover {
	color: var(--jpt-accent);
}

/* Nav Right Utilities & AJAX Live Search */
.jpt-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.jpt-search-wrap {
	position: relative;
}
.jpt-search-form-inline {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	overflow: hidden;
}
.jpt-search-input {
	background: transparent;
	border: none;
	color: #ffffff;
	padding: 6px 10px;
	font-size: 13px;
	width: 170px;
}
.jpt-search-input::placeholder {
	color: #cbd5e1;
}
.jpt-search-submit {
	background: var(--jpt-accent);
	color: #ffffff;
	border: none;
	padding: 7px 11px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.jpt-live-search-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	width: 360px;
	max-width: 92vw;
	background: var(--jpt-surface);
	border: 1px solid var(--jpt-border);
	border-top: 3px solid var(--jpt-accent);
	border-radius: 8px;
	box-shadow: var(--jpt-shadow);
	padding: 12px;
	display: none;
	z-index: 1500;
}
.jpt-live-search-dropdown.is-open {
	display: block;
}
.jpt-mobile-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #ffffff;
	border-radius: 6px;
	padding: 6px 11px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* Mobile Off-Canvas Drawer */
.jpt-mobile-drawer {
	position: fixed;
	inset: 0;
	background: rgba(5, 27, 56, 0.76);
	z-index: 9999;
	display: none;
}
.jpt-mobile-drawer.is-open {
	display: block;
}
.jpt-mobile-drawer-panel {
	width: 310px;
	max-width: 86vw;
	height: 100%;
	background: var(--jpt-surface);
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.jpt-mobile-drawer-panel ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.jpt-mobile-drawer-panel li a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid var(--jpt-border);
	font-weight: 700;
	color: var(--jpt-text);
}
.jpt-mobile-drawer-panel ul.sub-menu {
	padding-left: 14px;
}
.jpt-mobile-drawer-panel ul.sub-menu li a {
	font-weight: 600;
	font-size: 13.5px;
}

/* ==========================================================================
   4. HERO FEATURED 5-STORY GRID
   ========================================================================== */
.jpt-hero-section {
	margin: 20px 0;
}
.jpt-hero-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 14px;
}
.jpt-hero-subgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.jpt-hero-tile {
	position: relative;
	border-radius: var(--jpt-radius);
	overflow: hidden;
	min-height: 210px;
	background: #082A54;
	display: flex;
	align-items: flex-end;
}
.jpt-hero-tile-main {
	min-height: 434px;
}
.jpt-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.jpt-hero-tile:hover .jpt-hero-bg {
	transform: scale(1.04);
}
.jpt-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 27, 56, 0.08) 0%, rgba(5, 27, 56, 0.58) 50%, rgba(5, 27, 56, 0.95) 100%);
}
.jpt-hero-overlay {
	position: relative;
	z-index: 2;
	padding: 20px;
	width: 100%;
	color: #ffffff;
}
.jpt-cat-badge {
	display: inline-block;
	background: var(--jpt-accent);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 9px;
	border-radius: 4px;
	margin-bottom: 8px;
}
.jpt-hero-overlay h2,
.jpt-hero-overlay h3 {
	color: #ffffff;
	margin: 0 0 8px 0;
}
.jpt-hero-tile-main h2 {
	font-size: 25px;
}
.jpt-hero-subgrid h3 {
	font-size: 15.5px;
}
.jpt-hero-overlay h2 a,
.jpt-hero-overlay h3 a {
	color: #ffffff;
}
.jpt-hero-overlay h2 a:hover,
.jpt-hero-overlay h3 a:hover {
	color: #fca5a5;
}
.jpt-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--jpt-muted);
	flex-wrap: wrap;
}
.jpt-hero-overlay .jpt-card-meta {
	color: #cbd5e1;
}

/* ==========================================================================
   5. MAIN 2-COLUMN CONTENT + INDEPENDENT STICKY SIDEBARS
   ========================================================================== */
.jpt-main-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 28px;
	align-items: start;
	margin: 24px 0 40px 0;
}
.jpt-main-layout.jpt-no-sidebar {
	grid-template-columns: minmax(0, 880px);
	justify-content: center;
}
.jpt-sidebar {
	position: sticky;
	top: 68px;
}
.jpt-sidebar-non-sticky {
	position: static;
}

/* ==========================================================================
   6. MAGAZINE NEWS BLOCKS & CAROUSEL SLIDER
   ========================================================================== */
.jpt-mag-block {
	background: var(--jpt-surface);
	border: 1px solid var(--jpt-border);
	border-radius: var(--jpt-radius);
	padding: 22px;
	margin-bottom: 26px;
	box-shadow: var(--jpt-shadow);
}
.jpt-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 2px solid var(--jpt-border);
	padding-bottom: 12px;
	margin-bottom: 18px;
	position: relative;
	flex-wrap: wrap;
}
.jpt-block-header::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 68px;
	height: 2px;
	background: var(--block-accent, var(--jpt-accent));
}
.jpt-block-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--block-accent, var(--jpt-text));
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.jpt-block-filter-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.jpt-filter-pill {
	background: var(--jpt-surface-alt);
	border: 1px solid var(--jpt-border);
	color: var(--jpt-muted);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 99px;
	cursor: pointer;
}
.jpt-filter-pill.is-active,
.jpt-filter-pill:hover {
	background: var(--block-accent, var(--jpt-primary));
	border-color: var(--block-accent, var(--jpt-primary));
	color: #ffffff;
}

/* Block #1: 1 Large Featured Story Left + Compact List Right */
.jpt-block-1-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 22px;
}
.jpt-card-thumb-wrap {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #082A54;
	margin-bottom: 12px;
}
.jpt-card-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.jpt-card-thumb-wrap:hover img {
	transform: scale(1.03);
}
.jpt-card-title {
	font-size: 17.5px;
	margin: 0 0 8px 0;
	line-height: 1.35;
}
.jpt-card-excerpt {
	font-size: 14px;
	color: var(--jpt-text-body);
	margin: 8px 0 12px 0;
}
.jpt-mini-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.jpt-mini-item {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 12px;
	align-items: center;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--jpt-border);
}
.jpt-mini-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.jpt-mini-thumb {
	width: 96px;
	height: 68px;
	border-radius: 6px;
	overflow: hidden;
	background: #082A54;
	display: block;
}
.jpt-mini-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.jpt-mini-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 4px 0;
	line-height: 1.35;
}

/* 3-Column, 4-Column Carousel & 2-Column Grids */
.jpt-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.jpt-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.jpt-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
.jpt-masonry-3 {
	columns: 3 240px;
	column-gap: 18px;
}
.jpt-masonry-3 .jpt-news-card {
	break-inside: avoid;
	margin-bottom: 18px;
	padding: 14px;
	border: 1px solid var(--jpt-border);
	border-radius: 8px;
	background: var(--jpt-surface-alt);
}

/* Dark Video Playlist Cinema Section */
.jpt-video-cinema {
	background: #051B38;
	color: #f8fafc;
	border-color: #0D3B73;
}
.jpt-video-cinema .jpt-block-title,
.jpt-video-cinema a {
	color: #f8fafc;
}
.jpt-video-cinema a:hover {
	color: #fca5a5;
}
.jpt-video-cinema-grid {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: 20px;
}
.jpt-video-stage {
	background: #020c1b;
	border-radius: 8px;
	overflow: hidden;
	padding: 16px;
}
.jpt-video-playlist-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 380px;
	overflow-y: auto;
}
.jpt-video-play-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 6px;
}

/* Editorial Opinion Cards */
.jpt-opinion-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.jpt-opinion-card {
	background: var(--jpt-surface-alt);
	border-left: 4px solid var(--block-accent, var(--jpt-accent));
	padding: 16px;
	border-radius: 6px;
}
.jpt-opinion-author {
	font-size: 12px;
	font-weight: 800;
	color: var(--jpt-accent);
	text-transform: uppercase;
	margin-bottom: 4px;
}

/* Classic News River + Load More Button */
.jpt-river-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.jpt-river-item {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--jpt-border);
	align-items: center;
}
.jpt-load-more-wrap {
	text-align: center;
	margin-top: 20px;
}
.jpt-load-more-btn {
	background: var(--jpt-surface-alt);
	border: 1px solid var(--jpt-border);
	color: var(--jpt-text);
	font-weight: 800;
	font-size: 13.5px;
	padding: 11px 28px;
	border-radius: 6px;
	cursor: pointer;
	width: 100%;
	transition: background 0.15s ease, color 0.15s ease;
}
.jpt-load-more-btn:hover {
	background: var(--jpt-primary);
	color: #ffffff;
	border-color: var(--jpt-primary);
}

/* ==========================================================================
   7. SINGLE ARTICLE PAGE (TOC, LIVE BLOG, CORRECTION BOX, SHARE, BIO)
   ========================================================================== */
.jpt-single-article {
	background: var(--jpt-surface);
	border: 1px solid var(--jpt-border);
	border-radius: var(--jpt-radius);
	padding: 28px;
	box-shadow: var(--jpt-shadow);
}
.jpt-breadcrumbs {
	font-size: 12.5px;
	color: var(--jpt-muted);
	margin-bottom: 12px;
}
.jpt-breadcrumbs a {
	color: var(--jpt-primary);
	font-weight: 600;
}
.jpt-single-title {
	font-size: 32px;
	margin-bottom: 10px;
	line-height: 1.22;
}
.jpt-single-subtitle {
	font-size: 18px;
	color: var(--jpt-muted);
	font-weight: 500;
	margin: 0 0 16px 0;
}
.jpt-single-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--jpt-border);
	border-bottom: 1px solid var(--jpt-border);
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.jpt-featured-figure {
	margin: 0 0 22px 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--jpt-surface-alt);
}
.jpt-featured-figure img {
	width: 100%;
	max-height: 540px;
	object-fit: cover;
}
.jpt-featured-figure figcaption {
	font-size: 12.5px;
	color: var(--jpt-muted);
	padding: 8px 12px;
	background: var(--jpt-surface-alt);
}
.jpt-toc-box {
	background: var(--jpt-surface-alt);
	border: 1px solid var(--jpt-border);
	border-left: 4px solid var(--jpt-primary);
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 22px;
}
.jpt-toc-box h4 {
	margin: 0 0 10px 0;
	font-size: 14.5px;
	text-transform: uppercase;
}
.jpt-correction-box {
	background: rgba(237, 16, 36, 0.06);
	border: 1px solid rgba(237, 16, 36, 0.25);
	border-left: 4px solid var(--jpt-accent);
	border-radius: 6px;
	padding: 14px 18px;
	margin: 18px 0;
	font-size: 13.5px;
}
.jpt-live-timeline-box {
	background: var(--jpt-surface-alt);
	border: 1px solid var(--jpt-border);
	border-radius: 8px;
	padding: 18px;
	margin-bottom: 22px;
}
.jpt-live-timeline-entry {
	padding: 12px 0 12px 16px;
	border-left: 2px solid var(--jpt-accent);
	margin-left: 6px;
}
.jpt-entry-content {
	font-size: 17px;
	line-height: 1.78;
}
.jpt-entry-content p {
	margin: 0 0 18px 0;
}
.jpt-entry-content h2,
.jpt-entry-content h3 {
	margin-top: 28px;
	margin-bottom: 12px;
}
.jpt-share-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 16px 0;
	border-top: 1px solid var(--jpt-border);
	border-bottom: 1px solid var(--jpt-border);
	margin: 24px 0;
}
.jpt-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: #ffffff;
	border: none;
	cursor: pointer;
}
.jpt-share-btn:hover {
	opacity: 0.92;
	color: #ffffff;
}
.jpt-share-fb { background: #1877f2; }
.jpt-share-x  { background: #0f172a; }
.jpt-share-wa { background: #16a34a; }
.jpt-share-cp { background: var(--jpt-primary); }

.jpt-author-bio-box {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--jpt-surface-alt);
	border: 1px solid var(--jpt-border);
	border-radius: 8px;
	padding: 18px;
	margin: 24px 0;
}
.jpt-author-bio-box img {
	border-radius: 50%;
}
.jpt-prev-next-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 24px 0;
}
.jpt-pn-card {
	background: var(--jpt-surface-alt);
	border: 1px solid var(--jpt-border);
	border-radius: 8px;
	padding: 14px 16px;
}

/* ==========================================================================
   8. FOOTER, COOKIE NOTICE & BACK TO TOP
   ========================================================================== */
.jpt-site-footer {
	background: var(--jpt-dark-bar);
	color: #cbd5e1;
	padding: 48px 0 0 0;
	margin-top: 48px;
	border-top: 4px solid var(--jpt-accent);
}
.jpt-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 28px;
	padding-bottom: 36px;
}
.jpt-footer-col h3 {
	color: #ffffff;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.12);
	position: relative;
}
.jpt-footer-col h3::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 44px;
	height: 2px;
	background: var(--jpt-accent);
}
.jpt-footer-bottom {
	background: #031024;
	padding: 18px 0;
	font-size: 13px;
	color: #94a3b8;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.jpt-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.jpt-footer-bottom a {
	color: #cbd5e1;
}
.jpt-footer-bottom a:hover {
	color: #ffffff;
}
.jpt-cookie-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #051B38;
	color: #f8fafc;
	padding: 14px 0;
	border-top: 2px solid var(--jpt-accent);
	z-index: 9500;
	display: none;
}
.jpt-cookie-bar.is-visible {
	display: block;
}
.jpt-back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--jpt-accent);
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(237, 16, 36, 0.35);
	z-index: 9000;
}
.jpt-back-to-top.is-visible {
	display: inline-flex;
}

/* ==========================================================================
   9. ELEMENTOR COMPATIBILITY & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.elementor-page .jpt-elementor-fullwidth-main {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}
.elementor-widget-container .jpt-mag-block {
	margin-bottom: 0;
}

@media (max-width: 1080px) {
	.jpt-main-layout {
		grid-template-columns: 1fr;
	}
	.jpt-sidebar {
		position: static;
	}
	.jpt-hero-grid,
	.jpt-video-cinema-grid {
		grid-template-columns: 1fr;
	}
	.jpt-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.jpt-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 860px) {
	.jpt-mobile-toggle {
		display: inline-flex;
	}
	.jpt-nav-menu-viewport {
		display: none;
	}
	.jpt-masthead-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.jpt-block-1-grid,
	.jpt-grid-3,
	.jpt-grid-2,
	.jpt-opinion-grid,
	.jpt-prev-next-nav {
		grid-template-columns: 1fr;
	}
	.jpt-river-item {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.jpt-hero-subgrid,
	.jpt-grid-4,
	.jpt-footer-grid {
		grid-template-columns: 1fr;
	}
	.jpt-single-title {
		font-size: 24px;
	}
	.jpt-search-input {
		width: 130px;
	}
}
