/*
Theme Name: الجزاير برس نيوز Pro
Description: قالب إخباري عربي احترافي بتصميم كلاسيكي صحفي (أزرق كحلي ولمسات ذهبية)، يدعم الاتجاه من اليمين إلى اليسار بالكامل، ويضم شريط أخبار عاجلة متحرك، وصفحة رئيسية مختلطة بقسم فيديو مخصص، وصندوق كاتب احترافي بخط مستقل وحقول مصدر الخبر، وعدّاد مشاهدات، وفهرس محتويات تلقائي، وشريط تقدّم قراءة، ونشرة بريدية، ووسوم SEO، ومساحات إعلانية، ومختار خطوط عربية وعرض قابل للضبط ولمسات تزيين للواجهة. Professional Arabic RTL news magazine theme with breaking-news ticker, video section, author box, source fields, view counter, table of contents, reading progress, newsletter, SEO meta, ad slots, font and width controls.
Version: 3.0.5
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akhbar-news
Tags: news, magazine, blog, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-colors, editor-style, footer-widgets, block-styles
*/

/* =====================================================
   1) Variables & base
===================================================== */
:root {
	--akhbar-primary: #0e2a47;
	--akhbar-primary-dark: #081c33;
	--akhbar-primary-light: #1b4e7f;
	--akhbar-accent: #c9a227;
	--akhbar-accent-dark: #a8861d;
	--akhbar-breaking: #c0392b;
	--akhbar-text: #22303e;
	--akhbar-heading: #0e2a47;
	--akhbar-muted: #5a6572;
	--akhbar-bg: #f5f7fa;
	--akhbar-card: #ffffff;
	--akhbar-border: #e4e9ef;
	--akhbar-radius: 10px;
	--akhbar-shadow: 0 6px 24px rgba(14, 42, 71, 0.08);
	--akhbar-font: 'Cairo', 'Tahoma', 'Arial', sans-serif;
	--akhbar-container: 1240px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* تضمن أن الخاصية hidden تخفي العناصر حتى مع قواعد display في ملف القالب. */
[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--akhbar-font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--akhbar-text);
	background: var(--akhbar-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--akhbar-heading);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}

a:hover,
a:focus {
	color: var(--akhbar-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 800;
	line-height: 1.5;
	color: var(--akhbar-heading);
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1.1em;
}

ul, ol {
	padding-inline-start: 1.4em;
}

input,
textarea,
select,
button {
	font-family: inherit;
	font-size: inherit;
}

:focus-visible {
	outline: 2px solid var(--akhbar-accent);
	outline-offset: 2px;
}

.container {
	max-width: var(--akhbar-container);
	margin-inline: auto;
	padding-inline: 18px;
}

.svg-icon {
	display: inline-flex;
	line-height: 1;
	flex-shrink: 0;
}

.svg-icon svg {
	width: 1.05em;
	height: 1.05em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.12em;
}

.svg-icon.icon-fill svg {
	fill: currentColor;
	stroke: none;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	top: -60px;
	inset-inline-start: 12px;
	z-index: 100000;
	background: var(--akhbar-primary);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 8px 8px;
	font-weight: 700;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* =====================================================
   2) Topbar
===================================================== */
.topbar {
	background: var(--akhbar-primary-dark);
	color: #cfd8e3;
	font-size: 13.5px;
	font-weight: 600;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
	flex-wrap: wrap;
	padding-block: 4px;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.topbar-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
}

.topbar-text {
	color: #9fb2c8;
}

.social-links {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	color: #cfd8e3;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	transform: translateY(-2px);
}

/* =====================================================
   3) Header branding & ad slot
===================================================== */
.site-branding {
	background: var(--akhbar-card);
	border-bottom: 1px solid var(--akhbar-border);
}

.branding-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 18px;
}

.branding-logo {
	display: flex;
	align-items: center;
	gap: 14px;
}

.custom-logo {
	max-height: 84px;
	width: auto;
}

.site-title-wrap {
	display: flex;
	flex-direction: column;
}

.site-title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 900;
	color: var(--akhbar-heading);
	line-height: 1.3;
	letter-spacing: -0.5px;
}

.site-title:hover {
	color: var(--akhbar-heading);
}

.site-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--akhbar-accent);
}

.site-description {
	margin: 2px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--akhbar-muted);
}

.header-ad {
	flex-shrink: 1;
}

.ad-slot {
	min-width: 240px;
	min-height: 70px;
	display: grid;
	place-items: center;
	border: 1px dashed var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	background: var(--akhbar-bg);
	color: var(--akhbar-muted);
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
}

/* =====================================================
   4) Main navigation
===================================================== */
.main-nav {
	background: var(--akhbar-primary);
	position: sticky;
	top: 0;
	z-index: 500;
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06) inset;
	transition: box-shadow 0.3s ease;
}

.main-nav.is-stuck {
	box-shadow: 0 8px 24px rgba(8, 28, 51, 0.35);
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-toggle,
.search-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 20px;
	padding: 10px;
	cursor: pointer;
	align-items: center;
}

.nav-toggle {
	font-weight: 800;
	gap: 6px;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.15);
}

.primary-menu-wrap {
	flex: 1;
}

.primary-menu {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.primary-menu li {
	position: relative;
}

.primary-menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-weight: 700;
	font-size: 15.5px;
	padding: 14px 16px;
	position: relative;
	white-space: nowrap;
}

.primary-menu > li > a::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 16px;
	width: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--akhbar-accent);
	transition: width 0.25s ease;
}

.primary-menu > li:hover > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a {
	color: #fff;
}

.primary-menu > li:hover > a::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-menu-parent > a::after {
	width: calc(100% - 32px);
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	background: #fff;
	border-radius: 0 0 var(--akhbar-radius) var(--akhbar-radius);
	box-shadow: var(--akhbar-shadow);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	z-index: 600;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li.focus > .sub-menu,
.primary-menu li.sub-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu li {
	width: 100%;
}

.primary-menu .sub-menu a {
	display: block;
	color: var(--akhbar-text);
	font-size: 14.5px;
	font-weight: 600;
	padding: 9px 18px;
	border-inline-start: 3px solid transparent;
	white-space: nowrap;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu li.current-menu-item > a {
	background: var(--akhbar-bg);
	border-inline-start-color: var(--akhbar-accent);
	color: var(--akhbar-heading);
}

.primary-menu .sub-menu .sub-menu {
	top: 0;
	inset-inline-start: 100%;
	border-radius: var(--akhbar-radius);
}

.submenu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: var(--akhbar-heading);
	cursor: pointer;
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1;
}

.header-search {
	background: var(--akhbar-primary-dark);
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.header-search.is-open {
	max-height: 120px;
}

.header-search .container {
	padding-block: 14px;
}

/* =====================================================
   5) Breaking news ticker
===================================================== */
.breaking-bar {
	background: var(--akhbar-card);
	border-bottom: 1px solid var(--akhbar-border);
}

.breaking-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 9px;
}

.breaking-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	background: var(--akhbar-breaking);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	padding: 5px 14px;
	border-radius: 6px;
	animation: akhbar-pulse 1.8s ease-in-out infinite;
}

.breaking-label .svg-icon {
	color: #ffd9d4;
}

@keyframes akhbar-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.75; }
}

.breaking-ticker {
	flex: 1;
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
	display: flex;
	width: max-content;
	animation: akhbar-ticker-rtl var(--ticker-duration, 45s) linear infinite;
}

.breaking-ticker:hover .ticker-track {
	animation-play-state: paused;
}

@keyframes akhbar-ticker-rtl {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

@keyframes akhbar-ticker-ltr {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

html[dir="ltr"] .ticker-track {
	animation-name: akhbar-ticker-ltr;
}

.ticker-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ticker-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	padding-inline: 16px;
	border-inline-start: 1px solid var(--akhbar-border);
}

.ticker-list a {
	color: var(--akhbar-text);
	font-weight: 700;
	font-size: 14.5px;
}

.ticker-list a:hover {
	color: var(--akhbar-breaking);
}

.ticker-time {
	color: var(--akhbar-muted);
	font-size: 12px;
	font-weight: 600;
}

.ticker-empty {
	color: var(--akhbar-muted);
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.ticker-track,
	.breaking-label {
		animation: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* =====================================================
   6) Breadcrumb
===================================================== */
.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding-block: 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--akhbar-muted);
}

.breadcrumb a {
	color: var(--akhbar-muted);
}

.breadcrumb a:hover {
	color: var(--akhbar-accent-dark);
}

.crumb-sep {
	opacity: 0.55;
}

/* =====================================================
   7) Hero (featured slider + most read)
===================================================== */
.hero-section {
	padding-top: 20px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
	gap: 22px;
	align-items: stretch;
}

.hero-slider {
	position: relative;
	background: var(--akhbar-primary-dark);
	border-radius: var(--akhbar-radius);
	overflow: hidden;
	box-shadow: var(--akhbar-shadow);
}

.hero-slides {
	position: relative;
	aspect-ratio: 16 / 9;
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
	pointer-events: none;
}

.hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.hero-media {
	display: block;
	position: absolute;
	inset: 0;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-media .media-fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--akhbar-primary) 0%, var(--akhbar-primary-light) 100%);
	color: rgba(255, 255, 255, 0.5);
	font-size: 26px;
	font-weight: 900;
}

.hero-content {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 90px 26px 20px;
	background: linear-gradient(to top, rgba(8, 28, 51, 0.94) 20%, rgba(8, 28, 51, 0) 100%);
	color: #fff;
}

.hero-content .cat-badge {
	margin-bottom: 8px;
}

.hero-title {
	font-size: clamp(19px, 2.4vw, 27px);
	margin: 0 0 6px;
	line-height: 1.55;
}

.hero-title a {
	color: #fff;
}

.hero-title a:hover {
	color: var(--akhbar-accent);
}

.hero-excerpt {
	color: #c9d4e0;
	font-size: 14.5px;
	line-height: 1.85;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-meta,
.card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--akhbar-muted);
}

.hero-meta {
	color: #aebccb;
}

.hero-meta a {
	color: #aebccb;
}

.hero-meta a:hover {
	color: var(--akhbar-accent);
}

.meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hero-controls {
	position: absolute;
	bottom: 14px;
	inset-inline-end: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 2;
}

.hero-dots {
	display: flex;
	gap: 6px;
}

.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
	background: var(--akhbar-accent);
	transform: scale(1.25);
}

.hero-arrows {
	display: flex;
	gap: 6px;
}

.hero-arrows button {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(8, 28, 51, 0.55);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 14px;
	transition: background 0.2s ease;
}

.hero-arrows button:hover {
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	border-color: var(--akhbar-accent);
}

/* Most read side list */
.most-read {
	background: var(--akhbar-card);
	border-radius: var(--akhbar-radius);
	padding: 18px 20px 8px;
	box-shadow: var(--akhbar-shadow);
	border-top: 4px solid var(--akhbar-accent);
}

.most-read .widget-title {
	margin-bottom: 10px;
}

.most-read-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-block: 12px;
	border-bottom: 1px dashed var(--akhbar-border);
}

.most-read-item:last-child {
	border-bottom: 0;
}

.most-read-num {
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
	color: var(--akhbar-border);
	min-width: 34px;
	transition: color 0.2s ease;
}

.most-read-item:hover .most-read-num {
	color: var(--akhbar-accent);
}

.most-read-item a {
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--akhbar-text);
	display: block;
}

.most-read-item a:hover {
	color: var(--akhbar-heading);
}

.most-read-item .card-meta {
	margin-top: 4px;
}

/* =====================================================
   8) Section heads, post grid & cards
===================================================== */
.home-main,
.archive-main,
.single-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 30px;
	padding-block: 26px 40px;
	align-items: start;
}

.home-content,
.archive-content,
.single-content {
	min-width: 0;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--akhbar-border);
	padding-bottom: 10px;
}

.section-title {
	font-size: 21px;
	font-weight: 900;
	margin: 0;
	position: relative;
	padding-inline-start: 14px;
}

.section-title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 70%;
	border-radius: 5px;
	background: var(--akhbar-accent);
}

.section-title a {
	color: var(--akhbar-heading);
}

.section-title a:hover {
	color: var(--akhbar-accent-dark);
}

.more-link {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--akhbar-primary-light);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.more-link:hover {
	color: var(--akhbar-accent-dark);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 22px;
	margin-bottom: 26px;
}

.post-card {
	background: var(--akhbar-card);
	border-radius: var(--akhbar-radius);
	overflow: hidden;
	box-shadow: var(--akhbar-shadow);
	border: 1px solid var(--akhbar-border);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(14, 42, 71, 0.14);
}

.card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--akhbar-bg);
}

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

.post-card:hover .card-media img {
	transform: scale(1.06);
}

.media-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--akhbar-primary) 0%, var(--akhbar-primary-light) 100%);
	color: rgba(255, 255, 255, 0.55);
	font-weight: 900;
	font-size: 17px;
	letter-spacing: 0.5px;
}

.cat-badge {
	display: inline-block;
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	font-size: 11.5px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	line-height: 1.7;
}

a.cat-badge:hover {
	background: var(--akhbar-primary-dark);
	color: var(--akhbar-accent);
}

.card-media .cat-badge {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 1;
}

.card-body {
	padding: 15px 17px 17px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.card-title {
	font-size: 16.5px;
	line-height: 1.7;
	margin: 0;
}

.card-title a {
	color: var(--akhbar-text);
}

.card-title a:hover {
	color: var(--akhbar-heading);
}

.card-excerpt {
	color: var(--akhbar-muted);
	font-size: 13.8px;
	line-height: 1.85;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-body .card-meta {
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px dashed var(--akhbar-border);
}

/* =====================================================
   9) Homepage category blocks
===================================================== */
.cat-block {
	margin-bottom: 34px;
}

/* توحيد المسافة فوق كتل التصنيفات مع المسافة بينها (يتمدد هامش الشبكة بالانحقاق). */
.latest-section {
	margin-bottom: 34px;
}

.cat-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 22px;
}

/* عندما لا يوجد سوى الخبر الرئيسي في التصنيف: عمود واحد بلا فراغات. */
.cat-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.cat-big {
	background: var(--akhbar-card);
	border-radius: var(--akhbar-radius);
	overflow: hidden;
	box-shadow: var(--akhbar-shadow);
	border: 1px solid var(--akhbar-border);
}

.cat-big .card-media {
	aspect-ratio: 16 / 9;
}

.cat-big .card-title {
	font-size: 19px;
}

.cat-big .card-excerpt {
	-webkit-line-clamp: 4;
}

.cat-list {
	display: grid;
	grid-auto-rows: 1fr;
	gap: 14px;
	height: 100%;
}

.cat-item-card {
	display: flex;
	gap: 13px;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	overflow: hidden;
	box-shadow: var(--akhbar-shadow);
	transition: transform 0.2s ease;
}

.cat-item-card:hover {
	transform: translateX(-4px);
}

html[dir="ltr"] .cat-item-card:hover {
	transform: translateX(4px);
}

.cat-item-card .card-media {
	width: 118px;
	min-width: 118px;
	aspect-ratio: auto;
	min-height: 88px;
	border-radius: 0;
}

.cat-item-card .card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cat-item-card .card-body {
	padding: 10px 13px;
	gap: 4px;
	justify-content: center;
}

.cat-item-card .card-title {
	font-size: 14.5px;
}

.cat-item-card .card-meta {
	padding-top: 4px;
	border-top: 0;
}

/* =====================================================
   10) Sidebar & widgets
===================================================== */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.widget {
	background: var(--akhbar-card);
	border-radius: var(--akhbar-radius);
	padding: 18px 20px 20px;
	box-shadow: var(--akhbar-shadow);
	border: 1px solid var(--akhbar-border);
}

.widget-title {
	font-size: 17px;
	font-weight: 800;
	color: var(--akhbar-heading);
	margin: 0 0 14px;
	padding-inline-start: 12px;
	border-inline-start: 4px solid var(--akhbar-accent);
	line-height: 1.6;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding-block: 9px;
	border-bottom: 1px dashed var(--akhbar-border);
	font-size: 14.5px;
	font-weight: 600;
}

.widget ul li:last-child {
	border-bottom: 0;
}

.widget ul li a {
	color: var(--akhbar-text);
}

.widget ul li a:hover {
	color: var(--akhbar-accent-dark);
}

.widget .post-date,
.widget .count {
	color: var(--akhbar-muted);
	font-size: 12px;
}

.widget_tag_cloud .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.widget_tag_cloud .tagcloud a {
	background: var(--akhbar-bg);
	border: 1px solid var(--akhbar-border);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12.5px !important;
	color: var(--akhbar-text);
	font-weight: 600;
}

.widget_tag_cloud .tagcloud a:hover {
	background: var(--akhbar-primary);
	border-color: var(--akhbar-heading);
	color: #fff;
}

.widget_media_image img,
.widget_media_gallery img {
	border-radius: 8px;
}

.widget_text .textwidget {
	font-size: 14.5px;
	color: var(--akhbar-muted);
}

/* Widget search form */
.widget_search .search-form {
	display: flex;
	gap: 0;
}

/* Custom "featured posts" widget + default sidebar list */
.akhbar-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.akhbar-posts-list .widget-thumb {
	display: block;
	width: 84px;
	min-width: 84px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
}

.akhbar-posts-list .widget-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.akhbar-posts-list .widget-thumb .media-fallback {
	font-size: 10px;
}

.akhbar-posts-list .widget-thumb + div {
	min-width: 0;
}

/* =====================================================
   11) Search form
===================================================== */
.search-form {
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1;
	margin: 0;
}

.search-field {
	width: 100%;
	border: 1px solid var(--akhbar-border);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14.5px;
	background: var(--akhbar-bg);
	color: var(--akhbar-text);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.search-field:focus {
	border-color: var(--akhbar-accent);
	background: #fff;
	outline: none;
}

.search-submit {
	border: 0;
	border-radius: 8px;
	background: var(--akhbar-primary);
	color: #fff;
	padding: 10px 16px;
	font-size: 16px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.2s ease;
}

.search-submit:hover {
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
}

/* =====================================================
   12) Single post
===================================================== */
.single-wrap {
	background: var(--akhbar-card);
	border-radius: var(--akhbar-radius);
	border: 1px solid var(--akhbar-border);
	box-shadow: var(--akhbar-shadow);
	padding: 26px clamp(18px, 3.5vw, 38px) 30px;
}

.entry-header .entry-title {
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.6;
	margin-bottom: 12px;
}

.entry-header .entry-meta {
	margin-bottom: 16px;
}

.post-thumbnail {
	margin: 0 0 22px;
	border-radius: var(--akhbar-radius);
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	display: block;
}

.post-thumbnail figcaption,
.wp-caption-text {
	font-size: 12.5px;
	color: var(--akhbar-muted);
	text-align: center;
	padding-top: 8px;
}

.entry-content {
	font-size: calc(var(--akhbar-base-fs, 17px) * var(--fs-scale, 1));
	line-height: 2.05;
	color: var(--akhbar-text);
	word-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.5em;
}

.entry-content h2 {
	font-size: calc(23px * var(--fs-scale, 1));
	padding-inline-start: 14px;
	border-inline-start: 5px solid var(--akhbar-accent);
}

.entry-content a {
	color: var(--akhbar-primary-light);
	text-decoration: underline;
	text-decoration-color: rgba(27, 78, 127, 0.35);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--akhbar-accent-dark);
	text-decoration-color: currentColor;
}

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 16px 22px;
	background: var(--akhbar-bg);
	border-inline-start: 4px solid var(--akhbar-accent);
	border-radius: 8px;
	font-size: 1.05em;
	font-weight: 600;
	color: var(--akhbar-heading);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
	font-size: 14.5px;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--akhbar-border);
	padding: 10px 13px;
	text-align: start;
}

.entry-content thead th {
	background: var(--akhbar-primary);
	color: #fff;
	border-color: var(--akhbar-heading);
}

.entry-content tbody tr:nth-child(even) {
	background: var(--akhbar-bg);
}

.entry-content code,
.entry-content pre {
	background: #0d1b2a;
	color: #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	direction: ltr;
	text-align: left;
}

.entry-content code {
	padding: 2px 7px;
}

.entry-content pre {
	padding: 16px 18px;
	overflow-x: auto;
	line-height: 1.8;
}

.entry-content img {
	border-radius: 8px;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.alignwide {
	max-width: min(1100px, 100%);
	margin-inline: auto;
}

.alignfull {
	max-width: 100vw;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.alignleft {
	float: inline-start;
	margin: 0.4em 1.4em 1em 0;
}

.alignright {
	float: inline-end;
	margin: 0.4em 0 1em 1.4em;
}

.aligncenter {
	margin-inline: auto;
	display: block;
}

.entry-tags {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px dashed var(--akhbar-border);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.entry-tags .tags-label {
	font-weight: 800;
	color: var(--akhbar-heading);
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.entry-tags .tag-link {
	background: var(--akhbar-bg);
	border: 1px solid var(--akhbar-border);
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--akhbar-text);
}

.entry-tags .tag-link:hover {
	background: var(--akhbar-accent);
	border-color: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
}

/* Share buttons */
.share-buttons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 20px;
}

.share-label {
	font-weight: 800;
	font-size: 14px;
	color: var(--akhbar-heading);
	margin-inline-end: 4px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 8px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
	color: #fff;
	transform: translateY(-2px);
	opacity: 0.92;
}

.share-facebook { background: #1877f2; }
.share-x { background: #14171a; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #2aabee; }

/* Author byline (photo beside the article info) */
.author-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	background: var(--akhbar-bg);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	padding: 12px 16px;
	margin-bottom: 18px;
}

.byline-avatar {
	display: block;
	flex-shrink: 0;
}

.byline-avatar img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid var(--akhbar-accent);
	object-fit: cover;
	display: block;
}

.byline-info {
	display: flex;
	flex-direction: column;
	line-height: 1.55;
	min-width: 0;
}

.byline-name {
	font-weight: 800;
	font-size: 14.5px;
	color: var(--akhbar-heading);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.byline-name a {
	color: var(--akhbar-heading);
}

.byline-name a:hover {
	color: var(--akhbar-accent-dark);
}

.byline-role {
	font-size: 12px;
	color: var(--akhbar-muted);
	font-weight: 600;
}

.byline-meta {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--akhbar-muted);
}

.meta-views .svg-icon {
	color: var(--akhbar-accent-dark);
}

/* Professional author box */
.author-box {
	margin-top: 28px;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	overflow: hidden;
	box-shadow: var(--akhbar-shadow);
}

.author-box-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15.5px;
	font-weight: 800;
	color: #fff;
	background: var(--akhbar-primary);
	padding: 12px 20px;
}

.author-box-title .svg-icon {
	color: var(--akhbar-accent);
}

.author-box-body {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 22px 20px;
	background: var(--akhbar-bg);
}

.author-box-photo {
	flex-shrink: 0;
	display: block;
}

.author-box-photo img {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--akhbar-accent);
	box-shadow: 0 6px 18px rgba(8, 28, 51, 0.18);
}

.author-box-info {
	min-width: 0;
	flex: 1;
}

.author-box-info .author-name {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 6px;
	font-size: 18px;
}

.author-name a {
	color: var(--akhbar-heading);
}

.author-name a:hover {
	color: var(--akhbar-accent-dark);
}

.author-role {
	display: inline-block;
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	font-size: 11.5px;
	font-weight: 800;
	padding: 2px 12px;
	border-radius: 999px;
	line-height: 1.8;
	white-space: nowrap;
}

.author-desc {
	margin: 0 0 12px;
	font-size: 13.8px;
	color: var(--akhbar-muted);
	line-height: 1.85;
}

.author-box-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--akhbar-muted);
	margin-bottom: 10px;
}

.author-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--akhbar-heading);
}

.author-stat .svg-icon {
	color: var(--akhbar-accent-dark);
}

.author-stat strong {
	color: var(--akhbar-accent-dark);
	font-size: 15px;
}

.author-social {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	flex-wrap: wrap;
}

.author-social a {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	color: var(--akhbar-heading);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.author-social a:hover {
	background: var(--akhbar-accent);
	border-color: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
}

.author-box-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 800;
	font-size: 13.5px;
	color: var(--akhbar-primary-light);
}

.author-box-more:hover {
	color: var(--akhbar-accent-dark);
}

.author-box-more .svg-icon {
	color: var(--akhbar-accent-dark);
}

/* Post navigation */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 26px;
}

.post-nav a {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	padding: 14px 17px;
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--akhbar-text);
	min-height: 76px;
}

.post-nav a:hover {
	border-color: var(--akhbar-accent);
	color: var(--akhbar-heading);
	box-shadow: var(--akhbar-shadow);
}

.post-nav .nav-label {
	font-size: 12px;
	font-weight: 800;
	color: var(--akhbar-accent-dark);
}

.post-nav-next {
	text-align: start;
}

.post-nav-prev {
	text-align: end;
}

/* Related posts */
.related-posts {
	margin-top: 34px;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.related-grid .post-card .card-excerpt {
	display: none;
}

/* =====================================================
   13) Comments
===================================================== */
.comments-area {
	margin-top: 34px;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	box-shadow: var(--akhbar-shadow);
	padding: 24px clamp(18px, 3vw, 32px);
}

.comments-title,
.comment-reply-title {
	font-size: 20px;
	font-weight: 900;
}

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

.comment-list .comment {
	border-bottom: 1px dashed var(--akhbar-border);
	padding-block: 16px;
}

.comment-list .comment:last-child {
	border-bottom: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 14px 0 0;
	padding-inline-start: 22px;
	border-inline-start: 2px solid var(--akhbar-border);
}

.comment-body .comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--akhbar-muted);
	margin-bottom: 6px;
}

.comment-author .avatar {
	border-radius: 50%;
	margin-inline-end: 4px;
}

.comment-author .fn {
	font-weight: 800;
	color: var(--akhbar-heading);
	font-style: normal;
	font-size: 14.5px;
}

.comment-content {
	font-size: 14.8px;
	line-height: 1.9;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply a {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--akhbar-accent-dark);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.bypostauthor > .comment-body {
	background: var(--akhbar-bg);
	border-radius: 8px;
	padding: 12px 14px;
}

.comment-awaiting-moderation {
	color: var(--akhbar-breaking);
	font-weight: 700;
	font-size: 13px;
}

/* Comment form */
.comment-form p {
	margin: 0 0 14px;
}

.comment-form label {
	display: block;
	font-weight: 700;
	font-size: 13.5px;
	margin-bottom: 5px;
	color: var(--akhbar-heading);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--akhbar-border);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14.5px;
	background: var(--akhbar-bg);
	transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--akhbar-accent);
	outline: none;
	background: #fff;
}

.comment-form .submit {
	background: var(--akhbar-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 11px 26px;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.comment-form .submit:hover {
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
}

.comment-notes,
.logged-in-as {
	font-size: 13px;
	color: var(--akhbar-muted);
}

/* =====================================================
   14) Pagination
===================================================== */
.pagination,
.posts-navigation {
	margin: 8px 0 12px;
}

.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 10px;
	border: 1px solid var(--akhbar-border);
	border-radius: 8px;
	background: var(--akhbar-card);
	font-weight: 700;
	font-size: 14px;
	color: var(--akhbar-text);
	box-shadow: var(--akhbar-shadow);
}

.page-numbers:hover {
	border-color: var(--akhbar-accent);
	color: var(--akhbar-accent-dark);
}

.page-numbers.current {
	background: var(--akhbar-primary);
	border-color: var(--akhbar-heading);
	color: #fff;
}

.page-numbers.dots {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.posts-navigation .nav-links {
	justify-content: space-between;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
}

/* =====================================================
   15) Archive / page headers
===================================================== */
.archive-header,
.page-header {
	background: var(--akhbar-card);
	border-bottom: 1px solid var(--akhbar-border);
	padding-block: 26px 22px;
}

.archive-header .container,
.page-header .container {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.page-title {
	font-size: clamp(23px, 3vw, 30px);
	margin: 0;
	position: relative;
	padding-inline-start: 16px;
}

.page-title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 80%;
	border-radius: 6px;
	background: var(--akhbar-accent);
}

.archive-desc {
	color: var(--akhbar-muted);
	font-size: 14.5px;
	max-width: 720px;
}

.archive-count {
	font-size: 13px;
	font-weight: 700;
	color: var(--akhbar-accent-dark);
}

/* =====================================================
   16) Static pages & full-width template
===================================================== */
.page-wrap {
	background: var(--akhbar-card);
	border-radius: var(--akhbar-radius);
	border: 1px solid var(--akhbar-border);
	box-shadow: var(--akhbar-shadow);
	padding: 30px clamp(18px, 3.5vw, 40px) 36px;
}

.search-again {
	margin-bottom: 22px;
}

.search-query {
	color: var(--akhbar-accent-dark);
}

.page-links {
	margin-top: 18px;
	font-weight: 700;
}

.no-comments {
	color: var(--akhbar-breaking);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 0;
}

/* =====================================================
   17) Search results / 404
===================================================== */
.search-result-count {
	color: var(--akhbar-muted);
	font-size: 14px;
}

.error-404 {
	text-align: center;
	padding-block: 50px 60px;
}

.error-404 .error-code {
	font-size: clamp(90px, 16vw, 150px);
	font-weight: 900;
	line-height: 1;
	background: linear-gradient(135deg, var(--akhbar-primary) 30%, var(--akhbar-accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 8px;
}

.error-404 p {
	color: var(--akhbar-muted);
	max-width: 520px;
	margin-inline: auto;
}

.error-404 .search-form {
	max-width: 480px;
	margin: 22px auto 0;
}

.no-results {
	text-align: center;
	padding-block: 30px;
	color: var(--akhbar-muted);
}

/* =====================================================
   18) Footer
===================================================== */
.site-footer {
	background: var(--akhbar-primary-dark);
	color: #b9c6d6;
	margin-top: 30px;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 30px;
	padding-block: 42px 30px;
}

.footer-brand .site-title {
	color: #fff;
	font-size: 26px;
}

.footer-brand .site-title::after {
	background: var(--akhbar-accent);
}

.footer-about {
	font-size: 14px;
	line-height: 1.95;
	color: #9fb2c8;
	margin-top: 10px;
}

.footer-brand .social-links {
	margin-top: 14px;
}

.footer-brand .social-links a {
	color: #9fb2c8;
}

.site-footer .widget {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.site-footer .widget-title {
	color: #fff;
	border-inline-start-color: var(--akhbar-accent);
}

.site-footer .widget ul li {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-footer .widget ul li a,
.site-footer .widget a {
	color: #b9c6d6;
}

.site-footer .widget ul li a:hover,
.site-footer .widget a:hover {
	color: var(--akhbar-accent);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-block: 16px;
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 13.5px;
}

.copyright {
	color: #9fb2c8;
}

.copyright a {
	color: var(--akhbar-accent);
	font-weight: 700;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: #b9c6d6;
	font-weight: 600;
	font-size: 13.5px;
}

.footer-menu a:hover {
	color: var(--akhbar-accent);
}

/* Back to top */
.back-to-top {
	position: fixed;
	bottom: 26px;
	inset-inline-end: 26px;
	z-index: 900;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: 0;
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	font-size: 18px;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 10px 26px rgba(8, 28, 51, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: var(--akhbar-primary);
	color: #fff;
}

/* =====================================================
   19) Mobile navigation panel
===================================================== */
@media (max-width: 992px) {
	.nav-toggle {
		display: inline-flex;
	}

	.primary-menu-wrap {
		position: fixed;
		top: 0;
		bottom: 0;
		inset-inline-start: 0;
		width: min(330px, 86vw);
		background: #fff;
		z-index: 1200;
		padding: 18px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		box-shadow: -12px 0 40px rgba(8, 28, 51, 0.25);
	}

	html[dir="ltr"] .primary-menu-wrap {
		transform: translateX(-100%);
		box-shadow: 12px 0 40px rgba(8, 28, 51, 0.25);
	}

	body.nav-open .primary-menu-wrap {
		transform: translateX(0);
	}

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
	}

	.primary-menu > li > a {
		color: var(--akhbar-text);
		padding: 12px 10px;
		border-bottom: 1px dashed var(--akhbar-border);
		font-size: 16px;
	}

	.primary-menu > li > a::after {
		display: none;
	}

	.primary-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		display: none;
		padding: 0;
		padding-inline-start: 14px;
		min-width: 0;
	}

	.primary-menu li.sub-open > .sub-menu {
		display: block;
	}

	.primary-menu .sub-menu a {
		color: var(--akhbar-muted);
		border-inline-start: 0;
	}

	.submenu-toggle {
		display: inline-block;
		position: absolute;
		top: 8px;
		inset-inline-end: 6px;
	}

	.submenu-toggle::before {
		content: "▾";
		font-size: 14px;
	}

	li.sub-open > .submenu-toggle::before {
		content: "▴";
	}

	.search-toggle {
		display: inline-flex;
		margin-inline-start: auto;
	}

	body.nav-open::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(8, 28, 51, 0.55);
		z-index: 1100;
	}
}

/* =====================================================
   19b) Sidebar position & ad slots
===================================================== */
@media (min-width: 993px) {
	body.akhbar-sidebar-right .home-main,
	body.akhbar-sidebar-right .single-main {
		grid-template-columns: 340px minmax(0, 1fr);
	}

	body.akhbar-sidebar-right .home-main .home-content,
	body.akhbar-sidebar-right .single-main .single-content {
		order: 2;
	}

	body.akhbar-sidebar-right .home-main .widget-area,
	body.akhbar-sidebar-right .single-main .widget-area {
		order: 1;
	}
}

.single-wrap .ad-slot {
	margin: 20px 0;
}

.akhbar-home-bottom-ad {
	margin-top: 26px;
}

.ad-slot {
	overflow: hidden;
}

.ad-slot ins,
.ad-slot iframe,
.ad-slot img {
	max-width: 100%;
}

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

	.most-read {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 0 26px;
	}
}

@media (max-width: 992px) {
	.home-main,
	.archive-main,
	.single-main {
		grid-template-columns: 1fr;
	}

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

	.header-ad {
		display: none;
	}
}

@media (max-width: 700px) {
	.cat-grid {
		grid-template-columns: 1fr;
	}

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

	.topbar-inner {
		justify-content: center;
	}

	.topbar-text {
		display: none;
	}

	.footer-main {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.breaking-label {
		padding: 4px 10px;
		font-size: 12.5px;
	}

	.hero-slides {
		aspect-ratio: 4 / 3;
	}

	.hero-excerpt {
		display: none;
	}

	.author-byline {
		align-items: flex-start;
	}

	.byline-meta {
		margin-inline-start: 0;
		width: 100%;
	}

	.author-box-body {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.author-box-info .author-name,
	.author-box-meta,
	.author-social {
		justify-content: center;
	}

	.author-box-more {
		justify-content: center;
	}

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

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}

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

/* =====================================================
   21) Print
===================================================== */
@media print {
	.topbar,
	.main-nav,
	.breaking-bar,
	.sidebar,
	.site-footer,
	.back-to-top,
	.share-buttons,
	.akhbar-newsletter,
	.akhbar-progress,
	.akhbar-toc .toc-toggle,
	.author-byline,
	.related-posts,
	.comments-area,
	.breadcrumb {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.single-wrap,
	.page-wrap {
		border: 0;
		box-shadow: none;
		padding: 0;
	}
}

/* =====================================================
   22) Advanced article features
===================================================== */
/* Reading progress bar */
.akhbar-progress {
	position: fixed;
	top: 0;
	inset-inline: 0;
	height: 4px;
	z-index: 100000;
	pointer-events: none;
}

body.admin-bar .akhbar-progress {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .akhbar-progress {
		top: 46px;
	}
}

.akhbar-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--akhbar-accent), var(--akhbar-accent-dark));
}

/* Table of contents */
.akhbar-toc {
	position: relative;
	background: var(--akhbar-bg);
	border: 1px solid var(--akhbar-border);
	border-inline-start: 4px solid var(--akhbar-accent);
	border-radius: var(--akhbar-radius);
	padding: 14px 18px;
	margin: 22px 0;
}

.toc-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--akhbar-heading);
}

.toc-title .svg-icon {
	color: var(--akhbar-accent-dark);
}

.toc-toggle {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 1px solid var(--akhbar-border);
	border-radius: 8px;
	background: var(--akhbar-card);
	color: var(--akhbar-heading);
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.toc-toggle:hover {
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	border-color: var(--akhbar-accent);
}

.toc-toggle::before {
	content: "▾";
	transition: transform 0.2s ease;
}

.akhbar-toc.is-collapsed .toc-toggle::before {
	transform: rotate(-90deg);
}

.akhbar-toc.is-collapsed .toc-list {
	display: none;
}

.toc-list {
	margin: 0;
	padding-inline-start: 0;
	list-style: none;
	counter-reset: toc-h2;
}

.toc-list > li {
	padding-block: 5px;
	font-weight: 700;
	font-size: 14.5px;
}

.toc-list > li > a {
	color: var(--akhbar-text);
}

.toc-list > li > a::before {
	counter-increment: toc-h2;
	content: counter(toc-h2) ". ";
	color: var(--akhbar-accent-dark);
}

.toc-sub {
	margin-top: 4px;
	padding-inline-start: 20px;
	list-style: none;
}

.toc-sub li {
	padding-block: 3px;
	font-weight: 600;
	font-size: 0.93em;
	list-style: disc;
	color: var(--akhbar-accent);
}

.toc-sub li a {
	color: var(--akhbar-muted);
}

.toc-list a:hover,
.toc-sub a:hover {
	color: var(--akhbar-accent-dark);
}

.toc-list a.is-active {
	color: var(--akhbar-accent-dark);
}

.entry-content h2,
.entry-content h3 {
	scroll-margin-top: 96px;
}

/* Newsletter box */
.akhbar-newsletter {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	background: linear-gradient(135deg, var(--akhbar-primary) 0%, var(--akhbar-primary-dark) 100%);
	border-radius: var(--akhbar-radius);
	padding: 24px 26px;
	margin-top: 28px;
	position: relative;
	overflow: hidden;
}

.akhbar-newsletter::after {
	content: "";
	position: absolute;
	inset-inline-end: -46px;
	top: -46px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: rgba(201, 162, 39, 0.14);
	pointer-events: none;
}

.newsletter-icon {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	border-radius: 14px;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.newsletter-icon .svg-icon svg {
	width: 26px;
	height: 26px;
}

.newsletter-body {
	min-width: 0;
	position: relative;
	z-index: 1;
}

.newsletter-title {
	color: #fff;
	font-size: 19px;
	margin: 0 0 4px;
}

.newsletter-desc {
	color: #b9c6d6;
	font-size: 13.8px;
	margin: 0;
	line-height: 1.8;
}

.newsletter-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	min-width: 0;
	width: 160px;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.newsletter-form input:focus {
	outline: none;
	border-color: var(--akhbar-accent);
	background: rgba(255, 255, 255, 0.16);
}

.newsletter-submit {
	border: 0;
	border-radius: 8px;
	background: var(--akhbar-accent);
	color: var(--akhbar-primary-dark);
	font-weight: 800;
	font-size: 14.5px;
	padding: 10px 24px;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.newsletter-submit:hover {
	background: #fff;
}

.newsletter-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.newsletter-msg {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: #fff;
	display: none;
	position: relative;
	z-index: 1;
}

.newsletter-msg.is-visible {
	display: block;
}

.newsletter-msg.is-success {
	color: #7fe3a5;
}

.newsletter-msg.is-error {
	color: #ffb3a7;
}

/* Print button in the share row */
button.share-btn {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.share-btn.print-btn {
	background: var(--akhbar-muted);
}

.share-btn.print-btn:hover {
	background: var(--akhbar-primary);
}

@media (max-width: 700px) {
	.akhbar-newsletter {
		padding: 20px;
	}

	.newsletter-form input[type="text"],
	.newsletter-form input[type="email"] {
		flex: 1 1 130px;
		width: auto;
	}

	.akhbar-toc {
		padding: 12px 14px;
	}
}

/* =====================================================
   23) Author profile page
===================================================== */
.author-box-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.author-box-more--primary .svg-icon {
	color: var(--akhbar-heading);
}

.profile-hero {
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	box-shadow: var(--akhbar-shadow);
	overflow: hidden;
	margin-bottom: 28px;
}

.profile-cover {
	height: 220px;
	background: linear-gradient(120deg, var(--akhbar-primary-dark) 0%, var(--akhbar-primary-light) 60%, var(--akhbar-accent) 140%);
}

.profile-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-identity {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 18px 22px;
	padding: 0 26px;
	margin-top: -56px;
	position: relative;
}

.profile-avatar {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	object-fit: cover;
	border: 5px solid var(--akhbar-card);
	background: var(--akhbar-bg);
	flex-shrink: 0;
}

.profile-id-text {
	flex: 1;
	min-width: 230px;
	padding-top: 12px;
}

.profile-name {
	margin: 0 0 4px;
	font-size: 26px;
	color: var(--akhbar-heading);
}

.profile-role {
	margin: 0 0 8px;
	font-size: 14.5px;
	font-weight: 800;
	color: var(--akhbar-accent-dark);
}

.profile-bio {
	margin: 0;
	max-width: 640px;
	font-size: 14.5px;
	line-height: 1.9;
	color: var(--akhbar-muted);
}

.profile-social {
	margin: 0 0 14px;
	align-self: flex-end;
}

.profile-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--akhbar-border);
	border-top: 1px solid var(--akhbar-border);
	margin-top: 22px;
}

.profile-stat {
	background: var(--akhbar-card);
	padding: 16px 12px;
	text-align: center;
}

.profile-stat strong {
	display: block;
	margin-bottom: 2px;
	font-size: 21px;
	font-weight: 800;
	color: var(--akhbar-heading);
}

.profile-stat span {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--akhbar-muted);
}

.profile-tabs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid var(--akhbar-border);
	margin-bottom: 22px;
}

.profile-tab {
	appearance: none;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: 10px 16px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 800;
	color: var(--akhbar-muted);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.profile-tab:hover {
	color: var(--akhbar-heading);
}

.profile-tab.is-active {
	color: var(--akhbar-heading);
	border-bottom-color: var(--akhbar-accent);
}

.profile-tab .svg-icon {
	width: 15px;
	height: 15px;
}

.profile-tab-archive {
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.profile-panel[hidden] {
	display: none;
}

.profile-empty {
	padding: 34px 20px;
	text-align: center;
	color: var(--akhbar-muted);
	background: var(--akhbar-card);
	border: 1px dashed var(--akhbar-border);
	border-radius: var(--akhbar-radius);
}

.profile-dir-head {
	margin-bottom: 24px;
}

.profile-dir-title {
	margin: 0 0 6px;
	font-size: 26px;
	color: var(--akhbar-heading);
}

.profile-dir-intro {
	color: var(--akhbar-muted);
	font-size: 15px;
	line-height: 1.9;
	max-width: 760px;
}

.authors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}

.author-card {
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	box-shadow: var(--akhbar-shadow);
	padding: 26px 20px 20px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-card:hover {
	transform: translateY(-4px);
}

.author-card-media {
	display: inline-block;
	line-height: 0;
}

.author-card-photo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--akhbar-bg);
}

.author-card-name {
	margin: 14px 0 2px;
	font-size: 17px;
}

.author-card-name a {
	color: var(--akhbar-heading);
}

.author-card-name a:hover {
	color: var(--akhbar-accent-dark);
}

.author-card-role {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 800;
	color: var(--akhbar-accent-dark);
}

.author-card-bio {
	margin: 0 0 12px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--akhbar-muted);
}

.author-card-count {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--akhbar-bg);
	color: var(--akhbar-heading);
	font-size: 12.5px;
	font-weight: 700;
}

@media (max-width: 700px) {
	.profile-cover {
		height: 150px;
	}

	.profile-identity {
		margin-top: -44px;
		padding: 0 16px;
	}

	.profile-avatar {
		width: 104px;
		height: 104px;
	}

	.profile-name {
		font-size: 21px;
	}

	.profile-social {
		align-self: flex-start;
	}

	.profile-stats {
		grid-template-columns: repeat(2, 1fr);
		margin-top: 18px;
	}
}

/* =====================================================
   20) Dark-mode toggle button
===================================================== */
.theme-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-inline-start: auto;
	border: 1.5px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 19px;
	cursor: pointer;
	transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.theme-toggle:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: var(--akhbar-accent);
	box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.18);
	transform: rotate(14deg);
}

.theme-toggle:active {
	transform: scale(0.9);
}

.theme-toggle .tt-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
}

/* الوضع الفاتح: يظهر القمر (للتبديل إلى الليلي). */
.theme-toggle .tt-sun {
	opacity: 0;
	transform: rotate(-130deg) scale(0.3);
}

.theme-toggle .tt-moon {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

/* الوضع الليلي: تظهر الشمس بلون ذهبي متوهج. */
html.dark-mode .theme-toggle .tt-sun {
	opacity: 1;
	transform: rotate(0deg) scale(1);
	color: var(--akhbar-accent);
	text-shadow: 0 0 12px rgba(201, 162, 39, 0.55);
}

html.dark-mode .theme-toggle .tt-moon {
	opacity: 0;
	transform: rotate(130deg) scale(0.3);
}

@media (max-width: 992px) {
	.theme-toggle {
		margin-inline-start: 0;
	}
}

/* =====================================================
   21) Social links — brand colors & attractive hover
===================================================== */
.social-links {
	gap: 8px;
}

.social-links a {
	--brand: #334155;
	--brand-2: #0f172a;
	position: relative;
	overflow: hidden;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social-links a .svg-icon {
	transition: transform 0.3s ease;
}

/* وميض ضوئي يمر فوق الأيقونة عند التحويم. */
.social-links a::after {
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: -90%;
	width: 45%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	transform: skewX(-18deg);
	transition: inset-inline-start 0.55s ease;
	pointer-events: none;
}

.social-links a:hover::after {
	inset-inline-start: 140%;
}

/* الألوان الرسمية لكل منصة (وزن أعلى من قاعدة .social-links a). */
.social-links .social-facebook   { --brand: #1877f2; --brand-2: #0b5fcc; }
.social-links .social-x          { --brand: #14171a; --brand-2: #000000; }
.social-links .social-instagram  { --brand: #e1306c; --brand-2: #833ab4; }
.social-links .social-youtube    { --brand: #ff0000; --brand-2: #c4302b; }
.social-links .social-whatsapp   { --brand: #25d366; --brand-2: #128c7e; }
.social-links .social-telegram   { --brand: #2aabee; --brand-2: #1c8bc9; }
.social-links .social-linkedin   { --brand: #0a66c2; --brand-2: #084d95; }
.social-links .social-rss        { --brand: #f26522; --brand-2: #d4531a; }

/* مقاسات مدمجة داخل الشريط العلوي. */
.topbar .social-links a {
	width: 28px;
	height: 28px;
}

/* مقاس أكبر في التذييل مع خلفية زجاجية خفيفة. */
.footer-brand .social-links {
	gap: 10px;
	margin-top: 18px;
}

.footer-brand .social-links a {
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, 0.08);
	color: #cfd9e6;
}

/* تأثير التحويم: تدرج بلون المنصة + ارتفاع + هالة ضوئية. */
.social-links a:hover {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	transform: translateY(-4px) scale(1.1);
	box-shadow: 0 10px 20px -8px var(--brand);
}

.social-links a:hover .svg-icon {
	transform: scale(1.12);
}

/* =====================================================
   22) Dark mode
===================================================== */
@media screen {

	html.dark-mode {
		--akhbar-text: #d7e0eb;
		--akhbar-heading: #dde7f3;
		--akhbar-muted: #92a3b6;
		--akhbar-bg: #0b141f;
		--akhbar-card: #141f30;
		--akhbar-border: #24374f;
		--akhbar-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
		color-scheme: dark;
	}

	html.dark-mode body {
		background: var(--akhbar-bg);
	}

	/* تعتيم خفيف للصور ليندمج مع الخلفية الداكنة. */
	html.dark-mode img {
		filter: brightness(0.87) saturate(0.95);
	}

	html.dark-mode ::placeholder {
		color: #7d8fa3;
		opacity: 1;
	}

	/* القوائم المنسدلة والدرج الجانبي للجوال. */
	html.dark-mode .primary-menu .sub-menu {
		background: var(--akhbar-card);
		box-shadow: var(--akhbar-shadow);
	}

	html.dark-mode .primary-menu .sub-menu .menu-item {
		border-bottom-color: var(--akhbar-border);
	}

	html.dark-mode .primary-menu-wrap {
		background: var(--akhbar-card);
	}

	/* حقول النماذج. */
	html.dark-mode .search-field,
	html.dark-mode .comment-form input,
	html.dark-mode .comment-form textarea {
		background: #0d1a2b;
		border-color: var(--akhbar-border);
	}

	html.dark-mode .search-field:focus,
	html.dark-mode .comment-form input:focus,
	html.dark-mode .comment-form textarea:focus {
		background: #0d1a2b;
		border-color: var(--akhbar-accent);
	}

	/* انتقال ناعم للألوان لحظة التبديل. */
	html.theme-switching body,
	html.theme-switching .topbar,
	html.theme-switching .site-branding,
	html.theme-switching .main-nav,
	html.theme-switching .header-search,
	html.theme-switching .primary-menu .sub-menu,
	html.theme-switching .primary-menu-wrap,
	html.theme-switching .breaking-bar,
	html.theme-switching .post-card,
	html.theme-switching .cat-item-card,
	html.theme-switching .widget,
	html.theme-switching .section-head,
	html.theme-switching .more-link,
	html.theme-switching .site-footer,
	html.theme-switching .footer-bottom,
	html.theme-switching .author-box,
	html.theme-switching .single-wrap,
	html.theme-switching .page-wrap,
	html.theme-switching .opinion-list,
	html.theme-switching .opinion-item,
	html.theme-switching .search-field,
	html.theme-switching .comment-form input,
	html.theme-switching .comment-form textarea,
	html.theme-switching .pick-card,
	html.theme-switching .inline-read,
	html.theme-switching .font-tools,
	html.theme-switching .font-btn {
		transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease !important;
	}

	/* بطاقة مقال الرأي البارزة أغمق قليلًا في الوضع الليلي. */
	html.dark-mode .opinion-featured {
		background: linear-gradient(140deg, #0b2138 0%, #123657 60%, #17436b 100%);
	}

	html.dark-mode .opinion-item-author {
		color: #7fb2e0;
	}
}

/* =====================================================
   30) Homepage opinion (columnists) section
===================================================== */
.opinion-section {
	margin-bottom: 6px;
}

.opinion-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 22px;
	align-items: stretch;
}

.opinion-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

/* شارة أيقونة الريشة بجانب عنوان القسم. */
.title-ico {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--akhbar-accent);
	color: #fff;
	box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
	vertical-align: middle;
	margin-inline-end: 8px;
	transform: translateY(-2px);
}

.title-ico .svg-icon {
	width: 16px;
	height: 16px;
}

.title-ico svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* البطاقة البارزة: خلفية كحلية متدرجة بروح «بروفايل الكاتب». */
.opinion-featured {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-radius: var(--akhbar-radius);
	padding: 26px 28px;
	background: linear-gradient(140deg, var(--akhbar-primary) 0%, #16406d 55%, #1d4d80 100%);
	color: #fff;
	box-shadow: var(--akhbar-shadow);
}

.opinion-quote {
	position: absolute;
	top: -44px;
	inset-inline-end: 10px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 190px;
	line-height: 1;
	font-weight: 900;
	color: var(--akhbar-accent);
	opacity: 0.18;
	pointer-events: none;
	user-select: none;
}

.opinion-author {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 16px;
	position: relative;
}

.opinion-avatar {
	flex: none;
	display: block;
	border-radius: 50%;
	line-height: 0;
}

.opinion-avatar img,
.opinion-item-avatar img {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--akhbar-accent);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
	background: var(--akhbar-bg);
}

.opinion-author-info {
	min-width: 0;
}

.opinion-author-name {
	display: block;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.4;
}

.opinion-author-name a {
	color: #fff;
}

.opinion-author-name a:hover {
	color: var(--akhbar-accent);
}

.opinion-author-role {
	display: block;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 2px;
}

.opinion-title {
	font-size: 21px;
	font-weight: 900;
	line-height: 1.55;
	margin: 0 0 10px;
	position: relative;
}

.opinion-title a {
	color: #fff;
	transition: color 0.25s ease;
}

.opinion-title a:hover {
	color: var(--akhbar-accent);
}

.opinion-excerpt {
	font-size: 14.5px;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.opinion-meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.72);
	position: relative;
}

.opinion-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.opinion-meta .meta-item a {
	color: rgba(255, 255, 255, 0.72);
}

.opinion-meta .meta-item a:hover {
	color: var(--akhbar-accent);
}

.opinion-read {
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 800;
	font-size: 13px;
	color: var(--akhbar-accent);
	white-space: nowrap;
}

.opinion-read:hover {
	color: #fff;
}

.opinion-read .svg-icon {
	transition: transform 0.25s ease;
}

.opinion-read:hover .svg-icon {
	transform: translateX(-4px);
}

/* قائمة مقالات الكتّاب الآخرين. */
.opinion-list {
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	box-shadow: var(--akhbar-shadow);
	padding: 6px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.opinion-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 15px 0;
	border-bottom: 1px dashed var(--akhbar-border);
}

.opinion-item:last-child {
	border-bottom: 0;
}

.opinion-item-avatar {
	flex: none;
	display: block;
	border-radius: 50%;
	line-height: 0;
}

.opinion-item-avatar img {
	width: 52px;
	height: 52px;
	border-color: var(--akhbar-border);
	box-shadow: none;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.opinion-item:hover .opinion-item-avatar img {
	border-color: var(--akhbar-accent);
	transform: scale(1.06);
}

.opinion-item-body {
	min-width: 0;
}

.opinion-item-title {
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.6;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.opinion-item-title a {
	color: var(--akhbar-heading);
	transition: color 0.25s ease;
}

.opinion-item-title a:hover {
	color: var(--akhbar-accent-dark);
}

.opinion-item-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
}

.opinion-item-author {
	font-weight: 700;
	color: var(--akhbar-primary-light);
}

.opinion-item-author:hover {
	color: var(--akhbar-accent-dark);
}

.opinion-item-date {
	color: var(--akhbar-muted);
}

@media (max-width: 992px) {
	.opinion-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.opinion-quote {
		font-size: 150px;
	}
}

@media (max-width: 700px) {
	.opinion-featured {
		padding: 20px;
	}

	.opinion-quote {
		display: none;
	}

	.opinion-title {
		font-size: 18.5px;
	}

	.opinion-excerpt {
		font-size: 14px;
	}

	.opinion-read {
		margin-inline-start: 0;
	}

	.opinion-item-avatar img {
		width: 46px;
		height: 46px;
	}
}

/* =========================================================
 * الشريط العاجل في موضع «وسط الصفحة» — نسخة مدمجة داخل العمود
 * ======================================================= */
.breaking-bar--inset {
	margin-block: 4px 34px;
	border: 1px solid var(--akhbar-border);
	border-radius: 12px;
	box-shadow: var(--akhbar-shadow);
	overflow: hidden;
}

.breaking-bar--inset .breaking-inner {
	padding-inline: 16px;
}

/* =========================================================
 * مختارات المحرر
 * ======================================================= */
.picks-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.pick-card {
	display: flex;
	flex-direction: column;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--akhbar-shadow);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pick-card:hover {
	transform: translateY(-4px);
	border-color: var(--akhbar-accent);
	box-shadow: 0 10px 26px rgba(14, 42, 71, 0.16);
}

.pick-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--akhbar-bg);
}

.pick-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.pick-card:hover .pick-media img {
	transform: scale(1.06);
}

.pick-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 14px 16px 16px;
}

.pick-title {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.75;
}

.pick-title a {
	color: var(--akhbar-heading);
	transition: color 0.2s ease;
}

.pick-title a:hover {
	color: var(--akhbar-accent-dark);
}

.pick-body .card-meta {
	margin-top: auto;
}

/* =========================================================
 * بطاقة «اقرأ أيضًا» داخل نص المقال
 * ======================================================= */
.inline-read {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-block: 26px;
	padding: 16px 18px;
	background: var(--akhbar-bg);
	border: 1px solid var(--akhbar-border);
	border-inline-start: 5px solid var(--akhbar-accent);
	border-radius: 12px;
}

.inline-read-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--akhbar-accent-dark);
}

.inline-read-label .svg-icon {
	width: 15px;
	height: 15px;
}

.inline-read-link {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.inline-read-thumb {
	flex: 0 0 116px;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: var(--akhbar-card);
}

.inline-read-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.inline-read-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--akhbar-muted);
	text-align: center;
}

.inline-read-title {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.75;
	color: var(--akhbar-heading);
	transition: color 0.2s ease;
}

.inline-read-link:hover .inline-read-title {
	color: var(--akhbar-accent-dark);
}

/* =========================================================
 * أدوات حجم خط المقال
 * ======================================================= */
.font-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	padding: 8px 12px;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: 10px;
}

.font-tools-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--akhbar-muted);
}

.font-tools-label .svg-icon {
	width: 15px;
	height: 15px;
}

.font-tools-btns {
	display: inline-flex;
	gap: 6px;
}

.font-btn {
	min-width: 36px;
	height: 32px;
	padding: 0 10px;
	background: var(--akhbar-bg);
	border: 1px solid var(--akhbar-border);
	border-radius: 8px;
	color: var(--akhbar-text);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.font-btn:hover {
	border-color: var(--akhbar-accent);
	color: var(--akhbar-accent-dark);
}

.font-btn.is-active,
.font-btn.is-active:hover {
	background: var(--akhbar-accent);
	border-color: var(--akhbar-accent);
	color: #fff;
}

@media (max-width: 992px) {
	.picks-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.breaking-bar--inset .breaking-inner {
		padding-inline: 12px;
	}

	.inline-read-thumb {
		flex-basis: 92px;
	}

	.font-tools {
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.picks-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =====================================================
   30) Typography & width controls (1.8)
===================================================== */

/* خط صندوق الكاتب وصفحة الملف الشخصي — «يتبع خط الموقع» افتراضيًا. */
.author-box,
.profile-hero {
	font-family: var(--akhbar-font-author, var(--akhbar-font));
}

/* إيقاف تثبيت شريط القائمة (خيار «تزيين الواجهة»). */
body:not(.akhbar-sticky-header) .main-nav {
	position: static;
}

/* إصلاح تداخل الشريط العاجل مع قائمة التصنيفات:
   كانت القائمة المثبّتة محصورة داخل #masthead فتنزلق فوق الشريط العاجل
   (الذي يليها داخل الترويسة نفسها). بجعل الترويسة بلا صندوق تثبَّت القائمة
   على مستوى الصفحة كلها، ويمرّ الشريط العاجل تحتها بدل أن يتداخل معها. */
body.akhbar-sticky-header .site-header {
	display: contents;
}

/* الشريط العاجل دائمًا في طبقة أدنى من القائمة وقوائمها المنسدلة. */
.site-header .breaking-bar {
	position: relative;
	z-index: 1;
	clear: both;
}

/* =====================================================
   31) Source box (1.8)
===================================================== */
.source-box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 0;
	padding: 13px 16px;
	background: var(--akhbar-bg);
	border: 1px dashed var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	font-size: 14.5px;
	color: var(--akhbar-muted);
}

.source-box .source-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--akhbar-heading);
}

.source-box .source-label .svg-icon {
	width: 15px;
	height: 15px;
	stroke: var(--akhbar-accent);
}

.source-box .source-link {
	font-weight: 600;
	color: var(--akhbar-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

html.dark-mode .source-box .source-link {
	color: var(--akhbar-accent);
}

.source-box .source-name {
	font-weight: 600;
	color: var(--akhbar-heading);
}

/* =====================================================
   32) Video section (1.8)
===================================================== */
.video-section .title-ico {
	background: var(--akhbar-accent);
	color: #fff;
}

.video-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 22px;
}

.video-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.video-list {
	display: grid;
	grid-auto-rows: 1fr;
	gap: 14px;
	height: 100%;
}

.video-item-card {
	display: flex;
	gap: 13px;
	background: var(--akhbar-card);
	border: 1px solid var(--akhbar-border);
	border-radius: var(--akhbar-radius);
	overflow: hidden;
	box-shadow: var(--akhbar-shadow);
	transition: transform 0.2s ease;
}

.video-item-card:hover {
	transform: translateX(-4px);
}

html[dir="ltr"] .video-item-card:hover {
	transform: translateX(4px);
}

.video-item-card .card-media {
	width: 118px;
	min-width: 118px;
	aspect-ratio: auto;
	min-height: 88px;
	border-radius: 0;
}

.video-item-card .card-body {
	padding: 10px 14px 12px;
	min-width: 0;
}

.video-item-card .card-title {
	font-size: 15px;
	margin: 0 0 6px;
	line-height: 1.65;
}

.video-item-card .card-meta {
	font-size: 12px;
}

/* زر التشغيل فوق صور مقالات الفيديو. */
.video-play {
	position: absolute;
	inset-inline-end: 14px;
	bottom: 12px;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--akhbar-accent);
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(8, 28, 51, 0.35);
	transition: transform 0.25s ease;
	z-index: 3;
}

.video-play .svg-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	stroke: none;
	margin-inline-start: 2px;
}

.video-play--sm {
	width: 32px;
	height: 32px;
	inset-inline-end: 10px;
	bottom: 8px;
}

.video-play--sm .svg-icon {
	width: 14px;
	height: 14px;
}

.video-big:hover .video-play,
.video-item-card:hover .video-play {
	transform: scale(1.12);
}

@media (max-width: 992px) {
	.video-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =====================================================
   33) UI decoration (1.8)
===================================================== */

/* تدرّج لوني خفيف أسفل صور البطاقات. */
body.akhbar-card-gradient .card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 42, 71, 0) 52%, rgba(14, 42, 71, 0.5) 100%);
	pointer-events: none;
}

body.akhbar-card-gradient .card-media .cat-badge {
	z-index: 2;
}

/* حركة ظهور البطاقات — تُفعَّل فقط عند توفر جافاسكربت. */
.akhbar-anim {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
	will-change: opacity, transform;
}

.akhbar-anim.akhbar-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.akhbar-anim {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* أزرار المشاركة العائمة على جانب المقال (صنف body akhbar-floating-share مُفعِّل فقط). */
.floating-share-rail {
	position: fixed;
	inset-inline-start: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 90;
}

.floating-share-rail .share-btn {
	width: 44px;
	height: 44px;
	padding: 0;
	justify-content: center;
}

.floating-share-rail .share-btn .share-name {
	display: none;
}

@media (max-width: 1500px) {
	.floating-share-rail {
		display: none;
	}
}

/* =========================================================
 * v2.0 — Djelfa Online Theme Panel: variable wiring, header
 * layouts, home builder designs, advanced slider, mobile bar.
 * ======================================================= */

/* ---------- Variable wiring ---------- */

body {
	background: var(--akhbar-bg, #f4f6f8);
	color: var(--akhbar-text, #2c3a48);
}

a {
	color: var(--akhbar-link, var(--akhbar-primary));
}

h1, h2, h3, h4, h5, h6,
.section-title,
.widget-title {
	color: var(--akhbar-heading, var(--akhbar-primary));
}

.main-nav {
	background: var(--akhbar-menubg, var(--akhbar-primary));
}

.btn, button[type="submit"],
.more-link,
input[type="submit"] {
	background-color: var(--akhbar-btn, var(--akhbar-primary));
}

.site-header .site-branding {
	background: var(--akhbar-hdr-bg, #ffffff);
	color: var(--akhbar-hdr-tx, var(--akhbar-primary));
}

.site-branding {
	padding-block: calc(var(--akhbar-hdr-h, 90px) * 0.18);
}

.site-branding .branding-inner {
	min-height: var(--akhbar-hdr-h, 90px);
}

.site-branding .site-title,
.site-branding .site-title a {
	color: var(--akhbar-hdr-tx, var(--akhbar-primary));
}

.branding-logo .custom-logo {
	max-height: var(--akhbar-logo-h, 56px);
	width: auto;
}

.logo-mobile {
	display: none;
}

.logo-mobile-img {
	max-height: var(--akhbar-logo-h, 56px);
	width: auto;
}

.breaking-bar {
	background: var(--akhbar-ticker-bg, var(--akhbar-primary));
}

.site-footer {
	background: var(--akhbar-ftr-bg, #0b2338);
}

.footer-main {
	grid-template-columns: 1.4fr repeat(var(--akhbar-ftr-cols, 3), 1fr);
}

.card-media {
	aspect-ratio: var(--akhbar-card-ratio, 16 / 10);
}

.card-author .svg-icon {
	width: 13px;
	height: 13px;
	vertical-align: -2px;
	margin-inline-end: 2px;
}

@media (max-width: 782px) {
	body {
		font-size: var(--akhbar-base-fs-m, var(--akhbar-base-fs, 17px));
	}
}

@media (min-width: 1000px) {
	.post-card:hover .card-media img,
	.hb-card:hover .hb-media img {
		transform: scale(1.05);
	}
}

/* Header note bar */

.header-note {
	background: var(--akhbar-accent);
	color: #1d1403;
}

.header-note-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-block: 8px;
	font-size: 13px;
	font-weight: 700;
}

/* Header layouts */

.akhbar-header-centered .branding-inner {
	flex-direction: column;
	text-align: center;
	gap: 10px;
}

.akhbar-header-centered .site-branding .header-ad {
	max-width: 720px;
	margin: 0 auto;
}

.akhbar-header-compact .site-branding {
	padding-block: 8px;
}

.akhbar-header-compact .branding-inner {
	align-items: center;
	min-height: 0;
}

/* Logo swap on mobile */

@media (max-width: 640px) {
	.has-mobile-logo .logo-desktop,
	.has-mobile-logo .site-title-wrap {
		display: none;
	}

	.has-mobile-logo .logo-mobile {
		display: block;
	}
}

/* Mobile menu (full screen variant) */

.akhbar-nav-full .primary-menu-wrap {
	position: fixed;
	inset: 0;
	background: var(--akhbar-menubg, var(--akhbar-primary));
	z-index: 60;
	display: none;
	overflow-y: auto;
	padding: 70px 24px 40px;
}

.akhbar-nav-full .primary-menu-wrap.is-open {
	display: block;
}

.akhbar-nav-full .primary-menu > li > a {
	font-size: 19px;
	padding: 14px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Sticky sidebar */

.akhbar-sidebar-sticky #secondary {
	position: sticky;
	top: 90px;
	align-self: flex-start;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Archive list design */

.akhbar-archive-list .post-grid {
	display: flex;
	flex-direction: column;
}

.akhbar-archive-list .post-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 18px;
	align-items: center;
}

.akhbar-archive-list .post-card .card-media {
	aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
	.akhbar-archive-list .post-card {
		grid-template-columns: 1fr;
	}
}

/* Single post layouts */

.single-wrap .entry-title {
	font-size: var(--akhbar-post-title, 34px);
	line-height: 1.45;
}

.entry-updated {
	display: inline-block;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--akhbar-accent-dark, #a8861d);
	font-weight: 700;
}

.akhbar-post-wide .single-main {
	max-width: 100%;
}

.akhbar-post-wide .single-main {
	grid-template-columns: 1fr;
}

.akhbar-post-boxed .single-wrap {
	background: var(--akhbar-section, #fff);
	border: 1px solid var(--akhbar-cardline, #e3e8ee);
	border-radius: 16px;
	padding: 28px 30px;
	box-shadow: 0 10px 30px rgba(14, 42, 71, 0.06);
}

.post-thumbnail--full {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.post-thumbnail--full img {
	width: 100%;
	max-height: 78vh;
	object-fit: cover;
}

/* Mobile bottom bar */

.mobile-bottombar {
	display: none;
}

.akhbar-bottombar-on .mobile-bottombar {
	position: fixed;
	bottom: 0;
	inset-inline: 0;
	z-index: 55;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--akhbar-menubg, var(--akhbar-primary));
	box-shadow: 0 -6px 24px rgba(14, 42, 71, 0.3);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.akhbar-bottombar-on {
	padding-bottom: 64px;
}

.mobile-bottombar .mbb-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 8px 4px;
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.mobile-bottombar .mbb-item .svg-icon {
	width: 20px;
	height: 20px;
}

@media (min-width: 783px) {
	.akhbar-bottombar-on .mobile-bottombar {
		display: none;
	}

	.akhbar-bottombar-on {
		padding-bottom: 0;
	}
}

/* ---------- Home builder (hb-*) ---------- */

.hb-sec {
	margin: 0 0 var(--akhbar-home-gap, 44px);
}

.hb-sec:last-child {
	margin-bottom: 0;
}

.hb-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--akhbar-primary, #0e2a47);
	padding-bottom: 10px;
	position: relative;
}

.hb-head::after {
	content: "";
	position: absolute;
	bottom: -2px;
	inset-inline-start: 0;
	width: 84px;
	height: 2px;
	background: var(--akhbar-accent, #c9a227);
}

.hb-title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.hb-title a {
	color: inherit;
	text-decoration: none;
}

.hb-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--akhbar-primary, #0e2a47);
	text-decoration: none;
}

.hb-more:hover {
	color: var(--akhbar-accent-dark, #a8861d);
}

.hb-more .svg-icon {
	width: 14px;
	height: 14px;
}

.hb-card {
	background: var(--akhbar-section, #fff);
	border: 1px solid var(--akhbar-cardline, #e3e8ee);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s, transform 0.25s;
}

.hb-card:hover {
	box-shadow: 0 12px 30px rgba(14, 42, 71, 0.12);
	transform: translateY(-2px);
}

.hb-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8edf3;
}

.hb-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hb-card:hover .hb-media img {
	transform: scale(1.05);
}

.hb-media .cat-badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 1;
}

.hb-body {
	padding: 13px 15px 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.hb-card-title {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	font-weight: 800;
}

.hb-card-title a {
	color: var(--akhbar-heading, var(--akhbar-primary));
	text-decoration: none;
}

.hb-card-title a:hover {
	color: var(--akhbar-accent-dark, #a8861d);
}

.hb-excerpt {
	margin: 0;
	font-size: 13px;
	color: var(--akhbar-muted, #5a6572);
	line-height: 1.75;
}

.hb-meta {
	margin-top: auto;
}

.hb-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	color: var(--akhbar-muted, #5a6572);
	margin-inline-end: 12px;
}

.hb-meta .svg-icon {
	width: 12px;
	height: 12px;
}

/* Device visibility */

@media (max-width: 782px) {
	.hb-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 783px) {
	.hb-hide-desktop {
		display: none !important;
	}
}

/* Design: grid */

.hb-grid {
	display: grid;
	grid-template-columns: repeat(var(--hb-cols, 3), 1fr);
	gap: var(--hb-gap, 22px);
}

.hb-grid--big {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hb-grid--big .hb-card-title {
	font-size: 18px;
}

.hb-grid--small {
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.hb-grid--small .hb-body {
	padding: 10px 12px 12px;
}

.hb-grid--small .hb-card-title {
	font-size: 13.5px;
}

@media (max-width: 1000px) {
	.hb-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

@media (max-width: 560px) {
	.hb-grid {
		grid-template-columns: 1fr;
	}
}

/* Design: list (rows) */

.hb-rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hb-card--row {
	flex-direction: row;
	align-items: stretch;
}

.hb-card--row .hb-media {
	flex: 0 0 240px;
	aspect-ratio: auto;
	min-height: 150px;
}

.hb-card--row .hb-body {
	padding: 14px 16px;
}

@media (max-width: 640px) {
	.hb-card--row {
		flex-direction: column;
	}

	.hb-card--row .hb-media {
		flex: none;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

/* Design: vertical */

.hb-vertical {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--akhbar-section, #fff);
	border: 1px solid var(--akhbar-cardline, #e3e8ee);
	border-radius: 12px;
	overflow: hidden;
}

.hb-card--v {
	border: 0;
	border-radius: 0;
	border-bottom: 1px dashed var(--akhbar-cardline, #e3e8ee);
	flex-direction: row;
	gap: 14px;
	align-items: center;
}

.hb-card--v:last-child {
	border-bottom: 0;
}

.hb-card--v .hb-media {
	flex: 0 0 120px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	margin: 10px 0 10px 0;
}

.hb-card--v .hb-body {
	padding: 10px 0;
}

.hb-card--v .hb-card-title {
	font-size: 14.5px;
}

.hb-card--v:hover {
	transform: none;
	background: #f8fafc;
}

/* Design: horizontal scroll */

.hb-scroll {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, 1fr);
	gap: var(--hb-gap, 22px);
	overflow-x: auto;
	padding-bottom: 10px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.hb-card--scroll {
	scroll-snap-align: start;
}

/* Design: magazine */

.hb-magazine {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: var(--hb-gap, 22px);
}

.hb-card--mag-main .hb-card-title {
	font-size: 21px;
}

.hb-magazine-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hb-card--mag-side {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.hb-card--mag-side .hb-media {
	flex: 0 0 110px;
	aspect-ratio: 4 / 3;
}

.hb-card--mag-side .hb-body {
	padding: 8px 0;
}

.hb-card--mag-side .hb-card-title {
	font-size: 13.5px;
}

/* Design: lead */

.hb-lead {
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	gap: var(--hb-gap, 22px);
}

.hb-card--lead-main .hb-card-title {
	font-size: 23px;
}

.hb-lead-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hb-card--lead-side {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.hb-card--lead-side .hb-media {
	flex: 0 0 96px;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
}

.hb-card--lead-side .hb-body {
	padding: 6px 0;
}

.hb-card--lead-side .hb-card-title {
	font-size: 13.5px;
}

/* Design: thumb rows */

.hb-thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hb-card--thumb {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	background: transparent;
	border: 0;
	border-bottom: 1px dashed var(--akhbar-cardline, #e3e8ee);
	border-radius: 0;
}

.hb-card--thumb:last-child {
	border-bottom: 0;
}

.hb-card--thumb .hb-media {
	flex: 0 0 92px;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
}

.hb-card--thumb .hb-body {
	padding: 4px 0;
}

.hb-card--thumb .hb-card-title {
	font-size: 14.5px;
}

.hb-card--thumb:hover {
	transform: none;
	box-shadow: none;
	background: var(--akhbar-section, #fff);
}

/* Design: mixed */

.hb-mixed {
	display: flex;
	flex-direction: column;
	gap: var(--hb-gap, 22px);
}

.hb-mixed-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--hb-gap, 22px);
}

.hb-mixed-top .hb-card-title {
	font-size: 18px;
}

.hb-mixed-bottom {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.hb-mixed-bottom {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Design: feature (default legacy look) */

.hb-feature {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: var(--hb-gap, 22px);
}

.hb-card--feat-main .hb-card-title {
	font-size: 21px;
}

.hb-feature-side {
	display: grid;
	grid-template-rows: none;
	gap: 12px;
}

.hb-card--feat-side {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.hb-card--feat-side .hb-media {
	flex: 0 0 108px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
}

.hb-card--feat-side .hb-body {
	padding: 6px 0;
}

.hb-card--feat-side .hb-card-title {
	font-size: 14px;
}

@media (max-width: 900px) {

	.hb-magazine,
	.hb-lead,
	.hb-feature {
		grid-template-columns: 1fr;
	}
}

/* Builder ad / html sections */

.hb-sec--ad .ad-slot {
	display: block;
	overflow: hidden;
}

.hb-built .section-title {
	margin: 0;
}

/* ---------- Advanced slider (dp-sl-*) ---------- */

.dp-slider {
	position: relative;
	margin: 0;
}

.dp-main-area {
	display: flex;
	gap: var(--sl-gap, 16px);
	align-items: stretch;
}

.dp-viewport {
	position: relative;
	flex: 1;
	min-width: 0;
	height: var(--sl-h, 480px);
	border-radius: 14px;
	overflow: hidden;
	background: #dde4ec;
	touch-action: pan-y;
}

@media (max-width: 640px) {
	.dp-sl-wfull-m .dp-viewport {
		border-radius: 0;
	}
}

.dp-track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Slide mode: continuous horizontal slide, image + caption together */

.dp-slider[data-mode="slide"] .dp-track {
	display: flex;
	transform: translateX(0);
	transition: transform 0.65s cubic-bezier(0.45, 0, 0.2, 1);
	will-change: transform;
}

.dp-slider[data-mode="slide"] .dp-slide {
	position: relative;
	flex: 0 0 100%;
	min-width: 0;
	height: 100%;
	overflow: hidden;
}

.dp-slider[data-mode="slide"].is-dragging .dp-track {
	transition: none;
}

/* Ken Burns: subtle zoom while a slide is on stage */
.dp-slide.is-active .dp-slide-media img {
	animation: dpKenburns 7s ease-out forwards;
}

@keyframes dpKenburns {
	from {
		transform: scale(1.02);
	}
	to {
		transform: scale(1.09);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dp-slide.is-active .dp-slide-media img {
		animation: none;
		transform: none;
	}

	.dp-slider[data-mode="slide"] .dp-track {
		transition: none;
	}
}

/* Carousel mode */

.dp-slider[data-mode="carousel"] .dp-viewport {
	height: auto;
}

.dp-slider[data-mode="carousel"] .dp-track {
	display: flex;
	gap: var(--sl-gap, 16px);
	transform: translateX(0);
	transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.dp-slider[data-mode="carousel"] .dp-slide {
	flex: 0 0 calc((100% - (var(--sl-pv-gap, 0px))) / 3);
}

.dp-sl-cards[data-per-view="2"] .dp-slide { flex-basis: calc(50% - var(--sl-gap, 16px) / 2); }
.dp-sl-cards[data-per-view="3"] .dp-slide { flex-basis: calc((100% - 2 * var(--sl-gap, 16px)) / 3); }
.dp-sl-cards[data-per-view="4"] .dp-slide { flex-basis: calc((100% - 3 * var(--sl-gap, 16px)) / 4); }

.dp-sl-cards .dp-slide-media {
	display: block;
	aspect-ratio: var(--sl-ratio, 16 / 9);
	overflow: hidden;
	border-radius: 12px;
	background: #dde4ec;
}

.dp-sl-cards .dp-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dp-sl-cards .dp-slide-cap {
	position: static;
	padding: 10px 2px 0;
	background: none;
	transform: none;
	width: auto;
}

.dp-sl-cards .dp-slide-title {
	font-size: 15px;
	line-height: 1.55;
}

.dp-sl-cards .dp-slide-excerpt {
	display: none;
}

/* Slide media + caption */

.dp-slide-media {
	position: absolute;
	inset: 0;
	display: block;
}

.dp-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dp-slide-cap {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 72px 28px 22px;
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--sl-cap, #0e2a47) calc(var(--sl-cap-o, 0.78) * 96%), transparent) 0%,
		color-mix(in srgb, var(--sl-cap, #0e2a47) calc(var(--sl-cap-o, 0.78) * 55%), transparent) 45%,
		transparent 100%
	);
	color: #fff;
	z-index: 2;
	max-width: none;
	text-align: start;
}

/* Position choices affect text alignment only — the gradient stays bottom. */
.dp-cap-top {
	text-align: start;
}

.dp-cap-center {
	text-align: center;
}

.dp-slide-cap .cat-badge {
	background: var(--akhbar-accent, #c9a227);
	color: #241a02;
	margin-bottom: 8px;
	display: inline-block;
}

.dp-slide-title {
	margin: 0 0 6px;
	font-size: var(--sl-title, 28px);
	line-height: 1.4;
	font-weight: 800;
}

.dp-slide-title a {
	color: #fff;
	text-decoration: none;
}

.dp-slide-excerpt {
	margin: 0 0 8px;
	font-size: 13.5px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.88);
}

.dp-slide-meta {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
}

.dp-slide-meta .svg-icon {
	width: 12px;
	height: 12px;
	vertical-align: -2px;
}

@media (max-width: 640px) {
	.dp-slide-title {
		font-size: calc(var(--sl-title, 28px) * 0.66);
	}

	.dp-slide-cap {
		padding: 54px 16px 14px;
	}

	.dp-slide-excerpt {
		display: none;
	}
}

/* Arrows & dots */

.dp-arrows {
	position: absolute;
	top: 50%;
	inset-inline: 14px;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	z-index: 3;
	pointer-events: none;
}

.dp-arrows button {
	pointer-events: auto;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--akhbar-primary, #0e2a47);
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	transition: background 0.2s, color 0.2s;
}

.dp-arrows button:hover {
	background: var(--akhbar-accent, #c9a227);
	color: #fff;
}

.dp-arrows .svg-icon {
	width: 18px;
	height: 18px;
}

.dp-controls {
	margin-top: 10px;
	display: flex;
	justify-content: center;
}

.dp-dots {
	display: flex;
	gap: 7px;
}

.dp-dot {
	width: 9px;
	height: 9px;
	border-radius: 20px;
	border: 0;
	padding: 0;
	background: #c3cedb;
	cursor: pointer;
	transition: width 0.25s, background 0.25s;
}

.dp-dot.is-active {
	width: 26px;
	background: var(--akhbar-accent, #c9a227);
}

/* Full-width designs */

.dp-sl-wfull-d {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.dp-sl-full .dp-viewport {
	border-radius: 0;
}

/* Side titles design */

.dp-sl-side .dp-main-area {
	display: grid;
	grid-template-columns: 1.9fr 1fr;
}

.dp-sl-side .dp-viewport {
	height: auto;
	min-height: var(--sl-h, 480px);
}

.dp-side {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--akhbar-section, #fff);
	border: 1px solid var(--akhbar-cardline, #e3e8ee);
	border-radius: 14px;
	padding: 12px;
}

.dp-side-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	text-align: start;
	border: 1px solid transparent;
	background: none;
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.dp-side-item:hover {
	background: #f2f6fa;
}

.dp-side-item.is-active {
	background: #eef4fa;
	border-color: #d4e2ef;
}

.dp-side-num {
	flex: none;
	font-size: 15px;
	font-weight: 900;
	color: var(--akhbar-accent, #c9a227);
	line-height: 1.4;
}

.dp-side-title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--akhbar-heading, var(--akhbar-primary));
}

.dp-side-item.is-active .dp-side-title {
	color: var(--akhbar-accent-dark, #a8861d);
}

.dp-side-date {
	display: block;
	font-size: 11px;
	color: var(--akhbar-muted, #5a6572);
	font-weight: 500;
}

@media (max-width: 900px) {
	.dp-sl-side .dp-main-area {
		grid-template-columns: 1fr;
	}

	.dp-side {
		flex-direction: row;
		overflow-x: auto;
	}

	.dp-side-item {
		min-width: 200px;
	}
}

/* Thumbs design */

.dp-thumbs-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.dp-thumb {
	position: relative;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	background: #dde4ec center/cover no-repeat;
	min-height: 64px;
	transition: border-color 0.2s;
}

.dp-thumb.is-active {
	border-color: var(--akhbar-accent, #c9a227);
}

.dp-thumb-img {
	display: block;
	position: absolute;
	inset: 0;
	background: inherit;
	filter: brightness(0.6);
}

.dp-thumb[data-thumb-empty] .dp-thumb-img {
	display: none;
}

.dp-thumb-title {
	position: relative;
	display: block;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 8px;
	text-align: start;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
	line-height: 1.5;
}

/* Pro news design */

.dp-sl-pro .dp-main-area {
	display: grid;
	grid-template-columns: 2fr 1fr;
}

.dp-sl-pro .dp-viewport {
	height: auto;
	min-height: var(--sl-h, 480px);
}

.dp-side--pro {
	gap: 4px;
}

.dp-side-head {
	margin: 2px 4px 8px;
	font-size: 14px;
	color: var(--akhbar-heading, var(--akhbar-primary));
	border-bottom: 2px solid var(--akhbar-accent, #c9a227);
	padding-bottom: 7px;
}

.dp-bottom-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sl-gap, 16px);
	margin-top: var(--sl-gap, 16px);
}

.dp-bottom-strip .hb-card--strip .hb-media {
	aspect-ratio: var(--sl-ratio, 16 / 9);
}

.dp-bottom-strip .hb-card-title {
	font-size: 14px;
}

@media (max-width: 900px) {
	.dp-sl-pro .dp-main-area {
		grid-template-columns: 1fr;
	}

	.dp-bottom-strip {
		grid-template-columns: 1fr;
	}
}

/* Stack design */

.dp-sl-stack .dp-slide {
	transform: scale(0.94);
	translate: 0 14px;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(8, 28, 51, 0.35);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.dp-sl-stack .dp-slide.is-active {
	transform: none;
}

/* Grid design slides */

.dp-grid-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr;
	gap: 10px;
	height: 100%;
	padding: 10px;
	background: var(--akhbar-section, #fff);
}

.dp-grid-cards .hb-card--sl {
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.dp-grid-cards .hb-card--sl .hb-media {
	flex: 0 0 38%;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
}

.dp-grid-cards .hb-card--sl .hb-body {
	padding: 4px;
}

.dp-grid-cards .hb-card--sl .hb-card-title {
	font-size: 13px;
}

@media (max-width: 640px) {
	.dp-grid-cards {
		grid-template-columns: 1fr;
		overflow-y: auto;
	}
}

/* In-article ad */

.akhbar-ad--in-article {
	margin-block: 22px;
	text-align: center;
}

/* Site-top ad */

.ad-slot.akhbar-ad--site-top {
	margin-bottom: 10px;
}

/* ---------- Design Builder: masonry + custom card designs (2.3.0) ---------- */

.hb-masonry {
	display: block;
	columns: var(--cu-cols, 3);
	column-gap: 16px;
}

.hb-masonry .hb-card {
	break-inside: avoid;
	margin-bottom: 16px;
}

@media (max-width: 900px) {
	.hb-masonry {
		columns: 2;
	}
}

@media (max-width: 639px) {
	.hb-masonry {
		columns: 1;
	}
}

/* Custom design cards */
.cu-custom {
	--ccd-accent: var(--akhbar-primary, #0e2a47);
	--ccd-gap: 16px;
	--ccd-title: 18px;
	--ccd-cols: 3;
}

.ccd-grid {
	display: grid;
	grid-template-columns: repeat(var(--ccd-cols), 1fr);
	gap: var(--ccd-gap);
}

.ccd-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ccd-lead-wrap {
	margin-bottom: var(--ccd-gap);
}

.ccd {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ccd-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #e6eaf0;
}

.ccd-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ccd:hover .ccd-media img {
	transform: scale(1.04);
}

.ccd-badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	background: var(--ccd-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	z-index: 1;
}

.ccd-badge--inline {
	position: static;
	display: inline-block;
	align-self: flex-start;
}

.ccd-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 10px;
}

.ccd--row {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--akhbar-card-border, #eceff3);
}

.ccd--row .ccd-media {
	flex: 0 0 92px;
	width: 92px;
}

.ccd--row .ccd-body {
	padding-top: 0;
}

.ccd-title {
	margin: 0;
	font-size: var(--ccd-title);
	line-height: 1.55;
	font-weight: 800;
}

.ccd-title a {
	color: inherit;
	text-decoration: none;
}

.ccd-title a:hover {
	color: var(--ccd-accent);
}

.ccd-meta {
	font-size: 12px;
	color: var(--akhbar-text-muted, #8a94a3);
}

.ccd-meta::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	vertical-align: 3px;
	margin-inline: 6px;
}

.ccd-meta:first-child::before {
	display: none;
}

.ccd-excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--akhbar-text-muted, #5a6675);
}

.ccd-more {
	align-self: flex-start;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ccd-accent);
	text-decoration: none;
}

.ccd-more:hover {
	text-decoration: underline;
}

.ccd-adsep {
	grid-column: 1 / -1;
}

@media (max-width: 900px) {
	.ccd-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 639px) {
	.ccd-grid {
		grid-template-columns: 1fr;
	}

	.ccd-title {
		font-size: calc(var(--ccd-title) * 0.9);
	}
}

/* ---------- Newsroom content styles (2.4.0) ----------
 * Mirror of assets/css/editor-content.css: journalistic elements the
 * authors create in the editor keep their look on the live site. */

.an-alert {
	background: #fdf1f3;
	border: 1px solid #f3ccd4;
	border-right: 4px solid #c8102e;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 1.2em;
	font-weight: 600;
}

.an-alert--warn {
	background: #fff7e6;
	border-color: #f0d9a8;
	border-right-color: #d98a00;
	color: #6b4e00;
}

.an-alert--info {
	background: #eef4fb;
	border-color: #ccdcf0;
	border-right-color: #2563a8;
	color: #1e4e7f;
}

.an-note {
	background: #f5f7fa;
	border: 1px dashed #c9d3de;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 1.2em;
	color: #47536b;
	font-size: 0.95em;
}

blockquote.an-quote {
	position: relative;
	background: #f8fafc;
	border: 0;
	border-right: 4px solid var(--akhbar-primary, #0e2a47);
	border-radius: 8px;
	padding: 16px 20px;
	margin: 0 0 1.2em;
	font-size: 1.05em;
	font-weight: 600;
	color: #22304a;
}

blockquote.an-quote::before {
	content: "\201D";
	display: block;
	font-size: 2.2em;
	line-height: 1;
	color: var(--akhbar-accent, #c8102e);
	margin-bottom: 4px;
}

.an-source {
	color: #6a7688;
	font-size: 0.88em;
	border-top: 1px dashed #d7dee8;
	padding-top: 8px;
	margin-top: -0.6em;
}

.an-source::before {
	content: "المصدر: ";
	font-weight: 800;
	color: var(--akhbar-primary, #0e2a47);
}

.an-highlight {
	background: #fff3c4;
	padding: 0 4px;
	border-radius: 4px;
	font-weight: 700;
}

.an-place {
	font-weight: 800;
	color: var(--akhbar-primary, #0e2a47);
	background: #eef2f7;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 0.92em;
}

hr.an-sep {
	border: 0;
	height: 3px;
	background: linear-gradient(to left, var(--akhbar-primary, #0e2a47), var(--akhbar-accent, #c8102e), transparent);
	border-radius: 99px;
	margin: 2em 0;
}

.entry-content cite,
.post-content cite {
	font-style: normal;
	font-weight: 700;
	color: var(--akhbar-primary, #0e2a47);
}

/* --------------------------------------------------------------
 * Media type badges: video / photos categories (v2.6.1)
 * Corner icon over card thumbnails: play for video categories,
 * camera for photo categories. Mirrors the .cat-badge corner.
 * ------------------------------------------------------------ */
.media-type-badge {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff;
	background: rgba(14, 42, 71, 0.85);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
	pointer-events: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.media-type-badge .svg-icon {
	display: inline-flex;
}

.media-type-badge .svg-icon svg {
	width: 16px;
	height: 16px;
}

/* الفيديو: مثلث تشغيل ممتلئ على قرمزي إخباري */
.media-type-badge--video {
	background: rgba(200, 16, 46, 0.9);
}

.media-type-badge--video .svg-icon svg {
	fill: #fff;
	stroke: none;
}

/* الصور: كاميرا بخطوط على الكحلي */
.media-type-badge--photo .svg-icon svg {
	fill: none;
	stroke: #fff;
	stroke-width: 1.8;
}

.post-card:hover .media-type-badge,
.hb-card:hover .media-type-badge,
.cu-card:hover .media-type-badge,
.cat-item-card:hover .media-type-badge {
	transform: scale(1.1);
}

/* ودجت الفيديو النوعي له تراكب تشغيل مركزي خاص — تُخفى الشارة الزاوية داخله */
.wg--video .media-type-badge {
	display: none;
}

@media (max-width: 782px) {
	.media-type-badge {
		top: 8px;
		inset-inline-end: 8px;
		width: 28px;
		height: 28px;
	}

	.media-type-badge .svg-icon svg {
		width: 13px;
		height: 13px;
	}
}

/* الشريط العاجل: ألوان النص تتبع تباين الخلفية (المتغيرات من dynamic-output.php)،
   وفاصل واضح عن قائمة التصنيفات حتى لو تطابق لون الخلفيتين. */
.breaking-bar .ticker-list a {
	color: var(--akhbar-ticker-tx, #fff);
}

.breaking-bar .ticker-list a:hover {
	color: var(--akhbar-accent);
}

.breaking-bar .ticker-time,
.breaking-bar .ticker-empty {
	color: var(--akhbar-ticker-muted, rgba(255, 255, 255, 0.68));
}

.breaking-bar .ticker-list li {
	border-inline-start-color: var(--akhbar-ticker-line, rgba(255, 255, 255, 0.22));
}

.site-header .breaking-bar {
	border-top: 1px solid var(--akhbar-ticker-line, rgba(255, 255, 255, 0.22));
	border-bottom: 0;
}

/* الشريط العاجل أسفل الترويسة: بطاقة مستقلة بمسافة واضحة عن قائمة التصنيفات. */
.breaking-bar--below {
	max-width: calc(var(--akhbar-container) - 36px);
	width: calc(100% - 36px);
	margin: 16px auto 4px;
	background: var(--akhbar-card, #fff);
	border: 1px solid var(--akhbar-border);
	border-radius: 12px;
	box-shadow: var(--akhbar-shadow, 0 2px 10px rgba(14, 42, 71, 0.08));
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.breaking-bar--below .breaking-inner {
	max-width: none;
	margin: 0;
	padding-inline: 14px;
}

@media (max-width: 600px) {
	.breaking-bar--below {
		width: calc(100% - 20px);
		margin-top: 10px;
		border-radius: 10px;
	}
}
