/* EUROPE DIRECT Teleorman — site styles */
:root {
  --eu: #003399;
  --eu-deep: #0b1f5c;
  --eu-ink: #13204a;
  --gold: #ffcc00;
  --gold-soft: #fff4c2;
  --ink: #1b2236;
  --muted: #5d6680;
  --line: #e3e7f0;
  --bg: #ffffff;
  --paper: #ffffff;
  --eu-bright: #1d4fc4;
  --gold-light: #ffe27a;
  --on-blue: #ffffff;
  --on-blue-soft: #dce5ff;
  --on-blue-muted: #c9d3f5;
  --action: #1e73be;
  --motto: #1e5bb8;
  --rule: #8a8f99;
  --frame: #333a48;
  --scroll-thumb: #9aa6c4;
  --field-line: #cfd6e6;
  --action-ch: 30 115 190;
  --ok-bg: #e6f6ec;
  --ok-ink: #0f5a2b;
  --err-bg: #fdecec;
  --err-ink: #8a1c1c;
  --shade: 16 30 80;
  --shadow-lift: 0 2px 4px rgb(var(--shade) / .08), 0 18px 36px rgb(var(--shade) / .14);
  --soft: #f4f6fb;
  --link: #1a47c7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 30, 80, .06), 0 8px 24px rgba(16, 30, 80, .07);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 18px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--eu); }
h1, h2, h3 { font-family: var(--serif); color: var(--eu-ink); line-height: 1.2; letter-spacing: -.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 99; background: var(--paper); padding: 8px 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* browser surfaces, themed from the palette */
::selection { background: var(--gold); color: var(--eu-deep); }
html { accent-color: var(--eu); caret-color: var(--eu); scrollbar-color: var(--scroll-thumb) var(--soft); }
::placeholder { color: var(--muted); opacity: 1; }
h1, h2, h3, .pi-src, .slide-cap p { text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* top bar + header */
.topbar { background: var(--eu-deep); color: var(--on-blue-soft); font-size: .85rem; }
.topbar a { color: var(--paper); text-decoration: none; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 6px 20px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 16px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--eu); }
.eu-flag { border-radius: 3px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font: 700 1.3rem/1.1 var(--sans); letter-spacing: .02em; color: var(--eu); }
.brand-text span { font: 600 1.05rem/1.1 var(--sans); color: var(--eu-ink); }
.search { margin-left: auto; }
.search input, .nav-mobile input { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .95rem; width: 240px; background: var(--soft); }
.nav-main { border-top: 1px solid var(--line); }
.nav-main .wrap { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-main a { padding: 12px 14px; text-decoration: none; color: var(--eu-ink); font-weight: 600; font-size: .98rem; border-bottom: 3px solid transparent; }
.nav-main a:hover, .nav-main a[aria-current] { color: var(--eu); border-bottom-color: var(--gold); }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; border: 1px solid var(--line); }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary span { display: block; width: 22px; height: 2px; background: var(--eu-ink); }
.nav-mobile { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 20px; display: grid; }
.nav-mobile a { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--eu-ink); font-weight: 600; }
.nav-mobile form { margin-top: 12px; }
.nav-mobile input { width: 100%; }

/* hero */
.hero { background: linear-gradient(180deg, var(--soft), var(--paper)); padding: 28px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.hero-main { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hero-main:hover .hero-img img { transform: scale(1.02); }
.hero-text { padding: 20px 26px 26px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eu); background: var(--gold-soft); padding: 3px 10px; border-radius: 999px; }
.hero-text h1 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 12px 0 10px; }
.hero-text h1 a, .mini h3 a, .card h3 a { color: inherit; text-decoration: none; }
.hero-text h1 a:hover, .mini h3 a:hover, .card h3 a:hover { color: var(--eu); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.hero-text p { color: var(--muted); margin: 0; }
.hero-side { display: grid; gap: 14px; align-content: start; }
.mini { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: var(--paper); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.mini-img { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--soft); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini time { font-size: .8rem; color: var(--muted); }
.mini h3 { font-size: 1.02rem; margin: 2px 0 0; font-family: var(--sans); font-weight: 700; }

/* sections */
.band { padding: 44px 0; }
.band-soft { background: var(--soft); }
.band-blue { background: var(--eu); color: var(--paper); position: relative; overflow: hidden; }
.band-blue::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 2px dashed rgba(255, 204, 0, .35); }
.band-blue h2 { color: var(--paper); }
.muted-inv { color: var(--on-blue-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.7rem; position: relative; padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: var(--gold); }
.more { font-weight: 700; text-decoration: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* cards */
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(var(--shade) / .08), 0 16px 32px rgb(var(--shade) / .1); }
.card-img { aspect-ratio: 16/10; background: var(--soft); overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 20px; }
.card h3 { font-size: 1.12rem; margin: 6px 0 8px; font-family: var(--sans); font-weight: 700; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.chip { background: var(--gold-soft); color: var(--eu-deep); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .78rem; text-decoration: none; }
a.chip:hover { background: var(--gold); }
.thumb-ph { width: 100%; height: 100%; min-height: 100px; display: grid; place-items: center; background: linear-gradient(135deg, var(--eu), var(--eu-deep)); color: var(--gold); font-size: 2rem; }

/* themes */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; position: relative; z-index: 1; }
.theme { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; text-decoration: none; background: var(--eu-deep); }
.theme img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .25s, transform .4s; }
.theme span { position: absolute; inset: auto 0 0 0; padding: 12px 14px; color: var(--paper); font-weight: 700; line-height: 1.25; background: linear-gradient(0deg, rgba(5, 15, 55, .9), transparent); }
.theme:hover img { opacity: .8; transform: scale(1.04); }
.theme:hover span { color: var(--gold); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tile { display: grid; gap: 8px; text-decoration: none; color: var(--eu-ink); font-weight: 700; text-align: center; background: var(--paper); padding: 12px; border-radius: 12px; box-shadow: var(--shadow); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tile:hover { color: var(--eu); }

/* press */
.press-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.press { display: grid; gap: 8px; text-decoration: none; color: var(--eu-ink); }
.press-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow); display: block; }
.press-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s; }
.press:hover .press-img img { transform: scale(1.05); }
.press-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-align: center; line-height: 1.3; }
.press:hover .press-title { color: var(--eu); }
.press-archive { margin-top: 40px; }

/* cta */
.cta { background: linear-gradient(120deg, var(--eu) 0%, var(--eu-deep) 100%); color: var(--paper); }
.cta h2 { color: var(--paper); margin: 0 0 6px; }
.cta p { margin: 0; color: var(--on-blue-soft); }
.cta a:not(.btn) { color: var(--gold); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 24px; font: 700 1rem var(--sans); background: var(--eu); color: var(--paper); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--eu-deep); color: var(--paper); }
.btn-yellow { background: var(--gold); color: var(--eu-deep); }
.btn-yellow:hover { background: var(--paper); color: var(--eu-deep); }

.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.programs img { border-radius: 12px; display: block; width: 100%; aspect-ratio: 16/7; object-fit: cover; box-shadow: var(--shadow); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 36px; }
.logos a { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; place-items: center; }
.logos img { max-height: 60px; width: auto; }
.logos-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.logos-wide img { max-height: 90px; }

/* single */
.single-top { padding-top: 36px; margin-bottom: 30px; }
.single-top.has-hero { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 36px; align-items: center; }
/* user decision (28.11.2026): article and page bodies span the header width */
.single .wrap-narrow { max-width: 1200px; }
.single:not(.single-page) .prose { font-size: 1.15rem; line-height: 1.7; }
.single-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0 6px; }
.byline { color: var(--muted); margin: 0 0 18px; }
.single-hero { margin: 0; }
.single-hero img { display: block; border-radius: var(--radius); width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: left center; box-shadow: var(--shadow); }
@media (max-width: 800px) { .single-top.has-hero { grid-template-columns: 1fr; gap: 18px; } }
.prose { font-size: 1.08rem; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.prose img { border-radius: 10px; }
.prose figure { margin: 1.4em 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 6px; }
.prose blockquote { position: relative; margin: 1.4em 0; padding: 1em 1.4em 1em 3.2em; background: var(--gold-soft); border-radius: 12px; font-style: italic; }
.prose blockquote::before { content: "„"; position: absolute; left: .45em; top: -.05em; font: 700 3.2rem/1 var(--serif); color: var(--eu); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { word-break: break-word; }
.prose iframe, .prose video { max-width: 100%; border-radius: 10px; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.prose .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.prose .alignleft { float: left; margin: .3em 1.2em .8em 0; }
.prose .alignright { float: right; margin: .3em 0 .8em 1.2em; }
.prose .wp-block-image img { display: block; }
.prose .wp-block-gallery, .prose .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 1.4em 0; }
.prose .wp-block-gallery:has(> .blocks-gallery-grid) { display: block !important; }
.prose .blocks-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.prose .wp-block-gallery figure, .prose .wp-block-gallery li, .prose .gallery figure { margin: 0; width: auto !important; }
.prose .wp-block-gallery img, .prose .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; cursor: zoom-in; }
.prose .wp-block-file { display: flex; gap: 12px; align-items: center; background: var(--soft); padding: 12px 16px; border-radius: 10px; flex-wrap: wrap; }
.prose .wp-block-file__button { background: var(--eu); color: var(--paper); border-radius: 999px; padding: 6px 14px; text-decoration: none; }
.prose .wp-block-file object { display: none; }
.prose::after { content: ""; display: table; clear: both; }
.share { display: flex; gap: 10px; align-items: center; margin: 28px auto; flex-wrap: wrap; color: var(--muted); }
.share a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px auto 40px; }
.prevnext a { display: grid; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--eu-ink); font-weight: 600; }
.prevnext small { color: var(--muted); font-weight: 400; }
.prevnext .r { text-align: right; }

/* listing & pages */
.page { padding: 36px 20px 60px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 6px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; margin: 0; }
.pager { display: flex; justify-content: center; gap: 20px; align-items: center; margin-top: 36px; }
.pager a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; text-decoration: none; font-weight: 700; }
.empty { color: var(--muted); }
.notfound { text-align: center; }
.search-big { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.search-big input { border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font: inherit; width: min(420px, 70vw); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form input, .form textarea { font: inherit; border: 1px solid var(--field-line); border-radius: 10px; padding: 10px 14px; background: var(--paper); }
.form input:focus, .form textarea:focus { border-color: var(--eu); outline: none; box-shadow: 0 0 0 3px rgba(0, 51, 153, .15); }
.hp { position: absolute; left: -9999px; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 22px 24px; }
.contact-card h2 { margin-top: 0; font-size: 1.3rem; }
.free { background: var(--eu); color: var(--paper); border-radius: 10px; padding: 12px 14px; }
.free a { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.notice { padding: 14px 18px; border-radius: 10px; }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.err { background: var(--err-bg); color: var(--err-ink); }

/* footer */
.site-footer { background: var(--eu-deep); color: var(--on-blue-muted); margin-top: 0; padding-top: 44px; font-size: .95rem; }
.site-footer a { color: var(--paper); }
.site-footer .muted { color: var(--on-blue-muted); }
.site-footer h3 { color: var(--paper); font-family: var(--sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 32px; }
.brand-footer .brand-text strong, .brand-footer .brand-text span { color: var(--paper); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plain a { text-decoration: none; }
.plain a:hover { text-decoration: underline; color: var(--gold); }
.disclaimer { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 20px; font-size: .82rem; }
.disclaimer p { margin: 0; }
.copyright { padding: 16px 20px 28px; font-size: .8rem; opacity: .7; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(5, 12, 40, .94); display: grid; place-items: center; z-index: 100; }
.lb img { max-width: 94vw; max-height: 86vh; border-radius: 6px; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); color: var(--paper); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb .x { top: 16px; right: 16px; }
.lb .p { left: 16px; top: 50%; }
.lb .n { right: 16px; top: 50%; }
.lb .c { position: absolute; bottom: 14px; color: var(--on-blue-muted); font-size: .9rem; }

/* responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .press-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  body { font-size: 17px; }
  .search, .nav-main { display: none; }
  .nav-toggle { display: block; }
  .header-in { position: relative; }
  .grid-3 { grid-template-columns: 1fr; }
  .programs { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .page { padding: 28px 16px 48px; }
  .grid-4 { grid-template-columns: 1fr; }
  .press-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .mini { grid-template-columns: 96px 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .r { text-align: left; }
  .brand-text strong { font-size: 1.1rem; }
  .eu-flag { width: 39px; height: 26px; }
  .prose .alignleft, .prose .alignright { float: none; margin: 1em auto; }
  .grid-3, .grid-4 { gap: 12px; }
  .card { flex-direction: row; align-items: stretch; }
  .card-img { width: 112px; flex: none; aspect-ratio: auto; min-height: 100px; }
  .card-body { padding: 10px 12px; }
  .card h3 { font-size: 1rem; margin: 4px 0 0; }
  .card p { display: none; }
  .themes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .theme span { font-size: .85rem; padding: 8px 10px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tile { font-size: .8rem; padding: 8px; }
  .logos { grid-template-columns: 1fr 1fr; }
  .band { padding: 32px 0; }
  .section-head h2 { font-size: 1.4rem; }
}

/* ---------- homepage: slider + old WordPress layout ---------- */
.slider { position: relative; height: clamp(260px, 37vw, 520px); overflow: hidden; background: var(--eu-deep); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.on { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); pointer-events: none; }
.slide-cap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 9%; color: var(--paper); pointer-events: none; }
.slide-cap h2 { font-family: var(--sans); font-weight: 700; color: var(--paper); margin: 0 0 .5em;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); letter-spacing: .01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.slide-cap p { margin: 0; font-size: clamp(1rem, 2vw, 1.75rem); line-height: 1.35; max-width: 1000px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.slide-link { position: absolute; inset: 0; z-index: 3; }
.sl-nav { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 64px; border: 0;
  background: rgba(0, 0, 0, .25); color: var(--paper); font-size: 2.4rem; line-height: 1; cursor: pointer; }
.sl-nav:hover { background: rgba(0, 0, 0, .5); }
.sl-nav.prev { left: 0; border-radius: 0 8px 8px 0; }
.sl-nav.next { right: 0; border-radius: 8px 0 0 8px; }
.sl-dots { position: absolute; bottom: 6px; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 2px; }

.owrap { max-width: 1010px; margin: 0 auto; padding: 28px 20px 40px; }
.ogrid-4, .ogrid-3, .ogrid-2 { display: grid; gap: 20px; }
.ogrid-4 { grid-template-columns: repeat(4, 1fr); }
.ogrid-3 { grid-template-columns: repeat(3, 1fr); }
.ogrid-2 { grid-template-columns: repeat(2, 1fr); }
.otile { text-align: center; }
.otile-img { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); aspect-ratio: 16 / 9; background: var(--soft); }
.otile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.otile-img:hover img { transform: scale(1.04); }
.otile h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; line-height: 1.4; margin: 12px 4px 8px; }
.otile h3 a { color: var(--ink); text-decoration: none; }
.otile h3 a:hover { color: var(--eu); text-decoration: underline; }
.oprog .otile-img { aspect-ratio: 16 / 9; }
.oprog h3 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 400; }
.odiv { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.ohead { font-family: var(--sans); font-size: 1.2rem; font-weight: 500; text-transform: uppercase; color: var(--ink); letter-spacing: .01em; margin: 26px 0 12px; }
.ohead.center { text-align: center; }
.obanner { display: block; }
.obanner img { display: block; width: 100%; height: auto; }
.obanner.framed { border-left: 1px solid var(--frame); border-right: 1px solid var(--frame); padding: 0 0; }
.oedu .obanner { border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.oedu .obanner img { aspect-ratio: 111 / 50; height: auto; object-fit: cover; }
.obanner.square { box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.obanner.square img { aspect-ratio: 1; object-fit: cover; }
.oact { padding: 0 20px; gap: 56px; align-items: center; }
.oact .obanner { border-radius: 22px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.oact .obanner:nth-child(2) { transform: scale(1.12); }
.octa { text-align: center; margin: 34px 0; }
.obtn { display: inline-block; background: var(--action); color: var(--paper); text-decoration: none; padding: 10px 18px; border-radius: 16px; font: 500 1rem/1.3 Arial, var(--sans); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.obtn:hover { background: var(--eu); color: var(--paper); }
.ologos { padding: 0 20px; column-gap: 56px; row-gap: 22px; }
.ologos .obanner { box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.onews { margin-top: 36px; }
.slider .slide-cap, .slider .sl-nav { -webkit-tap-highlight-color: transparent; }
@media (max-width: 800px) {
  .ogrid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ogrid-3 { grid-template-columns: 1fr; }
  .ologos { grid-template-columns: repeat(2, 1fr); padding: 0; column-gap: 14px; row-gap: 14px; }
  .oact { padding: 0 12%; gap: 18px; }
  .oact .obanner:nth-child(2) { transform: none; }
  .otile h3 { font-size: .82rem; }
  .sl-nav { width: 34px; height: 50px; font-size: 1.8rem; }
  .slide-cap p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
  .ogrid-2 { grid-template-columns: 1fr; }
}

/* ---------- "ED Teleorman în presă": one year per page ---------- */
.pp-hero { position: relative; overflow: hidden; color: var(--paper); padding: 56px 0 64px;
  background: radial-gradient(120% 140% at 85% 10%, var(--eu-bright) 0%, var(--eu) 38%, var(--eu-deep) 100%); }
.pp-hero::after { content: ""; position: absolute; right: -90px; top: 50%; width: 420px; aspect-ratio: 1; translate: 0 -50%; pointer-events: none; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-220 -220 440 440'%3E%3Cg fill='%23ffcc00'%3E%3Cpath id='s' d='M0-200l9 28h29l-23 17 9 28-24-17-24 17 9-28-23-17h29z'/%3E%3Cuse href='%23s' transform='rotate(30)'/%3E%3Cuse href='%23s' transform='rotate(60)'/%3E%3Cuse href='%23s' transform='rotate(90)'/%3E%3Cuse href='%23s' transform='rotate(120)'/%3E%3Cuse href='%23s' transform='rotate(150)'/%3E%3Cuse href='%23s' transform='rotate(180)'/%3E%3Cuse href='%23s' transform='rotate(210)'/%3E%3Cuse href='%23s' transform='rotate(240)'/%3E%3Cuse href='%23s' transform='rotate(270)'/%3E%3Cuse href='%23s' transform='rotate(300)'/%3E%3Cuse href='%23s' transform='rotate(330)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: ring-spin 140s linear infinite; }
.pp-hero .wrap { position: relative; z-index: 1; }
.pp-hero h1 { color: var(--paper); font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0 0 12px; }
.pp-lead { max-width: 640px; margin: 0; color: var(--on-blue-soft); font-size: 1.12rem; }
.pp-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 34px 0 0; }
.pp-stats div { display: flex; flex-direction: column-reverse; }
.pp-stats dd { margin: 0; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.pp-stats dt { margin-top: 6px; font-size: .9rem; color: var(--on-blue-muted); text-transform: lowercase; }

.pp-years { background: var(--paper); border-bottom: 1px solid var(--line); }
.pp-years-in { display: flex; gap: 8px; padding-top: 14px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.pp-years-in::-webkit-scrollbar { display: none; }
.pp-years a { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 18px; border-radius: 999px; text-decoration: none;
  font: 700 1.05rem/1 var(--sans); color: var(--eu-ink); background: var(--soft); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-out, ease); }
.pp-years a small { font-size: .78rem; font-weight: 600; color: var(--muted); transition: color .25s; }
.pp-years a:hover { border-color: var(--eu); color: var(--eu); transform: translateY(-2px); }
.pp-years a.on { background: var(--eu); border-color: var(--eu); color: var(--paper); box-shadow: 0 6px 16px rgba(0, 51, 153, .25); }
.pp-years a.on small { color: var(--gold); }

.pp-body { padding-top: 36px; padding-bottom: 56px; }
.py-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.py-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.6rem); }
.py-head p { margin: 0; color: var(--muted); }

.pi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.pi { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); outline-offset: 3px; transition: transform .45s var(--ease-out, ease), box-shadow .45s var(--ease-out, ease); }
.pi:hover, .pi:focus-visible { transform: translateY(-6px); box-shadow: 0 2px 4px rgb(var(--shade) / .08), 0 20px 38px rgb(var(--shade) / .16); }
.pi-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.pi-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 1.2s var(--ease-out, ease), object-position 2.4s var(--ease-in-out, ease); }
.pi:hover .pi-img img { transform: scale(1.04); object-position: bottom center; }
.pi-ph { display: grid; place-items: center; height: 100%; color: var(--gold); background: var(--eu); }
.pi-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; flex: 1; }
.pi-src { font-weight: 700; color: var(--eu-ink); line-height: 1.3; overflow-wrap: anywhere; }
.pi-date { font-size: .88rem; color: var(--muted); }
.pi-note { font-size: .88rem; line-height: 1.35; color: var(--ink); }
.pi-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 700; color: var(--link); }
.pi-go svg { transition: transform .35s var(--ease-out, ease); }
.pi:hover .pi-go svg { transform: translate(3px, -3px); }

.pp-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.pp-pager a { font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--eu-ink); transition: border-color .25s, color .25s; }
.pp-pager a:hover { border-color: var(--eu); color: var(--eu); }
.press-page .press-archive { margin-top: 40px; }
@media (max-width: 560px) {
  .pp-hero { padding: 40px 0 44px; }
  .pp-hero::after { width: 260px; right: -110px; }
  .pp-stats { gap: 12px 28px; }
  .pi-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pi-body { padding: 10px 12px 12px; }
  .pi-src { font-size: .92rem; }
}

/* ---------- motto + QR code (from the old site header) ---------- */
.hdr-qr { margin-left: auto; width: 64px; height: auto; border-radius: 6px; background: var(--paper); padding: 3px; border: 1px solid var(--line); }
.hdr-qr + .search { margin-left: 0; }
.tagline { margin: 0; background: linear-gradient(90deg, var(--soft), var(--paper) 50%, var(--soft)); border-bottom: 1px solid var(--line); }
.tagline .wrap { display: block; text-align: center; padding-top: 10px; padding-bottom: 10px; font-style: italic; font-size: 1.02rem; letter-spacing: .03em; color: var(--motto); }
@media (max-width: 1000px) { .hdr-qr { width: 48px; padding: 2px; } .hdr-qr ~ .nav-toggle { margin-left: 10px; } }
@media (max-width: 560px) { .tagline .wrap { font-size: .92rem; padding-top: 8px; padding-bottom: 8px; line-height: 1.4; } }

/* ---------- shared page hero (pages, categories, forms) ---------- */
.page-hero { padding: 40px 0 46px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .pp-lead { font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; margin-bottom: 18px; color: var(--on-blue-muted); }
.crumbs a { color: var(--on-blue-soft); text-decoration: none; }
.crumbs a:hover { color: var(--paper); text-decoration: underline; }
.listing-body { padding-top: 36px; }
.form-page { padding-top: 36px; }

/* ---------- static pages: wider body, calmer rhythm ---------- */
.page-body { max-width: 1200px; padding-top: 44px; padding-bottom: 64px; }
.prose-page { font-size: 1.12rem; }
.prose-page > h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.2em 0 .8em; }
.prose-page > h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--gold); margin-bottom: 14px; }
.prose-page > h2:first-child { margin-top: 0; }

/* ---------- "Despre noi" building blocks (classes used in the page content) ---------- */
.ab-intro { display: grid; gap: 4px; padding: 34px 38px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.ab-intro h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.ab-lead { font: 600 clamp(1.2rem, 2.2vw, 1.5rem)/1.45 var(--serif); color: var(--eu-ink); }
.ab-intro p:last-child { margin-bottom: 0; color: var(--muted); }
.ab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 36px; margin: 0 0 1.4em; padding: 6px 0 0; border-top: 1px solid var(--line); }
.ab-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding-top: 22px; }
.ab-ico { grid-row: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold-soft); color: var(--eu); }
.ab-card h3 { grid-row: 1; margin: 0; font-size: 1.2rem; line-height: 1.25; }
.ab-card p { grid-column: 1 / -1; margin: 12px 0 0; font-size: 1rem; color: var(--muted); }
.prose ul.ab-checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.ab-checks li { position: relative; padding-left: 38px; }
.ab-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23003399' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ab-split { display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: center; }
.ab-split h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.2em 0 .8em; }
.ab-split h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--gold); margin-bottom: 14px; }
.ab-stat { display: grid; justify-items: center; text-align: center; padding: 34px 22px; border-radius: 22px; color: var(--paper);
  background: radial-gradient(120% 120% at 80% 0%, var(--eu-bright), var(--eu) 45%, var(--eu-deep)); box-shadow: 0 18px 40px rgba(0, 51, 153, .28); }
.ab-stat-n { font: 700 4.4rem/1 var(--serif); color: var(--gold); }
.ab-stat-t { margin-top: 8px; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.ab-stat-s { margin-top: 6px; font-size: .9rem; color: var(--on-blue-muted); }
.ab-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0 0 1em; }
.prose .ab-member { margin: 0; background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out, ease), box-shadow .45s var(--ease-out, ease); }
.ab-member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.prose .ab-member img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 0; transition: transform .9s var(--ease-out, ease); }
.ab-member:hover img { transform: scale(1.04); }
.prose .ab-member figcaption { display: grid; gap: 4px; text-align: left; padding: 14px 16px 18px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.ab-member figcaption strong { font: 700 1.08rem/1.25 var(--serif); color: var(--eu-ink); }
.ab-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 2.6em; padding: 30px 34px; border-radius: 22px; color: var(--paper);
  background: linear-gradient(120deg, var(--eu), var(--eu-deep)); }
.ab-cta h2 { color: var(--paper); margin: 0 0 6px; font-size: 1.5rem; }
.ab-cta p { margin: 0; color: var(--on-blue-soft); font-size: 1rem; }
.prose .ab-cta .btn { text-decoration: none; }

/* ---------- homepage press: uniform cards ---------- */
.pi-home { grid-template-columns: repeat(4, 1fr); }
.pi-home .pi-img { aspect-ratio: 4 / 3; }

@media (max-width: 900px) {
  .ab-cards, .prose ul.ab-checks { grid-template-columns: 1fr; }
  .ab-split { grid-template-columns: 1fr; gap: 8px; }
  .ab-team { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pi-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ab-intro { padding: 24px 20px; }
  .ab-cta { padding: 24px 22px; }
  .page-hero { padding: 30px 0 34px; }
}

/* ---------- news list: image left (≈40% smaller than the grid card), title right ---------- */
.news-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card-row { display: grid; grid-template-columns: 224px 1fr; gap: 26px; align-items: start; padding: 16px; }
.card-row .card-img { aspect-ratio: 16 / 10; border-radius: 10px; }
.card-row .card-img img, .card-row .thumb-ph { border-radius: 10px; }
.card-row .card-body { padding: 2px 4px 2px 0; display: flex; flex-direction: column; min-height: 100%; }
.card-row .meta { margin: 0; }
.card-row h3 { font: 700 1.3rem/1.3 var(--serif); letter-spacing: -.005em; margin: 6px 0 8px; max-width: 60em; }
.card-row p { font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--link); text-decoration: none; }
.card-more svg { transition: transform .35s var(--ease-out); }
.card-row:hover .card-more svg { transform: translateX(4px); }
.card-row:hover { transform: translateY(-4px); }
@media (max-width: 560px) {
  .news-list { gap: 12px; }
  .card-row { grid-template-columns: 112px 1fr; gap: 12px; padding: 10px; }
  .card-row .card-img { width: auto; min-height: 0; }
  .card-row h3 { font-size: .98rem; margin: 4px 0 0; }
  .card-row p, .card-more { display: none; }
}

/* ---------- footer: free EU phone line banner (from the old site) ---------- */
.ftr-phone { display: block; width: 200px; margin-top: 18px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgb(0 0 0 / .28); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.ftr-phone img { display: block; width: 100%; height: auto; }
.ftr-phone:hover, .ftr-phone:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgb(0 0 0 / .36); }
@media (prefers-reduced-motion: reduce) { .ftr-phone:hover, .ftr-phone:focus-visible { transform: none; } }

/* =====================================================================
   MOTION: the EU circle of 12 stars is the recurring motif.
   Everything is decorative: content is visible without JS, and
   with prefers-reduced-motion only fades remain (see the end of the file).
   ===================================================================== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1); }

/* Page-to-page cross-fade (Chrome/Edge/Safari 18+; ignored elsewhere). Header stays put. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Logo: the 12 stars assemble on first paint, and the circle turns one notch on hover. */
.eu-flag .stars { transform-box: view-box; transform-origin: 405px 270px; transition: transform .9s var(--ease-out); }
.brand:hover .eu-flag .stars, .brand:focus-visible .eu-flag .stars { transform: rotate(30deg); }
.eu-flag .star { transform-box: fill-box; transform-origin: center; }
.site-header .eu-flag .star { animation: star-in .6s var(--ease-out) both; animation-delay: calc(.15s + var(--i) * 55ms); }
@keyframes star-in { from { opacity: 0; scale: .2; rotate: -90deg; } }

/* Motto: gentle fade-up once per page load. */
.tagline .wrap { animation: motto-in 1s var(--ease-out) .35s both; }
@keyframes motto-in { from { opacity: 0; transform: translateY(8px); letter-spacing: .08em; } to { opacity: 1; transform: none; } }

/* Header: soft shadow once the page scrolls (no height change, no layout shift). */
.site-header { transition: box-shadow .3s; }
.scrolled .site-header { box-shadow: 0 6px 24px rgb(var(--shade) / .10); }

/* Main menu: gold underline grows from the centre. */
.nav-main a { position: relative; border-bottom: 0; padding-bottom: 15px; }
.nav-main a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--gold);
  transform: scaleX(0); transition: transform .35s var(--ease-out); }
.nav-main a:hover::after, .nav-main a:focus-visible::after, .nav-main a[aria-current]::after { transform: scaleX(1); }

/* ---------- slider: Ken Burns, staged captions, timed progress dots, slow star ring ---------- */
.slides { z-index: 0; }
.slide.on img { animation: kenburns 9s ease-out both; }
.slide:nth-child(even).on img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.09) translate(-1%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1.09) translate(1%, 0); } to { transform: scale(1.0); } }
.slide-cap > * { opacity: 0; transform: translateY(26px); }
.slide.on .slide-cap > * { animation: cap-in .9s var(--ease-out) forwards; }
.slide.on .slide-cap > :nth-child(1) { animation-delay: .25s; }
.slide.on .slide-cap > :nth-child(2) { animation-delay: .5s; }
@keyframes cap-in { to { opacity: 1; transform: none; } }
.slide-cap h2::after { content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--gold);
  transform: scaleX(0); }
.slide.on .slide-cap h2::after { animation: bar-in .8s var(--ease-out) .75s forwards; }
@keyframes bar-in { to { transform: scaleX(1); } }
.sl-ring { position: absolute; z-index: 1; pointer-events: none; width: min(78vh, 62%); max-width: 560px; aspect-ratio: 1; top: 50%; left: 50%;
  translate: -50% -50%; fill: var(--gold); opacity: .22; mix-blend-mode: screen; animation: ring-spin 120s linear infinite; }
.sl-ring path { animation: twinkle 4.8s ease-in-out infinite; animation-delay: calc(var(--k) * -.4s); }
@keyframes ring-spin { to { rotate: 360deg; } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.sl-dots button { width: 48px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: width .4s var(--ease-out); }
.sl-dots button.on { width: 68px; }
.sl-dots .track { position: relative; display: block; width: 34px; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .45); transition: width .4s var(--ease-out); }
.sl-dots button.on .track { width: 56px; background: rgba(255, 255, 255, .35); }
.sl-dots button:hover .track { background: rgba(255, 255, 255, .7); }
.sl-dots .fill { position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.sl-dots button.on .fill { animation: dot-fill var(--delay, 5s) linear forwards; }
.slider.paused .sl-dots button.on .fill, .slider.paused .slide.on img { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.sl-nav { transition: background .25s, transform .3s var(--ease-out); }
.sl-nav.prev:hover { transform: translateY(-50%) translateX(3px); }
.sl-nav.next:hover { transform: translateY(-50%) translateX(-3px); }

/* ---------- scroll reveal (only below-the-fold elements, only with JS) ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .odiv.rv { transform: scaleX(0); opacity: 1; transition-duration: 1.1s; }
.js .odiv.rv.in { transform: scaleX(1); }
.js .ohead.rv { transform: translateX(-18px); }
.js .ohead.center.rv { transform: translateY(12px); }

/* ---------- tiles, banners, cards ---------- */
.otile-img { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.otile:hover .otile-img, .otile-img:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 34px rgb(var(--shade) / .26); }
.otile-img img { transition: transform .9s var(--ease-out); }
.otile:hover .otile-img img { transform: scale(1.08); }
.otile h3 a { background: linear-gradient(var(--gold), var(--gold)) 50% 100% / 0 2px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease-out), color .2s; }
.otile:hover h3 a, .otile h3 a:focus-visible { background-size: 100% 2px; text-decoration: none; color: var(--eu); }
.obanner { position: relative; overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.obanner:hover, .obanner:focus-visible { transform: translateY(-5px); box-shadow: 0 16px 30px rgb(var(--shade) / .22); }
.obanner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); }
.obanner:hover::after { transform: translateX(120%); transition: transform .9s var(--ease-out); }
.oact .obanner:nth-child(2):hover { transform: scale(1.12) translateY(-5px); }
.obanner.framed:hover { box-shadow: none; }
.card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.card:hover { transform: translateY(-6px); }
.card-img { overflow: hidden; }
.card-img img { transition: transform .9s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.06); }
.press { transition: transform .45s var(--ease-out); }
.press:hover { transform: translateY(-5px) rotate(-.6deg); }

/* ---------- "Ai întrebări" button: breathing halo ---------- */
.obtn { position: relative; transition: transform .35s var(--ease-out), background .25s, box-shadow .35s; animation: halo 3.2s ease-out infinite; }
.obtn:hover, .obtn:focus-visible { transform: translateY(-3px) scale(1.03); animation: none; box-shadow: 0 12px 26px rgb(var(--action-ch) / .45); }
@keyframes halo { 0% { box-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 0 0 0 rgb(var(--action-ch) / .45); } 70%, 100% { box-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 0 0 16px rgb(var(--action-ch) / 0); } }

/* ---------- reading progress on articles (pure CSS, scroll-driven where supported) ---------- */
@supports (animation-timeline: scroll()) {
  /* impeccable-disable-next-line side-tab -- full-width reading-progress bar across the viewport top, not a side tab on a box */
  body:has(.single)::before { content: ""; position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 4px; pointer-events: none;
    background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; transform: scaleX(0);
    animation: read-progress linear both; animation-timeline: scroll(root); }
  @keyframes read-progress { to { transform: scaleX(1); } }
}
.js .prose img.fade { opacity: 0; transform: scale(.985); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .prose img.fade.loaded { opacity: 1; transform: none; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--eu-deep); background: var(--gold); box-shadow: 0 8px 22px rgb(var(--shade) / .28);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.scrolled-far .to-top { opacity: 1; transform: none; pointer-events: auto; }
.scrolled-far .to-top:hover { transform: translateY(-3px); }

/* ---------- reduced motion: keep fades (no movement), stop zoom / slide / spin ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide.on img, .sl-ring, .pp-hero::after, .obtn { animation: none !important; }
  .sl-ring path { animation-duration: 6s; }
  .site-header .eu-flag .star { animation-name: fade-only; }
  .slide.on .slide-cap > * { animation-name: fade-only; }
  .slide-cap > *, .js .rv, .js .ohead.rv, .js .ohead.center.rv, .js .prose img.fade { transform: none !important; }
  .js .odiv.rv { transform: none !important; opacity: 0; }
  .js .odiv.rv.in { opacity: 1; }
  .tagline .wrap { animation-name: fade-only; }
  .otile:hover .otile-img, .otile:hover .otile-img img, .obanner:hover, .card:hover, .card:hover .card-img img, .press:hover,
  .pi:hover, .pi:hover .pi-img img, .ab-member:hover, .ab-member:hover img, .pp-years a:hover, .to-top, .scrolled-far .to-top:hover, .obtn:hover, .sl-nav:hover, .brand:hover .eu-flag .stars {
    transform: none !important; }
  .pi:hover .pi-img img { object-position: top center; }
  .obanner::after { display: none; }
  ::view-transition-old(root) { animation: fade-out .2s both; }
  ::view-transition-new(root) { animation: fade-only .3s both; }
}
@keyframes fade-only { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
}
