/* Onix – layout comun pentru articole. Culori și fonturi din kit-ul site-ului. */
.onix-post {
	--onix-head: #104980;
	--onix-accent: #EEB62A;
	--onix-dark: #15426D;
	--onix-light: #629CDE;
	--onix-bg: #FAF9F5;
	--onix-text: #3b4453;
	--onix-muted: #6b7686;
	--onix-radius: 18px;
	background: var(--onix-bg);
	color: var(--onix-text);
	font-family: "Didact Gothic", sans-serif;
	font-size: 17px;
	line-height: 1.75;
	overflow: hidden;
}
.onix-post *, .onix-post *::before, .onix-post *::after { box-sizing: border-box; }
.onix-post a { text-decoration: none; }
.onix-post__wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.onix-post__hero {
	position: relative;
	padding: 170px 0 150px;
	background: linear-gradient(135deg, var(--onix-dark) 0%, var(--onix-light) 100%);
	color: #fff;
}
.onix-post__hero.has-image {
	background: linear-gradient(135deg, rgba(21, 66, 109, .92) 0%, rgba(98, 156, 222, .78) 100%), var(--onix-hero-img) center / cover no-repeat;
}
.onix-post__hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	border: 60px solid rgba(238, 182, 42, .18);
	pointer-events: none;
}
.onix-post__hero .onix-post__wrap { position: relative; z-index: 1; }
.onix-post__hero .onix-post__title, .onix-post__hero .onix-post__lead { max-width: 820px; }
.onix-post__crumbs { font-size: 14px; letter-spacing: .02em; opacity: .9; margin-bottom: 22px; }
.onix-post__crumbs a { color: #fff; }
.onix-post__crumbs a:hover { color: var(--onix-accent); }
.onix-post__crumbs span { margin: 0 8px; color: var(--onix-accent); }
.onix-post__badge {
	display: inline-block;
	background: var(--onix-accent);
	color: var(--onix-head) !important;
	font-family: "Teko", sans-serif;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
	padding: 8px 16px 5px;
	border-radius: 40px;
	margin-bottom: 18px;
}
.onix-post__title {
	font-family: "Jockey One", sans-serif;
	font-weight: 400;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
	color: #fff !important;
	margin: 0 0 18px;
	text-transform: none;
}
.onix-post__lead { font-size: 20px; line-height: 1.6; max-width: 760px; margin: 0 0 22px; opacity: .95; }
.onix-post__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: "Teko", sans-serif; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.onix-post__meta span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--onix-accent); margin: 0 10px 3px 0; }

/* ---------- Layout ---------- */
.onix-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 36px;
	align-items: start;
	margin-top: -90px;
	position: relative;
	z-index: 2;
	padding-bottom: 60px;
}
.onix-post__card {
	background: #fff;
	border-radius: var(--onix-radius);
	box-shadow: 0 20px 50px rgba(16, 73, 128, .10);
	padding: 56px 60px 44px;
	min-width: 0;
}

/* ---------- Content typography ---------- */
.onix-post__content > *:first-child { margin-top: 0; }
.onix-post__content p { margin: 0 0 1.2em; }
.onix-post__content > p:first-child strong:only-child {
	display: inline-block;
	font-family: "Teko", sans-serif;
	font-weight: 500;
	font-size: 20px;
	letter-spacing: .08em;
	color: var(--onix-head);
	border-left: 4px solid var(--onix-accent);
	padding-left: 12px;
	line-height: 1.2;
}
.onix-post__content .lead, .onix-post__content p.lead {
	font-size: 21px;
	line-height: 1.6;
	color: var(--onix-head);
	background: var(--onix-bg);
	border-radius: 12px;
	padding: 22px 26px;
}
.onix-post__content h2, .onix-post__content h3, .onix-post__content h4 {
	font-family: "Jockey One", sans-serif;
	font-weight: 400;
	color: var(--onix-head);
	line-height: 1.2;
	text-transform: none;
}
.onix-post__content h2 { font-size: 32px; margin: 1.6em 0 .6em; position: relative; padding-bottom: 12px; }
.onix-post__content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--onix-accent); }
.onix-post__content h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.onix-post__content h4 { font-size: 20px; margin: 1.2em 0 .4em; }
.onix-post__content a { color: var(--onix-head); font-weight: 600; border-bottom: 2px solid var(--onix-accent); transition: color .2s, background .2s; }
.onix-post__content a:hover { color: var(--onix-dark); background: rgba(238, 182, 42, .18); }
.onix-post__content ul, .onix-post__content ol { margin: 0 0 1.4em; padding-left: 0; }
.onix-post__content ul { list-style: none; }
.onix-post__content ul li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.onix-post__content ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--onix-accent); }
.onix-post__content ol { padding-left: 1.4em; }
.onix-post__content ol li { margin-bottom: .55em; }
.onix-post__content ol li::marker { color: var(--onix-head); font-weight: 700; }
.onix-post__content strong { color: var(--onix-head); }
.onix-post__content blockquote {
	margin: 1.8em 0;
	padding: 26px 30px;
	background: linear-gradient(135deg, var(--onix-dark), var(--onix-light));
	color: #fff;
	border: 0;
	border-radius: var(--onix-radius);
	font-size: 21px;
	line-height: 1.55;
}
.onix-post__content blockquote p:last-child { margin-bottom: 0; }
.onix-post__content blockquote strong, .onix-post__content blockquote a { color: #fff; }
.onix-post__content img { max-width: 100%; height: auto; border-radius: 12px; }
.onix-post__content figure { margin: 1.6em 0; }
.onix-post__content figcaption { font-size: 14px; color: var(--onix-muted); text-align: center; margin-top: 8px; }
.onix-post__content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 16px; }
.onix-post__content th { background: var(--onix-head); color: #fff; text-align: left; padding: 10px 14px; }
.onix-post__content td { border-bottom: 1px solid #e7e5dd; padding: 10px 14px; }
.onix-post__content hr { border: 0; height: 1px; background: #e7e5dd; margin: 2em 0; }
.onix-post__content details { background: var(--onix-bg); border-radius: 12px; padding: 14px 20px; margin-bottom: 12px; }
.onix-post__content summary { cursor: pointer; font-weight: 700; color: var(--onix-head); }
/* Articole construite cu Elementor: titlul apare deja în antet. */
.onix-post__content .elementor-widget-eel-post-title,
.onix-post__content .elementor-widget-theme-post-title { display: none; }

/* ---------- Tags + share ---------- */
.onix-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.onix-post__tags a { background: var(--onix-bg); color: var(--onix-head); border-radius: 30px; padding: 4px 14px; font-size: 14px; }
.onix-post__tags a:hover { background: var(--onix-accent); }
.onix-post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #ece9e0; font-size: 15px; }
.onix-post__share span { color: var(--onix-muted); margin-right: 4px; }
.onix-post__share a { color: var(--onix-head); border: 1px solid #d9e2ee; border-radius: 30px; padding: 4px 14px; }
.onix-post__share a:hover { background: var(--onix-head); color: #fff; border-color: var(--onix-head); }

/* ---------- Sidebar ---------- */
.onix-post__aside { position: sticky; top: 120px; display: grid; gap: 24px; }
.onix-post__box, .onix-post__cta { border-radius: var(--onix-radius); padding: 28px; }
.onix-post__box { background: #fff; box-shadow: 0 20px 50px rgba(16, 73, 128, .08); }
.onix-post__aside h3 { font-family: "Jockey One", sans-serif; font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0 0 14px; color: var(--onix-head); }
.onix-post__box dl { margin: 0; font-size: 15px; }
.onix-post__box dt { font-family: "Teko", sans-serif; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; color: var(--onix-muted); line-height: 1.2; }
.onix-post__box dd { margin: 0 0 12px; color: var(--onix-head); }
.onix-post__box dd a { color: var(--onix-head); border-bottom: 2px solid var(--onix-accent); }
.onix-post__cta { background: linear-gradient(135deg, var(--onix-dark), var(--onix-light)); color: #fff; }
.onix-post__cta h3 { color: #fff; }
.onix-post__cta p { font-size: 15px; line-height: 1.6; margin: 0 0 18px; opacity: .95; }
.onix-post__btn {
	display: inline-block;
	background: var(--onix-accent);
	color: var(--onix-head) !important;
	font-family: "Teko", sans-serif;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
	padding: 14px 26px 11px;
	border-radius: 40px;
	border: 2px solid var(--onix-accent);
	transition: background .2s, color .2s, transform .2s;
}
.onix-post__btn:hover { background: #fff; transform: translateY(-2px); }
.onix-post__cta .onix-post__btn { display: block; text-align: center; margin-top: 10px; }
.onix-post__btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .7); }
.onix-post__btn--ghost:hover { background: #fff; color: var(--onix-head) !important; }

/* ---------- Prev / next ---------- */
.onix-post__pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 70px; }
.onix-post__pn-item { background: #fff; border-radius: var(--onix-radius); padding: 22px 26px; box-shadow: 0 12px 30px rgba(16, 73, 128, .07); border-left: 4px solid var(--onix-accent); transition: transform .2s; }
.onix-post__pn-item.is-next { text-align: right; border-left: 0; border-right: 4px solid var(--onix-accent); }
.onix-post__pn-item:hover { transform: translateY(-3px); }
.onix-post__pn-item small { display: block; font-family: "Teko", sans-serif; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; color: var(--onix-muted); }
.onix-post__pn-item strong { font-family: "Jockey One", sans-serif; font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--onix-head); }

/* ---------- Related ---------- */
.onix-post__related { background: #fff; padding: 80px 0 90px; }
.onix-post__kicker { font-family: "Teko", sans-serif; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; color: var(--onix-accent); margin: 0; }
.onix-post__related h2 { font-family: "Jockey One", sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 42px); color: var(--onix-head); margin: 0 0 34px; line-height: 1.15; }
.onix-post__grid { display: grid; gap: 28px; }
.onix-post__rcard { display: flex; flex-direction: column; background: var(--onix-bg); border-radius: var(--onix-radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.onix-post__rcard:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(16, 73, 128, .14); }
.onix-post__rimg { display: block; aspect-ratio: 16 / 9; background: center / cover no-repeat; }
.onix-post__rimg.is-empty { background: linear-gradient(135deg, var(--onix-dark), var(--onix-light)); position: relative; }
.onix-post__rimg.is-empty::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; border: 12px solid rgba(238, 182, 42, .55); }
.onix-post__rbody { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.onix-post__rbody strong { font-family: "Jockey One", sans-serif; font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--onix-head); }
.onix-post__rbody span { font-size: 15px; line-height: 1.6; color: var(--onix-text); }
.onix-post__rbody em { margin-top: auto; font-style: normal; font-family: "Teko", sans-serif; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: var(--onix-head); }
.onix-post__all { text-align: center; margin: 44px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.onix-post__layout { grid-template-columns: 1fr; }
	.onix-post__aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.onix-post { font-size: 16px; }
	.onix-post__wrap { padding: 0 16px; }
	.onix-post__hero { padding: 130px 0 110px; }
	.onix-post__hero::after { width: 240px; height: 240px; border-width: 36px; right: -90px; top: -90px; }
	.onix-post__lead { font-size: 18px; }
	.onix-post__layout { margin-top: -70px; gap: 24px; }
	.onix-post__card { padding: 30px 22px 28px; }
	.onix-post__content h2 { font-size: 27px; }
	.onix-post__aside, .onix-post__pn { grid-template-columns: 1fr; }
	.onix-post__pn-item.is-next { text-align: left; border-right: 0; border-left: 4px solid var(--onix-accent); }
	.onix-post__related { padding: 60px 0; }
}

/* ---------- Lățime completă în containerul temei ---------- */
body.onix-post-layout { overflow-x: clip; }
main.onix-post { width: 100vw; max-width: 100vw; position: relative; left: 50%; margin-left: -50vw; overflow: clip; }
/* Rezumatul apare deja în antet: nu-l repetăm în text. */
.onix-post__hero:has(.onix-post__lead) ~ .onix-post__layout .onix-post__content > p.lead { display: none; }

/* ---------- Carduri: categorie + dată ---------- */
.onix-post__rimg { position: relative; }
.onix-post__rcat {
	position: absolute; left: 16px; top: 16px;
	background: var(--onix-accent); color: var(--onix-head);
	font-family: "Teko", sans-serif; font-size: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	line-height: 1; padding: 6px 12px 3px; border-radius: 30px;
}
.onix-post__rbody .onix-post__rdate { font-family: "Teko", sans-serif; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--onix-muted); line-height: 1; }
.onix-post__grid { grid-template-columns: repeat(var(--onix-cols, 3), minmax(0, 1fr)); }
.onix-post__rcard.is-featured { grid-column: span 2; flex-direction: row; }
.onix-post__rcard.is-featured .onix-post__rimg { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
.onix-post__rcard.is-featured .onix-post__rbody { padding: 34px 34px 36px; justify-content: center; }
.onix-post__rcard.is-featured .onix-post__rbody strong { font-size: 30px; }

/* ---------- Pagina Articole ---------- */
.onix-post--archive .onix-post__hero { padding-bottom: 120px; }
.onix-post__list { position: relative; z-index: 2; margin-top: -60px; padding-bottom: 80px; }
.onix-post__filters { display: flex; flex-wrap: wrap; gap: 10px; background: #fff; border-radius: var(--onix-radius); box-shadow: 0 20px 50px rgba(16, 73, 128, .10); padding: 18px 20px; margin-bottom: 36px; }
.onix-post__filters a { color: var(--onix-head); border: 1px solid #d9e2ee; border-radius: 30px; padding: 6px 18px; font-size: 15px; transition: background .2s, color .2s; }
.onix-post__filters a small { opacity: .6; margin-left: 4px; }
.onix-post__filters a:hover { border-color: var(--onix-accent); background: rgba(238, 182, 42, .15); }
.onix-post__filters a.is-active { background: var(--onix-head); border-color: var(--onix-head); color: #fff; }
.onix-post--archive .onix-post__rcard { background: #fff; box-shadow: 0 12px 30px rgba(16, 73, 128, .07); }
.onix-post__pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 50px; }
.onix-post__pages a, .onix-post__pages span { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--onix-head); font-family: "Teko", sans-serif; font-size: 20px; box-shadow: 0 6px 18px rgba(16, 73, 128, .08); }
.onix-post__pages .current { background: var(--onix-accent); }
.onix-post__pages a:hover { background: var(--onix-head); color: #fff; }
.onix-post__empty { background: #fff; border-radius: var(--onix-radius); padding: 50px; text-align: center; }
.onix-post__empty h2 { font-family: "Jockey One", sans-serif; font-weight: 400; color: var(--onix-head); }
.onix-post__empty a { color: var(--onix-head); border-bottom: 2px solid var(--onix-accent); }
.onix-post__band { background: linear-gradient(135deg, var(--onix-dark), var(--onix-light)); color: #fff; padding: 60px 0; }
.onix-post__band .onix-post__wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.onix-post__band h2 { font-family: "Jockey One", sans-serif; font-weight: 400; font-size: clamp(28px, 3.5vw, 38px); line-height: 1.15; color: #fff; margin: 0 0 8px; }
.onix-post__band p { margin: 0; opacity: .95; }
.onix-post__band-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Shortcode [onix_posts] în paginile Elementor ---------- */
.onix-posts-sc { background: transparent; overflow: visible; }
.onix-posts-sc .onix-post__rcard { background: #fff; box-shadow: 0 12px 30px rgba(16, 73, 128, .08); }

@media (max-width: 1024px) {
	.onix-post__grid { grid-template-columns: repeat(min(var(--onix-cols, 3), 2), minmax(0, 1fr)); }
	.onix-post__rcard.is-featured { flex-direction: column; }
	.onix-post__rcard.is-featured .onix-post__rimg { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
	.onix-post__grid { grid-template-columns: 1fr; }
	.onix-post__rcard.is-featured { grid-column: auto; }
	.onix-post__rcard.is-featured .onix-post__rbody { padding: 22px 24px 26px; }
	.onix-post__rcard.is-featured .onix-post__rbody strong { font-size: 24px; }
	.onix-post__filters { flex-wrap: nowrap; overflow-x: auto; }
	.onix-post__filters a { white-space: nowrap; }
}

/* ---------- Header transparent peste hero (articole, Articole, Știri/Blog) ---------- */
body.onix-post-layout .onix-hdr {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: transparent !important;
	box-shadow: none;
	transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
body.admin-bar.onix-post-layout .onix-hdr { top: 32px; }
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .e-con,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .elementor-section,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .elementor-column-wrap,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .elementor-widget-wrap,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .container {
	background: transparent !important;
	box-shadow: none !important;
	border-color: transparent !important;
}
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .menu > li > a,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr nav > ul > li > a,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .elementor-nav-menu > li > a,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .site-title a { color: #fff !important; }
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .menu > li > a:hover,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr nav > ul > li > a:hover { color: #EEB62A !important; }
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .menu-button svg rect,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .elementor-menu-toggle svg,
body.onix-post-layout:not(.onix-scrolled) .onix-hdr .elementor-menu-toggle i { fill: #fff !important; color: #fff !important; }
body.onix-post-layout.onix-scrolled .onix-hdr {
	position: fixed;
	background: #fff !important;
	box-shadow: 0 8px 30px rgba(16, 73, 128, .12);
	animation: onix-hdr-in .35s ease;
}
@keyframes onix-hdr-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (max-width: 782px) { body.admin-bar.onix-post-layout .onix-hdr { top: 46px; } body.admin-bar.onix-post-layout.onix-scrolled .onix-hdr { top: 0; } }
