/* CNME – stiluri site. Culorile de bază vin din paleta Kadence (--global-palette1..9). */
:root {
	--cnme-indigo: var(--global-palette1, #342482);
	--cnme-indigo-dark: var(--global-palette2, #221760);
	--cnme-gold: #e9b949;
	--cnme-gold-soft: #fbf1d6;
	--cnme-radius: 18px;
	--cnme-shadow: 0 10px 30px -12px rgba(30, 20, 90, .25);
	--cnme-shadow-hover: 0 22px 45px -18px rgba(30, 20, 90, .38);
}

/* ---------- Animații la derulare ---------- */
.cnme-js .reveal,
.cnme-js .reveal-stagger > * {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.cnme-js .reveal.is-visible,
.cnme-js .reveal-stagger > .is-visible { opacity: 1; transform: none; }
.cnme-js .reveal-stagger > *:nth-child(2) { transition-delay: .08s; }
.cnme-js .reveal-stagger > *:nth-child(3) { transition-delay: .16s; }
.cnme-js .reveal-stagger > *:nth-child(4) { transition-delay: .24s; }
.cnme-js .reveal-stagger > *:nth-child(5) { transition-delay: .32s; }
.cnme-js .reveal-stagger > *:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
	.cnme-js .reveal, .cnme-js .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
	.cnme-hero .cnme-hero-emblem { animation: none !important; }
}

/* ---------- Titluri de secțiune ---------- */
.cnme-eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cnme-indigo);
	background: var(--global-palette7, #eeecf7);
	padding: .35em .9em;
	border-radius: 999px;
	margin-bottom: .6rem;
}
.cnme-section-title { margin-top: 0; }
.cnme-section-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	border-radius: 4px;
	background: var(--cnme-gold);
	margin: .7rem 0 0;
}
.has-text-align-center.cnme-section-title::after { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.cnme-hero.wp-block-cover { min-height: min(88vh, 760px); }
.cnme-hero .wp-block-cover__image-background { transform: scale(1.06); animation: cnme-zoom 18s ease-out forwards; }
@keyframes cnme-zoom { to { transform: scale(1); } }
.cnme-hero h1 {
	font-size: clamp(2.2rem, 5.2vw, 4.2rem);
	line-height: 1.05;
	letter-spacing: -.02em;
	margin: .2em 0 .35em;
	color: #fff;
}
.cnme-hero h1 em { font-style: normal; color: var(--cnme-gold); }
.cnme-hero .cnme-hero-kicker { color: var(--cnme-gold); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; }
.cnme-hero .cnme-hero-quote {
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	max-width: 40rem;
	opacity: .92;
	border-left: 3px solid var(--cnme-gold);
	padding-left: 1rem;
}
.cnme-hero .cnme-hero-emblem img {
	width: min(300px, 60vw);
	height: auto;
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.cnme-hero .cnme-hero-emblem { animation: cnme-float 7s ease-in-out infinite; }
@keyframes cnme-float { 50% { transform: translateY(-12px); } }
.cnme-hero .wp-block-button__link { border-radius: 999px; padding: .85em 1.6em; font-weight: 700; transition: transform .25s, box-shadow .25s; }
.cnme-hero .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.cnme-btn-gold .wp-block-button__link { background: var(--cnme-gold) !important; color: #1d1640 !important; }
.cnme-btn-ghost .wp-block-button__link { background: transparent !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, .7) !important; }

/* ---------- Contoare ---------- */
.cnme-stats { margin-top: -70px !important; position: relative; z-index: 2; }
.cnme-stat {
	background: #fff;
	border-radius: var(--cnme-radius);
	box-shadow: var(--cnme-shadow);
	padding: 1.6rem 1.4rem !important;
	height: 100%;
	border-top: 4px solid var(--cnme-gold);
}
.cnme-stat .cnme-num { font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 800; color: var(--cnme-indigo); line-height: 1; margin: 0 0 .3rem; }
.cnme-stat .cnme-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 .6rem; }
.cnme-stat p:last-child { font-size: .92rem; color: var(--global-palette5, #4a4763); margin-bottom: 0; }

/* ---------- Carduri ---------- */
.cnme-card {
	background: #fff;
	border-radius: var(--cnme-radius);
	box-shadow: var(--cnme-shadow);
	padding: 1.6rem !important;
	height: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
	position: relative;
}
.cnme-card:hover { transform: translateY(-6px); box-shadow: var(--cnme-shadow-hover); }
.cnme-card h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.cnme-card h3 a { text-decoration: none; color: inherit; }
.cnme-card h3 a::after { content: ""; position: absolute; inset: 0; } /* tot cardul e clickabil */
.cnme-card h3 a:hover { color: var(--cnme-indigo); }
.cnme-card p { margin: 0; color: var(--global-palette5, #4a4763); font-size: .95rem; }
.cnme-card .cnme-card-icon {
	width: 52px; height: 52px; border-radius: 14px;
	display: grid; place-items: center;
	background: var(--global-palette7, #eeecf7); color: var(--cnme-indigo);
	font-size: 1.5rem; margin-bottom: 1rem;
	transition: background .3s, color .3s;
}
.cnme-card:hover .cnme-card-icon { background: var(--cnme-indigo); color: #fff; }
.cnme-cards { gap: 1.4rem !important; }
.cnme-arrow::after { content: " →"; transition: margin .2s; }
.cnme-card:hover .cnme-arrow::after { margin-left: 4px; }

/* ---------- Niveluri de învățământ ---------- */
.cnme-level { text-align: left; }
.cnme-level .cnme-level-age { font-size: .82rem; font-weight: 700; color: var(--cnme-gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem !important; }

/* ---------- Secțiune „despre” ---------- */
.cnme-feature-list { list-style: none; padding-left: 0; }
.cnme-feature-list li { position: relative; padding: .45rem 0 .45rem 2rem; border-bottom: 1px dashed var(--global-palette7, #e3e0f0); }
.cnme-feature-list li::before {
	content: "✓"; position: absolute; left: 0; top: .45rem;
	width: 1.4rem; height: 1.4rem; border-radius: 50%;
	background: var(--cnme-gold-soft); color: #9a6b00; font-weight: 800; font-size: .8rem;
	display: grid; place-items: center;
}
.cnme-photo img { border-radius: var(--cnme-radius); box-shadow: var(--cnme-shadow); }
.cnme-photo-stack { position: relative; }
.cnme-photo-badge {
	position: absolute; right: -10px; bottom: -18px;
	background: var(--cnme-gold); color: #1d1640; border-radius: 16px;
	padding: 1rem 1.3rem !important; box-shadow: var(--cnme-shadow); font-weight: 700; max-width: 220px;
}
.cnme-photo-badge strong { display: block; font-size: 2rem; line-height: 1; }

/* ---------- Banda indigo ---------- */
.cnme-band { position: relative; overflow: hidden; }
.cnme-band::before {
	content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
	right: -160px; top: -220px; background: radial-gradient(circle, rgba(233, 185, 73, .25), transparent 65%);
	pointer-events: none;
}
.cnme-band .cnme-card { background: rgba(255, 255, 255, .07); box-shadow: none; border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.cnme-band .cnme-card p { color: rgba(255, 255, 255, .82); }
.cnme-band .cnme-card:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Citate ---------- */
.cnme-quote {
	background: #fff; border-radius: var(--cnme-radius); padding: 1.8rem !important;
	box-shadow: var(--cnme-shadow); height: 100%; position: relative;
}
.cnme-quote::before {
	content: "“"; position: absolute; top: -.2rem; right: 1.2rem;
	font-size: 6rem; line-height: 1; color: var(--cnme-gold); opacity: .35; font-family: Georgia, serif;
}
.cnme-quote p { font-style: italic; }
.cnme-quote .cnme-quote-author { font-style: normal; font-weight: 700; color: var(--cnme-indigo); margin-bottom: 0; }

/* ---------- Logo-uri parteneri ---------- */
.cnme-logos img { max-height: 80px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s; }
.cnme-logos img:hover { filter: none; opacity: 1; transform: scale(1.05); }
.cnme-logos .wp-block-image { margin: 0; }

/* ---------- Contact ---------- */
.cnme-contact-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.cnme-map iframe { width: 100%; min-height: 360px; border: 0; border-radius: var(--cnme-radius); box-shadow: var(--cnme-shadow); }

/* ---------- Conținut preluat de pe site-ul vechi ---------- */
.entry-content img { max-width: 100%; height: auto; }
.cnme-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content table td, .entry-content table th { border: 1px solid var(--global-palette7, #e3e0f0); padding: .55rem .7rem; vertical-align: top; }
.entry-content table tr:nth-child(even) td { background: var(--global-palette8, #f7f6fc); }
.entry-content a[href$=".pdf"], .entry-content a[href$=".PDF"] {
	padding-left: 1.4em;
	background: no-repeat left center / 1em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}
/* grilele vechi ale temei Joomla */
.yjsg-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(12, 1fr); margin-bottom: 1.5rem; }
.yjsg-col-1-2 { grid-column: span 6; }
.yjsg-col-1-3 { grid-column: span 4; }
.yjsg-col-1-4 { grid-column: span 3; }
@media (max-width: 767px) { .yjsg-row > * { grid-column: 1 / -1; } }
.yjsg-center { text-align: center; }

/* ---------- Antet ---------- */
.site-branding .custom-logo { border-radius: 50%; }
.site-branding .site-title { line-height: 1.15; }
.site-branding .site-description { font-size: .8rem; opacity: .75; }

/* spațiere: eticheta mică stă lipită de titlul de sub ea */
.entry-content .cnme-eyebrow { margin-bottom: 0 !important; }
.entry-content .cnme-eyebrow + .wp-block-heading { margin-top: .5rem !important; }
.entry-content .cnme-eyebrow + .wp-block-heading + * { margin-top: 1.2rem; }

/* ---------- Hartă încărcată doar la cerere ---------- */
.cnme-map-consent {
	min-height: 360px; border-radius: var(--cnme-radius); box-shadow: var(--cnme-shadow);
	background: var(--global-palette8, #f7f6fc) radial-gradient(circle at 30% 20%, rgba(233,185,73,.18), transparent 55%);
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem;
}
.cnme-map-consent .cnme-map-icon { font-size: 2.6rem; margin: 0 0 .5rem; }
.cnme-map-consent p { max-width: 30rem; }
.cnme-map-load {
	background: var(--cnme-indigo); color: #fff; border: 0; border-radius: 999px; padding: .8em 1.6em;
	font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.cnme-map-load:hover, .cnme-map-load:focus-visible { transform: translateY(-2px); box-shadow: var(--cnme-shadow); }

/* ---------- Subsol ---------- */
.site-footer .footer-html a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .cnme-footer-links { display: block; margin-top: .4rem; }

/* ---------- Modulul de accesibilitate (DJ-Accessibility) ---------- */
.djacc, .djacc * { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important; }

/* =========================================================
   Pagini de conținut: tipografie și așezare unitară
   (doar copiii direcți ai conținutului, ca să nu afecteze prima pagină și cardurile)
   ========================================================= */
body:not(.home) .entry-content > p,
body:not(.home) .entry-content > ul li,
body:not(.home) .entry-content > ol li { font-size: 1.0625rem; line-height: 1.75; }
body:not(.home) .entry-content > h2 {
	font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.25; margin: 2.4rem 0 .9rem;
	padding-bottom: .5rem; border-bottom: 2px solid var(--global-palette7, #ecebf5);
}
body:not(.home) .entry-content > h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.3; margin: 1.9rem 0 .6rem; color: var(--cnme-indigo); }
body:not(.home) .entry-content > h2:first-child,
body:not(.home) .entry-content > h3:first-child { margin-top: 0; }
body:not(.home) .entry-content > p { margin: 0 0 1.1rem; }

/* imagine singură */
.entry-content .cnme-media { text-align: center; margin: 1.8rem 0; }
.entry-content .cnme-media img { border-radius: 14px; box-shadow: var(--cnme-shadow); max-height: 640px; width: auto; }

/* galerie */
.entry-content .cnme-gallery {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.8rem 0;
}
.entry-content .cnme-gallery img,
.entry-content .cnme-gallery a { display: block; width: 100%; }
.entry-content .cnme-gallery img {
	aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: transform .3s, box-shadow .3s;
}
.entry-content .cnme-gallery img:hover { transform: scale(1.03); box-shadow: var(--cnme-shadow); }

/* liste de documente */
.entry-content ul.cnme-docs { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .6rem; }
.entry-content ul.cnme-docs li {
	background: #fff; border: 1px solid var(--global-palette7, #ecebf5); border-radius: 12px;
	padding: .8rem 1rem .8rem 3rem; position: relative; line-height: 1.5; transition: border-color .2s, box-shadow .2s;
}
.entry-content ul.cnme-docs li::before {
	content: ""; position: absolute; left: 1rem; top: .85rem; width: 1.3rem; height: 1.3rem;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f2d73' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E");
}
.entry-content ul.cnme-docs li:hover { border-color: var(--cnme-gold); box-shadow: var(--cnme-shadow); }
.entry-content ul.cnme-docs a { font-weight: 600; text-decoration: none; padding-left: 0; background: none; }
.entry-content ul.cnme-docs a:hover { text-decoration: underline; }

/* tabele */
.entry-content table th {
	background: var(--global-palette7, #ecebf5); color: var(--global-palette3, #17162f);
	font-weight: 700; text-align: left; border: 1px solid var(--global-palette7, #e3e0f0); padding: .6rem .7rem;
}
.entry-content table td { line-height: 1.5; }

/* ---------- Imagine mărită ---------- */
.cnme-lightbox {
	position: fixed; inset: 0; z-index: 99999; background: rgba(12, 11, 30, .92);
	display: none; align-items: center; justify-content: center; padding: 3rem 4rem;
}
.cnme-lightbox.is-open { display: flex; animation: cnme-fade .25s ease; }
@keyframes cnme-fade { from { opacity: 0; } }
.cnme-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.cnme-lightbox button {
	position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%;
	width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.cnme-lightbox button:hover, .cnme-lightbox button:focus-visible { background: var(--cnme-gold); color: #1d1640; }
.cnme-lb-close { top: 1rem; right: 1rem; }
.cnme-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.cnme-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .cnme-lightbox { padding: 3.5rem .5rem; } .cnme-lb-prev, .cnme-lb-next { top: auto; bottom: 1rem; transform: none; } }

/* ---------- #TeamEliade ---------- */
.cnme-team-intro { max-width: 46rem; margin-left: auto !important; margin-right: auto !important; font-size: 1.15rem; color: var(--global-palette5, #4a4963); }
.cnme-team-photo { margin: 2.5rem 0 3.5rem !important; }
.cnme-team-photo img {
	width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 62%;
	border-radius: 24px; box-shadow: var(--cnme-shadow-hover);
}
.cnme-team-photo figcaption { text-align: center; font-size: .9rem; color: var(--global-palette6, #6d6c85); margin-top: .9rem; }
.cnme-pullquote {
	font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.3; color: var(--cnme-indigo); border-left: 4px solid var(--cnme-gold); padding-left: 1.2rem; margin-top: 1.5rem;
}
.cnme-more { margin-top: 1rem; }
.cnme-more summary {
	cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--cnme-indigo);
	padding: .6rem 1.2rem; border: 2px solid var(--cnme-indigo); border-radius: 999px; list-style: none; transition: background .2s, color .2s;
}
.cnme-more summary::-webkit-details-marker { display: none; }
.cnme-more summary::after { content: "↓"; transition: transform .25s; }
.cnme-more[open] summary::after { transform: rotate(180deg); }
.cnme-more summary:hover, .cnme-more summary:focus-visible { background: var(--cnme-indigo); color: #fff; }
.cnme-more[open] > :not(summary) { animation: cnme-fade .35s ease; }
.cnme-more[open] summary { margin-bottom: 1.2rem; }
.cnme-team-tags { font-weight: 700; color: #c48f10; letter-spacing: .03em; margin-top: 1.4rem; }

/* eticheta mică deasupra unui titlu centrat stă și ea pe centru */
.cnme-eyebrow.has-text-align-center { display: table; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Antetul paginilor interioare: fotografia de pe prima pagină, mai discret ---------- */
.entry-hero .entry-hero-container-inner {
	background:
		linear-gradient(115deg, rgba(24, 23, 56, .95) 0%, rgba(47, 45, 115, .88) 55%, rgba(47, 45, 115, .72) 100%),
		url("/wp-content/uploads/arhiva/site/hero-absolvire.jpg") center 38% / cover no-repeat;
	position: relative;
}
.entry-hero .entry-hero-container-inner::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--cnme-gold), rgba(233, 185, 73, 0));
}
.entry-hero .entry-header { min-height: 280px; display: flex; flex-direction: column; justify-content: center; padding: 3rem 0 2.5rem; }
.entry-hero .entry-title, .entry-hero .archive-title {
	color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.01em;
	text-shadow: 0 2px 20px rgba(0, 0, 0, .25); max-width: 52rem; margin-left: auto; margin-right: auto;
}
.entry-hero .kadence-breadcrumbs { color: rgba(255, 255, 255, .78); font-size: .88rem; margin-bottom: .9rem; }
.entry-hero .kadence-breadcrumbs a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.entry-hero .kadence-breadcrumbs a:hover { color: var(--cnme-gold); }
.entry-hero .kadence-breadcrumbs .bc-delimiter { margin: 0 .45em; color: var(--cnme-gold); }
.cnme-js .entry-hero .entry-header > * { animation: cnme-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.cnme-js .entry-hero .entry-title, .cnme-js .entry-hero .archive-title { animation-delay: .08s; }
@keyframes cnme-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .cnme-js .entry-hero .entry-header > * { animation: none; } }
@media (max-width: 767px) { .entry-hero .entry-header { min-height: 200px; padding: 2.2rem 0 1.8rem; } }

/* fotografie diferită în antet pentru fiecare secțiune */
.cnme-sec-despre-noi .entry-hero .entry-hero-container-inner,
.cnme-sec-elevi .entry-hero .entry-hero-container-inner,
.cnme-sec-profesori .entry-hero .entry-hero-container-inner,
.cnme-sec-proiecte .entry-hero .entry-hero-container-inner {
	background-image:
		linear-gradient(115deg, rgba(24, 23, 56, .95) 0%, rgba(47, 45, 115, .88) 55%, rgba(47, 45, 115, .72) 100%),
		var(--cnme-hero-img);
	background-size: cover; background-repeat: no-repeat; background-position: center var(--cnme-hero-y, 45%);
}
.cnme-sec-despre-noi { --cnme-hero-img: url("/wp-content/uploads/arhiva/site/antet-despre-noi.jpg"); --cnme-hero-y: 55%; }
.cnme-sec-elevi      { --cnme-hero-img: url("/wp-content/uploads/arhiva/site/antet-elevi.jpg");      --cnme-hero-y: 60%; }
.cnme-sec-profesori  { --cnme-hero-img: url("/wp-content/uploads/arhiva/site/antet-profesori.jpg");  --cnme-hero-y: 58%; }
.cnme-sec-proiecte   { --cnme-hero-img: url("/wp-content/uploads/arhiva/site/antet-proiecte.jpg");   --cnme-hero-y: 55%; }

/* ---------- Anunțuri: prima pagină ---------- */
.cnme-news-head { margin-bottom: 1.6rem !important; }
.cnme-news .wp-block-post-template { gap: 1.4rem; }
.cnme-news-card { display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid var(--global-palette7, #ecebf5); }
.cnme-news-card:hover { border-top-color: var(--cnme-gold); }
.cnme-news-meta { gap: .6rem !important; align-items: center; font-size: .82rem; }
.cnme-news-meta .wp-block-post-date { color: var(--global-palette6, #6d6c85); font-weight: 600; }
.cnme-news-meta .wp-block-post-terms a {
	background: var(--global-palette7, #ecebf5); color: var(--cnme-indigo); text-decoration: none;
	padding: .2em .7em; border-radius: 999px; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
}
.cnme-news-card .wp-block-post-title { font-size: 1.15rem; line-height: 1.35; margin: .2rem 0 0; }
.cnme-news-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.cnme-news-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.cnme-news-card .wp-block-post-excerpt { color: var(--global-palette5, #4a4963); font-size: .95rem; flex: 1; }
.cnme-news-card .wp-block-post-excerpt p { margin: 0; }
.cnme-news-card .cnme-arrow { margin-top: auto; font-weight: 700; color: var(--cnme-indigo); font-size: .92rem; }

/* anunț fixat (important) */
.cnme-news .cnme-important .cnme-news-card,
.cnme-important.loop-entry { border-top-color: #d64545 !important; }
.cnme-news .cnme-important .cnme-news-meta::before,
.cnme-important.loop-entry .entry-header::before {
	content: "Important"; background: #d64545; color: #fff; font-weight: 800; font-size: .72rem;
	text-transform: uppercase; letter-spacing: .06em; padding: .25em .7em; border-radius: 999px; display: inline-block;
}
.cnme-important.loop-entry .entry-header::before { margin-bottom: .6rem; }

/* ---------- Anunțuri: lista completă și anunțul individual ---------- */
.blog .loop-entry, .archive .loop-entry {
	border-radius: var(--cnme-radius); box-shadow: var(--cnme-shadow); border-top: 4px solid var(--global-palette7, #ecebf5);
	transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.blog .loop-entry:hover, .archive .loop-entry:hover { transform: translateY(-5px); box-shadow: var(--cnme-shadow-hover); border-top-color: var(--cnme-gold); }
.loop-entry .entry-title { font-size: 1.2rem; line-height: 1.35; }
.loop-entry .entry-taxonomies a, .single .entry-hero .entry-taxonomies a {
	background: var(--global-palette7, #ecebf5); color: var(--cnme-indigo) !important; text-decoration: none;
	padding: .2em .7em; border-radius: 999px; font-weight: 700; font-size: .72rem; letter-spacing: .05em;
}
.single .entry-hero .entry-meta, .single .entry-hero .entry-meta a { color: rgba(255, 255, 255, .85); }
body.single-post .entry-content > p { font-size: 1.0625rem; line-height: 1.75; }

/* fără autor în listă și în articol (anunțurile sunt ale școlii) */
.entry-meta .posted-by, .entry-meta .posted-by + .meta-divider { display: none !important; }

/* antetul anunțurilor (lista, categoriile și fiecare anunț) */
.blog .entry-hero .entry-hero-container-inner,
.category .entry-hero .entry-hero-container-inner,
.single-post .entry-hero .entry-hero-container-inner {
	background:
		linear-gradient(90deg, rgba(20, 19, 44, .55) 0%, rgba(20, 19, 44, .25) 50%, rgba(20, 19, 44, 0) 100%),
		url("/wp-content/uploads/arhiva/site/antet-anunturi.jpg?v=2") 70% 50% / cover no-repeat;
}
@media (max-width: 767px) {
	.blog .entry-hero .entry-hero-container-inner,
	.category .entry-hero .entry-hero-container-inner,
	.single-post .entry-hero .entry-hero-container-inner {
		background:
			linear-gradient(rgba(20, 19, 44, .62), rgba(20, 19, 44, .62)),
			url("/wp-content/uploads/arhiva/site/antet-anunturi.jpg?v=2") 72% 50% / cover no-repeat;
	}
}

/* ---------- Corecturi: liste de persoane, notă cu informații actualizate, structura anului școlar, 404 ---------- */
.cnme-people { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: .7rem; }
.cnme-people li { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem; background: #fff; border-radius: 12px; box-shadow: var(--cnme-shadow); margin: 0; }
.cnme-people strong { color: var(--cnme-indigo-dark); font-size: 1.05rem; }
.cnme-people span { font-size: .92rem; opacity: .75; }
.cnme-note { background: var(--cnme-gold-soft); border-left: 4px solid var(--cnme-gold); border-radius: 12px; padding: 1.2rem 1.5rem; margin: 0 0 2rem; }
.cnme-note-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--cnme-indigo); margin: 0 0 .5rem; }
.cnme-note p:last-child { margin-bottom: 0; }
.cnme-lead { font-size: 1.15rem; }
.cnme-muted { opacity: .7; font-size: .92rem; }
.cnme-an-table { max-width: 46rem; }
.cnme-an-table .cnme-an-vac th, .cnme-an-table .cnme-an-vac td { background: var(--cnme-gold-soft); }
.error404 .error .entry-content-wrap { max-width: 860px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.error404 .search-form { margin: 1.5rem 0 2.5rem; max-width: 30rem; }
.cnme-404-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem; }
.cnme-404-links a { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.25rem; border-radius: 12px; background: #fff; box-shadow: var(--cnme-shadow); text-decoration: none; color: inherit; }
.cnme-404-links a:hover { box-shadow: var(--cnme-shadow-hover); }
.cnme-404-links strong { color: var(--cnme-indigo-dark); font-size: 1.1rem; }
.cnme-404-links span { font-size: .9rem; opacity: .75; }

/* ---------- Subsol: trei coloane ---------- */
.site-footer .footer-html { width: 100%; }
.site-footer .footer-html-inner { text-align: left; }
.cnme-footer { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 2.5rem; padding: 3rem 0 2.2rem; border-top: 3px solid var(--cnme-gold); }
.cnme-footer p { margin: 0 0 .9rem; }
.cnme-footer-h { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--cnme-indigo); margin: 0 0 .3rem !important; }
.site-footer .cnme-footer a { color: var(--cnme-indigo-dark); }
.cnme-social { display: inline-flex; align-items: center; gap: .5rem; }
.cnme-social svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--cnme-indigo); color: #fff; box-sizing: border-box; }
.cnme-footer-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .35rem; }
.cnme-footer-links { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid rgba(52, 36, 130, .18); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer .cnme-footer-links a { font-weight: 600; text-decoration: none; }
.site-footer .cnme-footer-links a:hover { text-decoration: underline; }
.cnme-footer-brand img { width: 110px; height: auto; margin-bottom: .8rem; }
.cnme-footer-name { font-weight: 700; color: var(--cnme-indigo-dark); font-size: 1.1rem; }
.site-footer .cnme-footer-btn { display: inline-block; padding: .7rem 1.4rem; border-radius: 999px; background: var(--cnme-indigo); color: #fff !important; text-decoration: none !important; font-weight: 600; }
.site-footer .cnme-footer-btn:hover { background: var(--cnme-indigo-dark); }
.cnme-footer-copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; padding: 1rem 0 1.4rem; border-top: 1px solid rgba(52, 36, 130, .15); }
@media (max-width: 860px) { .cnme-footer { grid-template-columns: 1fr 1fr; } .cnme-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cnme-footer { grid-template-columns: 1fr; } }
.site-footer ul.cnme-footer-links { display: flex !important; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer ul.cnme-footer-links li, .site-footer ul.cnme-footer-list li { margin: 0; padding: 0; list-style: none; }

/* Fotografii din anunțurile colegiului (Olimpiade, Excelență) */
.cnme-fb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cnme-fb-fig { margin: 0; }
.cnme-fb-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; box-shadow: var(--cnme-shadow); }
.cnme-fb-fig figcaption { font-size: .88rem; opacity: .75; margin-top: .4rem; }


/* ---------- Revizie 16.11.2026 ---------- */
/* 1. Pe telefon și tabletă, antetul stă peste fotografia de sus: textul primei secțiuni coboară sub antet. */
@media (max-width: 1024px) {
	.cnme-hero.wp-block-cover { padding-top: 120px !important; }
}
/* 2. Butonul de accesibilitate în dreapta jos pe telefon, ca să nu acopere textul aliniat la stânga. */
@media (max-width: 767px) {
	.djacc--sticky.djacc--bottom-left { left: auto !important; right: 12px !important; bottom: 12px !important; }
}
/* 3. Nivelurile de învățământ (5 carduri) pe un singur rând pe ecranele mari. */
@media (min-width: 1100px) {
	.cnme-cards:has(> .cnme-level) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
/* 4. Grupurile de 6 carduri („Informații rapide”) câte 3 pe rând. */
@media (min-width: 768px) {
	.cnme-cards:has(> .cnme-card:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
/* 5. Siglele partenerilor: aceeași înălțime, fără al patrulea logo (dublura Erasmus+). */
.cnme-logos figure:has(img[src*="erasmus2"]) { display: none; }
.cnme-logos img { height: 64px; max-height: none; width: auto; max-width: 220px; object-fit: contain; }

/* arhiva documentelor din anii anteriori (pagini Bacalaureat, Evaluare națională, Burse) */
.cnme-arhiva { margin: 2.5rem 0 1rem; border: 1px solid rgba(52, 36, 130, .15); border-radius: 12px; padding: 0 1.2rem; background: #fff; }
.cnme-arhiva > summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--cnme-indigo); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cnme-arhiva > summary::-webkit-details-marker { display: none; }
.cnme-arhiva > summary::after { content: "+"; font-size: 1.4rem; color: var(--cnme-gold); }
.cnme-arhiva[open] > summary::after { content: "–"; }
.cnme-arhiva[open] { padding-bottom: 1rem; }
.cnme-an-table th[scope=row] { white-space: nowrap; }
@media (max-width: 680px) { .cnme-an-table th[scope=row] { white-space: normal; } }

/* ---------- pagina de actualizare „Trimite pe site” (/actualizare/) + documentele trimise ---------- */
.cnme-form { max-width: 820px; margin-top: 1rem; }
.cnme-form p { margin: 0 0 1.2rem; }
.cnme-form label, .cnme-form legend { display: block; font-weight: 600; color: #1d1640; margin-bottom: .4rem; font-size: .98rem; }
.cnme-form legend span, .cnme-form label > span:not(.cnme-t-x) { color: #8a6410; }
.cnme-form input[type=text], .cnme-form input[type=password], .cnme-form textarea, .cnme-form select {
	width: 100%; padding: .75rem .9rem; border: 1px solid #d6d3e6; border-radius: 10px; background: #fff; font: inherit; color: inherit; }
.cnme-form input:focus, .cnme-form textarea:focus, .cnme-form select:focus { outline: 0; border-color: var(--cnme-indigo); box-shadow: 0 0 0 3px rgba(52, 36, 130, .15); }
.cnme-form small { display: block; color: #5d5875; margin-top: .3rem; font-size: .88rem; font-weight: 400; }
.cnme-form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.cnme-f-optiuni { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 20px; }
.cnme-t-tip label { font-weight: 400; display: flex; gap: .7rem; align-items: flex-start; margin: 0; cursor: pointer; border: 1px solid #d6d3e6; border-radius: 12px; padding: .9rem 1rem; background: #fff; }
.cnme-t-tip label:has(input:checked) { border-color: var(--cnme-indigo); box-shadow: 0 0 0 3px rgba(52, 36, 130, .12); }
.cnme-t-tip input { margin-top: .3em; accent-color: var(--cnme-indigo); width: 1.05em; height: 1.05em; flex: none; }
.cnme-t-tip b { display: block; color: #1d1640; }
.cnme-t-tip span { color: inherit !important; }
.cnme-t-btn, .cnme-t-login input[type=submit] { display: inline-block; background: var(--cnme-indigo); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.8rem; font-weight: 700; cursor: pointer; font-size: 1rem; }
.cnme-t-btn:hover, .cnme-t-login input[type=submit]:hover { background: var(--cnme-indigo-dark); }
.cnme-t-login input[type=text], .cnme-t-login input[type=password] { max-width: 420px; }
.cnme-t-login .login-remember label { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
.cnme-f-alert { padding: 1rem 1.2rem; border-radius: 12px; margin: 0 0 1.4rem; font-weight: 600; max-width: 820px; }
.cnme-f-ok { background: #e7f3ea; color: #1d5a2e; border-left: 4px solid #2e7d46; }
.cnme-f-err { background: #fbeaea; color: #8a1f1f; border-left: 4px solid #b3261e; }
.cnme-f-info { background: var(--cnme-gold-soft); border-top: 3px solid var(--cnme-gold); border-radius: 12px; padding: 1.2rem 1.5rem .3rem; max-width: 820px; margin-bottom: 2rem; }
.cnme-t-salut { max-width: 820px; color: #5d5875; }
.cnme-t-salut a { margin-left: .6rem; }
.cnme-t-h { font-size: 1.35rem; margin: 2.6rem 0 1rem; max-width: 820px; }
.entry-content .cnme-t-lista { list-style: none; margin: 0 !important; padding: 0 !important; max-width: 820px; }
.cnme-t-lista li { display: grid; grid-template-columns: max-content 1fr; gap: .15rem 1rem; padding: .8rem 0; border-bottom: 1px solid #e6e4ef; }
.cnme-t-stare { grid-row: span 2; align-self: start; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.cnme-t-stare.pub { background: #e7f3ea; color: #1d5a2e; }
.cnme-t-stare.ast { background: #fdf1d8; color: #7a5200; }
.cnme-t-titlu { font-weight: 600; }
.cnme-t-unde { font-size: .88rem; color: #5d5875; }
.cnme-doc-nou { display: inline-block; margin-left: .6rem; padding: .12rem .55rem; border-radius: 999px; background: var(--cnme-gold-soft); color: #6e4f0a; font-size: .74rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.entry-content ul.cnme-docs-noi { margin-top: 0; }
@media (max-width: 640px) { .cnme-f-optiuni { grid-template-columns: 1fr; } }

/* ---------- accesibilitate (2026-11-23) ---------- */
/* titlurile cardurilor din paginile-cuprins sunt acum h2 (ordinea corectă a titlurilor), cu aspectul vechi de h3 */
.cnme-card h2 { margin: 0 0 .4rem; font-size: 1.2rem; line-height: 1.4; }
.cnme-card h2 a { text-decoration: none; color: inherit; }
.cnme-card h2 a::after { content: ""; position: absolute; inset: 0; }
.cnme-card h2 a:hover { color: var(--cnme-indigo); }
/* #TeamEliade: auriu mai închis pentru contrast ≥ 4,5:1 pe alb */
.cnme-team-tags { color: #7d5a06; }
