/* Facebook → Site — stil aliniat cu articolele „Jurnalul școlii” (scoala5vaslui.ro) */

/* Tema afișează propriul titlu și imaginea reprezentativă; articolul are deja ambele. */
.s5fb-post .inside-article > .entry-header,
.s5fb-post .featured-image.page-header-image-single,
.s5fb-post .page-header-image-single {
	display: none;
}

.s5fb {
	--s5-green: #123f3b;
	--s5-green-2: #1b5650;
	--s5-text: #24433f;
	--s5-muted: #4d6d66;
	--s5-yellow: #f7d77a;
	--s5-yellow-2: #f2c75c;
	color: var(--s5-text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	line-height: 1.75;
	max-width: 1080px;
	margin: 0 auto;
	padding: 10px 0 40px;
	overflow-wrap: anywhere;
}
.s5fb p { margin: 0; }
.s5fb figure { margin: 0; }

/* Antet articol */
.s5fb-head { max-width: 860px; margin-bottom: 34px; }
.s5fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 18px; }
.s5fb-kicker {
	display: inline-block;
	background: var(--s5-yellow);
	color: var(--s5-green);
	border-radius: 3px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.4px;
	line-height: 1;
	text-transform: uppercase;
	transform: rotate(-2deg);
}
.s5fb-date { color: var(--s5-muted); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.s5fb-title {
	color: var(--s5-green);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 56px;
	font-weight: 700;
	letter-spacing: -2px;
	line-height: 1.05;
	margin: 0 0 20px;
}
.s5fb-lead { color: #2f4f4a; font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.5; max-width: 720px; }

/* Fotografia principală */
.s5fb-hero {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	border-bottom: 6px solid var(--s5-yellow-2);
	box-shadow: 0 18px 45px #123f3b2e;
	margin-bottom: 48px !important;
}
.s5fb-hero img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; }
.s5fb-hero figcaption {
	position: absolute;
	left: 18px;
	bottom: 18px;
	background: #123f3bdd;
	color: #fff;
	border-radius: 100px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

/* Fotografia principală – link spre mărime completă */
.s5fb-hero a { display: block; }

/* Text */
.s5fb-body { display: flex; flex-direction: column; gap: 24px; max-width: 700px; margin-bottom: 48px; }
.s5fb-body p:first-child::first-letter {
	float: left;
	color: var(--s5-green);
	font-family: Georgia, serif;
	font-size: 68px;
	font-weight: 700;
	line-height: .85;
	padding: 6px 10px 0 0;
}
.s5fb-body a { color: var(--s5-green); text-decoration: underline; text-decoration-color: var(--s5-yellow-2); text-underline-offset: 3px; }

/* Galerie */
.s5fb-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0 0 48px; }
.s5fb-gallery.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.s5fb-gallery figure { margin: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px #123f3b1f; border-bottom: 4px solid #c3dfb0; }
.s5fb-gallery figure:nth-child(3n+2) { border-bottom-color: #d9cdee; }
.s5fb-gallery figure:nth-child(3n) { border-bottom-color: #f7e2a6; }
.s5fb-gallery a { display: block; }
.s5fb-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease; }
.s5fb-gallery a:hover img { transform: scale(1.03); }
.s5fb-gallery a:focus-visible { outline: 3px solid var(--s5-yellow-2); outline-offset: -3px; }

/* Banda Facebook */
.s5fb-cta {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px 22px;
	background: linear-gradient(120deg, var(--s5-green) 55%, var(--s5-green-2));
	border-bottom: 6px solid var(--s5-yellow-2);
	border-radius: 18px;
	color: #fff;
	padding: 30px 32px;
}
.s5fb-cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: var(--s5-yellow);
	border-radius: 14px;
	transform: rotate(-4deg);
	color: var(--s5-green);
	font: 800 38px/1 Georgia, serif;
}
.s5fb-cta h2 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.s5fb-cta p { color: #cfe2dc; font-size: 15px; line-height: 1.5; }
.s5fb .s5fb-btn,
.s5fb .s5fb-btn:is(:link, :visited, :active, :focus) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 22px;
	background: var(--s5-yellow) !important;
	color: var(--s5-green) !important;
	-webkit-text-fill-color: var(--s5-green) !important;
	border-radius: 10px;
	box-shadow: 0 4px 0 #b8862e;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 160ms ease, box-shadow 160ms ease;
}
.s5fb .s5fb-btn:hover { background: #ffe39a !important; box-shadow: 0 6px 0 #b8862e; transform: translateY(-2px); }
.s5fb .s5fb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Navigare */
.s5fb-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; border-top: 1px solid #d3e2da; margin-top: 28px; padding-top: 20px; font-size: 14px; font-weight: 700; }
.s5fb .s5fb-nav a,
.s5fb .s5fb-nav a:is(:link, :visited, :active, :focus) { color: var(--s5-green) !important; -webkit-text-fill-color: var(--s5-green) !important; border-bottom: 1px solid var(--s5-green); text-decoration: none !important; }
.s5fb .s5fb-nav a:hover { color: #0b6b62 !important; -webkit-text-fill-color: #0b6b62 !important; border-bottom-color: #0b6b62; }

@media (max-width: 767px) {
	.s5fb { font-size: 17px; }
	.s5fb-title { font-size: 38px; letter-spacing: -1px; }
	.s5fb-lead { font-size: 19px; }
	.s5fb-hero img { aspect-ratio: 4 / 3; }
	.s5fb-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.s5fb-hero figcaption { position: static; border-radius: 0; background: var(--s5-green); }
	.s5fb-cta { grid-template-columns: 48px minmax(0, 1fr); padding: 24px 22px; }
	.s5fb-cta-icon { width: 48px; height: 48px; font-size: 28px; }
	.s5fb-cta h2 { font-size: 23px; }
	.s5fb .s5fb-btn { grid-column: 1 / -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.s5fb .s5fb-btn, .s5fb-gallery img { transition: none; }
}
