/* Fonts */
@font-face {
	font-family: 'IRANSansXFaNum';
	src: url('../fonts/IRANSansXFaNum-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IRANSansXFaNum';
	src: url('../fonts/IRANSansXFaNum-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IRANSansXFaNum';
	src: url('../fonts/IRANSansXFaNum-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IRANSansXFaNum';
	src: url('../fonts/IRANSansXFaNum-Black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* Base */
:root { --container: 1200px; --gap: 1rem; --text: #1a1a1a; --muted: #666;}
* { box-sizing: border-box; }
html { direction: rtl; }
body { margin: 0; font-family: 'IRANSansXFaNum', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); line-height: 1.6; text-align: right; direction: rtl; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.c-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; direction: rtl; }
.site-content { direction: rtl; }
.site-main { direction: rtl; text-align: right; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10000; background-color: #f7f7f7; transition: box-shadow 0.2s ease; }
.site-header.scrolled { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.site-header__inner { display: flex; flex-direction: column; direction: rtl; }
.site-header__row { display: flex; align-items: center; min-height: 64px; transition: .2s ease; overflow: hidden; }
.site-header__row--top { justify-content: space-between; border-bottom: 1px solid #eee; padding:20px 0 10px 0; }
.site-header__row--bottom { justify-content: center; position: relative; overflow: visible; }
.site-header.scrolled .site-header__row--bottom { max-height: 0; opacity: 0; padding: 0; min-height: 0; }
.site-header.scrolled .site-header__row--top { min-height: 55px; padding: 10px 0; }

/* Left Actions (Search, Login, Language) - Visual left (flex-end in RTL) */
.site-header__left-actions { display: flex; align-items: center; gap: 1rem; direction: rtl; order: 3; }
.site-header__icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: transparent; color: var(--text); cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease; border-radius: 100px; padding: 0; font-size: 0.75rem; font-weight: 600; }
.site-header__icon-btn:hover { background-color: #b4d9f0; color: #000; }
.site-header__icon-btn svg { display: block; }

/* Search form - Fullscreen overlay */
.site-header__search-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.site-header__search-overlay.is-active {
	display: flex;
	opacity: 1;
}

.site-header__search-form {
	position: relative;
	width: 90%;
	max-width: 600px;
	background: #fff;
	border-radius: 8px;
	padding: 3rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.2s ease;
}

.site-header__search-overlay.is-active .site-header__search-form {
	transform: scale(1);
}

.site-header__search-input {
	width: 100%;
	padding: 1rem 1.5rem;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 1.125rem;
	font-family: inherit;
	text-align: right;
	direction: rtl;
}

.site-header__search-input:focus {
	outline: none;
	border-color: #b4d9f0;
	box-shadow: 0 0 0 3px rgba(180, 217, 240, 0.3);
}

.site-header__search-close {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: transparent;
	border: 0;
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__search-close:hover {
	background-color: #f5f5f5;
	color: #000;
}

/* Logo - Centered */
.site-branding { display: flex; align-items: center; justify-content: center; flex: 1; z-index: 1; order: 2; }
.site-logo { display: inline-block; }
.site-logo__img { width: auto; height: 35px; max-height: 64px; object-fit: contain; transition: 0.2s ease; transform:scale(1.4); }
.site-header.scrolled .site-logo__img { transform:scale(1);}

/* Social Media Icons - Right (visual right, flex-start in RTL) */
.site-header__social { display: flex; align-items: center; direction: rtl; order: 1; }
.site-header__social-list { list-style: none; display: flex; gap: 0.5rem; margin: 0; padding: 0; }
.site-header__social-link { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #333; transition: background-color 0.15s ease, color 0.15s ease; }
.site-header__social-link:hover { background: #b4d9f0 !important; color: #000 !important; }
.site-header__social-link svg { display: block; }

/* Navigation */
.nav-toggle { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; z-index: 10001; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); }
.primary-nav { direction: rtl; position: relative; z-index: 10001; }
.primary-nav ul, .primary-nav .menu, .menu--rtl { list-style: none; display: flex; gap: 2.5rem; margin: 0; padding: 0; direction: rtl; flex-direction: row; justify-content: center; }
.primary-nav ul li, .primary-nav .menu li { direction: rtl; text-align: right; position: relative; z-index: 10002; }
.primary-nav ul li a { display: block; padding: 0.5rem 0; transition: background-color 0.2s ease, color 0.2s ease; padding: 5px 20px; }

/* Menu item arrows for submenu */
.primary-nav .menu-item-has-children > a {
	position: relative;
	padding-left: 1.25rem;
}

/* Active and hover states for menu items */
.primary-nav .menu li a:hover,
.primary-nav .menu li.current-menu-item > a,
.primary-nav .menu li.current-menu-ancestor > a {
	background-color: #b4d9f0;
	color: #000;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Submenu Styles - Desktop */
.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
	min-width: 240px;
	padding: 0.5rem 0;
	margin: 0;
	flex-direction: column;
	gap: 0;
	z-index: 10002;
	text-align: right;
	direction: rtl;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

/* Ensure menu items with submenus have proper z-index */
.primary-nav .menu-item-has-children {
	z-index: 10002;
}

.primary-nav .sub-menu li {
	width: 100%;
	padding: 0;
	margin: 0;
	text-align: right;
}

.primary-nav .sub-menu li a {
	padding: 0.75rem 1.25rem;
	display: block;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav .sub-menu li a:hover {
	background-color: #b4d9f0;
	color: #000;
}

/* Nested submenus (third level) */
.primary-nav .sub-menu .sub-menu {
	top: 0;
	right: 100%;
	left: auto;
	z-index: 10003;
}

.primary-nav .sub-menu .menu-item-has-children:hover > .sub-menu,
.primary-nav .sub-menu .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

@media (max-width: 768px) {
	.site-header__row--top { flex-wrap: wrap; padding: 0.5rem 0; }
	.site-header__left-actions { order: 1; flex: 1; justify-content: flex-start; }
	.site-branding { order: 2; flex: 0 0 100%; justify-content: center; margin: 0.5rem 0; }
	.site-header__social { order: 3; flex: 1; justify-content: flex-end; }
	.nav-toggle { display: block; }
	.site-header__row--bottom { justify-content: flex-start; padding: 0 1rem; }
	.primary-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; border-bottom: 1px solid #eee; direction: rtl; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul, .primary-nav .menu { flex-direction: column; padding: 1rem; direction: rtl; gap:0; }
	.primary-nav ul li, .primary-nav .menu li { text-align: right; padding: 0.5rem 0; }
	
	/* Mobile menu - parent items are bold */
	.primary-nav > ul > li > a,
	.primary-nav > .menu > li > a {
		font-weight: 700;
		font-size: 1rem;
		padding: 0.5rem 0;
	}
	
	/* Mobile submenu styles - all levels displayed */
	.primary-nav .sub-menu {
		position: static;
		display: flex;
		flex-direction: column;
		border: none;
		box-shadow: none;
		background: transparent;
		margin: 0.25rem 0 0.5rem 1.5rem;
		padding: 0;
		border-right: 2px solid #e0e0e0;
		border-radius: 0;
	}
	
	.primary-nav .sub-menu li {
		padding: 0;
		margin: 0;
	}
	
	.primary-nav .sub-menu li a {
		padding: 0.5rem 1rem;
		font-size: 0.9em;
		font-weight: 400;
		color: var(--muted);
		display: block;
	}
	
	.primary-nav .sub-menu li a:hover {
		color: var(--text);
		background-color: transparent;
	}
	
	/* Second level submenu - more indentation */
	.primary-nav .sub-menu .sub-menu {
		position: static;
		margin: 0.25rem 1rem 0.5rem 1.5rem;
		border-right: 2px solid #e8e8e8;
	}
	
	.primary-nav .sub-menu .sub-menu li a {
		font-size: 0.85em;
		padding: 0.4rem 1rem;
	}
	
	/* Third level and beyond - even more indentation */
	.primary-nav .sub-menu .sub-menu .sub-menu {
		margin: 0.25rem 0 0.5rem 1.5rem;
		border-right: 2px solid #f0f0f0;
	}
	
	.primary-nav .sub-menu .sub-menu .sub-menu li a {
		font-size: 0.8em;
		padding: 0.35rem 1rem;
	}
}

/* Sections */
.c-section { padding: 1.5rem 0; direction: rtl; }
.c-section__header { margin-bottom: 1rem; direction: rtl; text-align: right; }
.c-section__title { font-size: 1.5rem; margin: 0; direction: rtl; text-align: right; }
.c-section__empty { color: var(--muted); direction: rtl; text-align: right; }

/* Grid (default) */
.c-grid { 
	display: grid; 
	grid-template-columns: repeat(3, 1fr); 
	gap: calc(var(--gap) * 1.75); 
	align-items: stretch; /* Ensure all grid items have same height */
}
@media (max-width: 1024px) { .c-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .c-grid { grid-template-columns: 1fr; } }

/* Ensure all cards in grid have equal height */
.c-grid .c-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Card */
.c-card { border: 1px solid #fafafa; border-radius: 4px; background: #fff; overflow: hidden; display: flex; flex-direction: column; direction: rtl; }
.c-card__media { 
	display: block; 
	aspect-ratio: 16/9; 
	background: #f6f6f6; 
	overflow: hidden;
	position: relative;
}
.c-card__media:hover .attachment-large{transform:scale(1.05);}

.c-card__media img, .c-card__media svg { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
	object-position: center;
	display: block; 
	position: absolute;
	top: 0;
	left: 0;
    transition:transform .2s ease;
    will-change: transform;
}
.c-card__body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; direction: rtl; text-align: right; height: 100%; justify-content: space-between; }
.c-card__title { font-size: 1.125rem; margin: 10px 0; direction: rtl; text-align: right; }
.c-card__meta { font-size: .75rem; color: var(--muted); display: flex; gap: .75rem; direction: rtl; }
.c-card__excerpt { margin: 0; color: #333; font-size: 0.875rem; direction: rtl; text-align: right; }

/* Card: category badge and footer date */
.c-card__category-badge { align-self: flex-start; background: #1111110f; color: #fff; font-size: .75rem; line-height: 1; padding: .35rem .5rem; border-radius: 4px; text-decoration: none; display: inline-block; transition: opacity 0.2s; }
.c-card__category-badge:hover { opacity: 0.8; text-decoration: none; }
.c-card__category-badge--light { background: #fafafa; color: inherit;}
.c-card__footer { font-size: 0.75rem; color: var(--muted); display: flex; gap: .75rem; align-items: center; }
.c-card__reading-time { color: var(--muted); }

/* Absolutely position date at bottom when enabled */
.c-card.has-date-footer .c-card__body { padding-bottom: 2.25rem; }

/* List layout overrides (placed AFTER card block for cascade) */
.c-section--layout-list .c-grid { grid-template-columns: 1fr; gap: calc(var(--gap) * 1.25); }
.c-section--layout-list .c-card { flex-direction: row; align-items: stretch; }
.c-section--layout-list .c-card__media { 
	width: 38%; 
	min-width: 240px; 
	aspect-ratio: 16/9; 
	height: 200px;
	flex-shrink: 0;
}
.c-section--layout-list .c-card__body { width: 62%; }
.c-section--layout-list .c-card__title { font-size: 1.25rem; }
@media (max-width: 768px) {
	.c-section--layout-list .c-card { flex-direction: column; }
	.c-section--layout-list .c-card__media, .c-section--layout-list .c-card__body { width: 100%; }
}

/* Cudras Header (70/30) */
/* Flex fallback to guarantee two columns */
.c-section--layout-cudras-header {padding: 0 0 1.5rem 0;}
.c-section--layout-cudras-header .cudras-header { display: flex; gap: calc(var(--gap) * 1.5); align-items: flex-start; }
.c-section--layout-cudras-header .ch-left-feature__container {padding:10px 5%;}
.c-section--layout-cudras-header .cudras-header__left { flex: 0 0 30%; max-width: 30%; background-color: #ffffff; height:100%; }
.c-section--layout-cudras-header .cudras-header__right { flex: 0 0 70%; max-width: 70%; overflow: hidden; }
.c-section--layout-cudras-header .ch-left-list-container {padding:5%; padding-top:0;}

/* Reverse direction (flex fallback) */
.c-section--layout-cudras-header .cudras-header.cudras-header--reverse { flex-direction: row-reverse; }

@media (max-width: 768px) {
	.c-section--layout-cudras-header .cudras-header { flex-direction: column; }
	.c-section--layout-cudras-header .cudras-header__left,
	.c-section--layout-cudras-header .cudras-header__right { flex: 0 0 100%; max-width: 100%; }
}
/* Prefer CSS Grid when available */
@supports (display: grid) {
    .c-section--layout-cudras-header .cudras-header { display: grid;  grid-template-columns: 30% 1fr; column-gap: calc(var(--gap) * 2.5); }
    .c-section--layout-cudras-header .cudras-header.cudras-header--reverse { grid-template-columns: 1fr 30%; }
	@media (max-width: 768px) { 
		.c-section--layout-cudras-header .cudras-header { grid-template-columns: 1fr; }
		.c-section--layout-cudras-header .cudras-header.cudras-header--reverse { grid-template-columns: 1fr; }
	}
	.c-section--layout-cudras-header .cudras-header__left,
	.c-section--layout-cudras-header .cudras-header__right { max-width: none; flex: initial; }
}

.ch-left-feature__media { max-height:250px; overflow: hidden; display: block; margin-bottom: .5rem; }
.ch-left-feature__media img {transition:.2s;}
.ch-left-feature__title { font-size: 1.35rem; margin: 0 0 .25rem; }
.ch-left-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.ch-left-list__item { border-top: 1px solid #eee; padding-top: .5rem; }
.ch-left-list__item-title {margin:0; font-size: 0.875rem;}

.ch-left-list__meta { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

.ch-right-main .ch-meta {font-size: .75rem;}
.ch-right-main__media { display: block; aspect-ratio: 16/9; background: #f6f6f6; margin-bottom: 1.5rem; overflow: hidden; }
.ch-right-main__container {max-width: 90%;}
.ch-right-main__title { font-size: 1.8rem; line-height: 1.25; margin: 0 0 .5rem; }
.ch-right-main__excerpt { margin: 0 0 .5rem; color: #333; }
.ch-right-main__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition:transform .2s ease; will-change: transform; }
a.ch-right-main__media:hover .attachment-large, a.ch-left-feature__media:hover .attachment-large {transform: scale(1.05);}


/* Left feature excerpt */
.ch-left-feature__excerpt { font-size:.875rem; margin: .25rem 0 .5rem; color: #333; }
.ch-meta { font-size: .75rem; color: var(--muted); }



/* Top Package Dual */
.top-package-dual { margin: 0 auto 40px; min-width: 320px; max-width: 520px; padding-left: 30px; padding-right: 30px; }
@media screen and (min-width: 750px) { .top-package-dual { margin-bottom: 60px; padding-left: 0; padding-right: 0; max-width: 100%; width: 690px; } .top-package-dual__package--first { margin-bottom: 40px; } }
.top-package-dual__package--first .top-package-dual__image { margin-bottom: 5px; position: relative; padding-bottom: 56.25%; }
.top-package-dual__package--first .top-package-dual__image-cover { background-position: center; background-size: cover; position: absolute; inset: 0; }
.top-package-dual__package--first .top-package-dual__header { left: 0; position: absolute; top: 0; z-index: 1; }
.top-package-dual__package--first .top-package-dual__header a { background: rgba(0,0,0,.8); border-top: 5px solid #f25d27; color: #fff; display: inline-block; font-size: 20px; line-height: 24px; opacity: .8; padding: 7.5px 30px; }
.top-package-dual__package--first .top-package-dual__image-caption { font-size: 11px; line-height: 14px; color: #4b535d; opacity: .7; }
.top-package-dual__package--first .top-package-dual__articles { margin-top: 20px; }
@media screen and (min-width: 750px) { .top-package-dual__package--first .top-package-dual__articles { display: table; table-layout: fixed; width: 100%; } .top-package-dual__package--first .top-package-dual__articles_primary { border-right: 1px solid #afacab; display: table-cell; padding-right: 20px; vertical-align: top; width: 66.66666667%; } .top-package-dual__package--first .top-package-dual__articles_secondary { display: table-cell; padding-left: 20px; vertical-align: top; width: 33.33333333%; } .top-package-dual__package--first .top-package-dual__articles_secondary .card-article { border-bottom: 1px solid #afacab; margin-bottom: 20px; padding-bottom: 20px; } .top-package-dual__package--first .top-package-dual__articles_secondary .card-article:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } }
.top-package-dual__package--first .top-package-dual__articles_primary .card-article__title { font-size: 34px; line-height: 1.2; margin: 0 0 10px; }
.top-package-dual__package--first .top-package-dual__articles_primary .card-article__dek { display: block; font-size: 16px; line-height: 24px; margin: 0 0 10px; }
.top-package-dual__package--first .top-package-dual__articles_secondary .card-article__title { color: #4b535d; font-size: 16px; line-height: 1.2; margin-bottom: 6px; }
.top-package-dual__package--first .top-package-dual__articles .card-article { width: auto; }
.top-package-dual__package--first .top-package-dual__articles .card-article__container { border-top: none; padding-top: 0; }
.top-package-dual__package--first .top-package-dual__articles .card-article__info { margin: 0; }
.top-package-dual__package--first .top-package-dual__articles .card-article__title { float: none; width: auto; }
.top-package-dual__package--first .top-package-dual__articles .card-article__topic-tag { display: none; }
.top-package-dual__package--first .top-package-dual__articles .card-article__date, .top-package-dual__package--first .top-package-dual__articles .card-article__image, .top-package-dual__package--first .top-package-dual__articles .card-article__series { display: none; }
.top-package-dual__package--second { background-color: #f0f4f4; }
.top-package-dual__package--second .cards-column__article:first-of-type .card-article__title { font-size: 30px; line-height: 1.2; }
.top-package-dual__package--second .cards-column__article:first-of-type .card-article__dek { display: block; font-size: 16px; line-height: 24px; margin: 0 0 10px; }
@media screen and (min-width: 1024px) { .top-package-dual { display: flex; flex-direction: row; width: 920px; } .top-package-dual__package--first { margin-bottom: 0; margin-right: 20px; width: 66.66666667%; } .top-package-dual__package--second { width: 33.33333333%; } }

/* Footer */
.site-footer { border-top: 1px solid #eee; padding: 3rem 0 2rem; background: #ffffff; margin-top: 2rem; direction: rtl; }
.site-footer__inner { display: flex; gap: 2rem; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid #eee;}
.site-footer__branding { display: flex; gap: 1.5rem;}
.site-footer__logo { display: inline-block; flex-shrink: 0; }
.site-footer__logo-img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; }
.site-footer__info { flex: 1; }
.site-footer__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--text); }
.site-footer__description { font-size: 0.9375rem; line-height: 1.8; color: var(--muted); margin: 0; max-width: 600px; }
.site-footer__meta { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.site-footer__copyright { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 20px; display: flex; flex-direction: row; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; direction: rtl; }
.site-footer__copyright p { margin: 0; }
.site-footer__theme-credit { margin: 0; }
.site-footer__theme-credit a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.site-footer__theme-credit a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 768px) {
	.site-footer__copyright { flex-direction: column; gap: 0.5rem; justify-content: center; }
}
.footer-nav { direction: rtl; }
.footer-nav ul, .footer-nav .footer-menu, .footer-menu--rtl { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; direction: rtl; flex-wrap: wrap; }
.footer-nav ul li, .footer-nav .footer-menu li { direction: rtl; text-align: right; }
.footer-nav a { color: var(--muted); font-size: 0.875rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--text); }


/* Footer social */
.site-footer__social { width: 100%; }
.site-footer__social-title { font-size: 1rem; margin: 0 0 .5rem; }
.site-footer__social-list { list-style: none; display: flex; gap: .5rem; padding: 0; margin-top: 20px; }
.site-footer__social-link { width: 40px; height: 40px; border-radius: 50%; background: #eee; display: inline-flex; align-items: center; justify-content: center; color: #333; transition: background-color .15s ease, color .15s ease; }
.site-footer__social-link:hover { background: #e3e3e3; color: #000; }

/* Card Carousel */
.c-section--layout-card-carousel .carousel-container {display: flex; justify-content: center; width: 100%; overflow: hidden;}
.c-section--layout-card-carousel .carousel-fullwidth-wrapper { position: relative; width: 100%; max-width: 1200px; display:flex; flex-direction: column; align-items: center; overflow: hidden;}

@media screen and (min-width: 1024px) {.owl-carousel.owl-theme{width:1600px;}}
.owl-stage {display: flex; align-items: stretch;}
.owl-item {	flex: 1 0 auto; display: flex;}
.owl-item .c-card {height: 100%;}


.c-section--layout-card-carousel .owl-carousel { margin-top: 1rem; }
.c-section--layout-card-carousel .owl-carousel .item { padding: 0 10px; }
.c-section--layout-card-carousel .owl-carousel .c-card { margin: 0; }
.c-section--layout-card-carousel .owl-carousel .c-card__body { padding:1.5rem; }
.c-section--layout-card-carousel .owl-carousel .c-card__media { 
	height: 200px; 
	overflow: hidden; 
	position: relative;
	aspect-ratio: 16/9;
}
.c-section--layout-card-carousel .owl-carousel .c-card__media img { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
	object-position: center; 
	position: absolute;
	top: 0;
	left: 0;
}
.c-section--layout-card-carousel .owl-nav { margin-top: 1rem; }
.c-section--layout-card-carousel .owl-nav button { background: #f0f0f0; border: 1px solid #ddd; padding: 8px 12px; margin: 0 5px; border-radius: 4px; }
.c-section--layout-card-carousel .owl-nav button:hover { background: #e0e0e0; }
.c-section--layout-card-carousel .owl-dots { margin-top: 1rem; }
.c-section--layout-card-carousel .owl-dots .owl-dot span { background: #ddd; }
.c-section--layout-card-carousel .owl-dots .owl-dot.active span,
.c-section--layout-card-carousel .owl-dots .owl-dot:hover span { background: #666; }

/* Gradient masks for carousel */
.carousel-gradient-mask {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 150px;
	z-index: 10;
	pointer-events: none;
}
.carousel-gradient-left {
	left: 0;
	background: linear-gradient(to right, rgba(247,247,247,1) 0%, rgba(247,247,247,0) 100%);
}
.carousel-gradient-right {
	right: 0;
	background: linear-gradient(to left, rgba(247,247,247,1) 0%, rgba(247,247,247,0) 100%);
}

/* Hide gradients on mobile */
@media (max-width: 768px) {
	.carousel-gradient-mask { display: none; }
	.c-section--layout-card-carousel .carousel-fullwidth-wrapper { 
		width: 100%; 
	}
}

/* Banner Layout */
.c-section--layout-banner .banner {
	display: flex;
	align-items: stretch;
	height: 400px;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	background-color: #ffffff;
}

.c-section--layout-banner .banner__image {
	flex: 0 0 50%;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.c-section--layout-banner .banner__image img {
	width: 100%;
	height: 100%;
	min-height: 400px;
	max-height: 500px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.c-section--layout-banner .banner__placeholder {
	width: 100%;
	height: 100%;
	background: #f6f6f6;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
}

.c-section--layout-banner .banner__content {
	flex: 0 0 50%;
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
}

.c-section--layout-banner .banner__category {
	display: inline-block;
	background: #1111110f;
	color: var(--muted);
	text-decoration: none;
	transition: opacity 0.2s;
	font-size: 0.75rem;
	line-height: 1;
	padding: 0.35rem 0.75rem;
	border-radius: 4px;
	align-self: flex-start;
}
.c-section--layout-banner .banner__category:hover {
	opacity: 0.8;
	text-decoration: none;
}

.c-section--layout-banner .banner__title {
	font-size: 1.35rem;
	line-height: 1.3;
	margin: 0;
}

.c-section--layout-banner .banner__title a {
	color: inherit;
	text-decoration: none;
}

.c-section--layout-banner .banner__title a:hover {
	color: #666;
}

.c-section--layout-banner .banner__excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

.c-section--layout-banner .banner__meta {
	font-size: 0.875rem;
	color: var(--muted);
}

.c-section--layout-banner .banner__btn {
	display: inline-block;
	background: #111;
	color: #fff;
	padding: 0.5rem 3rem;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	align-self: flex-start;
	transition: background-color 0.2s ease;
}

.c-section--layout-banner .banner__btn:hover {
	background: #333;
	color: #fff;
}

/* Banner Direction - Image Right (default for RTL) */
.c-section--layout-banner .banner--image-right {
	flex-direction: row-reverse;
}

/* Banner Direction - Image Left */
.c-section--layout-banner .banner--image-left {
	flex-direction: row;
}

/* Banner Responsive */
@media (max-width: 768px) {
	.c-section--layout-banner .banner {
		flex-direction: column;
		min-height: auto;
		max-height: none;
		height: auto;
	}
	
	.c-section--layout-banner .banner--image-right,
	.c-section--layout-banner .banner--image-left {
		flex-direction: column;
	}
	
	.c-section--layout-banner .banner__image,
	.c-section--layout-banner .banner__content {
		flex: 0 0 100%;
	}
	
	.c-section--layout-banner .banner__image {
		height: 250px;
		max-height: 250px;
	}
	
	.c-section--layout-banner .banner__image img {
		max-height: 250px;
	}
	
	.c-section--layout-banner .banner__content {
		padding: 1.5rem;
	}
	
	.c-section--layout-banner .banner__title {
		font-size: 1.125rem;
	}
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
	.c-card__media {
		height: 200px; /* Fallback height */
	}
	
	.c-section--layout-list .c-card__media {
		height: 200px; /* Override for list layout */
	}
}

/* Ensure consistent image heights across all layouts */
.c-card__media {
	min-height: 200px; /* Minimum height for consistency */
}

/* Additional consistency for carousel items */
.c-section--layout-card-carousel .owl-item .c-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.c-section--layout-card-carousel .owl-item .c-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Slider fancy date formatting */
.c-section--layout-card-carousel .c-card__date .date-day {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 .25rem;
}

/* Single Post Layout */
.single-post-layout {
	display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    grid-template-areas:"main sidebar";
    align-items: start;
    direction: rtl;
}

.single-post-content .entry-header {
    margin-bottom: 1.5rem;
}

.single-post-content .entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
	margin-top: 0;
}

.single-post-content .entry-meta, .c-container .entry-meta {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 1rem;
	font-size: 0.875rem;
	direction: rtl;
}

.single-post-content .entry-meta .meta-views, .c-container .entry-meta .meta-views {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.single-post-content .entry-meta svg {
    vertical-align: middle;
}

.single-post-content .featured-image-wrapper {
    margin-bottom: 1.5rem;
}

.single-post-content .featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0;
}

.single-post-content .entry-content {
    line-height: 2.1;
}

.single-post-content .entry-content p,
.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    margin-bottom: 1.5em;
	direction: rtl;
}

.single-post-content .entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: none;
}

.single-post-content .tags-links a {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-block;
    margin: 0 0 5px 5px; /* Bottom and left margin for spacing */
}
.single-post-sidebar {
        grid-area: sidebar;
        position: -webkit-sticky;
        position: sticky;
        top: 5rem; /* Adjust this value to sit below your sticky header */
    }
/* Sidebar Widget - Most Viewed */
.single-post-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.single-post-sidebar .widget li {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-post-sidebar .widget .most-viewed-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.single-post-sidebar .widget .most-viewed-item:hover .wp-post-image {
	transform:scale(1.05);
}

.single-post-sidebar .widget .most-viewed-item__thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition:transform .2s ease;
    will-change: transform;
}

.single-post-sidebar .widget .most-viewed-item__content {
    flex: 1;
}

/* Sidebar */
.single-post-sidebar .widget-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

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

.single-post-sidebar .widget li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.single-post-sidebar .widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-post-sidebar .widget a {
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.single-post-sidebar .widget .post-views-count {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Related Posts */
.related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
	direction:rtl;
}

.related-posts-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Full-Width Header Layout */
.single-layout-full-width-header .single-post-layout {
    margin-top: 0;
}

.entry-header-full-width .c-container {
    text-align: right;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.entry-header-full-width .entry-title {
    font-size: 2.5rem;
    margin-top: 0;
    text-align: right;
}

.entry-header-full-width .entry-excerpt {
    color: var(--muted);
    margin: 1rem 0 1.5rem 0;
    text-align: right;
}


.featured-image-full-width-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.featured-image-full-width {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 404 Error Page */
.error-404-page {
    padding: 3rem 0;
    text-align: center;
    direction: rtl;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-404__illustration {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 2rem;
}

.error-404-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 500px;
    display: block;
    margin: 0 auto;
}

/* 404 Content */
.error-404__content {
    max-width: 600px;
    margin: 0 auto;
    direction: rtl;
    text-align: center;
}

.error-404__title {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: var(--text);
    font-weight: 700;
}


/* 404 Responsive */
@media (max-width: 768px) {
    .error-404-page {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .error-404__illustration {
        max-width: 400px;
        margin-bottom: 1.5rem;
    }
    
    .error-404-image {
        max-width: 100%;
        max-height: 300px;
    }
    
    .error-404__title {
        font-size: 1.5rem;
    }
    
    .error-404__description {
        font-size: 0.9375rem;
    }
    
}



/* Cudras Header: Tablet tweaks */
@media screen and (max-width: 992px) {
	.c-container, .c-section--layout-card-carousel .carousel-fullwidth-wrapper {max-width: 768px;}
    .carousel-gradient-mask {display:none;}
	.c-section--layout-cudras-header .cudras-header { column-gap: calc(var(--gap) * 1.5); }
	@supports (display: grid) {
		.c-section--layout-cudras-header .cudras-header { grid-template-columns: 40% 1fr; }
		.c-section--layout-cudras-header .cudras-header.cudras-header--reverse { grid-template-columns: 1fr; }
	}
	.ch-right-main__title { font-size: 1.6rem; }
	.ch-right-main__container { max-width: 100%; }
	.ch-left-feature__title { font-size: 1.125rem; }
	.ch-left-feature__media{display: none;}
	/* Reduce paddings inside left column */
	.c-section--layout-cudras-header .ch-left-feature__container { padding: 0; }
	.c-section--layout-cudras-header .ch-left-list-container { padding: 0; }
	.c-section--layout-cudras-header .cudras-header__left {background-color: transparent}
    .ch-left-feature__excerpt {display:none}
  
    
    .single-post-layout {
        grid-template-columns: 1fr; /* Sidebar on right (1fr), Content on left (3fr) for RTL */
        grid-template-areas: "main" "sidebar";
    }
    .single-post-content {
        grid-area: main;
    }
    .single-post-sidebar {
        grid-area: sidebar;
        position: -webkit-sticky;
        position: sticky;
        top: 5rem; /* Adjust this value to sit below your sticky header */
    }
    .ch-left-list__item-title { font-size: 1.125rem; }
    .single-post-content .entry-title {font-size: 1.825rem;}
    .c-section--layout-cudras-header, .c-section--1 .c-container {padding:0;}
    .c-section--1 .ch-right-main__container, .ch-right-main .ch-meta, .cudras-header__left {padding: 0 1rem;}
}


/* Cudras Header: Mobile stack and spacing */
@media (max-width: 768px) {
	.c-container, .c-section--layout-card-carousel .carousel-fullwidth-wrapper {max-width: 520px;}
	.c-section--layout-cudras-header .cudras-header { gap: var(--gap); }
	.c-section--layout-cudras-header .cudras-header__left,
	.c-section--layout-cudras-header .cudras-header__right { flex: 0 0 100%; max-width: 100%; }
	@supports (display: grid) {
		.c-section--layout-cudras-header .cudras-header { grid-template-columns: 1fr; }
	}
	/* Tighter vertical rhythm */
	.ch-left-feature__media { margin-bottom: .75rem; max-height:100vh;}
	.ch-left-list { gap: .35rem; }
	.ch-right-main__media { margin-bottom: 1rem; }
	/* Smaller headings on mobile */
	.ch-right-main__title { font-size: 1.35rem; }
	.site-footer__inner {flex-direction: column; align-items: center;}
	.site-footer__branding {align-items: center; flex-direction: column;}
	.site-footer__info {text-align: center;}
	.site-footer__social-list {justify-content: center;}
	.site-footer__logo-img { width: 50px; height: 50px; }
	.site-footer__title { font-size: 1.25rem; }
	.footer-nav ul, .footer-nav .footer-menu { flex-direction: column; gap: 0.75rem; }
    .single-post-content .entry-title {font-size: 1.5rem;}
}

/* Pagination Styles */
.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 2rem 0;
	direction: rtl;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0.5rem 0.75rem;
	background: #f5f5f5;
	color: var(--text);
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.875rem;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}

.page-numbers:hover {
	background: #e8e8e8;
	color: var(--text);
	text-decoration: none;
	border-color: #d0d0d0;
}

.page-numbers.current {
	background: #111;
	color: #fff;
	border-color: #111;
	cursor: default;
}

.page-numbers.current:hover {
	background: #111;
	color: #fff;
}

.page-numbers.prev,
.page-numbers.next {
	font-weight: 500;
}

.page-numbers.dots {
	background: transparent;
	border: none;
	cursor: default;
}

.page-numbers.dots:hover {
	background: transparent;
}