/*
Theme Name: CDE Jean Monnet
Theme URI: https://cde.uaic.ro/
Author: Centrul de Documentare Europeană Jean Monnet – UAIC
Description: Temă rapidă și responsive pentru Centrul de Documentare Europeană Jean Monnet al Universității „Alexandru Ioan Cuza” din Iași. Prima pagină cu noutăți, blog pentru anunțuri, texte, date de contact și rețele sociale editabile din Customizer. Fără dependențe externe, JavaScript minim.
Version: 1.0.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: cde
Tags: blog, news, education, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ---------- Tokens ---------- */
:root {
	--cde-blue: #003399;
	--cde-navy: #0a1f4d;
	--cde-navy-2: #072858;
	--cde-gold: #ffcc00;
	--cde-gold-ink: #8a6a00;
	--cde-ink: #18213a;
	--cde-muted: #5a6478;
	--cde-line: #dfe4ee;
	--cde-bg: #ffffff;
	--cde-soft: #f3f6fb;
	--cde-radius: 10px;
	--cde-shadow: 0 1px 2px rgba(10, 31, 77, .06), 0 6px 24px rgba(10, 31, 77, .07);
	--cde-wrap: 1200px;
	--cde-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--cde-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--cde-sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--cde-ink);
	background: var(--cde-bg);
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--cde-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cde-navy); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
	outline: 3px solid var(--cde-gold);
	outline-offset: 2px;
}
h1, h2, h3, h4 {
	font-family: var(--cde-serif);
	color: var(--cde-navy);
	line-height: 1.2;
	margin: 1.6em 0 .55em;
	font-weight: 700;
	letter-spacing: -.005em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .25em 0; }
hr { border: 0; border-top: 1px solid var(--cde-line); margin: 2.5rem 0; }
blockquote {
	margin: 1.5em 0;
	padding: .4em 1.2em;
	border-left: 4px solid var(--cde-gold);
	background: var(--cde-soft);
	color: var(--cde-navy);
}
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: .6em .8em; border-bottom: 1px solid var(--cde-line); text-align: left; }

.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:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	left: 12px; top: 12px; padding: 10px 16px; background: #fff; color: var(--cde-navy);
	box-shadow: var(--cde-shadow); border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--cde-wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, input[type="submit"], button.search-submit {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.4em;
	border-radius: 999px;
	border: 2px solid transparent;
	font: 600 .95rem/1.2 var(--cde-sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--cde-gold); color: var(--cde-navy); }
.btn--gold:hover { background: #ffd83d; color: var(--cde-navy); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--blue, .wp-block-button__link, input[type="submit"], button.search-submit { background: var(--cde-blue); color: #fff; }
.btn--blue:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button.search-submit:hover { background: var(--cde-navy); color: #fff; }
.btn--outline { border-color: var(--cde-blue); color: var(--cde-blue); background: transparent; }
.btn--outline:hover { background: var(--cde-blue); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--cde-navy); color: #c9d3ea; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #e6ecf9; text-decoration: none; }
.topbar a:hover { color: var(--cde-gold); }
.topbar__info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__info svg { width: 14px; height: 14px; fill: var(--cde-gold); }

/* ---------- Social ---------- */
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social li { margin: 0; }
.social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	color: inherit; text-decoration: none;
}
.social svg { width: 16px; height: 16px; fill: currentColor; }
.topbar .social a:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--cde-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cde-navy); min-width: 0; }
.brand img, .brand .custom-logo { width: auto; max-height: 60px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__title { font-family: var(--cde-serif); font-weight: 700; font-size: 1.12rem; color: var(--cde-navy); }
.brand__title em { font-style: italic; color: var(--cde-blue); }
.brand__sub { font-size: .76rem; color: var(--cde-muted); letter-spacing: .02em; margin-top: 3px; }
.custom-logo-link { display: block; flex-shrink: 0; }

/* Navigation */
.nav-toggle { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.primary-nav li { position: relative; margin: 0; }
.primary-nav a {
	display: block; padding: .55em .8em; border-radius: 6px;
	color: var(--cde-ink); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_parent > a {
	color: var(--cde-blue); background: var(--cde-soft);
}
.primary-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px;
	background: #fff; border: 1px solid var(--cde-line); border-radius: var(--cde-radius); box-shadow: var(--cde-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 500; }
.submenu-toggle { display: none; }
.nav-cta { margin-left: 8px; }
.nav-cta a { background: var(--cde-blue); color: #fff !important; padding: .55em 1.1em; border-radius: 999px; }
.nav-cta a:hover { background: var(--cde-navy) !important; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1000px 520px at 85% 15%, rgba(0, 51, 153, .65), transparent 60%),
		linear-gradient(135deg, #061633 0%, var(--cde-navy-2) 45%, #0b2f73 100%);
}
.hero__stars { position: absolute; right: -120px; top: 50%; width: 640px; height: 640px; transform: translateY(-50%); opacity: .22; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
	font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cde-gold);
}
.hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cde-gold); }
.hero h1 { color: #fff; margin: 0 0 .4em; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero h1 em { font-style: italic; color: var(--cde-gold); font-weight: 600; }
.hero__lead { font-size: 1.15rem; color: #d4ddf2; max-width: 36em; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__fact strong { display: block; font-family: var(--cde-serif); font-size: 1.7rem; color: #fff; line-height: 1.1; }
.hero__fact span { font-size: .82rem; color: #aebbdc; }

.hero-card {
	background: #fff; color: var(--cde-ink); border-radius: 16px; overflow: hidden;
	box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.hero-card__img { aspect-ratio: 16 / 10; background: var(--cde-soft); overflow: hidden; }
.hero-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-card__body { padding: 20px 24px 24px; }
.hero-card__label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cde-gold-ink); background: #fff6d1; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.hero-card h2 { font-size: 1.3rem; margin: 0 0 .4em; }
.hero-card h2 a { color: var(--cde-navy); text-decoration: none; }
.hero-card h2 a:hover { color: var(--cde-blue); }
.hero-card p { color: var(--cde-muted); font-size: .95rem; margin-bottom: .8em; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--cde-soft); }
.section--navy { background: var(--cde-navy); color: #d4ddf2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__head h2 { margin: 0; }
.section__kicker { display: block; font: 700 .76rem/1 var(--cde-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cde-blue); margin-bottom: 12px; }
.section--navy .section__kicker { color: var(--cde-gold); }
.section__intro { color: var(--cde-muted); max-width: 40em; margin: 10px 0 0; }

/* ---------- Cards / news ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cde-line);
	border-radius: var(--cde-radius); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--cde-shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--cde-navy), var(--cde-blue)); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__media--empty { display: flex; align-items: center; justify-content: center; }
.card__media--empty svg { width: 90px; height: 90px; opacity: .5; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .8rem; color: var(--cde-muted); margin-bottom: 8px; }
.card__cat { color: var(--cde-blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; text-decoration: none; }
.card h3 { margin: 0 0 .5em; font-size: 1.22rem; }
.card h3 a { color: var(--cde-navy); text-decoration: none; }
.card h3 a:hover { color: var(--cde-blue); }
.card__excerpt { color: var(--cde-muted); font-size: .95rem; flex: 1; }
.card__excerpt p { margin: 0 0 1em; }
.card .link-arrow { margin-top: auto; font-size: .92rem; }
.sticky-badge { position: absolute; top: 12px; left: 12px; background: var(--cde-gold); color: var(--cde-navy); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }

.news-list--featured { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.news-list--featured > .card:first-child { grid-row: span 2; }
.news-list--featured > .card:first-child .card__media { aspect-ratio: 16 / 11; }
.news-list--featured > .card:first-child h3 { font-size: 1.55rem; }
.news-list--featured > .card:not(:first-child) { flex-direction: row; }
.news-list--featured > .card:not(:first-child) .card__media { aspect-ratio: auto; width: 38%; flex-shrink: 0; }
.news-list--featured > .card:not(:first-child) .card__excerpt { display: none; }

/* Offer */
.offer { padding: 28px 26px; background: #fff; border-radius: var(--cde-radius); border: 1px solid var(--cde-line); position: relative; }
.offer__icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e8eefb; color: var(--cde-blue); margin-bottom: 18px; }
.offer__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.offer p { color: var(--cde-muted); font-size: .94rem; margin-bottom: .9em; }
.offer a.link-arrow { font-size: .9rem; }

/* Events */
.event { display: flex; flex-direction: column; border-radius: var(--cde-radius); overflow: hidden; background: #fff; border: 1px solid var(--cde-line); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.event:hover { box-shadow: var(--cde-shadow); transform: translateY(-2px); color: inherit; }
.event__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cde-soft); }
.event__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.event__body { padding: 20px 22px 24px; }
.event__body h3 { margin: 0 0 .35em; font-size: 1.15rem; }
.event__body p { color: var(--cde-muted); font-size: .93rem; margin: 0; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--cde-shadow); }
.split__badge {
	position: absolute; right: -18px; bottom: -22px; background: #fff; border-radius: 14px; padding: 14px 18px;
	box-shadow: var(--cde-shadow); display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.split__badge img { width: 64px; height: auto; aspect-ratio: auto; box-shadow: none; border-radius: 0; }
.split__badge span { font-size: .8rem; color: var(--cde-muted); line-height: 1.35; }
.checklist { list-style: none; padding: 0; margin: 1.2em 0 1.6em; }
.checklist li { position: relative; padding-left: 32px; margin: .6em 0; }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--cde-gold) 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='%230a1f4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta-band ul { list-style: none; padding: 0; margin: 0; }
.cta-band li { padding: 14px 0 14px 34px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; color: #e6ecf9; }
.cta-band li::before { content: "★"; position: absolute; left: 4px; color: var(--cde-gold); }
.cta-band__box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 30px; }
.cta-band__box p { margin-bottom: 1.2em; }

/* Resources strip */
.resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.resource { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border: 1px solid var(--cde-line); border-radius: var(--cde-radius); background: #fff; }
.resource__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--cde-blue); display: flex; align-items: center; justify-content: center; }
.resource__icon svg { width: 26px; height: 26px; stroke: var(--cde-gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resource h3 { margin: 0 0 .3em; font-size: 1.12rem; }
.resource p { margin: 0 0 .6em; color: var(--cde-muted); font-size: .94rem; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.partner { display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid var(--cde-line); border-radius: var(--cde-radius); background: #fff; min-height: 100px; transition: box-shadow .2s, border-color .2s; }
.partner:hover { box-shadow: var(--cde-shadow); border-color: transparent; }
.partner img { max-height: 64px; width: auto; object-fit: contain; }

/* Facebook band */
.fb-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 16px; background: linear-gradient(120deg, var(--cde-blue), var(--cde-navy)); color: #fff; }
.fb-band__text { display: flex; align-items: center; gap: 20px; }
.fb-band svg { width: 46px; height: 46px; fill: #fff; flex-shrink: 0; }
.fb-band h3 { color: #fff; margin: 0 0 .2em; font-size: 1.25rem; }
.fb-band p { margin: 0; color: #d4ddf2; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #061633; color: #aebbdc; font-size: .93rem; }
.site-footer a { color: #e6ecf9; text-decoration: none; }
.site-footer a:hover { color: var(--cde-gold); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-main h2 { font-family: var(--cde-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cde-gold); margin: 0 0 18px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin: 0 0 10px; }
.footer-brand img { max-height: 70px; width: auto; margin-bottom: 16px; }
.footer-brand p { margin-bottom: 1em; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--cde-gold); flex-shrink: 0; margin-top: 4px; }
.site-footer .social { margin-top: 8px; }
.site-footer .social a { background: rgba(255,255,255,.08); width: 36px; height: 36px; }
.site-footer .social a:hover { background: var(--cde-gold); color: var(--cde-navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .82rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.eu-flag { display: inline-flex; align-items: center; gap: 10px; }
.eu-flag svg { width: 36px; height: 24px; border-radius: 2px; }

/* ---------- Page / post ---------- */
.page-hero { background: linear-gradient(135deg, #061633, var(--cde-navy-2) 60%, #0b2f73); color: #fff; padding: 56px 0 52px; position: relative; overflow: hidden; }
.page-hero .hero__stars { width: 420px; height: 420px; right: -60px; opacity: .18; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.7rem); position: relative; }
.page-hero p { color: #d4ddf2; margin: 12px 0 0; max-width: 46em; position: relative; }
.breadcrumbs { font-size: .82rem; color: #aebbdc; margin-bottom: 14px; position: relative; }
.breadcrumbs a { color: #e6ecf9; text-decoration: none; }
.breadcrumbs a:hover { color: var(--cde-gold); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }
.post-meta { color: #c3cde6; font-size: .9rem; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; position: relative; }
.post-meta a { color: #fff; }

.content-area { padding: 56px 0 80px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { border-bottom: 2px solid var(--cde-gold); padding-bottom: .25em; display: inline-block; }
.entry-content h2 + * { margin-top: .6em; }
.entry-content ul li::marker { color: var(--cde-blue); }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--cde-muted); margin-top: .5em; }
.entry-content .wp-block-columns { gap: 2.2em; }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .has-background { padding: 1.4em 1.6em; border-radius: var(--cde-radius); }
.entry-featured { margin: 0 0 32px; }
.entry-featured img { border-radius: 12px; width: 100%; max-height: 520px; object-fit: cover; object-position: top; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: .85rem; color: var(--cde-muted); }
.entry-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--cde-line); font-size: .9rem; color: var(--cde-muted); display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--cde-soft); text-decoration: none; font-size: .82rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--cde-line); border-radius: var(--cde-radius); text-decoration: none; }
.post-nav a:hover { border-color: var(--cde-blue); }
.post-nav small { display: block; color: var(--cde-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.post-nav .next { text-align: right; }

/* Sidebar */
.sidebar .widget { margin-bottom: 32px; padding: 24px; background: var(--cde-soft); border-radius: var(--cde-radius); font-size: .94rem; }
.sidebar .widget-title, .sidebar h2 { font-family: var(--cde-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cde-blue); margin: 0 0 14px; border: 0; display: block; padding: 0; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--cde-line); margin: 0; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { text-decoration: none; }
.sidebar .sub-pages a[aria-current] { font-weight: 700; color: var(--cde-navy); }

/* Contact block (shortcode) */
.contact-card { display: grid; gap: 14px; padding: 26px 28px; border-radius: var(--cde-radius); background: var(--cde-soft); border: 1px solid var(--cde-line); margin: 0 0 1.6em; }
.contact-card__row { display: flex; gap: 14px; align-items: flex-start; }
.contact-card__row svg { width: 20px; height: 20px; fill: var(--cde-blue); flex-shrink: 0; margin-top: 3px; }
.contact-card__row strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cde-muted); font-weight: 700; }

/* Search */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: .75em 1em; border: 1px solid var(--cde-line); border-radius: 999px; font: inherit; font-size: .95rem; }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 48px; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--cde-line); border-radius: 999px; text-decoration: none; color: var(--cde-ink); }
.page-numbers.current { background: var(--cde-blue); color: #fff; border-color: var(--cde-blue); }
.page-numbers:hover:not(.current) { border-color: var(--cde-blue); }

/* Comments */
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--cde-line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: .7em .9em; border: 1px solid var(--cde-line); border-radius: 8px; font: inherit; }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--cde-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.footer-main { grid-template-columns: 1fr 1fr; }
	.partners { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 980px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px;
		border: 1px solid var(--cde-line); background: #fff; color: var(--cde-navy); font: 600 .9rem var(--cde-sans); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--cde-line);
		box-shadow: 0 20px 30px -20px rgba(10,31,77,.3); display: none; max-height: calc(100vh - 84px); overflow-y: auto;
	}
	.nav-open .primary-nav { display: block; }
	.primary-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0; }
	.primary-nav li { border-bottom: 1px solid var(--cde-line); }
	.primary-nav li:last-child { border-bottom: 0; }
	.primary-nav a { padding: 14px 8px; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav .menu-item-has-children > a { flex: 1; }
	.submenu-toggle {
		display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
		border: 0; background: var(--cde-soft); border-radius: 8px; cursor: pointer; color: var(--cde-navy);
	}
	.submenu-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
	.submenu-open > .submenu-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px;
		width: 100%; display: none; min-width: 0;
	}
	.primary-nav .submenu-open > .sub-menu { display: block; }
	.primary-nav .sub-menu li { border: 0; }
	.primary-nav .sub-menu a { padding: 10px 8px; }
	.nav-cta { margin: 12px 0 0; }
	.nav-cta a { text-align: center; }
	.site-header .wrap { position: static; }
	.site-header { position: relative; }

	.hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
	.hero-card { max-width: 560px; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.news-list--featured { grid-template-columns: 1fr 1fr; }
	.news-list--featured > .card:first-child { grid-column: span 2; grid-row: auto; }
	.news-list--featured > .card:not(:first-child) { flex-direction: column; }
	.news-list--featured > .card:not(:first-child) .card__media { width: auto; aspect-ratio: 16/10; }
	.split, .cta-band { grid-template-columns: 1fr; gap: 40px; }
	.split__badge { right: 12px; }
	.layout { grid-template-columns: 1fr; }
	.resources { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.topbar__info .hide-sm { display: none; }
	.site-header .wrap { min-height: 70px; }
	.brand img, .brand .custom-logo { max-height: 46px; }
	.brand__title { font-size: .98rem; }
	.brand__sub { display: none; }
	.nav-toggle__label { display: none; }
	.section { padding: 60px 0; }
	.section__head { flex-direction: column; align-items: flex-start; }
	.grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
	.news-list--featured { grid-template-columns: 1fr; }
	.news-list--featured > .card:first-child { grid-column: auto; }
	.partners { grid-template-columns: repeat(2, 1fr); }
	.footer-main { grid-template-columns: 1fr; gap: 32px; }
	.fb-band { flex-direction: column; align-items: flex-start; padding: 24px; }
	.post-nav { grid-template-columns: 1fr; }
	.hero__facts { gap: 20px; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .site-footer, .sidebar, .nav-toggle { display: none !important; }
	.page-hero { background: none; color: #000; padding: 0; }
	.page-hero h1 { color: #000; }
}

/* Contact în banda de apel */
.cta-band .cta-contacts { margin: 0 0 1.4em; }
.cta-band .cta-contacts li { display: flex; gap: 10px; padding: 6px 0; border: 0; }
.cta-band .cta-contacts li::before { content: none; }
.cta-band .cta-contacts svg { width: 16px; height: 16px; fill: var(--cde-gold); flex-shrink: 0; margin-top: 5px; }
.cta-band .cta-contacts a { color: #fff; }

/* Meniu de rezervă (wp_list_pages) */
.primary-nav .children { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--cde-line); border-radius: var(--cde-radius); box-shadow: var(--cde-shadow); opacity: 0; visibility: hidden; }
.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { opacity: 1; visibility: visible; }
@media (max-width: 980px) { .primary-nav .children { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; } }

/* Culorile din paleta editorului */
.has-eu-blue-color { color: #003399; } .has-eu-blue-background-color { background-color: #003399; }
.has-navy-color { color: #0a1f4d; } .has-navy-background-color { background-color: #0a1f4d; }
.has-gold-color { color: #ffcc00; } .has-gold-background-color { background-color: #ffcc00; }
.has-soft-color { color: #f3f6fb; } .has-soft-background-color { background-color: #f3f6fb; }
.has-ink-color { color: #18213a; } .has-ink-background-color { background-color: #18213a; }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }
.entry-content .wp-block-group.has-background > *:first-child { margin-top: 0; }
.entry-content .wp-block-group.has-background > *:last-child { margin-bottom: 0; }
.entry-content .wp-block-buttons { margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 10px; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--cde-blue); border-color: var(--cde-blue); }
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; }
.entry-content .wp-block-column { flex: 1 1 280px; min-width: 0; }
.link-list { columns: 2; column-gap: 40px; }
.link-list li { break-inside: avoid; }
@media (max-width: 680px) { .link-list { columns: 1; } }

/* Antet: meniul nu se rupe pe două rânduri */
.primary-nav a { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1240px) {
	.brand__sub { display: none; }
	.brand__title { font-size: 1rem; max-width: 230px; }
	.primary-nav a { padding: .5em .55em; font-size: .9rem; }
}
.sidebar .contact-card { padding: 0; background: none; border: 0; }

/* Siglele CDE și UAIC */
.topbar__uni { display: inline-flex; align-items: center; gap: 8px; }
.topbar__uni img { width: 18px; height: auto; }
.brand img[src$=".svg"] { height: 48px; width: auto; }
.footer-brand img.footer-brand__cde { width: 150px; max-height: none; height: auto; margin-bottom: 18px; }
.footer-brand__uaic { display: inline-block; margin: 0 0 18px; }
.footer-brand__uaic img { width: 260px; max-width: 100%; height: auto; max-height: none; margin: 0; }
@media (max-width: 680px) { .brand img[src$=".svg"] { height: 38px; } }
