/* ==========================================================================
   Pakistani Journal Design System v1.0.0
   Layered over Newspaper 12.x. Scoped to #td-outer-wrap so it outranks
   tagDiv Composer's per-block inline styles without touching the theme.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--pj-brand: #107c10;
	--pj-brand-dark: #0b5a0b;
	--pj-ink: #121417;
	--pj-ink-2: #4b5563;
	--pj-surface: #ffffff;
	--pj-surface-2: #f4f5f6;
	--pj-night: #15191e;
	--pj-night-2: #0e1115;
	--pj-line: #e2e5e9;
	--pj-link: #0e6e0e;
	--pj-accent: #c8102e;
	--pj-error: #b42318;
	--pj-focus: #1a73e8;

	--pj-head: Poppins, Inter, -apple-system, "Segoe UI", Arial, sans-serif;
	--pj-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--pj-s1: 4px; --pj-s2: 8px; --pj-s3: 12px; --pj-s4: 16px; --pj-s5: 24px;
	--pj-s6: 32px; --pj-s7: 48px; --pj-s8: 64px;
	--pj-radius: 4px;
	--pj-section-gap: 40px;
}
@media (min-width: 768px) { :root { --pj-section-gap: 64px; } }

/* 2. Base typography -------------------------------------------------------- */
body,
#td-outer-wrap {
	background: var(--pj-surface);
	color: var(--pj-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* One sans family for every text element; icon-font elements excluded.
   Wrapped in :where() so specificity stays at one ID and headline rules win. */
#td-outer-wrap :where(*:not([class*="td-icon"]):not(i):not(.td-social-but-icon):not(.td-social-but-icon *)) {
	font-family: var(--pj-sans) !important;
}

/* Headlines: one serif family. */
#td-outer-wrap :is(h1, h2, h3, .entry-title, .td-module-title, .td-page-title, .td-post-title .entry-title, .tdb-title-text, .td-related-title + * .entry-title),
#td-outer-wrap :is(h1, h2, h3, .entry-title, .td-module-title) a {
	font-family: var(--pj-head) !important;
	color: var(--pj-ink);
	letter-spacing: -0.005em;
	font-weight: 700 !important;
}
#td-outer-wrap :is(.entry-title, .td-module-title) a:hover { color: var(--pj-brand) !important; }

/* 3. Links + focus --------------------------------------------------------- */
#td-outer-wrap a { transition: color .15s ease; }
#td-outer-wrap :focus-visible {
	outline: 2px solid var(--pj-focus) !important;
	outline-offset: 2px;
	border-radius: 2px;
}

/* 4. Images: show immediately instead of the slow fade-in ------------------ */
#td-outer-wrap .td-animation-stack .entry-thumb,
#td-outer-wrap .td-animation-stack .td-lazy-img,
#td-outer-wrap .td-animation-stack .avatar,
#td-outer-wrap .td-animation-stack img,
#td-outer-wrap .td-animation-stack .td-thumb-css,
#td-outer-wrap .post img,
#td-outer-wrap .post .entry-thumb,
#td-outer-wrap .td-post-sharing {
	opacity: 1 !important;
	animation: none !important;
	transition: none !important;
}
#td-outer-wrap .td-module-thumb,
#td-outer-wrap .td-image-wrap { border-radius: var(--pj-radius); overflow: hidden; }
#td-outer-wrap .td-module-container,
#td-outer-wrap .td_module_wrap { box-shadow: none !important; }

/* 5. Header + navigation --------------------------------------------------- */
#td-outer-wrap .td-header-top-menu-full,
#td-outer-wrap .td-header-top-menu { background: var(--pj-night-2) !important; }
#td-outer-wrap .td-header-menu-wrap-full,
#td-outer-wrap .td-header-menu-wrap,
#td-outer-wrap .td-header-gradient:before,
#td-outer-wrap .td-header-wrap .td-header-main-menu { background-color: var(--pj-night) !important; background-image: none !important; }
#td-outer-wrap .sf-menu > li > a {
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff !important;
}
#td-outer-wrap .sf-menu > .current-menu-item > a:after,
#td-outer-wrap .sf-menu > .current-menu-ancestor > a:after,
#td-outer-wrap .sf-menu > li:hover > a:after,
#td-outer-wrap .sf-menu > .sfHover > a:after { background-color: var(--pj-brand) !important; height: 3px; }
#td-outer-wrap .sf-menu .sub-menu a { font-size: 14px !important; font-weight: 500 !important; }
#td-outer-wrap .td-header-top-menu,
#td-outer-wrap .td-header-top-menu a,
#td-outer-wrap .td_data_time { font-size: 12px !important; color: #c9ced6 !important; }
#td-outer-wrap .td-mega-menu .entry-title { font-size: 15px !important; line-height: 1.35 !important; }

/* Mobile menu */
#td-mobile-nav, #td-mobile-nav * { font-family: var(--pj-sans) !important; }
#td-mobile-nav .td-mobile-content a { font-size: 17px !important; font-weight: 600 !important; padding-top: 12px; padding-bottom: 12px; }
#td-mobile-nav .td-menu-background:before { background: var(--pj-night) !important; }
#td-mobile-nav .td-mobile-content :is(.current-menu-item, .current-menu-ancestor, .current-category-ancestor) > a,
#td-mobile-nav .td-mobile-content a:hover { color: #7bd47b !important; }
.td-menu-background, .td-search-background { opacity: 1; }
.td-menu-background:before, .td-search-background:before { opacity: .97 !important; }
.td-menu-background:before, .td-search-background:before { background: var(--pj-night) !important; background-image: none !important; }

/* 6. Section titles ("Latest News", "Business", sidebar, related) ---------- */
#td-outer-wrap .td-block-title-wrap { margin-bottom: var(--pj-s5) !important; text-align: left !important; }
#td-outer-wrap :is(.td-block-title, .block-title, .td-related-title) {
	font-family: var(--pj-head) !important;
	font-size: 24px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	text-align: left !important;
	color: var(--pj-ink) !important;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}
#td-outer-wrap :is(.td-block-title, .block-title, .td-related-title) :is(span, a) {
	font-family: var(--pj-head) !important;
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: 700 !important;
	color: inherit !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
	text-transform: none !important;
	border: 0 !important;
	-webkit-text-fill-color: currentColor !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
}
/* Section titles + card text inside dark bands (video section) */
#td-outer-wrap .vc_row:has(.td_block_video_playlist) :is(.td-block-title, .td-block-title span, .td-block-title a) { color: #fff !important; }
#td-outer-wrap .vc_row:has(.td_block_video_playlist) .td-block-title { border-top-color: var(--pj-brand) !important; }
#td-outer-wrap :is(.td-block-title, .block-title) :is(span, a):before,
#td-outer-wrap :is(.td-block-title, .block-title) :is(span, a):after,
#td-outer-wrap :is(.td-block-title, .block-title):before,
#td-outer-wrap :is(.td-block-title, .block-title):after { display: none !important; }
#td-outer-wrap .td-related-title a { margin-right: 16px !important; color: var(--pj-ink-2) !important; }
#td-outer-wrap .td-related-title .td-cur-simple-item { color: var(--pj-ink) !important; }
/* Footer titles sit on dark */
#td-outer-wrap .td-footer-wrapper .block-title,
#td-outer-wrap .td-footer-wrapper .block-title span { color: #fff !important; font-size: 14px !important; letter-spacing: .08em !important; text-transform: uppercase !important; }
#td-outer-wrap .td-main-sidebar :is(.td-block-title, .block-title) { font-size: 20px !important; }
#td-outer-wrap .td-related-title { font-size: 20px !important; }

/* 7. Cards / modules ------------------------------------------------------- */
#td-outer-wrap .td_module_flex .entry-title,
#td-outer-wrap .td_module_wrap .entry-title,
#td-outer-wrap .td-module-title {
	font-size: 19px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	margin-bottom: 6px !important;
}
#td-outer-wrap .td_module_flex .entry-title a,
#td-outer-wrap .td_module_wrap .entry-title a { color: var(--pj-ink) !important; }
/* Small list modules (sidebar, mega menu, related) */
#td-outer-wrap :is(.td_module_6, .td_module_7, .td_module_mega_menu, .td_module_related_posts, .td_module_flex_5) .entry-title,
#td-outer-wrap .td-main-sidebar .entry-title { font-size: 16px !important; line-height: 1.35 !important; }

/* Hero grid on dark overlays */
#td-outer-wrap .td-big-grid-flex-post .entry-title,
#td-outer-wrap .td-big-grid-flex-post .entry-title a { color: #fff !important; text-shadow: none !important; }
#td-outer-wrap .td-big-grid-flex-post-0 .entry-title { font-size: 36px !important; line-height: 1.15 !important; }
#td-outer-wrap :is(.td-big-grid-flex-post-1, .td-big-grid-flex-post-2) .entry-title { font-size: 21px !important; line-height: 1.25 !important; }
#td-outer-wrap .td-big-grid-flex-post .td-module-thumb:after,
#td-outer-wrap .td-big-grid-flex-post .td-image-container:after {
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%) !important;
}
@media (max-width: 767px) {
	#td-outer-wrap .td-big-grid-flex-post-0 .entry-title { font-size: 26px !important; }
	#td-outer-wrap .td-big-grid-flex-post .entry-title { font-size: 19px !important; }
	#td-outer-wrap .td_module_flex .entry-title,
	#td-outer-wrap .td_module_wrap .entry-title { font-size: 18px !important; }
}

/* Excerpts */
#td-outer-wrap .td-excerpt {
	font-size: 15px !important;
	line-height: 1.55 !important;
	color: var(--pj-ink-2) !important;
}

/* Meta: author, date */
#td-outer-wrap :is(.td-post-author-name, .td-post-date, .td-module-date, .td-author-date, .td-author-by, .td-post-date time, .entry-date) {
	font-size: 13px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	color: var(--pj-ink-2) !important;
	text-transform: none !important;
}
#td-outer-wrap .td-post-author-name a { color: var(--pj-ink) !important; font-weight: 600 !important; }
#td-outer-wrap .td-big-grid-flex-post :is(.td-post-author-name, .td-post-date, .td-module-date, .entry-date, .td-post-author-name a) { color: rgba(255,255,255,.88) !important; }

/* Category labels: text, no box */
#td-outer-wrap :is(.td-post-category, .entry-category a, .td-category a) {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .05em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	color: var(--pj-brand) !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 12px 6px 0 !important;
	border: 0 !important;
}
#td-outer-wrap :is(.td-post-category, .entry-category a, .td-category a):hover { color: var(--pj-brand-dark) !important; text-decoration: underline; }
/* On image overlays the label gets a solid chip for contrast */
#td-outer-wrap .td-big-grid-flex-post .td-post-category,
#td-outer-wrap .td-big-grid-meta .td-post-category {
	background: var(--pj-brand) !important;
	color: #fff !important;
	padding: 4px 8px !important;
	border-radius: 2px;
}

/* 8. Single article -------------------------------------------------------- */
#td-outer-wrap .td-post-title .entry-title,
#td-outer-wrap .single .td-post-header .entry-title {
	font-size: 44px !important;
	line-height: 1.15 !important;
	font-weight: 700 !important;
	letter-spacing: -0.015em !important;
	margin-bottom: 16px !important;
}
#td-outer-wrap .td-post-sub-title {
	font-family: var(--pj-sans) !important;
	font-size: 20px !important;
	line-height: 1.5 !important;
	color: var(--pj-ink-2) !important;
	font-style: normal !important;
}
#td-outer-wrap .td-post-content,
#td-outer-wrap .td-post-content :is(p, li) {
	font-size: 18px !important;
	line-height: 1.7 !important;
	color: var(--pj-ink) !important;
}
#td-outer-wrap .td-post-content p { margin-bottom: 1.25em !important; }
#td-outer-wrap .td-post-content :is(ul, ol) { margin: 0 0 1.25em 1.25em !important; }
#td-outer-wrap .td-post-content li { margin-bottom: .4em !important; }
#td-outer-wrap .td-post-content h2 { font-size: 28px !important; line-height: 1.25 !important; margin: 1.6em 0 .6em !important; }
#td-outer-wrap .td-post-content h3 { font-size: 22px !important; line-height: 1.3 !important; margin: 1.4em 0 .5em !important; }
#td-outer-wrap .td-post-content h4 { font-family: var(--pj-sans) !important; font-size: 18px !important; font-weight: 700 !important; margin: 1.2em 0 .4em !important; }
#td-outer-wrap .td-post-content a:not(.wp-block-button__link):not([class*="td-"]) {
	color: var(--pj-link) !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#td-outer-wrap .td-post-content a:not(.wp-block-button__link):not([class*="td-"]):hover { color: var(--pj-brand-dark) !important; text-decoration-thickness: 2px; }
#td-outer-wrap .td-post-content blockquote,
#td-outer-wrap .td-post-content blockquote p {
	font-family: var(--pj-head) !important;
	font-size: 22px !important;
	line-height: 1.45 !important;
	font-style: italic !important;
	font-weight: 600 !important;
	text-transform: none !important;
	text-align: left !important;
	color: var(--pj-ink) !important;
}
#td-outer-wrap .td-post-content blockquote { border-left: 4px solid var(--pj-brand) !important; padding: 4px 0 4px 20px !important; margin: 1.5em 0 !important; background: transparent !important; box-shadow: none !important; }
#td-outer-wrap .td-post-content blockquote:before, #td-outer-wrap .td-post-content blockquote:after { display: none !important; }
#td-outer-wrap :is(.wp-caption-text, .wp-element-caption, figcaption, .td-post-featured-image .wp-caption-text) {
	font-size: 14px !important;
	line-height: 1.45 !important;
	color: var(--pj-ink-2) !important;
	font-style: normal !important;
	text-align: left !important;
	padding-top: 8px !important;
}
#td-outer-wrap .td-post-featured-image img,
#td-outer-wrap .td-post-content img { border-radius: var(--pj-radius); height: auto; }
#td-outer-wrap .td-post-content table { font-size: 16px; border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
#td-outer-wrap .td-post-content :is(th, td) { border: 1px solid var(--pj-line); padding: 8px 12px; text-align: left; }
#td-outer-wrap .td-post-content th { background: var(--pj-surface-2); font-weight: 600; }

/* Tags */
#td-outer-wrap .td-tags li a, #td-outer-wrap .td-tags .td-tags-title, #td-outer-wrap .td-post-source-tags span {
	font-size: 13px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	background: var(--pj-surface) !important;
	color: var(--pj-ink) !important;
	border: 1px solid var(--pj-line) !important;
	border-radius: 999px !important;
	padding: 6px 12px !important;
	line-height: 1 !important;
}
#td-outer-wrap .td-tags li a:hover { border-color: var(--pj-brand) !important; color: var(--pj-brand) !important; }

/* Share buttons: full opacity, consistent outline */
#td-outer-wrap .td-post-sharing .td-social-sharing-button,
#td-outer-wrap .td-post-sharing .td-social-network { opacity: 1 !important; }
#td-outer-wrap .td-post-sharing-style3 .td-social-network .td-social-but-icon,
#td-outer-wrap .td-ps-rounded .td-social-network { border-radius: 50% !important; }
#td-outer-wrap .td-post-sharing { margin-bottom: 24px !important; }

/* Previous / next */
#td-outer-wrap .td-post-next-prev { border-top: 1px solid var(--pj-line); padding-top: 20px; }
#td-outer-wrap .td-post-next-prev-content span { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .05em; text-transform: uppercase; color: var(--pj-ink-2) !important; }
#td-outer-wrap .td-post-next-prev-content a { font-family: var(--pj-head) !important; font-size: 18px !important; line-height: 1.35 !important; font-weight: 700 !important; color: var(--pj-ink) !important; }

/* Author box */
#td-outer-wrap .td-author-name a { font-size: 17px !important; font-weight: 700 !important; color: var(--pj-ink) !important; }
#td-outer-wrap .author-box-wrap { background: var(--pj-surface-2) !important; border: 0 !important; border-radius: var(--pj-radius); padding: 24px !important; }

@media (max-width: 767px) {
	#td-outer-wrap .td-post-title .entry-title,
	#td-outer-wrap .single .td-post-header .entry-title { font-size: 30px !important; line-height: 1.18 !important; }
	#td-outer-wrap .td-post-sub-title { font-size: 18px !important; }
	#td-outer-wrap .td-post-content,
	#td-outer-wrap .td-post-content :is(p, li) { font-size: 17px !important; }
	#td-outer-wrap .td-post-content h2 { font-size: 23px !important; }
	#td-outer-wrap .td-post-content h3 { font-size: 19px !important; }
}

/* 9. Breadcrumbs ----------------------------------------------------------- */
#td-outer-wrap .entry-crumbs,
#td-outer-wrap .entry-crumbs a,
#td-outer-wrap .entry-crumbs span {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--pj-ink-2) !important;
	text-transform: none !important;
}
#td-outer-wrap .entry-crumbs a:hover { color: var(--pj-brand) !important; }

/* 10. Category / archive / search / author --------------------------------- */
#td-outer-wrap .td-category-header .entry-title,
#td-outer-wrap .td-page-title,
#td-outer-wrap .td-page-header h1 {
	font-size: 40px !important;
	line-height: 1.15 !important;
	text-transform: none !important;
	margin-bottom: 12px !important;
}
@media (max-width: 767px) {
	#td-outer-wrap .td-category-header .entry-title,
	#td-outer-wrap .td-page-title,
	#td-outer-wrap .td-page-header h1 { font-size: 30px !important; }
}
#td-outer-wrap .td-category-description,
#td-outer-wrap .td-category-description p {
	font-size: 16px !important;
	line-height: 1.6 !important;
	font-style: normal !important;
	color: var(--pj-ink-2) !important;
}
#td-outer-wrap .td-category-description.pj-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#td-outer-wrap .pj-more-toggle {
	appearance: none; background: none; border: 0; padding: 0; margin: 4px 0 16px;
	font-size: 14px; font-weight: 600; color: var(--pj-link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
/* Subcategory pills */
#td-outer-wrap .td-category-siblings .entry-category a {
	color: var(--pj-ink) !important;
	background: var(--pj-surface) !important;
	border: 1px solid var(--pj-line) !important;
	border-radius: 999px !important;
	padding: 7px 12px !important;
	margin: 0 6px 8px 0 !important;
	font-size: 12px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-weight: 600 !important;
}
#td-outer-wrap .td-category-siblings .td-current-sub-category { background: var(--pj-brand) !important; border-color: var(--pj-brand) !important; color: #fff !important; }
#td-outer-wrap .td-pulldown-category-filter-link,
#td-outer-wrap .td-subcat-more { font-size: 12px !important; font-weight: 600 !important; }

/* 11. Buttons, pagination, load more ---------------------------------------- */
#td-outer-wrap :is(.td_ajax_load_more, .td-load-more-wrap a, input[type="submit"], button[type="submit"], .wpb_button, .td-login-button, .tdm-btn) {
	font-family: var(--pj-sans) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	min-height: 44px;
	padding: 12px 20px !important;
	border-radius: var(--pj-radius) !important;
	line-height: 1.2 !important;
}
#td-outer-wrap :is(.td_ajax_load_more, .td-load-more-wrap a) {
	background: var(--pj-surface) !important;
	color: var(--pj-ink) !important;
	border: 1px solid var(--pj-ink) !important;
	display: inline-flex; align-items: center; gap: 8px;
}
#td-outer-wrap :is(.td_ajax_load_more, .td-load-more-wrap a):hover { background: var(--pj-ink) !important; color: #fff !important; }
#td-outer-wrap :is(input[type="submit"], button[type="submit"], .td-login-button) { background: var(--pj-brand) !important; color: #fff !important; border: 0 !important; }
#td-outer-wrap :is(input[type="submit"], button[type="submit"], .td-login-button):hover { background: var(--pj-brand-dark) !important; }

#td-outer-wrap .page-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 32px 0 !important; }
#td-outer-wrap .page-nav :is(a, span) {
	min-width: 44px; min-height: 44px;
	display: inline-flex !important; align-items: center; justify-content: center;
	margin: 0 !important; padding: 0 12px !important;
	font-size: 15px !important; font-weight: 600 !important; line-height: 1 !important;
	color: var(--pj-ink) !important; background: var(--pj-surface) !important;
	border: 1px solid var(--pj-line) !important; border-radius: var(--pj-radius) !important;
}
#td-outer-wrap .page-nav .current { background: var(--pj-brand) !important; border-color: var(--pj-brand) !important; color: #fff !important; }
#td-outer-wrap .page-nav a:hover { border-color: var(--pj-ink) !important; }
#td-outer-wrap .page-nav .pages { border: 0 !important; color: var(--pj-ink-2) !important; font-weight: 500 !important; }
#td-outer-wrap .td-next-prev-wrap a { border-radius: var(--pj-radius) !important; min-width: 32px; min-height: 32px; }

/* 12. Forms + search --------------------------------------------------------- */
#td-outer-wrap :is(input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], textarea, select),
.td-search-wrap-mob input[type="text"], .td-drop-down-search input[type="text"] {
	font-family: var(--pj-sans) !important;
	font-size: 16px !important;
	min-height: 44px;
	border: 1px solid #b8bec7 !important;
	border-radius: var(--pj-radius) !important;
	padding: 10px 12px !important;
	color: var(--pj-ink) !important;
	background: #fff !important;
}
#td-outer-wrap :is(input, textarea, select):focus { border-color: var(--pj-brand) !important; outline: 2px solid rgba(16,124,16,.25) !important; }
.td-search-wrap-mob .td-search-input input { color: #fff !important; background: transparent !important; border-color: rgba(255,255,255,.4) !important; }
.td-ajax-search-flex .entry-title, .td_module_mob_1 .entry-title { font-family: var(--pj-head) !important; }

/* 13. Footer --------------------------------------------------------------- */
#td-outer-wrap .td-footer-wrapper,
#td-outer-wrap .td-footer-container,
#td-outer-wrap .td-footer-wrapper:before { background-color: var(--pj-night) !important; background-image: none !important; }
#td-outer-wrap .td-footer-wrapper,
#td-outer-wrap .td-footer-wrapper p,
#td-outer-wrap .td-footer-wrapper .footer-text-wrap { font-size: 14px !important; line-height: 1.6 !important; color: #c9ced6 !important; }
#td-outer-wrap .td-footer-wrapper a { color: #fff !important; }
#td-outer-wrap .td-footer-wrapper a:hover { color: #7bd47b !important; }
#td-outer-wrap .td-sub-footer-container { background: var(--pj-night-2) !important; border-top: 1px solid rgba(255,255,255,.08); }
#td-outer-wrap .td-sub-footer-container,
#td-outer-wrap .td-sub-footer-copy,
#td-outer-wrap .td-sub-footer-menu a { font-size: 13px !important; color: #aab1bc !important; font-weight: 500 !important; text-transform: none !important; }
#td-outer-wrap .td-sub-footer-menu a:hover { color: #fff !important; }
#td-outer-wrap .td-sub-footer-menu li { margin-left: 16px !important; }
@media (max-width: 767px) {
	#td-outer-wrap .td-sub-footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
	#td-outer-wrap .td-sub-footer-menu li { margin: 0 !important; }
	#td-outer-wrap .td-sub-footer-menu a { display: inline-block; padding: 8px 0; }
}

/* 14. Sidebar -------------------------------------------------------------- */
#td-outer-wrap .td-main-sidebar .td_block_wrap { margin-bottom: 40px; }

/* 15. Ads: label + reserved space so auto/inline ads do not shift text ----- */
#td-outer-wrap .td-a-rec { text-align: center; margin: 24px auto !important; }
#td-outer-wrap .td-a-rec .td-adspot-title { font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--pj-ink-2) !important; }

/* 15b. Homepage components (.pj-* classes set on Composer blocks) ----------- */
/* Section header with "See more" link */
#td-outer-wrap [class*="pj-"] .td-block-title-wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px !important; }
#td-outer-wrap [class*="pj-"] .td-block-title a.td-pulldown-size:after,
#td-outer-wrap [class*="pj-"] .td-block-title > a:after {
	content: "See more \2192" !important;
	display: inline-block !important;
	margin-left: 14px !important;
	font-family: var(--pj-head) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .02em;
	color: var(--pj-brand) !important;
	vertical-align: middle;
	position: static !important; background: none !important; width: auto !important; height: auto !important; border: 0 !important;
}
#td-outer-wrap [class*="pj-"] .td-block-title > a:hover:after { color: var(--pj-brand-dark) !important; text-decoration: underline; }

/* Card meta above the headline (date / author), like a news card */
#td-outer-wrap :is(.pj-cards, .pj-rail, .pj-list, .pj-river) .td-module-meta-info { display: flex; flex-direction: column; }
#td-outer-wrap :is(.pj-cards, .pj-rail, .pj-list, .pj-river) .td-editor-date { order: -1; margin: 0 0 6px !important; }
#td-outer-wrap :is(.pj-cards, .pj-rail, .pj-list, .pj-river) :is(.td-post-date, .td-module-date, .td-post-author-name, .td-post-author-name a, .entry-date) {
	font-family: var(--pj-head) !important; font-size: 12px !important; font-weight: 600 !important; color: var(--pj-ink-2) !important;
}
#td-outer-wrap :is(.pj-cards, .pj-rail, .pj-list, .pj-river, .pj-hero) .td-module-thumb { border-radius: 8px; }
#td-outer-wrap :is(.pj-cards, .pj-rail, .pj-list, .pj-river) .td-module-thumb .entry-thumb { transition: transform .35s ease !important; }
#td-outer-wrap :is(.pj-cards, .pj-rail, .pj-list, .pj-river) .td_module_wrap:hover .entry-thumb { transform: scale(1.04); }

/* Trending topics bar */
#td-outer-wrap .pj-row-trending { margin-bottom: 0 !important; }
#td-outer-wrap .pj-trending { margin-bottom: 20px !important; }
#td-outer-wrap .pj-trending nav {
	display: flex; align-items: center; gap: 8px 22px; overflow-x: auto; white-space: nowrap;
	padding: 12px 0; border-bottom: 1px solid var(--pj-line); scrollbar-width: none;
}
#td-outer-wrap .pj-trending nav::-webkit-scrollbar { display: none; }
#td-outer-wrap .pj-trending .pj-trending-label { font-family: var(--pj-head) !important; font-size: 13px; font-weight: 700; color: var(--pj-brand); text-transform: uppercase; letter-spacing: .06em; }
#td-outer-wrap .pj-trending a { font-family: var(--pj-head) !important; font-size: 14px; font-weight: 600; color: var(--pj-ink) !important; text-decoration: none; padding: 6px 0; }
#td-outer-wrap .pj-trending a:hover { color: var(--pj-brand) !important; }
#td-outer-wrap .pj-trending p { margin: 0 !important; }

/* Hero: one lead story, headline over the image */
#td-outer-wrap .pj-hero .td-module-container { position: relative; border-radius: 10px; overflow: hidden; }
#td-outer-wrap .pj-hero .td-image-container { margin: 0 !important; }
#td-outer-wrap .pj-hero .td-module-meta-info {
	position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 80px 32px 28px !important; margin: 0 !important;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.88) 100%);
	pointer-events: none;
}
#td-outer-wrap .pj-hero .td-module-meta-info a { pointer-events: auto; }
#td-outer-wrap .pj-hero .entry-title { font-size: 38px !important; line-height: 1.18 !important; margin: 0 0 10px !important; }
#td-outer-wrap .pj-hero .entry-title a,
#td-outer-wrap .pj-hero :is(.td-post-date, .td-module-date, .td-post-author-name, .td-post-author-name a, .entry-date, .td-editor-date) { color: #fff !important; }
#td-outer-wrap .pj-hero .td-post-category { background: var(--pj-brand) !important; color: #fff !important; padding: 4px 8px !important; border-radius: 3px; }
#td-outer-wrap .pj-hero-sm .entry-title { font-size: 26px !important; }
#td-outer-wrap .pj-hero .td_module_wrap { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* "Latest" rail beside the hero */
#td-outer-wrap .pj-rail { background: var(--pj-surface-2); border-radius: 10px; padding: 20px 20px 8px !important; }
#td-outer-wrap .pj-rail .td-block-title { font-size: 15px !important; text-transform: uppercase !important; letter-spacing: .08em !important; }
#td-outer-wrap .pj-rail .td-block-title span { text-transform: uppercase !important; }
#td-outer-wrap .pj-rail .td_module_wrap { padding-bottom: 14px !important; margin-bottom: 14px !important; border-bottom: 1px solid var(--pj-line); }
#td-outer-wrap .pj-rail .td_module_wrap:last-child { border-bottom: 0; margin-bottom: 0 !important; }
#td-outer-wrap .pj-rail .entry-title { font-size: 15px !important; line-height: 1.35 !important; font-weight: 600 !important; margin: 0 !important; }
#td-outer-wrap .pj-rail :is(.td-post-date, .td-module-date, .entry-date) { color: var(--pj-brand) !important; }
#td-outer-wrap .pj-rail .td-module-thumb { border-radius: 6px; }

/* Card grids */
#td-outer-wrap .pj-cards .entry-title { font-size: 17px !important; line-height: 1.3 !important; }
#td-outer-wrap .pj-cards-5 .entry-title { font-size: 16px !important; }
#td-outer-wrap .pj-cards .td-image-container { margin-bottom: 12px !important; }
#td-outer-wrap .pj-cards-2 .entry-title { font-size: 19px !important; }

/* Lists with thumbnail on the left */
#td-outer-wrap .pj-list .td_module_wrap { padding-bottom: 16px !important; margin-bottom: 16px !important; border-bottom: 1px solid var(--pj-line); }
#td-outer-wrap .pj-list .td_module_wrap:last-child { border-bottom: 0; }
#td-outer-wrap .pj-list .entry-title { font-size: 17px !important; line-height: 1.3 !important; }

/* Newsletter band */
#td-outer-wrap .pj-row-newsletter { background: var(--pj-brand); margin: 24px 0 48px !important; }
#td-outer-wrap .pj-newsletter { text-align: center; max-width: 720px; margin: 0 auto !important; padding: 48px 16px !important; color: #fff; }
#td-outer-wrap .pj-newsletter .pj-nl-kicker { font-family: var(--pj-head) !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85) !important; margin: 0 0 8px !important; }
#td-outer-wrap .pj-newsletter .pj-nl-title { font-size: 30px !important; line-height: 1.2 !important; color: #fff !important; margin: 0 0 8px !important; }
#td-outer-wrap .pj-newsletter .pj-nl-sub { font-size: 16px; color: rgba(255,255,255,.9) !important; margin: 0 0 20px !important; }
#td-outer-wrap .pj-newsletter form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 !important; }
#td-outer-wrap .pj-newsletter form p { margin: 0 !important; }
#td-outer-wrap .pj-newsletter input[type="email"] { width: min(360px, 80vw) !important; border: 0 !important; }
#td-outer-wrap .pj-newsletter :is(button, input[type="submit"]) { background: var(--pj-night) !important; color: #fff !important; }
#td-outer-wrap .pj-newsletter :is(button, input[type="submit"]):hover { background: #000 !important; }
#td-outer-wrap .pj-newsletter #subscribe-text, #td-outer-wrap .pj-newsletter .success { color: #fff !important; }

/* News river with filter tabs */
#td-outer-wrap .pj-river .td_module_wrap { padding-bottom: 22px !important; margin-bottom: 22px !important; border-bottom: 1px solid var(--pj-line); }
#td-outer-wrap .pj-river .entry-title { font-size: 21px !important; line-height: 1.28 !important; }
#td-outer-wrap .pj-river .td-excerpt { font-size: 15px !important; margin-top: 6px !important; }
#td-outer-wrap .pj-river .td-subcat-filter { display: flex; align-items: center; }
#td-outer-wrap .pj-river .td-subcat-list { display: flex; flex-wrap: wrap; gap: 8px; }
#td-outer-wrap .pj-river .td-subcat-item a,
#td-outer-wrap .pj-river .td-subcat-dropdown > span {
	font-family: var(--pj-head) !important; font-size: 13px !important; font-weight: 600 !important; text-transform: none !important;
	color: var(--pj-ink) !important; background: var(--pj-surface-2) !important; border-radius: 999px; padding: 7px 14px !important; margin: 0 !important; line-height: 1 !important;
}
#td-outer-wrap .pj-river .td-subcat-item a.td-cur-simple-item { background: var(--pj-brand) !important; color: #fff !important; }
#td-outer-wrap .pj-river .td-subcat-item a:hover { background: var(--pj-line) !important; }

/* Most popular: numbered ranking */
#td-outer-wrap .pj-rank .td_block_inner { counter-reset: pjrank; }
#td-outer-wrap .pj-rank .td_module_wrap { counter-increment: pjrank; padding-bottom: 14px !important; margin-bottom: 14px !important; border-bottom: 1px solid var(--pj-line); }
#td-outer-wrap .pj-rank .td-module-container { display: flex !important; flex-direction: row !important; gap: 14px; align-items: flex-start; }
#td-outer-wrap .pj-rank .td-module-container:before {
	content: counter(pjrank); flex: 0 0 auto; width: 32px;
	font-family: var(--pj-head); font-size: 30px; font-weight: 700; line-height: 1; color: var(--pj-brand);
}
#td-outer-wrap .pj-rank .td-image-container { display: none !important; }
#td-outer-wrap .pj-rank .entry-title { font-size: 16px !important; line-height: 1.35 !important; margin: 0 !important; }

@media (max-width: 1018px) {
	#td-outer-wrap .pj-hero .entry-title { font-size: 30px !important; }
}
@media (max-width: 767px) {
	#td-outer-wrap .pj-hero .td-module-meta-info { padding: 60px 16px 16px !important; }
	#td-outer-wrap .pj-hero .entry-title,
	#td-outer-wrap .pj-hero-sm .entry-title { font-size: 22px !important; }
	#td-outer-wrap .pj-rail { margin-top: 20px; }
	#td-outer-wrap .pj-cards .entry-title, #td-outer-wrap .pj-cards-5 .entry-title { font-size: 15px !important; }
	#td-outer-wrap .pj-river .entry-title { font-size: 17px !important; }
	#td-outer-wrap .pj-river .td-excerpt { display: none; }
	#td-outer-wrap [class*="pj-"] .td-block-title { font-size: 20px !important; }
	#td-outer-wrap .pj-newsletter .pj-nl-title { font-size: 23px !important; }
	#td-outer-wrap .pj-cards-5 .td_module_wrap:nth-child(5) { display: none !important; }
}

/* 15c. Site footer (rendered by the plugin) ---------------------------------- */
#td-outer-wrap .pj-footer { background: var(--pj-night); color: #c9ced6; margin-top: 48px; }
#td-outer-wrap .pj-footer-inner {
	max-width: 1400px; margin: 0 auto; padding: 56px 24px 40px;
	display: grid; grid-template-columns: minmax(280px, 500px) 1fr; gap: 48px 96px;
}
#td-outer-wrap .pj-footer :is(p, li, a, input, button) { font-family: var(--pj-head) !important; }
#td-outer-wrap .pj-footer-brand { display: inline-block; margin-bottom: 8px; }
#td-outer-wrap .pj-footer-brand img { width: auto; height: 40px; display: block; }
#td-outer-wrap .pj-footer-name { font-family: var(--pj-head) !important; font-size: 22px; font-weight: 700; color: #fff; }
#td-outer-wrap .pj-footer-tagline { font-size: 15px !important; color: #c9ced6 !important; margin: 0 0 32px !important; }
#td-outer-wrap .pj-footer-h {
	font-family: var(--pj-head) !important; font-size: 15px !important; font-weight: 700 !important;
	letter-spacing: .18em !important; text-transform: uppercase !important; color: #fff !important;
	line-height: 1.2 !important; margin: 0 0 18px !important;
}
#td-outer-wrap .pj-footer-h-2 { margin-top: 36px !important; }
#td-outer-wrap .pj-footer-text { font-size: 15px !important; color: #e3e6ea !important; margin: 0 0 14px !important; }
#td-outer-wrap .pj-footer-fine { font-size: 13px !important; line-height: 1.55 !important; color: #8b929c !important; margin: 12px 0 32px !important; }
#td-outer-wrap .pj-footer-fine a { color: #e3e6ea !important; text-decoration: none; }
#td-outer-wrap .pj-footer-fine a:hover { color: #fff !important; text-decoration: underline; }

/* Subscribe form: one field with an attached button */
#td-outer-wrap .pj-footer-form form { display: flex !important; align-items: stretch; margin: 0 !important; max-width: 500px; }
#td-outer-wrap .pj-footer-form form > p { margin: 0 !important; }
#td-outer-wrap .pj-footer-form form > p:first-of-type { flex: 1 1 auto; }
#td-outer-wrap .pj-footer-form input[type="email"] {
	width: 100% !important; height: 46px; margin: 0 !important;
	background: #1f242a !important; color: #fff !important;
	border: 1px solid #3a414a !important; border-right: 0 !important; border-radius: 6px 0 0 6px !important;
}
#td-outer-wrap .pj-footer-form input[type="email"]::placeholder { color: #a3aab4; }
#td-outer-wrap .pj-footer-form :is(button, input[type="submit"]) {
	height: 46px; min-height: 46px; margin: 0 !important; padding: 0 18px !important;
	background: var(--pj-brand) !important; color: #fff !important; border: 0 !important; border-radius: 0 6px 6px 0 !important;
	font-size: 14px !important; font-weight: 600 !important; cursor: pointer;
}
#td-outer-wrap .pj-footer-form :is(button, input[type="submit"]):hover { background: var(--pj-brand-dark) !important; }
#td-outer-wrap .pj-footer-form :is(.success, .error, #subscribe-text) { color: #fff !important; font-size: 14px; }

/* Social icons: outlined circles */
#td-outer-wrap .pj-footer-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 !important; padding: 0 !important; }
#td-outer-wrap .pj-footer-social li { margin: 0 !important; list-style: none; }
#td-outer-wrap .pj-footer-social a {
	width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: #262c33; border: 1px solid #3a414a; color: #fff !important; text-decoration: none;
	transition: background .15s ease, border-color .15s ease;
}
#td-outer-wrap .pj-footer-social a:hover { background: var(--pj-brand); border-color: var(--pj-brand); }
#td-outer-wrap .pj-footer-social i { font-size: 15px; line-height: 1; color: #fff; }

/* Link columns */
#td-outer-wrap .pj-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; align-content: start; }
#td-outer-wrap .pj-footer-links { list-style: none; margin: 0 !important; padding: 0 !important; }
#td-outer-wrap .pj-footer-links li { margin: 0 0 14px !important; list-style: none; line-height: 1.3; }
#td-outer-wrap .pj-footer-links a { font-size: 16px !important; font-weight: 400 !important; color: #c9ced6 !important; text-decoration: none; }
#td-outer-wrap .pj-footer-links a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
#td-outer-wrap .pj-footer-links :is(.pj-strong, .pj-strong a) { font-weight: 700 !important; color: #fff !important; }

#td-outer-wrap .pj-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
#td-outer-wrap .pj-footer-bottom p { max-width: 1400px; margin: 0 auto !important; padding: 18px 24px; font-size: 13px !important; color: #8b929c !important; }

@media (max-width: 1018px) {
	#td-outer-wrap .pj-footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
	#td-outer-wrap .pj-footer-inner { padding: 40px 16px 24px; }
	#td-outer-wrap .pj-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
	#td-outer-wrap .pj-footer-links a { font-size: 15px !important; display: inline-block; padding: 4px 0; }
	#td-outer-wrap .pj-footer-bottom p { padding: 16px; text-align: center; }
}

/* 16. Layout: no horizontal scroll ------------------------------------------ */
html, body { overflow-x: hidden; }
#td-outer-wrap img, #td-outer-wrap iframe, #td-outer-wrap video, #td-outer-wrap embed { max-width: 100%; }
#td-outer-wrap .td-post-content :is(pre, code) { white-space: pre-wrap; word-break: break-word; }
#td-outer-wrap .entry-title { overflow-wrap: anywhere; }

/* 17. Motion preference ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	#td-outer-wrap *, #td-outer-wrap *:before, #td-outer-wrap *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 18. Print ---------------------------------------------------------------- */
@media print {
	#td-outer-wrap :is(.td-header-wrap, .td-footer-wrapper, .td-sub-footer-container, .td-main-sidebar, .td-post-sharing, .td_block_related_posts, .td-a-rec) { display: none !important; }
	#td-outer-wrap .td-post-content { font-size: 12pt !important; }
}
