/* Homepage main slider (rv-hero) + «راستی آزمایی» row slider (rv-fc). Colours from the khordad theme + site Additional CSS. */
.rv-hero, .rv-fc-box { --rv-primary: #2967ca; --rv-primary-dark: #013d9d; --rv-panel: #f6f6f6; --rv-title: #262424; --rv-text: #444; --rv-kicker: #949494; }

/* Main slider */
.main.right .rv-hero { position: relative; width: 100%; float: right; background: var(--rv-panel); border-radius: 4px; overflow: hidden; }
.rv-hero__slides { direction: rtl; }
.rv-hero__slide { display: flex; flex-direction: row; align-items: stretch; aspect-ratio: 300 / 130; overflow: hidden; }
.rv-hero__text { flex: 0 0 35%; max-width: 35%; padding: 26px 24px 76px; display: flex; flex-direction: column; text-align: right; overflow: hidden; min-height: 0; }
.rv-hero__media { flex: 0 0 65%; max-width: 65%; display: block; height: 100%; background: #e7e7e7; overflow: hidden; }
.rv-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-hero__kicker { color: var(--rv-kicker); font: .9rem/1.8 'tabnakweb', tahoma; margin-bottom: 6px; }
.main.right .rv-hero__title { margin: 0 0 12px; padding: 0; height: auto; text-align: right; font: bold 1.55rem/1.6 'tabnakweb', tahoma; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.main.right .rv-hero__title a { color: var(--rv-title); font: inherit; text-decoration: none; transition: color .2s; }
.main.right .rv-hero__title a:hover, .main.right .rv-hero__title a:focus-visible { color: var(--rv-primary); }
.rv-hero__excerpt { margin: 0; color: var(--rv-text); font: .95rem/2 'tabnakweb', tahoma; text-align: justify; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv-hero__nav { position: absolute; bottom: 22px; left: calc(65% + 24px); z-index: 5; display: flex; gap: 8px; direction: rtl; } /* RTL: prev (→) on the right, next (←) on the left */

/* Owl's own controls are not used here */
.rv-hero .owl-controls, .rv-fc .owl-controls { display: none !important; }

/* Arrows (theme blue, square like the theme's slider controls) */
.rv-arrow { position: relative; width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 2px; background: var(--rv-primary, #2967ca); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: background-color .2s; }
.rv-arrow::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.rv-arrow--next::after { transform: translate(-30%, -50%) rotate(-45deg); }   /* points left = next in RTL */
.rv-arrow--prev::after { transform: translate(-70%, -50%) rotate(135deg); }   /* points right = previous */
.rv-arrow:hover { background: var(--rv-primary-dark, #013d9d); }
.rv-arrow:focus-visible { outline: 3px solid var(--rv-primary-dark, #013d9d); outline-offset: 2px; }
.rv-arrow--sm { width: 32px; height: 32px; }
.rv-arrow--sm::after { width: 8px; height: 8px; }

/* «راستی آزمایی» */
.main.right .rv-fc-box { position: relative; }
.main.right .rv-fc-box > header { position: relative; }
.rv-fc__nav { position: absolute; left: 0; top: -4px; display: flex; gap: 6px; direction: ltr; z-index: 2; }
.rv-fc { direction: rtl; }
.rv-fc__card { display: block; color: var(--rv-title); text-decoration: none; }
.rv-fc__media { display: block; aspect-ratio: 16 / 10; padding: 3px; background: #ddd; }
.rv-fc__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.main.right .rv-fc__title { margin: 8px 0 0; padding: 0 2px; font: bold 1em/1.9 'tabnakweb', tahoma; color: var(--rv-title); text-align: right; height: 3.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.rv-fc__card:hover .rv-fc__title, .rv-fc__card:focus-visible .rv-fc__title { color: var(--rv-primary); }
.rv-fc__card:focus-visible { outline: 2px solid var(--rv-primary); outline-offset: 2px; }

@media screen and (max-width: 720px) {
	.rv-hero__slide { flex-direction: column; aspect-ratio: auto; }
	.rv-hero__media { order: -1; flex: none; max-width: 100%; width: 100%; height: auto; aspect-ratio: 3 / 2; }
	.rv-hero__text { flex: none; max-width: 100%; padding: 16px 16px 66px; height: 250px; }
	.main.right .rv-hero__title { font-size: 1.25rem; -webkit-line-clamp: 3; }
	.rv-hero__excerpt { -webkit-line-clamp: 3; font-size: .9rem; }
	.rv-hero__nav { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rv-arrow, .main.right .rv-hero__title a, .main.right .rv-fc__title { transition: none; }
}

/* ---------- «پرونده ویژه» dossier slider (ravaj 2026-11-17) ---------- */
.rv-ds-box .rv-ds { direction: rtl; float: right; width: 100%; }
.rv-ds__item { padding: 4px 0 8px; }
.rv-ds__card { display: block; background: #fff; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; color: #262424; text-decoration: none; }
.rv-ds__media { display: block; position: relative; aspect-ratio: 300 / 190; background: #f6f6f6; overflow: hidden; }
.rv-ds__media img.rv-ds__img { display: block; width: 100%; height: 100%; max-height: none; min-height: 0; padding: 0; object-fit: cover; transition: transform .35s ease; }
.rv-ds__media::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 40%; background: linear-gradient(to top, rgba(1, 61, 157, .45), rgba(1, 61, 157, 0)); pointer-events: none; }
.rv-ds__badge { position: absolute; top: 10px; right: 10px; z-index: 1; background: #2967ca; color: #fff; font-size: 12px; line-height: 1.8; padding: 0 8px; border-radius: 3px; }
.rv-ds__body { display: block; padding: 10px 12px 12px; border-top: 3px solid #2967ca; }
.rv-ds__meta { display: block; height: 1.6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.6; color: #949494; }
.rv-ds__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.2em; margin-top: 2px; font: 700 15px/1.6 tabnakweb, Tahoma, Arial, sans-serif; color: #262424; transition: color .2s; }
.rv-ds__card:hover .rv-ds__img, .rv-ds__card:focus-visible .rv-ds__img { transform: scale(1.05); }
.rv-ds__card:hover .rv-ds__title, .rv-ds__card:focus-visible .rv-ds__title { color: #2967ca; }
.rv-ds__card:focus-visible { outline: 2px solid #2967ca; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .rv-ds__media img.rv-ds__img { transition: none; } .rv-ds__card:hover .rv-ds__img { transform: none; } }

.rv-ds-box .owl-controls { display: none; } /* no arrows/dots; theme paints an empty grey bar */

/* image never stretches the 300/190 frame (missing/broken images included) */
.rv-ds__media img.rv-ds__img { position: absolute; top: 0; right: 0; width: 100%; height: 100%; }

/* ---------- shortcode box (ravaj 2026-11-18) ---------- */
.rv-sc-box__content { float: right; width: 100%; max-width: 100%; min-width: 0; }
.rv-sc-box__content iframe, .rv-sc-box__content img, .rv-sc-box__content video, .rv-sc-box__content embed { max-width: 100%; }
