/*
Theme Name: SafiTimes Press
Theme URI: https://www.safitimes.com/
Author: Safi Times
Description: Professional Arabic RTL news theme for Safi Times with editorial layouts, video sections, and advertising placements.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: safitimes-press
*/

:root {
	--st-ink: #0c2e42;
	--st-text: #1a2c38;
	--st-muted: #5f6b79;
	--st-line: #dce2ea;
	--st-soft: #f4f6f9;
	--st-paper: #ffffff;
	--st-brand: #0c2e42;
	--st-brand-strong: #071f2e;
	--st-accent: #c7202b;
	--st-gold: #c7202b;
	--st-video: #071f2e;
	--st-shadow: 0 12px 32px rgba(16, 24, 32, 0.08);
	--st-radius: 4px;
	--st-container: 1240px;
	--st-font-base: Tahoma, Arial, sans-serif;
	--st-font-head: Tahoma, Arial, sans-serif;
}

html[data-theme="dark"] {
	color-scheme: dark;
	--st-ink: #f3f7fb;
	--st-text: #dce7ef;
	--st-muted: #9fb0be;
	--st-line: #233b4c;
	--st-soft: #102838;
	--st-paper: #0d2130;
	--st-brand: #071f2e;
	--st-brand-strong: #041722;
	--st-video: #041722;
	--st-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: #f5f7fb;
	color: var(--st-text);
	direction: rtl;
	font-family: var(--st-font-base);
	font-size: 16px;
	line-height: 1.75;
	margin: 0;
	text-rendering: optimizeLegibility;
}

html[data-theme="dark"] body {
	background: #07131d;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

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

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	height: auto;
}

.screen-reader-text,
.skip-link {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.skip-link:focus {
	background: var(--st-accent);
	clip: auto;
	color: #fff;
	height: auto;
	inset-inline-start: 16px;
	padding: 10px 14px;
	top: 16px;
	width: auto;
	z-index: 1000;
}

.st-container {
	margin: 0 auto;
	max-width: var(--st-container);
	padding: 0 20px;
	width: 100%;
}

.site-header {
	background: var(--st-paper);
	border-bottom: 1px solid var(--st-line);
	position: relative;
	z-index: 30;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .headline-strip,
html[data-theme="dark"] .homepage-hero,
html[data-theme="dark"] .news-block,
html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .hero-side-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .archive-panel,
html[data-theme="dark"] .single-article,
html[data-theme="dark"] .page-panel,
html[data-theme="dark"] .widget-box,
html[data-theme="dark"] .featured-carousel,
html[data-theme="dark"] .featured-carousel__slide,
html[data-theme="dark"] .st-info-card,
html[data-theme="dark"] .st-content-section,
html[data-theme="dark"] .st-contact-card,
html[data-theme="dark"] .about-section {
	background: var(--st-paper);
	border-color: var(--st-line);
}

.top-bar {
	background: var(--st-brand-strong);
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
}

.top-bar__inner {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	min-height: 36px;
}

.top-bar__date {
	white-space: nowrap;
}

.top-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.top-menu a {
	align-items: center;
	display: flex;
	gap: 6px;
	padding: 8px 10px;
}

.brand-bar {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(180px, 270px) minmax(320px, 1fr) minmax(220px, 300px);
	padding-bottom: 18px;
	padding-top: 18px;
}

.site-branding {
	align-items: center;
	display: flex;
	min-width: 0;
}

.site-branding a {
	align-items: center;
	display: inline-flex;
}

html[data-theme="dark"] .site-branding a {
	background: #fff;
	border-radius: var(--st-radius);
	padding: 5px 9px;
}

.custom-logo {
	display: block;
	max-height: 92px;
	max-width: 260px;
	width: auto;
}

.site-title {
	color: var(--st-brand);
	font-family: var(--st-font-head);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

.site-description {
	color: var(--st-muted);
	font-size: 13px;
	margin: 3px 0 0;
}

.header-search {
	justify-self: stretch;
}

.search-form {
	align-items: center;
	background: var(--st-soft);
	border: 1px solid var(--st-line);
	display: flex;
	min-height: 44px;
	overflow: hidden;
}

html[data-theme="dark"] .search-form,
html[data-theme="dark"] .safi-ad__placeholder,
html[data-theme="dark"] .category-list span,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .about-info-grid > div,
html[data-theme="dark"] .st-clean-list li,
html[data-theme="dark"] .st-social-row a {
	background: var(--st-soft);
	border-color: var(--st-line);
	color: var(--st-text);
}

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

.search-field {
	background: transparent;
	border: 0;
	color: var(--st-text);
	font: inherit;
	outline: 0;
	padding: 11px 14px;
	width: 100%;
}

.search-submit {
	background: var(--st-ink);
	border: 0;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-height: 44px;
	padding: 0 18px;
}

.search-submit:hover,
.search-submit:focus {
	background: var(--st-accent);
}

html[data-theme="dark"] .search-submit {
	background: var(--st-accent);
	color: #fff;
}

html[data-theme="dark"] .search-submit:hover,
html[data-theme="dark"] .search-submit:focus {
	background: #a91721;
}

.primary-nav {
	background: var(--st-brand);
	color: #fff;
}

.primary-nav__inner {
	align-items: center;
	display: flex;
	gap: 0;
	min-height: 48px;
	overflow: visible;
}

.primary-nav__toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: none;
	font: inherit;
	font-weight: 900;
	gap: 8px;
	min-height: 46px;
	padding: 0;
}

.primary-nav__toggle-icon,
.primary-nav__toggle-icon::before,
.primary-nav__toggle-icon::after {
	background: currentColor;
	border-radius: 999px;
	content: "";
	display: block;
	height: 2px;
	width: 20px;
}

.primary-nav__toggle-icon {
	position: relative;
}

.primary-nav__toggle-icon::before,
.primary-nav__toggle-icon::after {
	position: absolute;
	right: 0;
}

.primary-nav__toggle-icon::before {
	top: -6px;
}

.primary-nav__toggle-icon::after {
	top: 6px;
}

.primary-menu {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu li {
	position: relative;
}

.primary-menu .submenu-toggle {
	display: none;
}

.primary-menu a {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 15px;
	font-weight: 700;
	gap: 7px;
	line-height: 1.25;
	padding: 15px 13px;
	white-space: nowrap;
}

.primary-menu > li.menu-item-has-children > a {
	padding-inline-start: 28px;
	position: relative;
}

.primary-menu > li.menu-item-has-children > a::before {
	content: "▾";
	font-size: 11px;
	inset-inline-start: 12px;
	line-height: 1;
	opacity: 0.86;
	position: absolute;
	top: 50%;
	transform: translateY(-46%);
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-category-ancestor > a {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.primary-menu .sub-menu {
	background: var(--st-brand-strong);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: var(--st-shadow);
	display: none;
	list-style: none;
	margin: 0;
	min-width: 220px;
	padding: 6px 0;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 40;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	white-space: normal;
}

.menu-icon {
	display: inline-block;
	fill: none;
	flex: 0 0 auto;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 17px;
}

.top-menu .menu-icon {
	height: 14px;
	opacity: 0.82;
	width: 14px;
}

.primary-menu .sub-menu .menu-icon {
	display: none;
}

.primary-nav__actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 7px;
	margin-inline-start: auto;
	padding-inline-start: 10px;
}

.nav-icon-button {
	align-items: center;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--st-radius);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	padding: 0;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
	width: 36px;
}

.nav-icon-button:hover,
.nav-icon-button:focus {
	background: var(--st-accent);
	border-color: var(--st-accent);
	color: #fff;
	transform: translateY(-1px);
}

.nav-icon-button .menu-icon {
	height: 19px;
	width: 19px;
}

.theme-toggle__icon {
	display: flex;
}

.theme-toggle__icon--sun {
	display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
	display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
	display: flex;
}

.header-search-panel {
	background: var(--st-paper);
	border-bottom: 1px solid var(--st-line);
	box-shadow: var(--st-shadow);
}

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

.header-search-panel__inner {
	padding-bottom: 12px;
	padding-top: 12px;
}

.header-search-panel .search-form {
	margin-inline-start: auto;
	max-width: 520px;
}

.headline-strip {
	background: #fff;
	border-bottom: 1px solid var(--st-line);
}

.breaking-news {
	align-items: center;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	min-height: 44px;
	overflow: hidden;
}

.breaking-news__label {
	align-items: center;
	background: var(--st-gold);
	color: #fff;
	display: inline-flex;
	align-self: stretch;
	font-size: 13px;
	font-weight: 800;
	justify-content: center;
	padding: 0 13px;
	position: relative;
	white-space: nowrap;
	z-index: 2;
}

.breaking-news__viewport {
	min-width: 0;
	overflow: hidden;
}

.breaking-news__items {
	align-items: center;
	display: flex;
	gap: 0;
	list-style: none;
	margin: 0;
	min-width: 0;
	padding: 0;
	white-space: nowrap;
	width: max-content;
	will-change: transform;
}

.breaking-news__items[data-ticker-ready="true"] {
	animation: safitimes-breaking-ticker 34s linear infinite;
}

.breaking-news:hover .breaking-news__items,
.breaking-news:focus-within .breaking-news__items {
	animation-play-state: paused;
}

@keyframes safitimes-breaking-ticker {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(50%);
	}
}

.breaking-news__items li {
	align-items: center;
	display: inline-flex;
	min-width: 0;
}

.breaking-news__items li + li::before {
	background: var(--st-line);
	content: "";
	display: inline-block;
	height: 18px;
	margin: 0 16px;
	width: 1px;
}

.breaking-news__items a {
	color: var(--st-ink);
	display: block;
	font-size: 14px;
	font-weight: 700;
	max-width: 460px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

html[data-theme="dark"] .breaking-news__items a,
html[data-theme="dark"] .post-card__title,
html[data-theme="dark"] .hero-lead__title,
html[data-theme="dark"] .hero-side-card__title,
html[data-theme="dark"] .section__title,
html[data-theme="dark"] .archive-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .single-title,
html[data-theme="dark"] .widget-box__title,
html[data-theme="dark"] .latest-list a,
html[data-theme="dark"] .category-list a,
html[data-theme="dark"] .st-info-card strong,
html[data-theme="dark"] .st-contact-card strong,
html[data-theme="dark"] .st-content-section h2,
html[data-theme="dark"] .st-content-section h3,
html[data-theme="dark"] .about-card strong,
html[data-theme="dark"] .about-info-grid strong {
	color: var(--st-ink);
}

html[data-theme="dark"] .post-card__excerpt,
html[data-theme="dark"] .hero-lead__excerpt,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .st-content-section p,
html[data-theme="dark"] .st-info-card p,
html[data-theme="dark"] .st-contact-card p,
html[data-theme="dark"] .about-card span,
html[data-theme="dark"] .about-info-grid span {
	color: var(--st-muted);
}

html[data-theme="dark"] .image-fallback,
html[data-theme="dark"] .post-card__media,
html[data-theme="dark"] .hero-lead__media,
html[data-theme="dark"] .hero-side-card__media {
	background: #173145;
}

.site-main {
	padding-bottom: 36px;
}

.section {
	margin-top: 28px;
}

.section__head {
	align-items: center;
	border-bottom: 2px solid var(--st-line);
	display: flex;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 8px;
}

.section__title {
	color: var(--st-ink);
	font-size: 22px;
	font-weight: 900;
	line-height: 1.35;
	margin: 0;
	position: relative;
}

.section__title::after {
	background: var(--st-gold);
	bottom: -11px;
	content: "";
	height: 2px;
	position: absolute;
	right: 0;
	width: 72px;
}

.section__more {
	color: var(--st-muted);
	font-size: 13px;
	font-weight: 700;
}

.safi-ad {
	width: 100%;
}

.safi-ad .widget {
	margin: 0;
}

.safi-ad img,
.safi-ad iframe,
.safi-ad ins {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

.safi-ad__creative {
	margin: 0 auto;
	max-width: 970px;
}

.safi-ad__image {
	aspect-ratio: 970 / 250;
	display: block;
	height: auto;
	width: 100%;
}

.safi-ad__placeholder {
	align-items: center;
	background: repeating-linear-gradient(135deg, #f8fafc 0, #f8fafc 10px, #eef2f6 10px, #eef2f6 20px);
	border: 1px dashed #b6c2cf;
	color: #586778;
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 800;
	gap: 2px;
	justify-content: center;
	min-height: 90px;
	text-align: center;
}

.safi-ad__placeholder small {
	color: #7c8a99;
	font-size: 12px;
	font-weight: 700;
}

.safi-ad--ad-header .safi-ad__placeholder {
	min-height: 90px;
}

.safi-ad--ad-below-hero,
.safi-ad--ad-before-footer {
	margin: 28px auto;
	max-width: var(--st-container);
	padding: 0 20px;
}

.homepage-hero {
	background: #fff;
	border-bottom: 1px solid var(--st-line);
	padding: 24px 0 28px;
}

.hero-grid {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
}

.hero-lead,
.hero-side-card,
.post-card,
.story-row,
.single-article,
.archive-panel,
.widget-box {
	background: var(--st-paper);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	overflow: hidden;
}

.hero-lead {
	box-shadow: var(--st-shadow);
	display: grid;
	grid-template-rows: auto auto;
}

.post-card__media,
.hero-lead__media,
.hero-side-card__media {
	background: #d8dee6;
	display: block;
	overflow: hidden;
	position: relative;
}

.hero-lead__media {
	aspect-ratio: 16 / 9;
	max-height: 430px;
}

.post-card__media img,
.hero-lead__media img,
.hero-side-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
	width: 100%;
}

.post-card:hover img,
.hero-lead:hover img,
.hero-side-card:hover img,
.story-row:hover img {
	transform: scale(1.03);
}

.image-fallback {
	align-items: center;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--st-brand), var(--st-brand-strong));
	color: rgba(255, 255, 255, 0.9);
	display: flex;
	font-size: 18px;
	font-weight: 900;
	justify-content: center;
	min-height: 180px;
}

.hero-lead__body {
	padding: 20px 22px 22px;
}

.hero-lead__title {
	color: var(--st-ink);
	font-family: var(--st-font-head);
	font-size: 32px;
	font-weight: 900;
	line-height: 1.35;
	margin: 8px 0 10px;
}

.hero-lead__excerpt {
	color: var(--st-muted);
	font-size: 15px;
	margin: 0 0 12px;
}

.hero-side {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.hero-side-card {
	align-items: stretch;
	display: grid;
	grid-template-areas: "body media";
	grid-template-columns: minmax(0, 1fr) 142px;
	min-height: 132px;
}

.hero-side-card:nth-child(n+5) {
	display: none;
}

.hero-side-card__media {
	aspect-ratio: auto;
	grid-area: media;
	height: 100%;
	min-height: 0;
	min-width: 0;
	width: 100%;
}

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

.hero-side-card__body {
	direction: rtl;
	grid-area: body;
	min-width: 0;
	overflow: hidden;
	padding: 12px 14px;
}

.hero-side-card__title {
	color: var(--st-ink);
	display: -webkit-box;
	font-family: var(--st-font-head);
	font-size: 17px;
	font-weight: 900;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-height: 1.45;
	margin: 5px 0 8px;
	overflow: hidden;
}

.hero-side-card__title a {
	display: block;
	overflow: hidden;
}

.cat-badge {
	color: var(--st-accent);
	display: inline-flex;
	font-family: var(--st-font-head);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
}

.post-meta {
	color: var(--st-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 8px;
	line-height: 1.4;
}

.homepage-layout,
.content-layout {
	display: grid;
	gap: 26px;
	grid-template-columns: minmax(0, 1fr) 330px;
	margin-top: 28px;
}

.homepage-content {
	display: grid;
	gap: 26px;
}

.section-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-block {
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	padding: 16px;
}

.news-block__grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-block .post-card--lead {
	grid-column: 1 / -1;
}

.post-card__media {
	aspect-ratio: 16 / 9;
}

.post-card__body {
	padding: 13px 14px 15px;
}

.post-card__title {
	color: var(--st-ink);
	font-family: var(--st-font-head);
	font-size: 17px;
	font-weight: 900;
	line-height: 1.45;
	margin: 6px 0 8px;
}

.post-card--lead .post-card__title {
	font-size: 22px;
}

.post-card__excerpt {
	color: var(--st-muted);
	font-size: 14px;
	margin: 0 0 10px;
}

.video-section {
	background: var(--st-video);
	color: #fff;
	margin-top: 30px;
	padding: 28px 0 32px;
}

.video-section .section__head {
	border-color: rgba(255, 255, 255, 0.18);
}

.video-section .section__title,
.video-section .section__more {
	color: #fff;
}

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

.video-grid .post-card {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
}

.video-grid .post-card__title {
	color: #fff;
}

.video-grid .post-meta {
	color: rgba(255, 255, 255, 0.65);
}

.featured-carousel {
	--st-carousel-per-view: 4;
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	padding: 14px;
}

.featured-carousel__head {
	margin-bottom: 12px;
}

.featured-carousel__controls {
	display: flex;
	gap: 8px;
}

.featured-carousel__btn {
	align-items: center;
	background: var(--st-soft);
	border: 1px solid var(--st-line);
	color: var(--st-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 34px;
}

.featured-carousel__btn:disabled {
	cursor: default;
	opacity: 0.45;
}

.featured-carousel__viewport {
	direction: ltr;
	overflow: hidden;
}

.featured-carousel__track {
	display: flex;
	gap: 14px;
	transition: transform 0.45s ease;
	will-change: transform;
}

.featured-carousel__slide {
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	flex: 0 0 calc((100% - (14px * (var(--st-carousel-per-view) - 1))) / var(--st-carousel-per-view));
	min-width: 0;
	overflow: hidden;
}

.featured-carousel__media {
	aspect-ratio: 16 / 9;
	display: block;
	overflow: hidden;
	position: relative;
}

.featured-carousel__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.featured-carousel__body {
	direction: rtl;
	padding: 10px 11px 12px;
}

.featured-carousel__title {
	font-family: var(--st-font-head);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.45;
	margin: 6px 0 0;
}

.play-mark {
	align-items: center;
	background: rgba(10, 42, 88, 0.94);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 22px;
	font-weight: 900;
	height: 46px;
	justify-content: center;
	left: 50%;
	line-height: 1;
	padding-right: 3px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 46px;
}

.sidebar {
	display: grid;
	gap: 18px;
	align-content: start;
}

.widget-box {
	padding: 16px;
}

.widget-box__title {
	border-bottom: 2px solid var(--st-line);
	color: var(--st-ink);
	font-size: 18px;
	font-weight: 900;
	margin: 0 0 12px;
	padding-bottom: 8px;
}

.latest-list,
.category-list,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.latest-list li,
.category-list li {
	border-bottom: 1px solid var(--st-line);
	padding: 10px 0;
}

.latest-list li:first-child,
.category-list li:first-child {
	padding-top: 0;
}

.latest-list li:last-child,
.category-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.latest-list a {
	color: var(--st-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.5;
}

.category-list a {
	align-items: center;
	display: flex;
	font-size: 14px;
	font-weight: 800;
	justify-content: space-between;
}

.category-list span {
	background: var(--st-soft);
	color: var(--st-muted);
	font-size: 12px;
	min-width: 30px;
	padding: 2px 6px;
	text-align: center;
}

.archive-header {
	background: #fff;
	border-bottom: 1px solid var(--st-line);
	padding: 28px 0;
}

.archive-title,
.page-title,
.single-title {
	color: var(--st-ink);
	font-size: 34px;
	font-weight: 900;
	line-height: 1.35;
	margin: 0;
}

.archive-description {
	color: var(--st-muted);
	margin-top: 8px;
}

.archive-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-panel {
	padding: 16px;
}

.pagination {
	margin-top: 24px;
	text-align: center;
}

.pagination .page-numbers {
	background: #fff;
	border: 1px solid var(--st-line);
	display: inline-block;
	font-weight: 700;
	margin: 0 2px 6px;
	min-width: 38px;
	padding: 6px 10px;
}

.pagination .current {
	background: var(--st-brand);
	color: #fff;
}

.single-article {
	padding: 24px;
}

.single-title {
	font-size: 40px;
	font-family: var(--st-font-head);
	margin: 8px 0 12px;
}

.single-featured {
	margin: 18px -24px 20px;
}

.single-featured img {
	display: block;
	width: 100%;
}

.entry-content {
	color: #1f2937;
	font-size: 18px;
	line-height: 2;
}

.entry-content p {
	margin: 0 0 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--st-ink);
	line-height: 1.45;
	margin: 1.4em 0 0.6em;
}

.entry-content a {
	color: var(--st-accent);
	font-weight: 700;
}

.entry-content blockquote {
	border-right: 4px solid var(--st-gold);
	color: var(--st-ink);
	font-size: 20px;
	font-weight: 700;
	margin: 24px 0;
	padding: 10px 18px;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.wp-block-embed iframe {
	aspect-ratio: 16 / 9;
	height: auto;
	width: 100%;
}

.entry-tags {
	border-top: 1px solid var(--st-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	padding-top: 16px;
}

.entry-tags a {
	background: var(--st-soft);
	color: var(--st-muted);
	font-size: 13px;
	font-weight: 700;
	padding: 4px 9px;
}

.related-posts {
	margin-top: 22px;
}

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

.page-panel,
.not-found-panel {
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	margin-top: 28px;
	padding: 24px;
}

.page-panel--institutional {
	background: transparent;
	border: 0;
	overflow: visible;
	padding: 0;
}

.page-panel--institutional .entry-content {
	font-size: 17px;
	line-height: 1.9;
}

.institutional-page {
	display: grid;
	gap: 18px;
	margin: 0 auto;
	max-width: 1120px;
}

.st-page-hero {
	background: var(--st-brand-strong);
	border-radius: var(--st-radius);
	color: #fff;
	display: grid;
	gap: 10px;
	overflow: hidden;
	padding: 34px;
	position: relative;
}

.st-page-hero::before {
	background: var(--st-accent);
	content: "";
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;
	width: 6px;
}

.st-page-kicker {
	color: #fff;
	font-family: var(--st-font-head);
	font-size: 13px;
	font-weight: 900;
	margin: 0;
	padding-bottom: 7px;
	position: relative;
	width: fit-content;
}

.st-page-kicker::after {
	background: var(--st-accent);
	bottom: 0;
	content: "";
	height: 2px;
	position: absolute;
	right: 0;
	width: 60px;
}

.st-page-hero h1 {
	color: #fff;
	font-family: var(--st-font-head);
	font-size: 38px;
	font-weight: 900;
	line-height: 1.35;
	margin: 0;
}

.st-page-lead {
	color: rgba(255, 255, 255, 0.84);
	font-size: 18px;
	margin: 0;
	max-width: 850px;
}

.st-page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.st-page-button {
	align-items: center;
	background: var(--st-accent);
	border: 1px solid var(--st-accent);
	border-radius: var(--st-radius);
	color: #fff;
	display: inline-flex;
	font-size: 15px;
	font-weight: 900;
	justify-content: center;
	min-height: 42px;
	padding: 7px 16px;
}

.entry-content .st-page-button {
	color: #fff;
}

.st-page-button:hover,
.st-page-button:focus {
	background: #fff;
	color: var(--st-accent);
}

.entry-content .st-page-button:hover,
.entry-content .st-page-button:focus {
	color: var(--st-accent);
}

.st-page-button--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.34);
}

.entry-content .st-page-button--ghost {
	color: #fff;
}

.st-page-button--ghost:hover,
.st-page-button--ghost:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.entry-content .st-page-button--ghost:hover,
.entry-content .st-page-button--ghost:focus {
	color: #fff;
}

.st-page-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-page-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-info-card,
.st-content-section,
.st-contact-card {
	background: #fff;
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	box-shadow: 0 10px 22px rgba(16, 24, 32, 0.04);
}

.st-info-card,
.st-contact-card {
	display: grid;
	gap: 6px;
	padding: 18px;
}

.st-info-card span,
.st-contact-card span {
	color: var(--st-muted);
	font-size: 13px;
	font-weight: 800;
}

.st-info-card strong,
.st-contact-card strong {
	color: var(--st-ink);
	font-family: var(--st-font-head);
	font-size: 19px;
	font-weight: 900;
	line-height: 1.5;
}

.st-info-card p,
.st-contact-card p {
	color: var(--st-muted);
	font-size: 15px;
	margin: 0;
}

.st-content-section {
	padding: 24px;
}

.st-content-section h2 {
	border-bottom: 2px solid var(--st-line);
	color: var(--st-ink);
	font-family: var(--st-font-head);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.35;
	margin: 0 0 16px;
	padding-bottom: 10px;
	position: relative;
}

.st-content-section h2::after {
	background: var(--st-accent);
	bottom: -2px;
	content: "";
	height: 2px;
	position: absolute;
	right: 0;
	width: 72px;
}

.st-content-section h3 {
	color: var(--st-ink);
	font-family: var(--st-font-head);
	font-size: 19px;
	font-weight: 900;
	margin: 20px 0 8px;
}

.st-content-section p {
	color: #243646;
	margin: 0 0 12px;
}

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

.st-clean-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-clean-list li {
	background: var(--st-soft);
	border-right: 3px solid var(--st-accent);
	color: var(--st-ink);
	font-weight: 800;
	padding: 10px 14px;
}

.st-contact-card {
	min-height: 130px;
}

.st-contact-card a {
	color: var(--st-ink);
	overflow-wrap: anywhere;
}

.st-contact-card--accent {
	background: var(--st-brand);
	border-color: var(--st-brand);
	color: #fff;
}

.st-contact-card--accent span,
.st-contact-card--accent strong,
.st-contact-card--accent p,
.st-contact-card--accent a {
	color: #fff;
}

.st-social-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.st-social-row a {
	background: var(--st-soft);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	color: var(--st-ink);
	font-size: 14px;
	font-weight: 900;
	padding: 7px 12px;
}

.st-social-row a:hover,
.st-social-row a:focus {
	background: var(--st-accent);
	border-color: var(--st-accent);
	color: #fff;
}

.st-policy-note {
	background: #fff7f8;
	border: 1px solid #f3c9cf;
	border-radius: var(--st-radius);
	color: var(--st-ink);
	font-weight: 800;
	padding: 14px 16px;
}

.about-page {
	display: grid;
	gap: 22px;
}

.about-hero {
	background: linear-gradient(135deg, rgba(12, 46, 66, 0.97), rgba(7, 31, 46, 0.97));
	border-radius: var(--st-radius);
	color: #fff;
	padding: 26px;
}

.about-kicker {
	color: #fff;
	display: inline-flex;
	font-family: var(--st-font-head);
	font-size: 13px;
	font-weight: 900;
	margin: 0 0 10px;
	padding-bottom: 6px;
	position: relative;
}

.about-kicker::after {
	background: var(--st-accent);
	bottom: 0;
	content: "";
	height: 2px;
	position: absolute;
	right: 0;
	width: 56px;
}

.about-hero h2 {
	color: #fff;
	font-family: var(--st-font-head);
	font-size: 30px;
	line-height: 1.45;
	margin: 0 0 12px;
}

.about-hero p:last-child {
	color: rgba(255, 255, 255, 0.82);
	font-size: 17px;
	margin-bottom: 0;
	max-width: 820px;
}

.about-section {
	background: var(--st-paper);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	padding: 22px;
}

.about-section h2 {
	border-bottom: 2px solid var(--st-line);
	font-family: var(--st-font-head);
	font-size: 22px;
	font-weight: 900;
	margin: 0 0 16px;
	padding-bottom: 10px;
	position: relative;
}

.about-section h2::after {
	background: var(--st-accent);
	bottom: -2px;
	content: "";
	height: 2px;
	position: absolute;
	right: 0;
	width: 70px;
}

.about-cards,
.about-info-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card,
.about-info-grid > div {
	background: var(--st-soft);
	border: 1px solid var(--st-line);
	border-radius: var(--st-radius);
	padding: 15px;
}

.about-card span,
.about-info-grid span {
	color: var(--st-muted);
	display: block;
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 4px;
}

.about-card strong,
.about-info-grid strong {
	color: var(--st-ink);
	display: block;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.55;
}

.about-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.about-list li {
	background: var(--st-soft);
	border-right: 3px solid var(--st-accent);
	color: var(--st-ink);
	font-weight: 800;
	padding: 10px 14px;
}

.site-footer {
	background: var(--st-brand-strong);
	border-top: 4px solid var(--st-gold);
	color: rgba(255, 255, 255, 0.82);
	margin-top: 36px;
	padding-top: 30px;
}

.footer-title {
	color: #fff;
	font-family: var(--st-font-head);
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 14px;
}

.footer-menu a,
.site-footer a {
	color: rgba(255, 255, 255, 0.86);
}

.footer-menu li {
	margin-bottom: 9px;
}

.footer-grid--aljazeera {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 4px 0 24px;
}

.footer-grid--aljazeera .footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-grid--aljazeera .footer-menu a {
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.footer-social {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding: 18px 0 14px;
}

.footer-social__title {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.footer-social__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .footer-social__link {
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	transition: opacity 0.18s ease, transform 0.18s ease;
	width: 40px;
}

.site-footer .footer-social__link:hover,
.site-footer .footer-social__link:focus {
	color: #fff;
	opacity: 0.9;
	transform: translateY(-1px);
}

.footer-social__icon {
	display: block;
	fill: currentColor;
	height: 20px;
	width: 20px;
}

.footer-social__link--facebook {
	background: #1877f2;
}

.footer-social__link--instagram {
	background: radial-gradient(circle at 30% 110%, #fdf497 0 18%, #fd5949 42%, #d6249f 62%, #285aeb 100%);
}

.footer-social__link--youtube {
	background: #ff0000;
}

.footer-social__link--rss {
	background: #f26522;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
	padding: 14px 0 18px;
	text-align: center;
}

@media (max-width: 1100px) {
	.brand-bar {
		grid-template-columns: 220px minmax(260px, 1fr);
	}

	.brand-bar .safi-ad {
		grid-column: 1 / -1;
	}

	.hero-grid,
	.homepage-layout,
	.content-layout {
		grid-template-columns: 1fr;
	}

	.sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.footer-grid--aljazeera {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.st-container {
		padding: 0 14px;
	}

	.top-bar__inner {
		align-items: center;
		gap: 8px;
		justify-content: center;
		min-height: 32px;
		text-align: center;
	}

	.top-menu {
		display: none;
	}

	.brand-bar {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding-bottom: 12px;
		padding-top: 12px;
		text-align: center;
	}

	.site-branding,
	.site-branding a {
		justify-content: center;
		width: 100%;
	}

	.custom-logo {
		max-height: 68px;
		max-width: 240px;
	}

	.header-search {
		width: 100%;
	}

	.primary-nav__inner {
		display: grid;
		gap: 0 10px;
		grid-template-columns: minmax(0, 1fr) auto;
		justify-content: stretch;
		min-height: 46px;
		overflow: visible;
	}

	.primary-nav__toggle {
		display: inline-flex;
		grid-column: 1;
		grid-row: 1;
		justify-self: stretch;
		justify-content: space-between;
		width: 100%;
	}

	.primary-nav__actions {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		margin-inline-start: 0;
		padding-inline-start: 0;
	}

	.nav-icon-button {
		height: 34px;
		width: 34px;
	}

	.primary-menu {
		display: none;
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: stretch;
		padding-bottom: 8px;
		width: 100%;
	}

	.primary-nav.is-open .primary-menu {
		display: flex;
	}

	.primary-menu > li {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
	}

	.primary-menu > li > a {
		flex: 1 1 auto;
	}

	.primary-menu a {
		font-size: 14px;
		gap: 8px;
		padding: 12px 10px;
	}

	.primary-menu .menu-icon {
		height: 16px;
		width: 16px;
	}

	.primary-menu > li.menu-item-has-children > a {
		padding-inline-start: 10px;
	}

	.primary-menu > li.menu-item-has-children > a::before {
		display: none;
	}

	.primary-menu .submenu-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		color: #fff;
		cursor: pointer;
		display: inline-flex;
		font-size: 13px;
		justify-content: center;
		min-width: 42px;
		padding: 0 10px;
	}

	.primary-menu .submenu-toggle[aria-expanded="true"] {
		background: rgba(255, 255, 255, 0.1);
	}

	.primary-menu .sub-menu {
		box-shadow: none;
		display: none;
		margin: 0;
		min-width: 0;
		padding: 0;
		position: static;
		width: 100%;
	}

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

	.primary-menu .sub-menu a {
		padding: 10px 14px;
	}

	.header-search-panel__inner {
		padding-bottom: 10px;
		padding-top: 10px;
	}

	.header-search-panel .search-form {
		max-width: none;
		width: 100%;
	}

	.breaking-news {
		grid-template-columns: auto minmax(0, 1fr);
		min-height: 44px;
		padding: 0;
	}

	.breaking-news__items {
		width: max-content;
	}

	.breaking-news__items li {
		flex: 0 0 auto;
	}

	.breaking-news__items li + li::before {
		display: inline-block;
		margin: 0 12px;
	}

	.breaking-news__items a {
		max-width: 260px;
		padding: 0 12px;
	}

	.homepage-hero {
		padding-top: 16px;
	}

	.hero-lead {
		grid-template-rows: auto auto;
	}

	.hero-lead__title,
	.single-title,
	.archive-title,
	.page-title {
		font-size: 26px;
	}

	.hero-side-card {
		grid-template-columns: minmax(0, 1fr) 112px;
		min-height: 116px;
	}

	.hero-side-card:nth-child(n+4) {
		display: none;
	}

	.hero-side-card__title {
		font-size: 15px;
		-webkit-line-clamp: 2;
	}

	.section-grid,
	.news-block__grid,
	.archive-grid,
	.related-grid,
	.sidebar,
	.video-grid,
	.st-page-grid,
	.st-page-grid--two,
	.about-cards,
	.about-info-grid,
	.footer-grid--aljazeera {
		grid-template-columns: 1fr;
	}

	.page-panel--institutional .entry-content {
		font-size: 16px;
	}

	.st-page-hero {
		padding: 22px 20px;
	}

	.st-page-hero h1 {
		font-size: 29px;
	}

	.st-page-lead {
		font-size: 16px;
	}

	.st-content-section {
		padding: 18px;
	}

	.st-content-section h2 {
		font-size: 21px;
	}

	.about-hero,
	.about-section {
		padding: 18px;
	}

	.about-hero h2 {
		font-size: 23px;
	}

	.featured-carousel__slide {
		flex-basis: 100%;
	}

	.footer-social {
		align-items: flex-start;
		flex-direction: column;
	}

	.single-article {
		padding: 18px;
	}

	.single-featured {
		margin: 16px -18px 18px;
	}

	.entry-content {
		font-size: 17px;
	}
}
