

:root {
	
	--color-primary: #FFD700;
	--color-primary-dark: #E6C200;
	--color-secondary: #D41F1F;
	--color-tertiary: #1A1A1A;
	--color-footer: #2A2A2A;
	--color-white: #FFFFFF;
	--color-bg: #F5F5F5;
	--color-surface: #FFFFFF;
	--color-soft: #F5F5F5;
	--color-border: #EEEEEE;
	--color-text: #333333;
	--color-text-muted: #666666;
	--color-text-light: #999999;
	--color-accent: #FFD700;
	--color-accent-hover: #E6C200;
	--color-on-accent: #1A1A1A;
	--color-heading: #FFD700;
	--color-heading-text: #1A1A1A;
	--color-red: #D41F1F;

	
	--font-family: 'Tajawal', sans-serif;
	--font-regular: 400;
	--font-semibold: 500;
	--font-bold: 700;
	--font-extrabold: 800;
	--font-black: 900;
	--text-xs: 12px;
	--text-sm: 14px;
	--text-base: 16px;
	--text-md: 17px;
	--text-lg: 18px;
	--text-xl: 22px;
	--text-2xl: 26px;
	--text-3xl: 32px;
	--text-4xl: 38px;
	--leading-tight: 1.28;
	--leading-normal: 1.65;
	--leading-relaxed: 1.8;

	
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;
	--space-10: 40px;

	--header-height: 40px;
	--radius: var(--news-radius-sm, 8px);
	--radius-sm: var(--news-radius-xs, 6px);
	--shadow-sm: var(--news-shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.04));
	--shadow: var(--news-shadow, 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06));
	--transition: var(--news-duration, 0.24s) var(--news-ease, ease);
}

body.dark-mode {
	--color-primary: #FFD700;
	--color-primary-dark: #E6C200;
	--color-heading: #FFD700;
	--color-on-accent: #1A1A1A;
	--color-text: #FFFFFF;
	--color-text-muted: #CCCCCC;
	--color-bg: #1A1A1A;
	--color-surface: #2A2A2A;
	--color-soft: #222222;
	--color-border: #3A3A3A;
	--shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

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

html {
	direction: rtl;
	scroll-behavior: smooth;
	text-rendering: optimizeLegibility;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-size: clamp(16px, 1.45vw, 18px);
	font-weight: var(--font-regular);
	line-height: var(--leading-normal);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: 0;
	font-feature-settings: "kern" 1;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-2);
	font-weight: var(--font-bold);
	line-height: var(--leading-tight);
}

p { margin: 0 0 var(--space-3); }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--space-1);
	width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition);
}

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

.entry-content a {
	color: #1565a8;
	text-decoration: underline;
}

.entry-content a:hover { color: var(--color-accent-hover); }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.header-ad {
	padding: var(--space-3) 0;
	text-align: center;
}

.search-form {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.search-field {
	flex: 1;
	padding: var(--space-2) var(--space-3);
	border: none;
	border-radius: var(--radius);
	font-family: var(--font-family);
	font-size: var(--text-base);
	font-weight: var(--font-regular);
}

.search-submit {
	padding: var(--space-2) var(--space-4);
	background: var(--color-accent);
	color: var(--color-on-accent);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	font-family: var(--font-family);
	font-weight: var(--font-bold);
	font-size: var(--text-base);
	min-height: 36px;
}

body.home .site-content {
	background: var(--color-bg);
}

.home-content-zone {
	padding-bottom: 0;
}

.home-three-col {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 220px;
	gap: var(--space-4);
	padding: var(--space-3) 0;
	align-items: start;
}

.home-sidebar .widget {
	border-radius: 0;
	padding: 0;
	margin-bottom: var(--space-4);
	background: transparent;
	box-shadow: none;
	border: none;
}

.widget-title {
	font-size: var(--text-md);
	font-weight: var(--font-bold);
	color: var(--color-accent);
	border-bottom: 1px solid var(--color-border);
	position: relative;
	padding-bottom: var(--space-2);
	margin-bottom: var(--space-3);
}

.widget-title::after {
	content: '';
	position: absolute;
	bottom: -1px;
	right: 0;
	width: 60px;
	height: 3px;
	background: var(--color-accent);
}

.featured-widget-post .featured-widget-thumb {
	display: block;
	margin-bottom: var(--space-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.featured-widget-title {
	font-size: var(--text-base);
	font-weight: var(--font-bold);
	line-height: 1.4;
	color: #111;
}

.featured-widget-title a { color: #111; }
.featured-widget-title a:hover { color: var(--color-accent); }

.recent-posts-list { display: flex; flex-direction: column; }

.recent-post-item {
	display: flex;
	gap: var(--space-2);
	align-items: baseline;
	justify-content: space-between;
	font-size: var(--text-sm);
	line-height: 1.5;
	padding: 9px 0;
	border-bottom: 1px solid var(--color-border);
}

.recent-post-item:last-child { border-bottom: none; }

.recent-post-time {
	flex-shrink: 0;
	color: #aeaeae;
	font-weight: var(--font-regular);
	font-size: var(--text-sm);
}

.recent-post-item a {
	color: #111;
	transition: color var(--transition);
}

.recent-post-item a:hover { color: var(--color-accent); }

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: var(--space-3);
	padding: var(--space-2) 0;
	border-bottom: 1px solid #e6e6e6;
	background: #f5f5f5;
}

.section-title {
	font-size: var(--text-lg);
	font-weight: var(--font-bold);
	color: var(--color-accent);
	padding-bottom: var(--space-2);
	margin-bottom: -1px;
	border-bottom: 3px solid var(--color-accent);
}

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

.programs-block .section-header,
.video-block .section-header {
	background: #f5f5f5;
	padding: var(--space-2) var(--space-3);
	margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3);
	border-bottom: 1px solid #e6e6e6;
}

.programs-block,
.video-block {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: var(--space-4);
	background: var(--color-surface);
}

.section-more {
	font-size: var(--text-sm);
	font-weight: var(--font-regular);
	color: var(--color-text-muted);
	padding-bottom: var(--space-2);
}

.section-more:hover { color: var(--color-accent); }

.home-section {
	padding: var(--space-4) 0 0;
}

.programs-video-section {
	padding: var(--space-4) 0 0;
}

.programs-video-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--space-4);
}

.programs-block,
.video-block {
	min-width: 0;
}

.card-carousel {
	position: relative;
}

.carousel-track {
	display: flex;
	gap: var(--space-3);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: var(--space-1) 0;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
	flex: 0 0 160px;
	scroll-snap-align: start;
}

.card-thumb {
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: var(--space-2);
}

.card-title {
	font-size: var(--text-sm);
	font-weight: var(--font-bold);
	line-height: var(--leading-tight);
}

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

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: var(--color-accent);
	color: var(--color-on-accent);
	border: none;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: var(--text-lg);
	font-weight: var(--font-bold);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
}

.carousel-prev { left: calc(-1 * var(--space-2)); }
.carousel-next { right: calc(-1 * var(--space-2)); }

.video-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
}

.video-thumb {
	display: block;
	position: relative;
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: var(--space-2);
}

.play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	background: rgba(20, 33, 61, 0.85);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-sm);
}

.video-title {
	font-size: var(--text-sm);
	font-weight: var(--font-bold);
	line-height: var(--leading-tight);
}

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

.most-viewed-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--space-3);
	counter-reset: rank;
	list-style: none;
	padding: 0;
}

.most-viewed-item {
	background: var(--color-surface);
	padding: var(--space-3);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	position: relative;
	padding-top: var(--space-8);
}

.most-viewed-rank {
	position: absolute;
	top: var(--space-3);
	right: var(--space-3);
	width: 24px;
	height: 24px;
	background: var(--color-accent);
	color: var(--color-on-accent);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: var(--font-bold);
	font-size: var(--text-sm);
}

.most-viewed-cat {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--font-bold);
	color: var(--color-red);
	margin-bottom: var(--space-1);
}

.most-viewed-item a {
	color: var(--color-text);
	font-size: var(--text-base);
	font-weight: var(--font-bold);
	line-height: var(--leading-tight);
}

.category-badge {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: var(--font-bold);
	background: var(--color-red);
	color: #fff;
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-1);
}

.category-posts-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--space-4);
}

.category-featured .category-featured-thumb {
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: var(--space-2);
}

.category-featured h3 {
	font-size: var(--text-lg);
	font-weight: var(--font-bold);
	margin-bottom: var(--space-2);
}

.category-featured h3 a { color: var(--color-text); }

.category-list {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.category-list-item {
	min-width: 0;
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
}

.category-list-item h4 {
	min-width: 0;
	overflow-wrap: break-word;
	font-size: var(--text-base);
	font-weight: var(--font-bold);
	line-height: var(--leading-tight);
	margin: 0;
}

.list-thumb {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

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

.category-list-item h4 a { color: var(--color-text); }

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--space-4);
	padding: var(--space-4) 0;
}

.post-card {
	background: var(--color-surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.post-card-thumb img {
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.post-card-body { padding: var(--space-3); }

.post-card-title {
	margin: var(--space-2) 0;
	font-size: var(--text-lg);
	font-weight: var(--font-extrabold, 800);
	line-height: var(--leading-tight);
}

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

.post-card-meta {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	margin-bottom: var(--space-2);
}

.post-card-excerpt {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin: 0;
	line-height: var(--leading-normal);
}

.single-layout { padding: var(--space-4); }

.single-post {
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: var(--space-6);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
}

.entry-title {
	font-size: var(--text-3xl);
	font-weight: var(--font-bold);
	margin-bottom: var(--space-3);
	line-height: var(--leading-tight);
}

.entry-meta {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin-bottom: var(--space-4);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.entry-thumbnail {
	margin-bottom: var(--space-4);
	border-radius: var(--radius);
	overflow: hidden;
}

.entry-content {
	font-size: var(--text-md);
	line-height: var(--leading-relaxed);
}

.entry-content p { margin-bottom: var(--space-4); }

.archive-header,
.search-header {
	padding: var(--space-4) 0 0;
}

.archive-title,
.search-title {
	font-size: var(--text-2xl);
	font-weight: var(--font-bold);
	color: var(--color-heading);
}

.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-4) 0;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 var(--space-2);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-weight: var(--font-bold);
	font-size: var(--text-sm);
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-on-accent);
}

.error-404 {
	text-align: center;
	padding: var(--space-10) var(--space-4);
}

.error-code {
	font-size: 5rem;
	font-weight: var(--font-bold);
	color: var(--color-accent);
	line-height: 1;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-2) var(--space-5);
	background: var(--color-accent);
	color: var(--color-on-accent);
	border-radius: var(--radius);
	font-weight: var(--font-bold);
	font-size: var(--text-base);
	margin-top: var(--space-3);
	border: none;
	cursor: pointer;
	min-height: 40px;
	transition: background var(--transition);
}

.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

.no-posts {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	font-style: italic;
}

@media (max-width: 992px) {
	.home-three-col {
		grid-template-columns: 1fr;
		gap: var(--space-3);
		padding: var(--space-3) 0 0;
	}

	.home-sidebar-left,
	.home-sidebar-right {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--space-3);
	}

	.programs-video-grid {
		grid-template-columns: 1fr;
		gap: var(--space-3);
	}

	.category-posts-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.home-sidebar-left,
	.home-sidebar-right {
		grid-template-columns: 1fr;
	}

	.single-post { padding: var(--space-4); }

	.entry-title { font-size: var(--text-xl); }
}

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

	.posts-grid {
		grid-template-columns: 1fr;
		gap: var(--space-3);
	}
}

.notification-popup {
	position: fixed;
	top: 72px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	background: var(--color-surface);
	border: 1px solid var(--color-accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: var(--space-4);
	max-width: 340px;
	text-align: center;
}

.notification-popup[hidden] { display: none; }

.notification-popup-inner p {
	margin-bottom: var(--space-3);
	font-weight: var(--font-bold);
	font-size: var(--text-base);
}

.notification-later {
	background: none;
	border: none;
	color: var(--color-text-muted);
	cursor: pointer;
	margin-top: var(--space-2);
	font-family: var(--font-family);
	font-size: var(--text-sm);
}

.breadcrumbs {
	padding: var(--space-3) var(--space-4) 0;
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
	content: '←';
	margin-right: var(--space-2);
	opacity: 0.5;
}

.breadcrumb-list a { color: var(--color-primary); font-weight: var(--font-bold); }

.contact-form-wrap { max-width: 520px; margin-top: var(--space-4); }

.contact-form label {
	display: block;
	margin-bottom: var(--space-1);
	font-weight: var(--font-bold);
	font-size: var(--text-sm);
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-family);
	font-size: var(--text-base);
	margin-bottom: var(--space-3);
	background: var(--color-surface);
	color: var(--color-text);
}

.contact-notice {
	padding: var(--space-3);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-3);
	font-size: var(--text-sm);
}

.contact-success {
	background: #d4edda;
	color: #155724;
}

.video-embed-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: var(--space-4);
}

.video-embed-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-grid-archive {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	padding: var(--space-4) 0;
}

.comments-area {
	margin-top: var(--space-6);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

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

.comment-list .comment {
	margin-bottom: var(--space-3);
	padding: var(--space-3);
	background: var(--color-soft);
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
}

.page-content {
	background: var(--color-surface);
	padding: var(--space-6);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	margin: var(--space-4) 0;
}

.site-main {
	overflow-x: hidden;
}

.front-page > section + section {
	margin-top: 0;
}

.home-center {
	min-width: 0;
}

.category-featured p {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	line-height: var(--leading-normal);
	margin: 0;
}

strong, b {
	font-weight: var(--font-bold);
}

.tab-panel-thumb img,
.featured-widget-thumb img,
.card-thumb img,
.video-thumb img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

