/* ==========================================================================
   DynaSlider — Frontend Styles
   RTL-first (سایت فارسی)، ولی برای سایت‌های LTR هم به خوبی کار می‌کند.
   ========================================================================== */

.dyna {
	--dyna-accent: #c8102e;
	--dyna-dark: #0e1b2c;
	--dyna-dark-soft: #16283d;
	--dyna-text-light: #f4f6f8;
	--dyna-text-muted: #a9b7c6;
	--dyna-radius: 10px;
	box-sizing: border-box;
	direction: rtl;
	font-family: inherit;
}
.dyna *, .dyna *::before, .dyna *::after { box-sizing: inherit; }
.dyna a { text-decoration: none; color: inherit; }

.dyna-notice {
	background: #fff3f3;
	border: 1px solid var(--dyna-accent);
	color: #a10c25;
	padding: 12px 16px;
	border-radius: var(--dyna-radius);
	font-size: 14px;
}

/* --------------------------------------------------------------------
   دکمه‌های قبل/بعد و نقاط ناوبری — سیستم یکپارچه (مستقل از فرمت)
   با متغیرهای CSS (--dyna-nav-*, --dyna-pag-*) که هرکدام از تنظیمات
   اسلایدر مقداردهی می‌شوند، به‌علاوه چند کلاس modifier برای شکل/جای‌گیری.
   -------------------------------------------------------------------- */
.dyna {
	--dyna-nav-size: 44px;
	--dyna-nav-color: #ffffff;
	--dyna-nav-bg: rgba(0, 0, 0, .35);
	--dyna-pag-size: 8px;
	--dyna-pag-color: #ffffff;
	--dyna-pag-active-color: var(--dyna-accent);
}

/* دکمه‌های قبل/بعد را کاملاً از استایل پیش‌فرض Swiper خالی می‌کنیم تا خودمان بسازیمشان */
.dyna .swiper-button-prev,
.dyna .swiper-button-next {
	width: var(--dyna-nav-size);
	height: var(--dyna-nav-size);
	margin-top: calc(var(--dyna-nav-size) / -2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .15s ease, transform .15s ease;
}
.dyna .swiper-button-prev::after,
.dyna .swiper-button-next::after {
	content: none; /* آیکون پیش‌فرض Swiper حذف می‌شود؛ آیکون خودمان را با mask-image می‌سازیم */
}
.dyna .swiper-button-prev::before,
.dyna .swiper-button-next::before {
	content: "";
	display: block;
	width: 42%;
	height: 42%;
	background-color: var(--dyna-nav-color);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.dyna .swiper-button-disabled { opacity: .35; }

/* ------------------------------------------------------------------
   شکل آیکن‌ها بر اساس «موقعیت فیزیکی راست/چپ» تعریف می‌شود، نه معنای
   prev/next. چون Swiper در سایت‌های راست‌به‌چپ خودش جای دکمه‌ها را عوض
   می‌کند (کلاس swiper-rtl اضافه می‌کند)، دکمه‌ای که از نظر معنایی «قبلی»
   است ممکن است فیزیکی سمت راست یا چپ بیفتد. برای همین هر دو حالت را
   جداگانه پوشش می‌دهیم تا همیشه آیکنِ درست، در سمت درست بماند.
   -------------------------------------------------------------------- */

/* حالت عادی (LTR یا وقتی Swiper جهت را RTL تشخیص نداده): prev=چپ، next=راست */
.dyna-nav-icon-left--chevron:not(.swiper-rtl) .swiper-button-prev::before,
.dyna-nav-icon-left--chevron.swiper-rtl .swiper-button-next::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dyna-nav-icon-right--chevron:not(.swiper-rtl) .swiper-button-next::before,
.dyna-nav-icon-right--chevron.swiper-rtl .swiper-button-prev::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dyna-nav-icon-left--arrow:not(.swiper-rtl) .swiper-button-prev::before,
.dyna-nav-icon-left--arrow.swiper-rtl .swiper-button-next::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12H6M11 5l-7 7 7 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12H6M11 5l-7 7 7 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dyna-nav-icon-right--arrow:not(.swiper-rtl) .swiper-button-next::before,
.dyna-nav-icon-right--arrow.swiper-rtl .swiper-button-prev::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h15M13 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h15M13 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dyna-nav-icon-left--triangle:not(.swiper-rtl) .swiper-button-prev::before,
.dyna-nav-icon-left--triangle.swiper-rtl .swiper-button-next::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 4L4 12l13 8z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 4L4 12l13 8z' fill='%23000'/%3E%3C/svg%3E");
}
.dyna-nav-icon-right--triangle:not(.swiper-rtl) .swiper-button-next::before,
.dyna-nav-icon-right--triangle.swiper-rtl .swiper-button-prev::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z' fill='%23000'/%3E%3C/svg%3E");
}

.dyna-nav-icon-left--double:not(.swiper-rtl) .swiper-button-prev::before,
.dyna-nav-icon-left--double.swiper-rtl .swiper-button-next::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 5l-7 7 7 7M12 5l-7 7 7 7' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 5l-7 7 7 7M12 5l-7 7 7 7' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dyna-nav-icon-right--double:not(.swiper-rtl) .swiper-button-next::before,
.dyna-nav-icon-right--double.swiper-rtl .swiper-button-prev::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5l7 7-7 7M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5l7 7-7 7M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* شکل قاب دور دکمه */
.dyna-nav-shape--circle .swiper-button-prev,
.dyna-nav-shape--circle .swiper-button-next {
	background: var(--dyna-nav-bg);
	border-radius: 50%;
}
.dyna-nav-shape--circle-outline .swiper-button-prev,
.dyna-nav-shape--circle-outline .swiper-button-next {
	background: transparent;
	border: 2px solid var(--dyna-nav-bg);
	border-radius: 50%;
}
.dyna-nav-shape--square .swiper-button-prev,
.dyna-nav-shape--square .swiper-button-next {
	background: var(--dyna-nav-bg);
	border-radius: 8px;
}
.dyna-nav-shape--none .swiper-button-prev,
.dyna-nav-shape--none .swiper-button-next {
	background: transparent;
}

/* جای‌گیری: پیش‌فرض Swiper یعنی «داخل/روی تصویر» است، پس فقط outside/sides را بازنویسی می‌کنیم */
.dyna-nav-pos--outside { padding-bottom: calc(var(--dyna-nav-size) + 20px); }
.dyna-nav-pos--outside .swiper-button-prev,
.dyna-nav-pos--outside .swiper-button-next {
	top: auto;
	bottom: 0;
	margin-top: 0;
}
.dyna-nav-pos--outside .swiper-button-prev { inset-inline-start: calc(50% - var(--dyna-nav-size) - 6px); inset-inline-end: auto; }
.dyna-nav-pos--outside .swiper-button-next { inset-inline-end: calc(50% - var(--dyna-nav-size) - 6px); inset-inline-start: auto; }

.dyna-nav-pos--sides { overflow: visible; }
.dyna-nav-pos--sides .swiper-button-prev { inset-inline-start: calc(var(--dyna-nav-size) * -1.4); }
.dyna-nav-pos--sides .swiper-button-next { inset-inline-end: calc(var(--dyna-nav-size) * -1.4); }
@media (max-width: 900px) {
	/* رو صفحه‌های کوچک جای کافی برای «کنار اسلایدر» نیست؛ به حالت «داخل» برمی‌گردد */
	.dyna-nav-pos--sides .swiper-button-prev { inset-inline-start: 10px; }
	.dyna-nav-pos--sides .swiper-button-next { inset-inline-end: 10px; }
}

.dyna-nav--hidden .swiper-button-prev,
.dyna-nav--hidden .swiper-button-next { display: none; }

/* نقاط صفحه‌بندی */
.dyna .swiper-pagination-bullet {
	width: var(--dyna-pag-size);
	height: var(--dyna-pag-size);
	background: var(--dyna-pag-color);
	opacity: .55;
}
.dyna .swiper-pagination-bullet-active {
	opacity: 1;
	background: var(--dyna-pag-active-color);
}

.dyna-pag-style--dots-outline .swiper-pagination-bullet {
	background: transparent;
	border: 2px solid var(--dyna-pag-color);
	opacity: 1;
}
.dyna-pag-style--dots-outline .swiper-pagination-bullet-active {
	background: var(--dyna-pag-active-color);
	border-color: var(--dyna-pag-active-color);
}

.dyna-pag-style--lines .swiper-pagination-bullet {
	width: calc(var(--dyna-pag-size) * 3);
	height: calc(var(--dyna-pag-size) * 0.6);
	border-radius: 3px;
}

.dyna-pag-pos--outside .swiper-pagination {
	position: static;
	margin-top: 14px;
}

.dyna-pag--hidden .swiper-pagination { display: none; }

/* --------------------------------------------------------------------
   کنترل ارتفاع سفارشی (px / em / rem / vh) و حالت «کشیده به اندازه‌ی کانتینر»
   -------------------------------------------------------------------- */

/* حالت custom: مقدار --dyna-height به‌صورت اینلاین توسط PHP تنظیم می‌شود */
.dyna--has-height.dyna-hero-list,
.dyna--has-height.dyna-hero-list .dyna-hero-list__hero {
	min-height: var(--dyna-height);
}
.dyna--has-height.dyna-hero-simple .dyna-hero-simple__slide {
	min-height: var(--dyna-height);
}
.dyna--has-height.dyna-card-carousel {
	min-height: var(--dyna-height);
}

/* حالت stretch: اسلایدر دقیقاً هم‌اندازه‌ی والد خودش می‌شود.
   المنت والد (جایی که شورت‌کد قرار گرفته) باید ارتفاع مشخص داشته باشد. */
.dyna--stretch {
	height: 100%;
	min-height: 0;
}
.dyna--stretch.dyna-hero-list {
	grid-template-rows: 1fr;
}
.dyna--stretch.dyna-hero-list .dyna-hero-list__hero {
	height: 100%;
	min-height: 0;
}
.dyna--stretch.dyna-hero-list .dyna-hero-list__list {
	max-height: 100%;
	overflow-y: auto;
}
.dyna--stretch.dyna-hero-simple,
.dyna--stretch.dyna-hero-simple .swiper-wrapper,
.dyna--stretch.dyna-hero-simple .swiper-slide {
	height: 100%;
}
.dyna--stretch.dyna-hero-simple .dyna-hero-simple__slide {
	height: 100%;
	min-height: 0;
}
.dyna--stretch.dyna-card-carousel,
.dyna--stretch.dyna-card-carousel .swiper-wrapper,
.dyna--stretch.dyna-card-carousel .swiper-slide {
	height: 100%;
}
.dyna--stretch .dyna-card-carousel__card {
	height: 100%;
}
.dyna--stretch .dyna-card-carousel__image {
	flex: 1 1 auto;
	aspect-ratio: unset;
}

@media (max-width: 900px) {
	.dyna--stretch.dyna-hero-list { display: flex; flex-direction: column; }
	.dyna--stretch.dyna-hero-list .dyna-hero-list__hero { flex: 1 1 auto; }
	.dyna--stretch.dyna-hero-list .dyna-hero-list__list { flex: 0 0 auto; max-height: 40%; }
}

/* --------------------------------------------------------------------
   فرمت ۱: هیرو + لیست کناری
   -------------------------------------------------------------------- */
.dyna-hero-list {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 0;
	background: var(--dyna-dark);
	border-radius: var(--dyna-radius);
	overflow: hidden;
	min-height: 360px;
}

.dyna-hero-list__list {
	display: flex;
	flex-direction: column;
	background: var(--dyna-dark);
	order: 1;
}

.dyna-hero-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,.08);
	color: var(--dyna-text-light);
	padding: 18px 20px;
	text-align: right;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.6;
	transition: background .2s ease;
}
.dyna-hero-list__item:hover { background: rgba(255,255,255,.05); }
.dyna-hero-list__item.is-active {
	background: var(--dyna-accent);
}
.dyna-hero-list__item-arrow {
	flex: none;
	opacity: .7;
}
.dyna-hero-list__item.is-active .dyna-hero-list__item-arrow { opacity: 1; }

.dyna-hero-list__hero {
	position: relative;
	order: 2;
	min-height: 360px;
}

.dyna-hero-list__slide {
	position: absolute;
	inset: 0;
	display: block;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease;
}
.dyna-hero-list__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.dyna-hero-list__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10,20,35,.9) 0%, rgba(10,20,35,.15) 55%, rgba(10,20,35,.35) 100%);
}

.dyna-hero-list__content {
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 0;
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dyna-hero-list__date { color: var(--dyna-text-muted); font-size: 13px; }
.dyna-hero-list__title { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.5; }
.dyna-hero-list__excerpt { color: var(--dyna-text-muted); font-size: 14px; max-width: 60ch; }

@media (max-width: 900px) {
	.dyna-hero-list { grid-template-columns: 1fr; }
	.dyna-hero-list__hero { order: 1; min-height: 300px; }
	.dyna-hero-list__list { order: 2; max-height: 260px; overflow-y: auto; }
	.dyna-hero-list__title { font-size: 18px; }
}

/* --------------------------------------------------------------------
   فرمت ۲: هیرو تمام‌عرض ساده
   -------------------------------------------------------------------- */
.dyna-hero-simple {
	border-radius: var(--dyna-radius);
	overflow: hidden;
}
.dyna-hero-simple__slide {
	position: relative;
	display: block;
	width: 100%;
	min-height: 420px;
	background-size: cover;
	background-position: center;
}
.dyna-hero-simple__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10,20,35,.85) 0%, rgba(10,20,35,.1) 60%);
}
.dyna-hero-simple__content {
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 0;
	padding: 36px;
	max-width: 720px;
}
.dyna-hero-simple__title {
	display: block;
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.5;
	margin-bottom: 10px;
}
.dyna-hero-simple__excerpt {
	display: block;
	color: var(--dyna-text-muted);
	font-size: 15px;
	line-height: 1.8;
}

@media (max-width: 600px) {
	.dyna-hero-simple__slide { min-height: 300px; }
	.dyna-hero-simple__title { font-size: 20px; }
	.dyna-hero-simple__content { padding: 20px; }
}

/* --------------------------------------------------------------------
   فرمت ۳: کاروسل کارتی (اینفوگرافی/رسانه)
   -------------------------------------------------------------------- */
.dyna-card-carousel { padding: 10px 0 40px; }
.dyna-card-carousel .swiper-slide {
	transition: transform .3s ease, opacity .3s ease;
	opacity: .6;
}
.dyna-card-carousel .swiper-slide-active { opacity: 1; transform: scale(1.04); }

.dyna-card-carousel__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--dyna-radius);
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0,0,0,.08);
	height: 100%;
}
.dyna-card-carousel__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: #eef1f4;
}
.dyna-card-carousel__title {
	display: block;
	padding: 16px 18px;
	font-size: 15px;
	font-weight: 700;
	color: #1a2733;
	line-height: 1.6;
}

/* --------------------------------------------------------------------
   فرمت ۴: گرید ساده
   -------------------------------------------------------------------- */
.dyna-grid-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.dyna-grid-list__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--dyna-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.dyna-grid-list__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0,0,0,.1);
}
.dyna-grid-list__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: #eef1f4;
}
.dyna-grid-list__body { padding: 14px 16px; }
.dyna-grid-list__date { display: block; font-size: 12px; color: #8b96a3; margin-bottom: 6px; }
.dyna-grid-list__title { display: block; font-size: 15px; font-weight: 700; color: #1a2733; line-height: 1.6; }

@media (max-width: 480px) {
	.dyna-grid-list { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* --------------------------------------------------------------------
   فرمت ۵: دو ستون برابر
   -------------------------------------------------------------------- */
.dyna-split-duo .swiper-slide { height: auto; }
.dyna-split-duo__card {
	position: relative;
	display: block;
	min-height: 260px;
	height: 100%;
	border-radius: var(--dyna-radius);
	overflow: hidden;
	background-size: cover;
	background-position: center;
}
.dyna-split-duo__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10,20,35,.8) 0%, rgba(10,20,35,.05) 55%);
}
.dyna-split-duo__content {
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 0;
	padding: 18px 20px;
}
.dyna-split-duo__title { color: #fff; font-size: 17px; font-weight: 700; line-height: 1.6; }
.dyna--has-height.dyna-split-duo .dyna-split-duo__card { min-height: var(--dyna-height); }
.dyna--stretch.dyna-split-duo,
.dyna--stretch.dyna-split-duo .swiper-wrapper,
.dyna--stretch.dyna-split-duo .swiper-slide { height: 100%; }
.dyna--stretch.dyna-split-duo .dyna-split-duo__card { min-height: 0; }

@media (max-width: 640px) {
	.dyna-split-duo__title { font-size: 14px; }
}

/* --------------------------------------------------------------------
   فرمت ۶: لیست فشرده با تصویر کوچک
   -------------------------------------------------------------------- */
.dyna-vertical-list {
	display: flex;
	flex-direction: column;
	background: var(--dyna-dark-soft);
	border-radius: var(--dyna-radius);
	overflow: hidden;
}
.dyna-vertical-list__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	transition: background .2s ease;
}
.dyna-vertical-list__row:last-child { border-bottom: none; }
.dyna-vertical-list__row:hover { background: rgba(255,255,255,.05); }
.dyna-vertical-list__thumb {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	background-size: cover;
	background-position: center;
	background-color: #263548;
}
.dyna-vertical-list__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dyna-vertical-list__title {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dyna-vertical-list__date { color: var(--dyna-text-muted); font-size: 12px; }

/* --------------------------------------------------------------------
   فرمت ۷: هیرو با نوار تصاویر کوچک (main + thumbs)
   -------------------------------------------------------------------- */
.dyna-filmstrip-hero { display: flex; flex-direction: column; gap: 10px; }
.dyna-filmstrip-hero__main { border-radius: var(--dyna-radius); overflow: hidden; }
.dyna-filmstrip-hero__slide {
	position: relative;
	display: block;
	min-height: 320px;
	background-size: cover;
	background-position: center;
}
.dyna-filmstrip-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10,20,35,.8) 0%, rgba(10,20,35,.05) 55%);
}
.dyna-filmstrip-hero__content { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; padding: 24px; }
.dyna-filmstrip-hero__title { color: #fff; font-size: 22px; font-weight: 700; }
.dyna-filmstrip-hero__thumbs { padding: 2px; }
.dyna-filmstrip-hero__thumbs .swiper-slide { width: 90px; cursor: pointer; opacity: .55; transition: opacity .2s ease; }
.dyna-filmstrip-hero__thumbs .swiper-slide-thumb-active { opacity: 1; }
.dyna-filmstrip-hero__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16/10;
	border-radius: 6px;
	background-size: cover;
	background-position: center;
	background-color: #263548;
}
.dyna--has-height.dyna-filmstrip-hero .dyna-filmstrip-hero__slide { min-height: var(--dyna-height); }
.dyna--stretch.dyna-filmstrip-hero { height: 100%; }
.dyna--stretch.dyna-filmstrip-hero .dyna-filmstrip-hero__main { flex: 1; height: calc(100% - 70px); }
.dyna--stretch.dyna-filmstrip-hero .dyna-filmstrip-hero__main,
.dyna--stretch.dyna-filmstrip-hero .dyna-filmstrip-hero__main .swiper-wrapper,
.dyna--stretch.dyna-filmstrip-hero .dyna-filmstrip-hero__main .swiper-slide,
.dyna--stretch.dyna-filmstrip-hero .dyna-filmstrip-hero__slide { height: 100%; min-height: 0; }

@media (max-width: 640px) {
	.dyna-filmstrip-hero__slide { min-height: 220px; }
	.dyna-filmstrip-hero__title { font-size: 17px; }
	.dyna-filmstrip-hero__thumbs .swiper-slide { width: 66px; }
}

/* --------------------------------------------------------------------
   فرمت ۸: مجله‌ای نامتقارن (بنتو)
   -------------------------------------------------------------------- */
.dyna-bento-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	grid-auto-rows: 150px;
	gap: 12px;
}
.dyna-bento-grid__item {
	position: relative;
	display: block;
	border-radius: var(--dyna-radius);
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #1a2733;
}
.dyna-bento-grid__item--main { grid-row: span 2; }
.dyna-bento-grid__item--extra { grid-column: 1 / -1; }
.dyna-bento-grid__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10,20,35,.78) 0%, rgba(10,20,35,.05) 60%);
}
.dyna-bento-grid__title {
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 0;
	padding: 14px 16px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}
.dyna-bento-grid__item--main .dyna-bento-grid__title { font-size: 20px; }

@media (max-width: 640px) {
	.dyna-bento-grid { grid-template-columns: 1fr; grid-auto-rows: 140px; }
	.dyna-bento-grid__item--main { grid-row: span 1; min-height: 200px; }
}

/* --------------------------------------------------------------------
   فرمت ۹: کاورفلو سه‌بعدی
   -------------------------------------------------------------------- */
.dyna-coverflow-3d { padding: 20px 0 44px; }
.dyna-coverflow-3d .swiper-slide { width: 220px; height: auto; }
.dyna-coverflow-3d__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--dyna-radius);
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(0,0,0,.12);
}
.dyna-coverflow-3d__image {
	display: block;
	width: 100%;
	aspect-ratio: 3/4;
	background-size: cover;
	background-position: center;
	background-color: #eef1f4;
}
.dyna-coverflow-3d__title { display: block; padding: 12px 14px; font-size: 14px; font-weight: 700; color: #1a2733; line-height: 1.6; }

/* --------------------------------------------------------------------
   فرمت ۱۰: کاروسل ویدیویی
   -------------------------------------------------------------------- */
.dyna-video-carousel__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--dyna-radius);
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0,0,0,.08);
	height: 100%;
}
.dyna-video-carousel__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16/9;
	background-size: cover;
	background-position: center;
	background-color: #1a2733;
}
.dyna-video-carousel__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	color: var(--dyna-accent);
}
.dyna-video-carousel__title { display: block; padding: 14px 16px; font-size: 14px; font-weight: 700; color: #1a2733; line-height: 1.6; }

/* --------------------------------------------------------------------
   فرمت ۱۱: نوار اخبار متحرک (تیکر)
   -------------------------------------------------------------------- */
.dyna-news-ticker {
	overflow: hidden;
	background: var(--dyna-dark);
	border-radius: 6px;
	padding: 10px 0;
}
.dyna-news-ticker__track {
	display: flex;
	gap: 40px;
	width: max-content;
	animation: dyna-ticker-scroll 30s linear infinite;
}
.dyna-news-ticker:hover .dyna-news-ticker__track { animation-play-state: paused; }
.dyna-news-ticker__item {
	flex: none;
	color: #fff;
	font-size: 14px;
	white-space: nowrap;
	padding-inline-start: 40px;
	position: relative;
}
.dyna-news-ticker__item::before {
	content: "";
	position: absolute;
	inset-inline-start: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dyna-accent);
}
@keyframes dyna-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
[dir="rtl"] .dyna-news-ticker__track,
.dyna-news-ticker__track {
	direction: ltr;
}

/* --------------------------------------------------------------------
   فرمت ۱۲: استوری عمودی
   -------------------------------------------------------------------- */
.dyna-vertical-story {
	position: relative;
	max-width: 340px;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	min-height: 520px;
}
.dyna-vertical-story .swiper-slide { height: auto; }
.dyna-vertical-story__slide {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 520px;
	background-size: cover;
	background-position: center;
}
.dyna-vertical-story__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10,20,35,.85) 0%, rgba(10,20,35,.05) 45%);
}
.dyna-vertical-story__title {
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 0;
	padding: 22px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}
.dyna-vertical-story__progress {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	inset-inline-end: 10px;
	display: flex;
	gap: 4px;
	z-index: 2;
}
.dyna-vertical-story__progress-seg {
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: rgba(255,255,255,.35);
	overflow: hidden;
}
.dyna-vertical-story__progress-seg.is-active { background: rgba(255,255,255,.35); }
.dyna-vertical-story__progress-seg.is-active::after {
	content: "";
	display: block;
	height: 100%;
	background: #fff;
	animation: dyna-story-progress linear forwards;
	animation-duration: var(--dyna-story-duration, 5s);
}
@keyframes dyna-story-progress {
	from { width: 0%; }
	to { width: 100%; }
}
.dyna--has-height.dyna-vertical-story,
.dyna--has-height.dyna-vertical-story .dyna-vertical-story__slide { min-height: var(--dyna-height); }
.dyna--stretch.dyna-vertical-story,
.dyna--stretch.dyna-vertical-story .swiper-wrapper,
.dyna--stretch.dyna-vertical-story .swiper-slide,
.dyna--stretch.dyna-vertical-story .dyna-vertical-story__slide { height: 100%; min-height: 0; }

/* --------------------------------------------------------------------
   فرمت: اسلایدر تمام‌عرض المنتور
   -------------------------------------------------------------------- */
.dyna-elementor-fullwidth { min-height: 500px; }
/* محتوای المنتور دست کاربر است؛ نباید جهت آن را به‌زور rtl کنیم — همان جهتی
   که خود صفحه (و در نتیجه ادیتور المنتور هنگام طراحی) دارد باید حفظ شود،
   وگرنه چیدمان‌های flex/grid داخل المنتور (مثل دو کانتینر کنار هم) برعکس دیده می‌شوند. */
.dyna-elementor-fullwidth,
.dyna-elementor-fullwidth__slide,
.dyna-elementor-fullwidth .elementor {
	direction: inherit;
}
.dyna-elementor-fullwidth .swiper-slide { height: auto; }
.dyna-elementor-fullwidth__slide {
	min-height: 500px;
	width: 100%;
}
.dyna--has-height.dyna-elementor-fullwidth,
.dyna--has-height.dyna-elementor-fullwidth .dyna-elementor-fullwidth__slide { min-height: var(--dyna-height); }
.dyna--stretch.dyna-elementor-fullwidth,
.dyna--stretch.dyna-elementor-fullwidth .swiper-wrapper,
.dyna--stretch.dyna-elementor-fullwidth .swiper-slide,
.dyna--stretch.dyna-elementor-fullwidth .dyna-elementor-fullwidth__slide { height: 100%; min-height: 0; }
