/* Rytojaus standartas – komponentų stiliai.
   Visos spalvos ir šriftai imami iš Elementor Global Settings.
   Nieko čia keičia nėra reikalo – keisk Elementor → Site Settings. */

:root {
	--rs-accent:      var(--e-global-color-rsaccent, #C6FF00);
	--rs-accent-soft: var(--e-global-color-rsaccenthover, #AFFF00);
	--rs-bg:          var(--e-global-color-rsbg, #050505);
	--rs-surface:     var(--e-global-color-rssurface, #0D0D0D);
	--rs-border:      var(--e-global-color-rsborder, #262626);
	--rs-text:        var(--e-global-color-text, #FFFFFF);
	--rs-muted:       var(--e-global-color-rsmuted, #B8BEC7);
	--rs-radius:      12px;
	--rs-gap:         16px;
}

/* ---------- Soc. tinklų ikonos ---------- */
.rs-socials { display: flex; flex-wrap: wrap; gap: 8px; --rs-soc-size: 34px; }
.rs-socials__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--rs-soc-size); height: var(--rs-soc-size);
	border: 1px solid var(--rs-border); border-radius: 999px;
	color: var(--rs-muted); background: transparent;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.rs-socials__link svg { width: 52%; height: 52%; display: block; fill: var(--rs-muted); transition: fill .2s ease; }
.rs-socials__link:hover, .rs-socials__link:focus-visible {
	color: var(--rs-bg); background: var(--rs-accent);
	border-color: var(--rs-accent); transform: translateY(-2px);
}

/* ---------- Video mygtukas ---------- */
.rs-video-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--rs-accent); background: transparent;
	color: var(--rs-accent); font: inherit; font-size: 13px; font-weight: 600;
	transition: background-color .2s ease, color .2s ease;
}
.rs-video-btn:hover { background: var(--rs-accent); color: var(--rs-bg); }
.rs-video-btn__play {
	width: 0; height: 0; border-style: solid;
	border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor;
}

/* ---------- Bendras „Rodyti visus" mygtukas ---------- */
.rs-toggle {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
	padding: 12px 26px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--rs-border); background: transparent;
	color: var(--rs-text); font: inherit; font-size: 13px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .08em;
	transition: border-color .2s ease, color .2s ease;
}
.rs-toggle:hover { border-color: var(--rs-accent); color: var(--rs-accent); }
.rs-toggle::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .2s ease;
}
.rs-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 2px; }

/* ---------- Apie mus rašo ---------- */
.rs-press { --rs-cols: 3; }
.rs-press__grid {
	display: grid; gap: var(--rs-gap);
	grid-template-columns: repeat(var(--rs-cols), minmax(0, 1fr));
}
.rs-press__item--hidden { display: none; }
.rs-press.is-open .rs-press__item--hidden { display: block; animation: rs-fade .35s ease both; }
.rs-press__link {
	display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--rs-border); border-radius: var(--rs-radius);
	background: var(--rs-surface); overflow: hidden; text-decoration: none;
	transition: border-color .25s ease, transform .25s ease;
}
.rs-press__link:hover { border-color: var(--rs-accent); transform: translateY(-3px); }
.rs-press__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rs-bg); }
.rs-press__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rs-press__link:hover .rs-press__thumb img { transform: scale(1.04); }
.rs-press__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #111418, var(--rs-bg)); }
.rs-press__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.rs-press__source {
	font-size: 11px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--rs-accent);
}
.rs-press__title { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--rs-text); }
.rs-press__more {
	margin-top: auto; font-size: 12px; font-weight: 600; color: var(--rs-muted);
	text-transform: uppercase; letter-spacing: .06em;
}
.rs-press__link:hover .rs-press__more { color: var(--rs-accent); }

/* ---------- YouTube ---------- */
.rs-videos { --rs-cols: 3; }
.rs-videos__grid {
	display: grid; gap: var(--rs-gap);
	grid-template-columns: repeat(var(--rs-cols), minmax(0, 1fr));
}
.rs-videos__item--hidden { display: none; }
.rs-videos.is-open .rs-videos__item--hidden { display: block; animation: rs-fade .35s ease both; }
.rs-videos__player {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden;
	border: 1px solid var(--rs-border); border-radius: var(--rs-radius);
	background: var(--rs-bg);
}
.rs-videos__player:hover { border-color: var(--rs-accent); }
.rs-videos__facade {
	position: absolute; inset: 0; width: 100%; height: 100%;
	padding: 0; border: 0; background: none; cursor: pointer; display: block;
}
.rs-videos__facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .3s ease; }
.rs-videos__facade:hover img { transform: scale(1.04); opacity: .8; }
.rs-videos__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 62px; height: 62px; border-radius: 999px;
	background: var(--rs-accent); display: grid; place-items: center;
	box-shadow: 0 0 36px -8px var(--rs-accent); transition: transform .25s ease;
}
.rs-videos__facade:hover .rs-videos__play { transform: translate(-50%, -50%) scale(1.08); }
.rs-videos__play::after {
	content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent var(--rs-bg);
}
.rs-videos__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rs-videos__title { margin: 12px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--rs-text); }

/* ---------- Programa ---------- */
.rs-program { display: flex; flex-direction: column; gap: 12px; }
.rs-program__row {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	padding: 18px 22px; border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius); background: var(--rs-surface);
	transition: border-color .2s ease;
}
.rs-program__row:hover { border-color: var(--rs-accent); }
.rs-program__time {
	flex: 0 0 auto; min-width: 118px;
	font-weight: 700; font-size: 15px; color: var(--rs-accent);
}
.rs-program__title { flex: 1 1 220px; font-weight: 600; font-size: 15px; color: var(--rs-text); }
.rs-program__note { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--rs-muted); }
.rs-program__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.rs-program__tag {
	padding: 4px 9px; border-radius: 6px; font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em;
	border: 1px solid var(--rs-accent); color: var(--rs-accent);
}

/* ---------- Video modalas ---------- */
.rs-modal {
	position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center;
	padding: 20px; background: rgba(0, 0, 0, .88); opacity: 0;
	transition: opacity .2s ease;
}
.rs-modal.is-visible { opacity: 1; }
.rs-modal__inner { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; }
.rs-modal__inner iframe { width: 100%; height: 100%; border: 0; border-radius: var(--rs-radius); }
.rs-modal__close {
	position: absolute;
	top: -42px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0 !important;
	border: 0;
	background: none !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 24px !important;
}
.rs-modal__close:hover,
.rs-modal__close:focus-visible { color: var(--rs-accent); }
.rs-modal__close:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 4px; }

@keyframes rs-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.rs-press__grid, .rs-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.rs-press__grid, .rs-videos__grid { grid-template-columns: 1fr; }
	.rs-program__row { flex-direction: column; align-items: flex-start; }
	.rs-program__tags { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.rs-press__link, .rs-socials__link, .rs-videos__facade img, .rs-videos__play { transition: none; }
	.rs-press.is-open .rs-press__item--hidden, .rs-videos.is-open .rs-videos__item--hidden { animation: none; }
}

/* ---------- Soc. ikonos + video mygtukas viename ---------- */
.rs-person-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rs-person-meta .rs-socials { gap: 6px; --rs-soc-size: 30px; }
.rs-person-meta .rs-video-btn { padding: 6px 12px; font-size: 12px; }

/* ---------- Theme Style apsauga ----------
   .elementor-kit-N a:hover yra specifiskesnis uz .rs-socials__link:hover,
   todel ikonos spalva nustatoma per fill tiesiai ant SVG. */
.rs-socials__link:hover svg,
.rs-socials__link:focus-visible svg { fill: var(--rs-bg); }
.rs-socials .rs-socials__link:hover,
.rs-socials .rs-socials__link:focus-visible { color: var(--rs-bg); }

/* ---------- Modalo mygtukas ir turinys ---------- */
.rs-person-more {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--rs-border); background: transparent;
	color: var(--rs-muted); font-size: 12px; font-weight: 600;
	text-decoration: none; line-height: 1.4;
	transition: border-color .2s ease, color .2s ease;
}
.rs-person-more:hover, .rs-person-more:focus-visible {
	border-color: var(--rs-accent); color: var(--rs-accent);
}
.rs-person-more::after { content: "\2192"; }
.rs-modal-socials-slot .rs-socials { gap: 8px; --rs-soc-size: 34px; }
.rs-modal-bio p:last-child { margin-bottom: 0; }

/* =====================================================================
   PATAISYMAI
   ===================================================================== */

/* 1. Ikonos spalva per SVG fill, o ne per color.
      Elementor Theme Style taisyklė `.elementor-kit-7 a:hover { color }`
      yra specifiškesnė už `.rs-socials__link:hover`, todėl per `color`
      ikona hover'inant tapdavo žalia ant žalio ir dingdavo. */
.rs-socials__link svg { fill: var(--rs-muted); transition: fill .2s ease; }
.rs-socials__link:hover svg,
.rs-socials__link:focus-visible svg { fill: var(--rs-bg); }

/* 2. Video mygtukas – tokia pat apvali ikona kaip soc. tinklai,
      tik akcentine spalva, kad išsiskirtų. */
.rs-video-btn {
	padding: 0;
	font: inherit;
	cursor: pointer;
	border-color: var(--rs-accent);
	background: transparent;
}
.rs-video-btn svg { fill: var(--rs-accent); }
.rs-video-btn:hover,
.rs-video-btn:focus-visible { background: var(--rs-accent); border-color: var(--rs-accent); }
.rs-video-btn:hover svg,
.rs-video-btn:focus-visible svg { fill: var(--rs-bg); }
.rs-video-btn__play { display: none; }

/* 3. „Plačiau" – paprastas tekstas su rodykle, be rėmelio ir paddingo. */
.rs-person-more {
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
	color: var(--rs-accent);
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
}
.rs-person-more:hover,
.rs-person-more:focus-visible {
	border: 0;
	color: var(--rs-accent-soft);
	gap: 10px;
}
.rs-person-more::after { transition: transform .2s ease; }

/* --rs-soc-size default: kad ikonos dydis galiotu ir uz .rs-socials ribu
   (video mygtukas yra salia soc. ikonu, ne ju viduje). */
:root { --rs-soc-size: 34px; }
.rs-person-meta { --rs-soc-size: 30px; }
.rs-video-btn { flex: 0 0 auto; }

/* YouTube zenklas: grotuvo trikampis turi buti iskirstas, ne uzpildytas. */
.rs-video-btn svg { fill-rule: evenodd; }

/* Video ikona atrodo taip pat kaip soc. tinklai – vientisa eile. */
.rs-video-btn { border-color: var(--rs-border); }
.rs-video-btn svg { fill: var(--rs-muted); }
.rs-video-btn:hover, .rs-video-btn:focus-visible { background: var(--rs-accent); border-color: var(--rs-accent); }
.rs-video-btn:hover svg, .rs-video-btn:focus-visible svg { fill: var(--rs-bg); }

/* Elementor Theme Style stilizuoja visus <button> elementus (kit mygtuko fonas),
   o `.elementor-kit-7 button` yra specifiskesnis uz `.rs-video-btn`.
   Dvi klases (0,2,0) nurungia klase+elementa (0,1,1). */
.rs-socials__link.rs-video-btn {
	background: transparent;
	border-color: var(--rs-border);
	padding: 0;
	box-shadow: none;
}
.rs-socials__link.rs-video-btn:hover,
.rs-socials__link.rs-video-btn:focus-visible {
	background: var(--rs-accent);
	border-color: var(--rs-accent);
}

/* Ikonos dydis fiksuotas, ne procentinis – SVG procentai flex konteineryje
   susitraukdavo iki keliu pikseliu. */
.rs-socials__link svg {
	width: calc(var(--rs-soc-size, 34px) * 0.52);
	height: calc(var(--rs-soc-size, 34px) * 0.52);
	flex: 0 0 auto;
}

/* ---------- Etiketė ant nuotraukos (tik jei yra video) ---------- */
.rs-photo { position: relative; }
.elementor-element.rs-photo-label {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	width: auto;
	margin: 0;
	pointer-events: none;
}
.rs-video-label {
	display: inline-block;
	color: var(--rs-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	line-height: 1;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9);
}

/* Video modalas turi būti virš Elementor popup'o. */
.rs-modal { z-index: 100000; }

/* ---------- Partneriai ---------- */
.rs-partners {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--rs-gap, 16px);
	--rs-partner-cols: 5;
}
.rs-partner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 28px;
	border: 1px solid var(--rs-border);
	border-radius: 14px;
	background: var(--rs-surface);
	text-decoration: none;
	transition: border-color .25s ease, transform .25s ease;
}
a.rs-partner:hover,
a.rs-partner:focus-visible {
	border-color: var(--rs-accent);
	transform: translateY(-3px);
}
.rs-partner img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.rs-partner__name {
	color: var(--rs-text);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}
.rs-partner--empty {
	border-style: dashed;
	background: transparent;
}
.rs-partner--empty span {
	color: var(--rs-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

/* Dydžiai */
.rs-partners--xl .rs-partner { width: min(100%, 620px); height: 150px; }
.rs-partners--lg .rs-partner { width: min(100%, 320px); height: 110px; }
.rs-partners--md .rs-partner {
	width: calc((100% - (var(--rs-partner-cols) - 1) * var(--rs-gap, 16px)) / var(--rs-partner-cols));
	height: 96px;
}

@media (max-width: 1024px) {
	.rs-partners--md .rs-partner { width: calc((100% - 2 * var(--rs-gap, 16px)) / 3); }
}
@media (max-width: 767px) {
	.rs-partners--md .rs-partner { width: calc((100% - var(--rs-gap, 16px)) / 2); }
	.rs-partners--xl .rs-partner { height: 120px; }
}
