/*
Theme Name: Olympic.md
Theme URI: https://olympic.md
Author: CNOS
Description: Temă editorială modernă, cu animații, pentru Comitetul Național Olimpic și Sportiv din Republica Moldova. Hero cu numărătoare inversă, știri în grilă bento cu filtre, Team Moldova și medaliații (cu pluginul „Sportivi CNOS”), video, ediții olimpice, publicații și parteneri pe bandă continuă.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olympicmd
Tags: news, blog, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks, editor-style
*/

/* ───────── Tokens ───────── */
:root {
	--navy: #0A1A3A;
	--navy-2: #12244A;
	--navy-3: #16284F;
	--navy-deep: #06122B;
	--line-dark: #1C2E57;
	--blue: #0046AE;
	--blue-dark: #00307A;
	--gold: #FFD200;
	--red: #C8102E;
	--ink: #0E1525;
	--ink-2: #1F2737;
	--muted: #5B6478;
	--muted-2: #3E4759;
	--on-dark: #C9D2E3;
	--on-dark-2: #A9B4CC;
	--bg: #F4F5F7;
	--white: #FFFFFF;
	--line: #E3E6EC;
	--line-2: #CDD2DC;
	--ph: #D9DDE5;

	--font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--font-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--radius: 18px;
	--radius-lg: 22px;
	--container: 1360px;
	--gutter: 24px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ───────── Bază ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--font-body); font-size: 16px; line-height: 1.5;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--gold); color: var(--navy); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-wide { max-width: calc(var(--container) + 48px); margin: 0 auto; padding-left: var(--gutter); }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* ───────── Animații ───────── */
@keyframes om-up { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes om-kb { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes om-mq { to { transform: translateX(-50%); } }
@keyframes om-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes om-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes om-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Animații la încărcare (hero). „translate” lasă „transform” liber pentru hover. */
.anim-in { animation: om-up .9s var(--ease) both; animation-delay: var(--d, 0ms); }
/* Apariție la derulare — doar când JS e activ. */
.om-js [data-reveal] { opacity: 0; translate: 0 32px; }
.om-js [data-reveal].is-in { animation: om-up .8s var(--ease) both; animation-delay: var(--d, 0ms); }

.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(5px); }

/* ───────── Tipografie ───────── */
.eyebrow { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--red { color: var(--red); }
.eyebrow--blue { color: var(--blue); }
.eyebrow--gold { color: var(--gold); }

.section-title, .page-title, .single-title, .hero-title {
	margin: 0; font-family: var(--font-display); font-weight: 900; line-height: .95; text-transform: uppercase;
}
.section-title { font-size: clamp(38px, 4.6vw, 64px); }
.section-title--md { font-size: clamp(30px, 3.2vw, 44px); }
.section-title--xl { font-size: clamp(44px, 5.4vw, 72px); line-height: .92; }
.lead-sm { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted-2); max-width: 440px; }
.lead-sm--light { color: var(--on-dark); }
.meta { font-size: 14px; color: var(--muted); }

/* ───────── Butoane, chip-uri, badge-uri ───────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 0 22px; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 0 28px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #FFE04D; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .1); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
	font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip--dark { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--white); }
.chip--dark:hover { border-color: var(--gold); color: var(--white); }

.badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; line-height: 1.2; }
.badge--gold { background: var(--gold); color: var(--navy); }
.badge--dark { background: var(--navy); color: var(--white); }
a.badge--gold:hover { color: var(--navy); }

.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }

.icon-btn {
	width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(255, 255, 255, .06); color: var(--white);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--gold); }

.glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

.tricolor { display: flex; height: 6px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--blue); }
.tricolor span:nth-child(2) { background: var(--gold); }
.tricolor span:nth-child(3) { background: var(--red); }
.tricolor--sweep { width: 220px; border-radius: 999px; overflow: hidden; transform-origin: left; animation: om-sweep 1.2s cubic-bezier(.7, 0, .2, 1) .5s both; }

/* ───────── Imagini / substituenți ───────── */
.media { position: relative; overflow: hidden; background: var(--ph); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-ph {
	position: absolute; inset: 0; background-color: var(--navy-3);
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px);
}
.media--thumb { width: 96px; height: 72px; border-radius: 10px; flex-shrink: 0; }
.media--thumb .media-ph { background-color: var(--ph); background-image: repeating-linear-gradient(135deg, rgba(10, 26, 58, .06) 0 12px, transparent 12px 24px); }

/* ───────── Bara de sus + antet ───────── */
.site-top { position: relative; z-index: 60; }
.has-overlay-header .site-top { position: absolute; top: 0; left: 0; right: 0; }

.topbar { background: var(--navy-deep); color: var(--on-dark); font-size: 13px; }
.has-overlay-header .topbar { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.topbar-inner { min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: var(--white); }
.topbar-list, .social, .lang { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar-list li { position: relative; }
.topbar-list .sub-menu {
	display: none; position: absolute; top: 100%; left: -12px; z-index: 70; list-style: none; margin: 0; padding: 8px 0; min-width: 220px;
	background: var(--navy-2); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.topbar-list .sub-menu a { display: block; padding: 8px 14px; }
.topbar-list li:hover > .sub-menu, .topbar-list li:focus-within > .sub-menu { display: block; }
.topbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lang { gap: 12px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18); }
.lang .current-lang a { color: var(--white); font-weight: 600; }

.site-header { background: var(--navy); color: var(--white); position: relative; transition: transform .35s var(--ease), background-color .3s; }
.has-overlay-header .site-header { background: transparent; }
.site-header.is-stuck {
	position: fixed; top: 0; left: 0; right: 0;
	background: rgba(6, 18, 43, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18); animation: om-drop .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header.is-stuck { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; transition: padding .3s; }
.is-stuck .header-inner { padding-top: 10px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--white); min-width: 0; }
.brand:hover { color: var(--white); }
.brand-logo { width: auto; height: 52px; transition: height .3s; }
.is-stuck .brand-logo { height: 42px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.brand-tag { font-size: 12px; color: var(--on-dark-2); margin-top: 4px; }

.header-nav { display: flex; align-items: center; gap: 20px; }
.primary-nav { padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { color: var(--white); padding: 11px 16px; border-radius: 999px; display: block; transition: background .2s, color .2s; }
.nav-list > li > a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav-list > .current-menu-item > a, .nav-list > .current-menu-ancestor > a, .nav-list > .current_page_item > a { background: var(--white); color: var(--navy); }
.nav-list .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; list-style: none; margin: 0; padding: 10px; min-width: 260px;
	background: var(--white); border-radius: 16px; box-shadow: 0 24px 50px rgba(10, 26, 58, .22); font-weight: 500;
	opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .2s, translate .2s var(--ease), visibility 0s .2s;
}
.nav-list .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-list .sub-menu a { color: var(--ink); padding: 10px 14px; border-radius: 10px; display: block; }
.nav-list .sub-menu a:hover { color: var(--blue); background: var(--bg); }
.nav-list .sub-menu .sub-menu { top: -10px; left: 100%; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.submenu-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.site-search { background: var(--navy-2); padding: 20px 0; border-top: 1px solid var(--line-dark); }
.search-form { display: flex; gap: 10px; max-width: 720px; }
.search-input { flex: 1; min-width: 0; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }

/* Bara de progres la citire */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 80; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold), var(--red)); transform: scaleX(0); transform-origin: left; }
.admin-bar .read-progress { top: 32px; }

/* ───────── Hero ───────── */
.hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; display: flex; flex-direction: column; min-height: min(100svh, 940px); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-img, .hero-bg-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: om-kb 9s ease-out both; }
.hero-bg-ph { display: block; background-color: var(--navy-3); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 18, 43, .95) 0%, rgba(6, 18, 43, .62) 55%, rgba(6, 18, 43, .25) 100%), linear-gradient(transparent 55%, rgba(6, 18, 43, .7)); }
.hero-inner {
	position: relative; z-index: 2; flex-grow: 1; width: 100%;
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px;
	padding-top: 180px; padding-bottom: 56px;
}
.hero-text { flex: 1 1 640px; min-width: 0; max-width: 900px; display: flex; flex-direction: column; gap: 24px; }
.pill-live {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
	background: rgba(255, 210, 0, .14); border: 1px solid rgba(255, 210, 0, .5); color: var(--gold);
	font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px;
}
.pill-live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); animation: om-pulse 1.6s ease-in-out infinite; }
.hero-title { font-size: clamp(48px, 7vw, 96px); line-height: .92; }
.hero-title--long { font-size: clamp(40px, 5.2vw, 72px); }
.hero-title a { color: var(--white); }
.hero-title a:hover { color: var(--white); }
.hero-line { display: block; }
.hero-line.is-gold { color: var(--gold); }
.hero-lead { margin: 0; max-width: 580px; font-size: 18px; line-height: 1.6; color: var(--on-dark); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.countdown { flex: 0 1 400px; min-width: 0; padding: 26px; border-radius: 22px; display: flex; flex-direction: column; gap: 18px; }
.countdown-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.countdown-cell { background: rgba(6, 18, 43, .55); border-radius: 14px; padding: 14px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown-num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-unit { font-size: 11px; color: var(--on-dark-2); text-transform: uppercase; letter-spacing: .06em; }
.countdown-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.countdown-foot a { color: var(--white); font-weight: 700; }

/* Bandă care derulează */
.marquee-wrap, .ticker { overflow: hidden; }
.marquee { display: flex; width: max-content; animation: om-mq 38s linear infinite; }
.marquee--slow { animation-duration: 70s; }
.marquee-wrap:hover .marquee, .ticker:hover .marquee { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; gap: 16px; padding-right: 16px; list-style: none; margin: 0; }
.ticker { position: relative; z-index: 2; background: var(--gold); color: var(--navy); padding: 14px 0; }
.ticker .marquee-group { gap: 40px; padding-right: 40px; }
.ticker-item { display: flex; align-items: center; gap: 40px; font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ticker-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--navy); }

/* ───────── Secțiuni ───────── */
.section { padding-top: 96px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; margin-bottom: 32px; }
.section-head--tight { margin-bottom: 24px; }
.band--navy { background: var(--navy); color: var(--white); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters--pill { gap: 4px; padding: 6px; background: var(--white); border-radius: 999px; box-shadow: 0 1px 2px rgba(10, 26, 58, .06); }
.filters--pill .chip { border: 0; background: transparent; }
.filters--pill .chip.is-active { background: var(--navy); color: var(--white); }
.filters--links { margin-top: 24px; }
.page-hero .chip { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--white); }
.page-hero .chip:hover { border-color: var(--gold); }
.page-hero .chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.filters-empty { margin: 0 0 8px; padding: 24px; background: var(--white); border-radius: var(--radius); color: var(--muted-2); }
.filters-empty a { font-weight: 700; margin-left: 6px; }

/* Carduri de știri (bento + grile) */
.bento, .grid--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); grid-auto-flow: dense; gap: 20px; }
.card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); min-height: 280px; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(10, 26, 58, .18); }
.card[hidden] { display: none; }
.card--feature { grid-column: span 2; grid-row: span 2; min-height: 580px; }
.card-link { position: absolute; inset: 0; display: block; color: var(--white); }
.card-link:hover { color: var(--white); }
.card-media { position: absolute; inset: 0; background: var(--navy-3); }
.card-media img { transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
	padding: 22px; background: linear-gradient(transparent 25%, rgba(6, 18, 43, .94));
}
.card-date { font-size: 13px; color: var(--on-dark); }
.card-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.card--feature .card-body { padding: 32px; }
.card--feature .card-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; max-width: 640px; }

/* Team Moldova (carusel din plugin) */
.team { position: relative; padding: 96px 0 96px; overflow: hidden; }
.team-head { position: relative; }
.bgword {
	position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; white-space: nowrap;
	font-family: var(--font-display); font-weight: 900; font-size: clamp(120px, 16vw, 240px); line-height: 1; text-transform: uppercase;
	color: transparent;
}
.bgword--dark { top: 24px; -webkit-text-stroke: 1.5px rgba(10, 26, 58, .12); }
.bgword--light { -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); }
.bgword--bottom { bottom: -40px; text-align: left; left: -10px; font-size: clamp(140px, 18vw, 260px); }
.team-track.cnos-carousel { padding-right: var(--gutter); position: relative; }
.team-track > .cnos-card { flex: 0 0 280px; height: 400px; border-radius: 22px; }
.team-more {
	flex: 0 0 280px; height: 400px; border-radius: 22px; background: var(--gold); color: var(--navy);
	display: flex; flex-direction: column; justify-content: space-between; padding: 26px; scroll-snap-align: start;
	transition: transform .35s var(--ease), box-shadow .35s;
}
.team-more:hover { color: var(--navy); transform: translateY(-6px); box-shadow: 0 22px 44px rgba(10, 26, 58, .18); }
.team-more-num { font-family: var(--font-display); font-weight: 900; font-size: 120px; line-height: .8; }
.team-more-text { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }

/* Medaliați */
.medalists { position: relative; overflow: hidden; }
.medalists .split { position: relative; padding-top: 104px; padding-bottom: 104px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.split-intro { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.split-intro .btn { margin-top: 8px; }

/* Video */
.videos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.videos--single { grid-template-columns: minmax(0, 1fr); }
.videos-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.video { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: var(--white); min-height: 200px; flex: 1; }
.video:hover { color: var(--white); }
.video--main { aspect-ratio: 16 / 9; }
.video-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video:hover .video-img { transform: scale(1.06); }
.video-shade { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: linear-gradient(transparent 35%, rgba(6, 18, 43, .9)); }
.video-shade--row { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 14px; padding: 20px; }
.video-play { width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.video-play--lg { width: 84px; height: 84px; }
.video:hover .video-play { transform: scale(1.1); }
.video-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.video-title--lg { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; text-transform: uppercase; max-width: 560px; }

/* Ediții olimpice */
.past-section { padding: 72px 0 32px; }
.past {
	width: 210px; min-height: 160px; padding: 22px; border-radius: 18px; background: var(--white); color: var(--ink);
	display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-top: 4px solid var(--navy);
	transition: transform .35s var(--ease), box-shadow .35s;
}
.marquee-group li:nth-child(3n+1) .past { border-top-color: var(--blue); }
.marquee-group li:nth-child(3n+2) .past { border-top-color: var(--gold); }
.marquee-group li:nth-child(3n) .past { border-top-color: var(--red); }
a.past:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 18px 36px rgba(10, 26, 58, .12); }
.past-year { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: .85; color: var(--navy); }
.past-city { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.05; text-transform: uppercase; }

/* Promo */
.grid { display: grid; gap: 20px; }
.grid--promos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.promo { display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 36px; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; }
a.promo:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 22px 44px rgba(10, 26, 58, .12); }
.promo--blue { background: var(--blue); color: var(--white); }
a.promo--blue:hover { color: var(--white); }
.promo-title { font-family: var(--font-display); font-weight: 900; font-size: 48px; line-height: .95; text-transform: uppercase; }
.promo-text { font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.promo--blue .promo-text { color: #DCE6FA; }
.promo-cta { margin-top: auto; font-weight: 700; color: var(--blue); }
.promo--blue .promo-cta { color: var(--white); }

/* Parteneri */
.partners { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0; margin-top: 56px; }
.partners-title { margin: 0 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partner {
	width: 180px; height: 84px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px;
	display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted-2);
	transition: border-color .2s;
}
a.partner:hover { border-color: var(--navy); color: var(--ink); }
.partner img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
a.partner:hover img { filter: none; opacity: 1; }
.partners-note { margin: 24px 0 0; font-size: 14px; color: var(--muted); }

/* ───────── Pagini interioare ───────── */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero > .container { padding-top: 48px; padding-bottom: 56px; }
.page-title { font-size: clamp(42px, 6vw, 80px); margin-top: 16px; }
.page-desc { margin: 16px 0 0; max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--on-dark); }
.page-desc p { margin: 0; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: var(--on-dark-2); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .container > * { animation: om-up .8s var(--ease) both; }
.page-hero .container > *:nth-child(2) { animation-delay: .1s; }
.page-hero .container > *:nth-child(3) { animation-delay: .2s; }
.page-hero .container > *:nth-child(4) { animation-delay: .3s; }
.page-body { max-width: 880px; }
.page-figure { margin: 0 0 32px; border-radius: 18px; overflow: hidden; }
.page-hero--404 .search-404 { margin: 28px 0 20px; }
.empty { padding: 40px; background: var(--white); border-radius: var(--radius); color: var(--muted-2); }
.empty .search-form { margin-top: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb span[aria-hidden] { opacity: .6; }

.pagination { margin-top: 40px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a, .pagination span {
	min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--white); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600;
}
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ───────── Articol ───────── */
.single-head { padding-top: 48px; }
.single-head-inner { max-width: 960px; margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.single-head .badge { font-size: 12px; }
.single-title { font-size: clamp(38px, 5.4vw, 68px); }
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.single-figure { margin-top: 32px; margin-bottom: 0; }
.single-image { width: 100%; max-height: 680px; object-fit: cover; border-radius: 24px; }
.single-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.single-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; padding-bottom: 88px; }
.share { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 96px; }
.share-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share-btn { width: 44px; height: 44px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--navy); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.share-btn:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.share-btn.is-copied { background: var(--gold); border-color: var(--gold); }
.single-main { flex: 999 1 560px; min-width: 0; max-width: 740px; }
.single-side { flex: 1 1 300px; min-width: 0; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.side-game { background: var(--navy); color: var(--white); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.side-game .game-name { font-family: var(--font-display); font-size: 38px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.side-game .game-dates { font-size: 14px; color: var(--on-dark); }
.side-game .btn { margin-top: 12px; align-self: flex-start; }
.side-title, .widget-title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.related-item { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.related-item:hover { color: var(--blue); }
.related-item > span { display: flex; flex-direction: column; gap: 6px; }
.related-item .media img { transition: transform .6s var(--ease); }
.related-item:hover .media img { transform: scale(1.08); }
.related-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.tags { list-style: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.tags .chip { min-height: 38px; padding: 0 14px; font-weight: 500; }

/* Conținutul din editor */
.entry-content { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry-content > * { margin-top: 0; margin-bottom: 22px; }
.entry-content > p:first-child { font-size: 21px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-display); text-transform: uppercase; line-height: 1.05; color: var(--ink); margin-top: 40px; margin-bottom: 16px; }
.entry-content h2 { font-size: 36px; font-weight: 800; }
.entry-content h3 { font-size: 27px; font-weight: 700; }
.entry-content h4 { font-size: 21px; font-weight: 700; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 6px; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 32px 0; padding: 6px 0 6px 28px; border-left: 4px solid var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.2; color: var(--navy); }
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: 15px; color: var(--muted); }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--white); font-weight: 700; }
.entry-content .wp-block-button__link { background: var(--navy); color: var(--white); border-radius: 999px; padding: 14px 24px; font-weight: 700; text-decoration: none; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content iframe { max-width: 100%; border-radius: 14px; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content--full > * { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content--full > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.page-links { margin-top: 24px; display: flex; gap: 8px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.has-navy-color { color: var(--navy) !important; } .has-navy-background-color { background-color: var(--navy) !important; }
.has-blue-color { color: var(--blue) !important; } .has-blue-background-color { background-color: var(--blue) !important; }
.has-gold-color { color: var(--gold) !important; } .has-gold-background-color { background-color: var(--gold) !important; }
.has-red-color { color: var(--red) !important; } .has-red-background-color { background-color: var(--red) !important; }
.has-mist-color { color: var(--bg) !important; } .has-mist-background-color { background-color: var(--bg) !important; }
.has-white-color { color: var(--white) !important; } .has-white-background-color { background-color: var(--white) !important; }

.widget { font-size: 15px; }
.widget ul { list-style: none; margin: 12px 0 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ───────── Subsol ───────── */
.site-footer { background: var(--navy-deep); color: var(--on-dark); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 72px; padding-bottom: 24px; }
.footer-about { display: flex; flex-direction: column; gap: 18px; }
.footer-cta, .footer-name { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--white); text-transform: uppercase; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 480px; }
.newsletter { display: flex; flex-wrap: wrap; gap: 10px; max-width: 500px; }
.newsletter input { flex: 1 1 220px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid #2A3A5E; background: var(--navy); color: var(--white); font: 500 15px var(--font-body); }
.newsletter input::placeholder { color: var(--on-dark-2); }
.newsletter .btn { min-height: 52px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-title { color: var(--white); font-weight: 700; margin-bottom: 4px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold); }
.footer-word {
	text-align: center; white-space: nowrap; margin-top: 24px; user-select: none;
	font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 14.5vw, 230px); line-height: .8; color: #0D1E44; text-transform: uppercase; overflow: hidden;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-2); }
.social--footer a { color: var(--on-dark-2); }

/* ───────── Integrare cu pluginul Sportivi CNOS ───────── */
.has-overlay-header .cnos-hero-inner { padding-top: 170px; }
.has-overlay-header .cnos-archive-head { padding-top: 190px; }
.cnos-page .site-main { background: var(--bg); }
.cnos-container { max-width: var(--container); }
.medalists .cnos-row-avatar .cnos-photo--empty { background-color: var(--navy-3); }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
	.split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.videos { grid-template-columns: minmax(0, 1fr); }
	.videos-side { flex-direction: row; }
	.countdown { flex-basis: 100%; max-width: 480px; }
}

@media (max-width: 1024px) {
	.nav-toggle { display: inline-flex; }
	.header-inner { flex-wrap: wrap; }
	.header-nav {
		display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 16px;
		max-height: calc(100svh - 90px); overflow-y: auto;
	}
	.nav-open .header-nav { display: flex; }
	.nav-open .site-header { background: var(--navy-deep); }
	.primary-nav { border-radius: 20px; padding: 8px; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; }
	.nav-list > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.nav-list > li:last-child { border-bottom: 0; }
	.nav-list > li > a { flex: 1; padding: 14px 12px; border-radius: 12px; }
	.nav-list .sub-menu { position: static; display: none; flex-basis: 100%; box-shadow: none; background: transparent; padding: 0 0 10px 12px; min-width: 0; opacity: 1; visibility: visible; translate: none; }
	.nav-list .sub-menu::before { display: none; }
	.nav-list .sub-menu a { color: var(--on-dark); padding: 10px 12px; }
	.nav-list .sub-menu a:hover { background: transparent; color: var(--gold); }
	.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: none; }
	.nav-list li.is-open > .sub-menu { display: block; }
	.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; color: var(--white); cursor: pointer; }
	.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.header-actions { justify-content: space-between; }
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-about { grid-column: 1 / -1; }
	.share { position: static; flex-direction: row; align-items: center; flex-basis: 100%; }
}

@media (max-width: 782px) {
	.admin-bar .site-header.is-stuck, .admin-bar .read-progress { top: 46px; }
}

@media (max-width: 700px) {
	:root { --gutter: 16px; }
	.topbar-nav { display: none; }
	.brand-name { font-size: 24px; }
	.brand-tag { display: none; }
	.brand-logo { height: 42px; }
	.hero { min-height: 0; }
	.hero-inner { padding-top: 150px; padding-bottom: 32px; gap: 28px; }
	.hero-title { font-size: clamp(40px, 11vw, 56px); }
	.hero-title--long { font-size: clamp(34px, 9vw, 46px); }
	.hero-lead { font-size: 16px; }
	.hero-ctas .btn { flex: 1 1 auto; }
	.countdown { padding: 18px; }
	.countdown-num { font-size: 34px; }
	.ticker-item { font-size: 20px; }
	.section { padding-top: 64px; }
	.filters--pill { border-radius: 22px; }
	.card--feature { grid-column: auto; grid-row: auto; min-height: 420px; }
	.card { min-height: 260px; }
	.team { padding: 64px 0; }
	.team-track > .cnos-card, .team-more { flex-basis: 240px; height: 340px; }
	.team-more-num { font-size: 88px; }
	.medalists .split { padding-top: 72px; padding-bottom: 72px; }
	.videos-side { flex-direction: column; }
	.video-shade { padding: 20px; }
	.video-play--lg { width: 64px; height: 64px; }
	.promo { padding: 28px; min-height: 0; }
	.promo-title { font-size: 40px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); padding-top: 56px; }
	.footer-cta, .footer-name { font-size: 32px; }
	.entry-content { font-size: 17px; }
	.entry-content blockquote { font-size: 24px; }
	.search-form { flex-direction: column; }
	.has-overlay-header .cnos-hero-inner { padding-top: 140px; }
	.has-overlay-header .cnos-archive-head { padding-top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.om-js [data-reveal] { opacity: 1 !important; translate: none !important; }
	.marquee { transform: none !important; }
}

@media print {
	.site-top, .site-footer, .share, .single-side, .partners, .read-progress, .ticker { display: none !important; }
	body { background: #fff; }
}
