/*
 * Theme Name:  Newsreader Child
 * Theme URI:   https://newsreader.codesupply.co/
 * Description: Newsreader Child Theme
 * Author:      Code Supply Co.
 * Author URI:  https://codesupply.co/
 * Template:    newsreader
 * Version:     1.1.2
 */

/* Copy any classes from parent theme here. They will override the parent's version. */

/* Screen-reader-only — visually hidden but readable by search engines and assistive tech */
.newsam-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Ad placement highlight — red border when arriving via hash link from Better Ads */
:target {
	outline: 3px solid red;
	outline-offset: 4px;
}


.cs-entry__title {
	
}
.cs-entry__title a {
    font-size: 1rem;
    line-height: 1.5;
}

.cs-posts__tile .cs-entry__title, .cs-entry__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: help;
    line-height: 1.25;
    font-size: 1.40rem;
}

.wp-singular .cs-banner-post-inner .cs-banner__content {
    display: flex;
    gap: 20px;
}

.archive.category .cs-banner__content a,
.wp-singular .cs-banner-post-inner .cs-banner__content a {
    width: 50%;
    max-height: 250px;
}

.archive.category .cs-banner__content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.wp-singular h1.cs-entry__title {
    display: contents;
    -webkit-line-clamp: none;
    -webkit-box-orient: unset;
}


/* =============================================================================
   Globla
   ============================================================================= */

.cs-header__logo img {
    max-height: 45px;
}

.cs-footer__logo:has(img) img {
    width: auto;
    max-height: 60px;
}


/* =============================================================================
   For Home Only
   ============================================================================= */
body.home .cs-entry__title, body.home .elementor-6 .elementor-element.elementor-element-cce7d52 .cs-entry__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: help;
    line-height: 1.25;
    font-size: 1.40rem;
}

/* Sidebar */
.wp-block-latest-posts.wp-block-latest-posts__list li a {
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: help;
    line-height: 1.5;
}

.widget.block-4.widget_block {
    display: none;
}

.wp-singular .cs-entry__header .cs-entry__title {
	line-height: 1.25 !important;
}

/* Hide the parent li too so no empty space remains */
.cs-entry__post-meta .cs-meta-category .post-categories li:has(a[href*="cat=45"]),
.cs-entry__post-meta .cs-meta-category .post-categories li:has(a[href*="cat=62"]),
.cs-entry__post-meta .cs-meta-category .post-categories li:has(a[href*="cat=66"]),
.cs-entry__post-meta .cs-meta-category .post-categories li:has(a[href*="cat=68"]) {
    display: none;
}

/* =============================================================================
   HEADER-THREE: ALWAYS SHOW FOOTER LOGO (override theme's scroll-only rule)
   ============================================================================= */

.cs-header-three .cs-header__inner-desktop .newsam-header-footer-logo {
	transform: translateX(0) !important;
	opacity: 1 !important;
}


/* =============================================================================
   GOOGLE TRANSLATE — HEADER BUTTON AREA
   ============================================================================= */

.newsam-gtranslate-header {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
}

.newsam-gtranslate-header .goog-te-gadget-simple {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: 3px !important;
	padding: 4px 8px !important;
	font-size: 12px !important;
	white-space: nowrap;
	line-height: 1 !important;
}

.newsam-gtranslate-header .goog-te-gadget-simple a,
.newsam-gtranslate-header .goog-te-gadget-simple span {
	color: #fff !important;
	font-size: 12px !important;
	text-decoration: none !important;
}

.newsam-gtranslate-header .goog-te-gadget-simple .goog-te-menu-value span {
	border: none !important;
}

/* Hide the Google translation banner that pushes page down */
.goog-te-banner-frame {
	display: none !important;
}

body {
	top: 0 !important;
}




.cs-header-topbar {
	background: #e38637;
}



.cs-header-bottombar .cs-header-bottombar__nav .menu-item {
	height: 40px !important;
}

/*===============
 Post Page
===============*/

/* =============================================================================
   MOBILE HEADER — truly center the logo
   ============================================================================= */

@media (max-width: 991.98px) {
	.cs-header__inner-mobile {
		position: relative;
	}

	.cs-header__inner-mobile .cs-col-center {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		pointer-events: none;
		margin-left: 30px;
		top: 8px;
	}

	.cs-header__inner-mobile .cs-col-center a {
		pointer-events: auto;
	}
}

/* =============================================================================
   MOBILE INFO BAR — clock + language below mobile header
   ============================================================================= */

.newsam-mobile-info-bar {
	display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

@media (min-width: 992px) {
    .newsam-mobile-info-bar {
        display: none;
    }
}

.newsam-mobile-clock {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	white-space: nowrap;
	opacity: 0.85;
}

.newsam-mobile-lang {
	display: inline-flex;
	align-items: center;
}

/* =============================================================================
   HEADER CENTER — CLOCK + LOGO STACKED
   ============================================================================= */


.newsam-header-clock {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	white-space: nowrap;
	opacity: 0.85;
	margin-right: 10px;
	padding-right: 10px;
	border-right: 1px solid rgba(128, 128, 128, 0.35);
}

.newsam-center-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.newsam-center-logo img {
	max-height: 45px;
	width: auto;
}

.cus-pad-bt-5 .cs-posts__tile .cs-entry__content {
    padding-bottom: 5px;
}

[data-scheme=dark] .cs-social img,
[data-scheme=inverse] .cs-social img {
    filter: grayscale(0%) brightness(100%) invert(0%) !important;
}




/* ── Discover All link (cs-tabs widget) ─────────────────────────────────── */

.newsam-discover-wrap {
	padding: 10px 0 4px;
	text-align: right;
}

.newsam-discover-all {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--cs-color-primary, #e2271a);
	text-decoration: none;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: opacity 0.18s;
}

.newsam-discover-all:hover {
	opacity: 0.75;
	color: var(--cs-color-primary, #e2271a);
	text-decoration: none;
}

.page .cs-entry__header-standard .cs-entry__content {
    max-width: inherit !important;
}
/* Single post — publish time */
.newsam-post-time {
	opacity: 0.75;
	font-size: 0.9em;
}

.newsam-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Leaderboard top banner — hidden by default, visible only via #leaderboard-top hash */
#leaderboard-top {
	display: none;
}
#leaderboard-top:target {
	display: block;
}

.docs-template-default .cs-sidebar-right .cs-main-content {
	grid-template-columns: minmax(0, 1fr) !important;
}

.betterdocs-wrapper.betterdocs-single-layout-8 .betterdocs-content-wrapper .docs-content-full-main .betterdocs-content-inner-area .betterdocs-entry-footer .betterdocs-social-share {
	display: none !important;
}

.docs-navigation a {
	width: fit-content !important;
}

/* =============================================================================
   HOME — Photo Gallery section: stack columns on mobile
   ============================================================================= */

@media (max-width: 767px) {
	.elementor-element-3a21ac7b > .e-con-inner {
		flex-direction: column !important;
	}
	.elementor-element-538a2a55,
	.elementor-element-63411f2c {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

@media (max-width: 767px) {
	#pic-gallery {
		display: grid;
	}
}

/* =============================================================================
   GALLERY SLIDER — converts block gallery into a sliding carousel
   Targets: .wp-block-gallery-is-layout-flex
   ============================================================================= */

/* Override the block gallery's default flex grid layout */
.wp-block-gallery-is-layout-flex.newsam-slider__container {
	display: block !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	columns: unset !important;
	position: relative;
	overflow: visible;
}

.newsam-slider__wrapper {
	overflow: hidden;
	border-radius: 6px;
}

.newsam-slider__track {
	display: flex;
	flex-direction: row;
	transition: transform 0.45s ease;
	will-change: transform;
}

.newsam-slider__slide {
	flex: 0 0 100%;
	min-width: 0;
	width: 100%;
}

.newsam-slider__slide .wp-block-image,
.newsam-slider__slide .gallery-item {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: none !important;
}

.newsam-slider__slide img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
}

@media (max-width: 767px) {
	.newsam-slider__slide img {
		height: 250px;
	}
}

/* Arrows */
.newsam-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.newsam-slider__arrow:hover {
	background: rgba(0, 0, 0, 0.85);
}

.newsam-slider__arrow--prev {
	left: 12px;
}

.newsam-slider__arrow--next {
	right: 12px;
}

/* =============================================================================
   TEXT-TO-SPEECH BAR — single posts
   ============================================================================= */

.newsam-tts {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	margin-bottom: 20px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	flex-wrap: wrap;
}

[data-scheme=dark] .newsam-tts {
	background: #1e1e1e;
	border-color: #333;
}

.newsam-tts__label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
}

[data-scheme=dark] .newsam-tts__label {
	color: #ddd;
}

.newsam-tts .newsam-tts__btn,
.newsam-tts button.newsam-tts__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 36px !important;
	height: 36px !important;
	padding: 0 12px !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #333 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: background 0.2s, border-color 0.2s !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

.newsam-tts .newsam-tts__btn:hover,
.newsam-tts button.newsam-tts__btn:hover {
	background: #e8e8e8 !important;
	border-color: #999 !important;
	color: #333 !important;
}

[data-scheme=dark] .newsam-tts .newsam-tts__btn {
	background: #2a2a2a !important;
	color: #eee !important;
	border-color: #555 !important;
}

[data-scheme=dark] .newsam-tts .newsam-tts__btn:hover {
	background: #3a3a3a !important;
	border-color: #888 !important;
	color: #eee !important;
}

.newsam-tts__play {
	font-size: 16px;
	min-width: 42px;
}

.newsam-tts__voice-toggle {
	font-size: 12px;
	letter-spacing: 0.02em;
}

.newsam-tts__status {
	font-size: 12px;
	color: #777;
	margin-left: auto;
}

[data-scheme=dark] .newsam-tts__status {
	color: #999;
}

@media (max-width: 480px) {
	.newsam-tts {
		gap: 8px;
		padding: 8px 12px;
	}
	.newsam-tts__label {
		width: 100%;
		font-size: 12px;
	}
}

/* ==========================================================================
   Newsam Marquee (Elementor widget) — Broadcast Ticker style
   Matches marquee-mockups.html Option A pixel-by-pixel.
   ========================================================================== */

/* Remove Elementor's default container padding so the ticker goes edge-to-edge */
.elementor-widget-newsam-exclusive-marquee > .elementor-widget-container {
	padding: 0;
	margin: 0;
}

.newsam-marquee,
.newsam-marquee *,
.newsam-marquee *::before,
.newsam-marquee *::after {
	box-sizing: border-box;
}

.newsam-marquee {
	width: 100%;
	display: flex;
	align-items: stretch;
	background: var(--newsam-marquee-bg, #0a0a0a);
	border-top: 1px solid var(--newsam-marquee-accent, #c8102e);
	border-bottom: 1px solid var(--newsam-marquee-accent, #c8102e);
	overflow: hidden;
	position: relative;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.3;
	margin: 0;
}

.newsam-marquee__badge,
.newsam-marquee a.newsam-marquee__badge,
.newsam-marquee a.newsam-marquee__badge:link,
.newsam-marquee a.newsam-marquee__badge:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff !important;
	padding: 12px 20px;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none !important;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	line-height: 1;
	border: 0 !important;
	box-shadow: none !important;
}

.newsam-marquee a.newsam-marquee__badge:hover,
.newsam-marquee a.newsam-marquee__badge:focus {
	background: var(--newsam-marquee-accent-hover, #a60d24) !important;
	color: #fff !important;
	text-decoration: none !important;
}

.newsam-marquee__badge::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	animation: newsamMarqueePulse 1.2s ease-in-out infinite;
	flex-shrink: 0;
}

.newsam-marquee__badge.newsam-marquee__badge--no-dot::before {
	display: none;
}

/* Badge text wrapper — base */
.newsam-marquee__badge-text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------------------------
   Sparkle effect: GOLD SHIMMER + ✨ TWINKLING STARS
   - Diagonal light sweep across the red badge
   - White→gold gradient shimmering through the text
   - ✨ stars on both sides, alternately twinkling and rotating
   ------------------------------------------------------------------ */
.newsam-marquee__badge.newsam-marquee__badge--sparkle {
	background-image: linear-gradient(
		115deg,
		transparent 0%,
		transparent 35%,
		rgba(255, 255, 255, 0.55) 50%,
		transparent 65%,
		transparent 100%
	);
	background-color: var(--newsam-marquee-accent, #c8102e);
	background-size: 250% 100%;
	background-repeat: no-repeat;
	background-position: 150% 0;
	animation: newsamMarqueeShine 3.2s ease-in-out infinite;
}

.newsam-marquee__badge.newsam-marquee__badge--sparkle::before {
	animation:
		newsamMarqueePulse 1.2s ease-in-out infinite,
		newsamMarqueeSparkle 2.4s ease-in-out infinite;
}

.newsam-marquee__badge--sparkle .newsam-marquee__badge-text {
	background-image: linear-gradient(
		90deg,
		#ffffff 0%,
		#ffe27a 20%,
		#ffffff 40%,
		#ffe27a 60%,
		#ffffff 80%,
		#ffe27a 100%
	);
	background-size: 200% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent !important;
	animation: newsamMarqueeTextShimmer 2.6s linear infinite;
	text-shadow: none;
	filter: drop-shadow(0 0 2px rgba(255, 226, 122, 0.55));
}

.newsam-marquee__badge--sparkle .newsam-marquee__badge-text::before,
.newsam-marquee__badge--sparkle .newsam-marquee__badge-text::after {
	content: '\2728'; /* ✨ */
	display: inline-block;
	font-size: 0.85em;
	line-height: 1;
	color: #fff8c5;
	-webkit-text-fill-color: #fff8c5;
	filter: drop-shadow(0 0 3px rgba(255, 235, 150, 0.9));
	animation: newsamMarqueeTwinkle 1.6s ease-in-out infinite;
}

.newsam-marquee__badge--sparkle .newsam-marquee__badge-text::after {
	animation-delay: 0.8s;
}

@keyframes newsamMarqueeShine {
	0%   { background-position: 150% 0; }
	55%  { background-position: -150% 0; }
	100% { background-position: -150% 0; }
}

@keyframes newsamMarqueeSparkle {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
	50%      { box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.85); }
}

@keyframes newsamMarqueeTextShimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@keyframes newsamMarqueeTwinkle {
	0%, 100% { opacity: 1;   transform: scale(1) rotate(0deg); }
	50%      { opacity: 0.3; transform: scale(0.65) rotate(180deg); }
}

.newsam-marquee__badge::after {
	content: '';
	position: absolute;
	right: -10px;
	top: 0;
	width: 0;
	height: 0;
	border-top: 21px solid transparent;
	border-bottom: 21px solid transparent;
	border-left: 10px solid var(--newsam-marquee-accent, #c8102e);
}

/* Viewport: plain block (NOT flex) — padding centers the track naturally */
.newsam-marquee__viewport {
	flex: 1 1 auto;
	overflow: hidden;
	padding: 12px 0 12px 24px;
	min-width: 0;
	position: relative;
}

.newsam-marquee__track {
	display: flex;
	width: max-content;
	animation: newsamMarqueeScroll var(--newsam-marquee-duration, 40s) linear infinite;
	will-change: transform;
}

.newsam-marquee__track.is-paused,
.newsam-marquee:hover .newsam-marquee__track {
	animation-play-state: paused;
}

.newsam-marquee__group {
	display: flex;
	flex-shrink: 0;
}

/* Items: override theme link styles with a specific selector + !important.
   Color is hardcoded here; Elementor control emits its own !important rule
   that will override if the user picks a custom color. */
.newsam-marquee .newsam-marquee__item,
.newsam-marquee a.newsam-marquee__item,
.newsam-marquee a.newsam-marquee__item:link,
.newsam-marquee a.newsam-marquee__item:visited {
	display: inline-flex;
	align-items: center;
	padding: 0 34px 0 0;
	color: #ffffff !important;
	font-size: var(--newsam-marquee-size, 14px);
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	position: relative;
	line-height: 1.3;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.newsam-marquee .newsam-marquee__item:hover,
.newsam-marquee a.newsam-marquee__item:hover,
.newsam-marquee a.newsam-marquee__item:focus,
.newsam-marquee a.newsam-marquee__item:active {
	color: #ff3b5c !important;
	text-decoration: none !important;
	background: transparent !important;
}

.newsam-marquee__item:not(:last-child)::after {
	content: '▸';
	position: absolute;
	right: 12px;
	color: var(--newsam-marquee-accent, #c8102e);
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.newsam-marquee__empty {
	color: #999;
	font-style: italic;
	padding: 12px 20px;
	font-size: 13px;
}

@keyframes newsamMarqueeScroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@keyframes newsamMarqueePulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.35; transform: scale(0.7); }
}

@media (max-width: 768px) {
	.newsam-marquee {
		flex-direction: column;
	}
	.newsam-marquee__badge,
	.newsam-marquee a.newsam-marquee__badge,
	.newsam-marquee a.newsam-marquee__badge:link,
	.newsam-marquee a.newsam-marquee__badge:visited {
		width: 100%;
		justify-content: center;
		padding: 8px 14px;
		font-size: 11px;
		letter-spacing: 1.5px;
		border-bottom: 1px solid var(--newsam-marquee-accent, #c8102e);
	}
	.newsam-marquee__badge::after {
		display: none;
	}
	.newsam-marquee__viewport {
		padding: 8px 0 8px 14px;
	}
	.newsam-marquee .newsam-marquee__item,
	.newsam-marquee a.newsam-marquee__item:link {
		font-size: 12px;
		padding-right: 24px;
	}
}