/* Interface pieces: sticky header, breaking bar, ticker, headings, article extras.
   Loaded after the Customizer CSS so these rules win without !important. */

/* ---------- Sticky header that shrinks on scroll ---------- */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1020;
	background: #fff;
	transition: box-shadow .2s ease;
}
.site-header.is-scrolled {
	box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.site-header .main-menu,
.site-header .logo-area,
.site-header .desktop-menu-list,
.site-header .logo {
	transition: height .2s ease;
}
.site-header.is-scrolled .main-menu,
.site-header.is-scrolled .logo-area,
.site-header.is-scrolled .desktop-menu-list {
	height: 64px;
}
.site-header.is-scrolled .logo {
	height: 46px;
}
/* WordPress's admin bar scrolls away on small phones, so stick to the very top there. */
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

/* Search button in the header (phones only; desktop has the search box) */
.header-search-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: #262626;
	font-size: 21px;
}
.site-header .header-search-btn .bi {
	margin: 0;
	font-size: 21px;
}
@media (max-width: 767px) {
	.header-search-btn {
		display: inline-flex;
	}
}

/* ---------- Breaking news bar ---------- */
.breaking-bar {
	background: #CE2626;
	color: #fff;
}
.breaking-bar__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1110px;
	margin: 0 auto;
	padding: 10px 15px;
}
.breaking-bar__label {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 3px 12px;
	border-radius: 999px;
	background: #fff;
	color: #CE2626;
	font-family: 'aanmu', 'mv waheed', sans-serif;
	font-size: 16px;
	line-height: 1.6;
}
.breaking-bar__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #CE2626;
	animation: breaking-pulse 1.4s ease-out infinite;
}
@keyframes breaking-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(206, 38, 38, .55); }
	80%  { box-shadow: 0 0 0 8px rgba(206, 38, 38, 0); }
	100% { box-shadow: 0 0 0 0 rgba(206, 38, 38, 0); }
}
.breaking-bar__title {
	overflow: hidden;
	color: #fff;
	font-family: 'aanmu', 'mv waheed', sans-serif;
	font-size: 19px;
	line-height: 1.7;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.breaking-bar__title:hover,
.breaking-bar__title:focus-visible {
	color: #fff;
	text-decoration: underline;
}
@media (max-width: 767px) {
	.breaking-bar__inner {
		align-items: flex-start;
		gap: 10px;
	}
	.breaking-bar__title {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		font-size: 16px;
		white-space: normal;
	}
}
@media (prefers-reduced-motion: reduce) {
	.breaking-bar__dot { animation: none; }
}

/* ---------- Latest-news ticker: calm white strip (red is reserved for breaking) ---------- */
.custom-ticker-wrapper {
	display: flex;
	align-items: stretch;
	padding: 0;
	background: #fff;
	border-bottom: 1px solid #ececec;
}
.ticker-viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding: 9px 0;
}
.ticker-label {
	display: flex;
	flex: none;
	align-items: center;
	padding: 0 16px;
	background: #191919;
	color: #fff;
	direction: rtl;
	font-family: 'aanmu', 'mv waheed', sans-serif;
	font-size: 15px;
}
.custom-ticker-wrapper .ticker-item a {
	color: #191919;
}
.custom-ticker-wrapper .ticker-item a:hover,
.custom-ticker-wrapper .ticker-item a:focus-visible {
	color: #CE2626;
}
.ticker-sep {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 6px;
	border-radius: 50%;
	background: #CE2626;
	vertical-align: middle;
}
.custom-ticker-wrapper:hover .custom-ticker {
	animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
	.custom-ticker { animation: none; }
}

/* ---------- Section headings ---------- */
.section-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 44px 0 18px;
}
.section-head__heading {
	margin: 0;
	padding-right: 12px;
	border-right: 4px solid #CE2626;
	font-family: 'aanmu', 'mv waheed', sans-serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
}
.section-head__title {
	color: #191919;
	text-decoration: none;
	transition: color .2s ease;
}
a.section-head__title:hover,
a.section-head__title:focus-visible {
	color: #CE2626;
}
.section-head__line {
	flex: 1;
	height: 1px;
	background: #dcdcdc;
}
.section-head__more {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	background: #fff;
	color: #555;
	font-family: 'mv faseyha', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.section-head__more .bi {
	font-size: 11px;
}
.section-head__more:hover,
.section-head__more:focus-visible {
	border-color: #CE2626;
	background: #CE2626;
	color: #fff;
}
/* Narrow places: sidebar column and the 3-column row */
.single-side .section-head,
.thin-balha .section-head {
	margin-top: 30px;
}
.single-side .section-head__heading,
.thin-balha .section-head__heading {
	font-size: 21px;
}
.thin-balha .section-head__more {
	padding: 4px 10px;
}
@media (max-width: 767px) {
	.section-head {
		gap: 10px;
		margin: 32px 0 14px;
	}
	.section-head__heading {
		font-size: 22px;
	}
}

/* ---------- Article: exact date, related stories, reading progress ---------- */
.post-date-exact {
	direction: rtl;
	font-family: 'mv faseyha', sans-serif;
	font-size: 14px;
	color: #7a7a7a;
}

.related-stories {
	margin-top: 30px;
}
.related-stories .kuda-bodu {
	margin-top: 15px;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}
@media (min-width: 992px) {
	.related-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.related-grid .featured3-img {
		height: 120px;
	}
	.related-grid .featured-block-title3 {
		font-size: 16px;
		line-height: 1.9rem;
	}
}

.reading-progress {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	left: 0;
	z-index: 1030;
	height: 3px;
	pointer-events: none;
}
.reading-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: #CE2626;
	transform: scaleX(0);
	transform-origin: right center; /* RTL: fills from the right */
}
@media (max-width: 600px) {
	.admin-bar .reading-progress {
		top: 0;
	}
}

/* The leaderboard band right under the ticker brings its own spacing. */
.custom-ticker-wrapper:has(+ .ad-band) {
	margin-bottom: 0;
}

/* ---------- Media band (homepage) ---------- */
.media-card {
	display: block;
	color: inherit;
	text-decoration: none;
}
.media-card .featured8-img {
	display: flex;
	align-items: center;
	justify-content: center;
}
.media-card__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #CE2626;
	color: #fff;
	font-size: 30px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
}
.media-card__play .bi::before {
	margin-left: 3px; /* optically centre the triangle */
}
.media-card:hover .media-card__play,
.media-card:focus-visible .media-card__play {
	transform: scale(1.1);
}
.media-card .vid-title {
	color: #fff;
	transition: color .2s ease;
}
.media-card:hover .vid-title,
.media-card:focus-visible .vid-title {
	color: #ff8a8a;
}

/* ---------- Phones: menu on its own swipeable row (no hamburger) ---------- */
@media (max-width: 767px) {
	.site-header .main-menu,
	.site-header.is-scrolled .main-menu {
		height: auto;
	}
	.site-header .fuck {
		flex-wrap: wrap;
		row-gap: 0;
	}
	.site-header .logo-area,
	.site-header.is-scrolled .logo-area {
		height: 60px;
	}
	.site-header .logo {
		height: 46px;
	}
	.site-header.is-scrolled .logo {
		height: 38px;
	}
	.site-header .desktop-menu {
		display: block;
		order: 3;
		flex: 0 0 100%;
		margin: 0 -15px;
		border-top: 1px solid #f0f0f0;
	}
	.site-header .desktop-menu-list,
	.site-header.is-scrolled .desktop-menu-list {
		justify-content: flex-start;
		gap: 0 !important;
		height: 46px;
		padding: 0 6px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		/* fade the edges so it's clear the row scrolls */
		-webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
		mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
	}
	.site-header .desktop-menu-list::-webkit-scrollbar {
		display: none;
	}
	.site-header .desktop-menu-list > li {
		flex: none;
	}
	/* !important: the Customizer CSS zeroes menu link padding on phones */
	.main-menu .desktop-menu-list > li > a {
		padding: 0 13px !important;
		font-size: 18px !important;
	}
	.main-menu .desktop-menu-list > li > a::after {
		right: 12px;
		left: 12px;
	}
}

/* ---------- Article meta row: time ago · exact date · comments, on one line ---------- */
.top-meta .post-date {
	align-items: center;
	gap: 18px;
}
.top-meta .post-date > * {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-family: 'mv faseyha', sans-serif;
	font-size: 13px;
	line-height: 1.6;
}
.top-meta .post-date .bi {
	font-size: 13px;
	line-height: 1;
}
@media (max-width: 767px) {
	.top-meta .post-date {
		flex-wrap: wrap;
		gap: 4px 14px;
	}
}
.top-meta .single-meta-right {
	margin-top: 0;
}
@media (max-width: 767px) {
	/* Phones: author on top, the date line centred underneath */
	.top-meta {
		flex-direction: column;
		gap: 10px;
	}
	.top-meta .single-meta-right {
		margin: 0;
		padding: 0;
		border: 0;
	}
	.top-meta .post-date {
		justify-content: center;
	}
}

/* ---------- Comment form: "logged in as" line ---------- */
.comment-form .logged-in-as {
	margin-bottom: 12px;
	color: #6b6b6b;
	font-family: 'mv faseyha', sans-serif;
	font-size: 14px;
}
.comment-form .logged-in-as a {
	color: #CE2626;
}

/* ---------- TikTok cards, pop-up player, "all videos" link ---------- */
.media-card .media-card__source {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 14px;
}
.media-card .featured8-img {
	position: relative;
}
.media-card .media-card__source .bi {
	margin: 0;
	font-size: 14px;
	line-height: 1;
}
.media-band__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 6px 16px;
	border: 1px solid #444;
	border-radius: 999px;
	color: #ddd;
	font-family: 'aanmu', 'mv waheed', sans-serif;
	font-size: 16px;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.media-band__more:hover,
.media-band__more:focus-visible {
	border-color: #CE2626;
	background: #CE2626;
	color: #fff;
}
.media-band .container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.media-band .container > .kuda-bodu,
.media-band .container > .bodu-name {
	align-self: stretch;
}
.tiktok-modal .modal-content {
	margin-top: 0;
	padding: 14px 14px 12px;
	background: #111 !important;
	border: 0;
	color: #fff;
}
.tiktok-modal .btn-close {
	align-self: flex-end;
	margin-bottom: 8px;
	filter: invert(1);
}
.tiktok-modal__frame {
	width: 100%;
	max-width: 340px;
	height: min(76vh, 600px);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
}
.tiktok-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.tiktok-modal__open {
	display: block;
	margin-top: 10px;
	color: #ddd;
	font-family: 'aanmu', 'mv waheed', sans-serif;
	font-size: 16px;
	text-align: center;
	text-decoration: none;
}
.tiktok-modal__open:hover {
	color: #fff;
}
.media-grid .media-card .vid-title {
	color: #fff;
}

/* ---------- Plain pages (Terms, Privacy…) ---------- */
.legal-page {
	max-width: 780px;
	margin: 34px auto 50px;
	padding: 0 4px;
	direction: ltr;
	text-align: left;
	color: #2b2b2b;
	font-family: 'Roboto', 'Work Sans', sans-serif;
}
.legal-page__title {
	margin: 0 0 18px;
	padding-left: 12px;
	border-left: 4px solid #CE2626;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.3;
}
.legal-page__body {
	font-size: 17px;
	line-height: 1.8;
}
.legal-page__body h2 {
	margin: 32px 0 10px;
	font-size: 22px;
	font-weight: 700;
}
.legal-page__body h3 {
	margin: 20px 0 6px;
	font-size: 18px;
	font-weight: 700;
}
.legal-page__body p,
.legal-page__body ul {
	margin-bottom: 14px;
}
.legal-page__body ul {
	padding-left: 22px;
}
.legal-page__body li {
	margin-bottom: 6px;
}
.legal-page__body a {
	color: #CE2626;
}
@media (max-width: 767px) {
	.legal-page { margin-top: 22px; }
	.legal-page__title { font-size: 26px; }
	.legal-page__body { font-size: 16px; }
}
.footer-legal {
	display: block;
	margin-top: 8px;
}
.footer-legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.footer-legal a:hover {
	color: #fff;
}
.legal-page__body em {
	font-family: inherit;
}

/* ---------- Story photos: focus point and "whole photo" ---------- */
img.bodu-img,
img.featured3-img,
img.white-post-img,
img.block-img,
img.latest-block-img {
	object-position: var(--fx, 50%) var(--fy, 30%);
}
img.pic.is-whole,
img.is-whole {
	object-fit: contain !important;
	background-color: var(--avg, #14213d) !important;
	background-image: none !important;
}
/* Whole photos: a blurred copy of the picture fills the empty space (js/ui.js sets --whole-bg) */
.has-whole {
	position: relative;
	overflow: hidden;
	display: block;
}
.has-whole::before {
	content: "";
	position: absolute;
	inset: -24px;
	background: var(--whole-bg) center / cover;
	filter: blur(20px) brightness(.85);
}
.has-whole > img.is-whole {
	position: relative;
	background-color: transparent !important;
}

/* ---------- Phones: footer links stay clear of the fixed bottom bar ---------- */
@media (max-width: 767px) {
	html body footer {
		padding-bottom: 150px !important; /* the bar is ~120px tall; this was 100px */
	}
	.footer-legal {
		margin-top: 4px;
	}
	.footer-legal a {
		display: inline-block;
		padding: 10px 8px; /* comfortable tap target */
	}
}

/* ---------- Article page: the main photo keeps its own shape ---------- */
img.single-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 720px;
	object-fit: contain;
	background-color: var(--avg, #e9ebee) !important;
	background-image: none !important;
}
@media (max-width: 767px) {
	img.single-img {
		max-height: 520px;
	}
}
