/*
 * Modern homepage look — /home-demo/ only (page-id-2876)
 * Same structure & content width as live home. No container narrowing.
 */

@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&display=swap");

body.page-id-2876 {
	--brand: #c4892e;
	--brand-soft: rgba(196, 137, 46, 0.16);
	--ink: #121212;
	--muted: #667085;
	--line: rgba(18, 18, 18, 0.08);
	--surface: #ffffff;
	--page: #efebe4;
	--radius: 14px;
	--shadow: 0 12px 32px rgba(18, 18, 18, 0.07);
	--shadow-hover: 0 16px 40px rgba(18, 18, 18, 0.11);
	font-family: "Alexandria", Tahoma, "Segoe UI", sans-serif;
	color: var(--ink);
}

body.page-id-2876 .entry-header,
body.page-id-2876 h1.page-title,
body.page-id-2876 .title-above-content {
	display: none !important;
}

/* Atmosphere */
body.page-id-2876 #tie-wrapper {
	background:
		radial-gradient(1000px 480px at 0% 0%, rgba(196, 137, 46, 0.12), transparent 50%),
		radial-gradient(800px 420px at 100% 8%, rgba(196, 137, 46, 0.08), transparent 45%),
		linear-gradient(180deg, #faf8f4 0%, var(--page) 55%, #e9e3da 100%);
}

/* Section spacing — vertical only */
body.page-id-2876 .section-item {
	margin-bottom: 32px !important;
}

body.page-id-2876 .mag-box {
	background: var(--surface);
	border: 0 !important;
	border-radius: var(--radius) !important;
	box-shadow: var(--shadow);
	margin-bottom: 24px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

body.page-id-2876 .box-dark-skin.mag-box,
body.page-id-2876 .dark-skin.mag-box {
	background: linear-gradient(180deg, #22262d 0%, #191c21 100%);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

body.page-id-2876 .mag-box .container-wrapper {
	padding-top: 18px !important;
	padding-bottom: 16px !important;
	/* horizontal padding stays theme-default — avoids side gaps */
}

/* Titles */
body.page-id-2876 .mag-box-title {
	margin-bottom: 16px !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid var(--line) !important;
}

body.page-id-2876 .box-dark-skin .mag-box-title,
body.page-id-2876 .dark-skin .mag-box-title {
	border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.page-id-2876 .mag-box-title h3 {
	margin: 0 !important;
	font-size: 1.35rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em !important;
	line-height: 1.2 !important;
}

body.page-id-2876 .box-dark-skin .mag-box-title h3,
body.page-id-2876 .dark-skin .mag-box-title h3 {
	color: #fff !important;
}

/* Filters */
body.page-id-2876 .mag-box-filter-links {
	gap: 6px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

body.page-id-2876 .mag-box-filter-links li {
	margin: 0 !important;
}

body.page-id-2876 .mag-box-filter-links a {
	display: inline-block !important;
	border-radius: 999px !important;
	padding: 6px 12px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.page-id-2876 .mag-box-filter-links a:hover {
	transform: translateY(-1px);
}

body.page-id-2876 .mag-box-filter-links a.active,
body.page-id-2876 .mag-box-filter-links a:hover {
	background: var(--brand-soft) !important;
	color: var(--brand) !important;
}

body.page-id-2876 .box-dark-skin .mag-box-filter-links a,
body.page-id-2876 .dark-skin .mag-box-filter-links a {
	color: rgba(255, 255, 255, 0.82) !important;
}

body.page-id-2876 .box-dark-skin .mag-box-filter-links a.active,
body.page-id-2876 .dark-skin .mag-box-filter-links a.active,
body.page-id-2876 .box-dark-skin .mag-box-filter-links a:hover,
body.page-id-2876 .dark-skin .mag-box-filter-links a:hover {
	background: rgba(196, 137, 46, 0.3) !important;
	color: #fff !important;
}

/* Title row: title + filters + arrows on one horizontal toolbar */
body.page-id-2876 .mag-box-title {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: space-between;
	gap: 10px 14px;
}

body.page-id-2876 .mag-box-title > h3 {
	flex: 0 1 auto;
	max-width: 100%;
}

body.page-id-2876 .mag-box-title .tie-alignright {
	float: none !important;
	width: auto !important;
	flex: 1 1 auto;
	display: flex !important;
	justify-content: flex-end;
	align-items: center;
	min-width: 0;
}

body.page-id-2876 .mag-box-options {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 8px;
	width: auto !important;
	max-width: 100%;
}

body.page-id-2876 .mag-box-filter-links {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	height: auto !important;
	opacity: 1 !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.page-id-2876 .mag-box-filter-links li {
	float: none !important;
	display: inline-flex !important;
	margin: 0 !important;
}

/* Arrows must stay side-by-side (theme default flex-basis 55px was too narrow for larger buttons) */
body.page-id-2876 .mag-box-options .slider-arrow-nav,
body.page-id-2876 .slider-arrow-nav {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 6px;
	float: none !important;
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 72px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.page-id-2876 .slider-arrow-nav li {
	float: none !important;
	display: inline-flex !important;
	clear: none !important;
	margin: 0 !important;
	width: auto !important;
}

body.page-id-2876 .slider-arrow-nav a {
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	border-radius: 10px !important;
	border: 1px solid rgba(18, 18, 18, 0.1) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1 !important;
	font-size: 14px !important;
	background: #fff !important;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

body.page-id-2876 .box-dark-skin .slider-arrow-nav a,
body.page-id-2876 .dark-skin .slider-arrow-nav a {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.18) !important;
	color: #fff !important;
}

body.page-id-2876 .slider-arrow-nav a:not(.pagination-disabled):hover {
	transform: translateY(-1px);
	background: var(--brand) !important;
	border-color: var(--brand) !important;
	color: #fff !important;
}

body.page-id-2876 .slider-arrow-nav a.pagination-disabled {
	opacity: 0.4;
	cursor: default;
}

/* Type */
body.page-id-2876 .posts-items .post-title,
body.page-id-2876 .posts-list-container .post-title {
	font-weight: 700 !important;
	line-height: 1.45 !important;
	letter-spacing: -0.015em;
}

body.page-id-2876 .posts-items .post-title a:hover,
body.page-id-2876 .posts-list-container .post-title a:hover {
	color: var(--brand) !important;
}

body.page-id-2876 .post-meta,
body.page-id-2876 .thumb-meta {
	font-size: 12px !important;
	color: var(--muted) !important;
}

body.page-id-2876 .box-dark-skin .post-meta,
body.page-id-2876 .dark-skin .post-meta,
body.page-id-2876 .box-dark-skin .thumb-meta,
body.page-id-2876 .dark-skin .thumb-meta,
body.page-id-2876 .first-post-gradient li:first-child .post-meta,
body.page-id-2876 .first-post-gradient li:first-child .thumb-meta {
	color: rgba(255, 255, 255, 0.75) !important;
}

body.page-id-2876 .posts-items li {
	margin-top: 14px !important;
}

body.page-id-2876 .big-post-left-box .posts-items li:nth-child(n + 2),
body.page-id-2876 .half-box .posts-items li:nth-child(n + 2) {
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

body.page-id-2876 .box-dark-skin .posts-items li:nth-child(n + 2),
body.page-id-2876 .dark-skin .posts-items li:nth-child(n + 2) {
	border-top-color: rgba(255, 255, 255, 0.08);
}

/* Hero grid */
body.page-id-2876 .slider-area,
body.page-id-2876 .slider-area-inner,
body.page-id-2876 .main-slider,
body.page-id-2876 .tie-slick-slider,
body.page-id-2876 .tie-grid-slider {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

body.page-id-2876 .tie-slider-14,
body.page-id-2876 .tie-grid-slider {
	gap: 12px !important;
}

body.page-id-2876 .tie-slider-14 .grid-item,
body.page-id-2876 .tie-grid-slider .grid-item,
body.page-id-2876 .main-slider .slide {
	border: 0 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	box-shadow: 0 8px 20px rgba(18, 18, 18, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-id-2876 .tie-slider-14 .grid-item:hover,
body.page-id-2876 .tie-grid-slider .grid-item:hover,
body.page-id-2876 .main-slider .slide:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
}

body.page-id-2876 .big-thumb-left-box-inner {
	border: 0 !important;
	border-radius: 12px !important;
	overflow: hidden !important;
}

body.page-id-2876 .big-thumb-left-box-inner,
body.page-id-2876 .main-slider .slide,
body.page-id-2876 .main-slider .slide-bg,
body.page-id-2876 .grid-item {
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

body.page-id-2876 .thumb-overlay::after,
body.page-id-2876 .first-post-gradient li:first-child .post-thumb::after {
	height: 72% !important;
	background-image: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(0, 0, 0, 0.25) 35%,
		rgba(0, 0, 0, 0.78) 78%,
		rgba(0, 0, 0, 0.9) 100%
	) !important;
}

body.page-id-2876 .first-post-gradient li:first-child .post-title a,
body.page-id-2876 .grid-item .thumb-title,
body.page-id-2876 .main-slider .thumb-title {
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
	line-height: 1.4 !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

body.page-id-2876 .post-cat,
body.page-id-2876 .post-cat-wrap a {
	border-radius: 8px !important;
	font-weight: 700 !important;
	padding: 4px 10px !important;
}

/* Thumbs */
body.page-id-2876 .big-post-left-box .posts-items li:nth-child(n + 2) .post-thumb,
body.page-id-2876 .half-box .posts-items li:nth-child(n + 2) .post-thumb,
body.page-id-2876 .big-post-top-box .posts-items li:nth-child(n + 2) .post-thumb {
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(18, 18, 18, 0.06);
}

body.page-id-2876 .big-post-left-box .posts-items li:nth-child(n + 2) .post-thumb img,
body.page-id-2876 .half-box .posts-items li:nth-child(n + 2) .post-thumb img,
body.page-id-2876 .big-post-top-box .posts-items li:nth-child(n + 2) .post-thumb img,
body.page-id-2876 .mini-posts-box .posts-items li .post-thumb img,
body.page-id-2876 .big-posts-box .post-thumb img,
body.page-id-2876 .wide-post-box .post-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	background-color: #0b1220;
	object-position: center center;
	display: block;
}

/* Sidebar */
body.page-id-2876 .sidebar .widget,
body.page-id-2876 .tie-aside .container-wrapper {
	background: var(--surface);
	border: 0 !important;
	border-radius: var(--radius) !important;
	box-shadow: var(--shadow);
	overflow: hidden;
	margin-bottom: 20px;
}

body.page-id-2876 .sidebar .widget-title,
body.page-id-2876 .sidebar .the-global-title {
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

body.page-id-2876 .tie-weather-widget,
body.page-id-2876 .tie-weather-widget .widget-title,
body.page-id-2876 .tie-weather-widget .the-global-title,
body.page-id-2876 .tie-weather-widget .the-subtitle,
body.page-id-2876 .tie-weather-widget .weather-name,
body.page-id-2876 .tie-weather-widget .weather-desc,
body.page-id-2876 .tie-weather-widget .weather-current-temp,
body.page-id-2876 .tie-weather-widget .weather-more-todays-stats,
body.page-id-2876 .tie-weather-widget .weather_highlow,
body.page-id-2876 .tie-weather-widget .weather_humidty,
body.page-id-2876 .tie-weather-widget .weather-forecast,
body.page-id-2876 .tie-weather-widget .weather-forecast span,
body.page-id-2876 .tie-weather-widget .weather-wrap {
	color: #1a1a1a !important;
	opacity: 1 !important;
	visibility: visible !important;
}

body.page-id-2876 .tie-weather-widget .weather-current-temp {
	font-size: 2.1rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.04em;
	color: var(--ink) !important;
}

body.page-id-2876 .tie-weather-widget .weather-name {
	font-weight: 700 !important;
}

body.page-id-2876 .jnr-youtube-media-block-mag,
body.page-id-2876 .wide-post-box,
body.page-id-2876 .big-posts-box {
	border: 0 !important;
	border-radius: var(--radius) !important;
	box-shadow: var(--shadow);
}

@media (max-width: 767px) {
	body.page-id-2876 .section-item {
		margin-bottom: 22px !important;
	}
	body.page-id-2876 .mag-box {
		margin-bottom: 16px;
		border-radius: 12px !important;
	}
	body.page-id-2876 .mag-box-title h3 {
		font-size: 1.15rem !important;
	}
	body.page-id-2876 .tie-slider-14 .grid-item,
	body.page-id-2876 .tie-grid-slider .grid-item,
	body.page-id-2876 .main-slider .slide {
		border-radius: 10px !important;
	}
}


/* ===== Media sections: TV / Podcast / Slider 7 — modern cards ===== */
body.page-id-2876 .jnr-youtube-media-block-mag .container-wrapper {
	padding-top: 18px !important;
	padding-bottom: 18px !important;
}

body.page-id-2876 .jnr-yblock {
	margin-top: 4px;
}

body.page-id-2876 .jnr-yblock-swiper {
	padding-bottom: 8px !important;
}

body.page-id-2876 .jnr-ycard {
	border-radius: 14px !important;
	overflow: hidden !important;
	box-shadow: 0 10px 26px rgba(18, 18, 18, 0.1);
	transform: translateZ(0);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-id-2876 .jnr-ycard:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(18, 18, 18, 0.14);
}

body.page-id-2876 .jnr-ycard-img,
body.page-id-2876 .jnr-ycard-img img {
	border-radius: 14px !important;
}

body.page-id-2876 .jnr-ycard-gradient {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.35) 45%,
		transparent 75%
	) !important;
}

body.page-id-2876 .jnr-ycard-title {
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	line-height: 1.4 !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

body.page-id-2876 .jnr-ycard-cat-badge {
	border-radius: 999px !important;
	font-weight: 700 !important;
	background: rgba(196, 137, 46, 0.95) !important;
	backdrop-filter: blur(6px);
}

body.page-id-2876 .jnr-ycard-play {
	border-radius: 999px !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}

body.page-id-2876 .jnr-ycard:hover .jnr-ycard-play {
	transform: scale(1.06);
}

body.page-id-2876 .jnr-yblock-prev,
body.page-id-2876 .jnr-yblock-next {
	border-radius: 12px !important;
	background: rgba(255, 255, 255, 0.95) !important;
	box-shadow: 0 6px 16px rgba(18, 18, 18, 0.12);
	color: #121212 !important;
	width: 40px !important;
	height: 40px !important;
	transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

body.page-id-2876 .jnr-yblock-prev:hover,
body.page-id-2876 .jnr-yblock-next:hover {
	background: #c4892e !important;
	color: #fff !important;
	transform: translateY(-1px);
}

body.page-id-2876 .jnr-yblock-more-btn {
	border-radius: 999px !important;
	font-weight: 700 !important;
	padding: 10px 18px !important;
	background: rgba(196, 137, 46, 0.12) !important;
	color: #c4892e !important;
	border: 0 !important;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.page-id-2876 .jnr-yblock-more-btn:hover {
	background: #c4892e !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* Slider 7 (boxed dark slider between media blocks) */
body.page-id-2876 .tie-slider-7,
body.page-id-2876 .boxed-slider {
	border-radius: 14px !important;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(18, 18, 18, 0.1);
}

body.page-id-2876 .tie-slider-7 .slide,
body.page-id-2876 .boxed-slider .slide {
	border-radius: 14px !important;
	overflow: hidden;
}

body.page-id-2876 .tie-slider-7 .thumb-title,
body.page-id-2876 .boxed-slider .thumb-title {
	font-weight: 800 !important;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.page-id-2876 .tie-slider-7 .post-cat,
body.page-id-2876 .boxed-slider .post-cat {
	border-radius: 8px !important;
}

body.page-id-2876 .tie-slider-7 .tie-slider-nav a,
body.page-id-2876 .boxed-slider .tie-slider-nav a {
	border-radius: 10px !important;
}

/* ===== اخبار النخبة / كل جديد — modern list presentation ===== */
body.page-id-2876 .wide-post-box .posts-items .post-item,
body.page-id-2876 .big-posts-box .posts-items .post-item,
body.page-id-2876 .top-news-box .posts-items .post-item {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	transition: background 0.15s ease;
}

body.page-id-2876 .wide-post-box .posts-items .post-item:last-child,
body.page-id-2876 .big-posts-box .posts-items .post-item:last-child,
body.page-id-2876 .top-news-box .posts-items .post-item:last-child {
	border-bottom: 0;
}

body.page-id-2876 .wide-post-box .post-thumb,
body.page-id-2876 .big-posts-box .post-thumb,
body.page-id-2876 .top-news-box .post-thumb {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(18, 18, 18, 0.08);
}

body.page-id-2876 .wide-post-box .post-title,
body.page-id-2876 .big-posts-box .post-title,
body.page-id-2876 .top-news-box .post-title {
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

body.page-id-2876 .wide-post-box .post-excerpt,
body.page-id-2876 .big-posts-box .post-excerpt {
	color: var(--muted);
	line-height: 1.7;
	margin-top: 6px;
}

body.page-id-2876 .wide-post-box .more-link,
body.page-id-2876 .big-posts-box .more-link {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand) !important;
	font-weight: 700;
	font-size: 12px;
	transition: background 0.15s ease, color 0.15s ease;
}

body.page-id-2876 .wide-post-box .more-link:hover,
body.page-id-2876 .big-posts-box .more-link:hover {
	background: var(--brand);
	color: #fff !important;
}

/* Half boxes — remove side gutters between paired columns */
body.page-id-2876 .half-box.second-half-box {
	padding-right: 0 !important;
}

body.page-id-2876 .half-box.mag-box {
	padding-left: 0 !important;
}
