/*
 * Sportavo Club — main.css
 *
 * Culorile clubului sunt injectate ca CSS custom properties din PHP:
 *   --club-primary   (ex. #1a3a5c)
 *   --club-secondary (ex. #e8b400)
 *
 * Fonturi: font stack sistem — Arial Black / Franklin Gothic Heavy (heading), Inter/system-ui (body).
 */

/* -----------------------------------------------------------------------
   Variabile globale
------------------------------------------------------------------------ */
:root {
	--font-heading: "Arial Black", "Franklin Gothic Heavy", "Segoe UI Black", Arial, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--transition-fast: 0.18s ease;
	--transition-med:  0.28s ease;
	--color-text-dark: #1a1a1a;
	--color-text-light: #ffffff;
	--color-border: #d9d9d9;
}

/* -----------------------------------------------------------------------
   Reset minimal
------------------------------------------------------------------------ */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-body);
	line-height: 1.7;
	color: #1a1a1a;
	background: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--club-primary, #1a3a5c);
}

/* -----------------------------------------------------------------------
   Utilitar: container
------------------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* -----------------------------------------------------------------------
   Screen reader only
------------------------------------------------------------------------ */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	display: block;
	height: auto;
	left: 0.25rem;
	top: 0.25rem;
	width: auto;
	z-index: 100000;
	background: #fff;
	padding: 0.5rem 1rem;
}

/* -----------------------------------------------------------------------
   Header — Faza 4.1A: layout desktop, dropdown, stări active
------------------------------------------------------------------------ */
.site-header {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
	position: relative;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
	min-height: 76px;
	gap: 2rem;
}

/* -----------------------------------------------------------------------
   Brand / Logo
------------------------------------------------------------------------ */
.site-header__brand {
	flex-shrink: 0;
}

.site-header__logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #fff;
}

.site-header__logo {
	display: block;
	max-height: 62px;
	width: auto;
	object-fit: contain;
}

.site-header__site-name {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* -----------------------------------------------------------------------
   Navigație — container
------------------------------------------------------------------------ */
.site-header__nav {
	display: flex;
	align-items: center;
}

/* -----------------------------------------------------------------------
   Meniu principal — nivel 1
------------------------------------------------------------------------ */
.site-header__menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	align-items: center;
}

.site-header__menu > li {
	position: relative;
}

.site-header__menu > li > a {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.5rem 0.875rem;
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	border-radius: var(--radius-sm);
	white-space: nowrap;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.site-header__menu > li > a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.10);
}

.site-header__menu > li > a:focus-visible {
	outline: 2px solid var(--club-secondary, #e8b400);
	outline-offset: 2px;
	color: #fff;
}

/* Stare activă — pagina curentă și ancestorii ei */
.site-header__menu .current-menu-item > a,
.site-header__menu .current-menu-ancestor > a,
.site-header__menu .current-page-parent > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

/* Indicator vizual: ▾ CSS-only pentru item-uri cu dropdown */
.site-header__menu .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.65;
	flex-shrink: 0;
	margin-top: 1px;
}

/* -----------------------------------------------------------------------
   Dropdown — .sub-menu (un nivel)
------------------------------------------------------------------------ */
.site-header__menu .sub-menu {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	min-width: 200px;
	background: #fff;
	border-top: 3px solid var(--club-secondary, #e8b400);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.06),
		0 10px 24px rgba(0, 0, 0, 0.10);
	padding: 0.375rem 0;
	list-style: none;
	margin: 0;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

/* Ultimul item din meniu: dropdown se deschide spre stânga (previne overflow) */
.site-header__menu > li:last-child > .sub-menu {
	left: auto;
	right: 0;
}

/* Afișare dropdown la hover (mouse) și focus-within (tastatură) */
.site-header__menu .menu-item-has-children:hover > .sub-menu,
.site-header__menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Linkuri din submeniu */
.site-header__menu .sub-menu a {
	display: block;
	padding: 0.5rem 1.125rem;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.site-header__menu .sub-menu a:hover {
	background: #f5f6f8;
	color: var(--club-primary, #1a3a5c);
}

.site-header__menu .sub-menu a:focus-visible {
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: -2px;
	background: #f5f6f8;
}

.site-header__menu .sub-menu .current-menu-item > a {
	color: var(--club-primary, #1a3a5c);
	font-weight: 600;
	background: rgba(26, 58, 92, 0.06);
}

/* =======================================================================
   HEADER — Faza 4.1B: hamburger toggle, iconița, starea X
======================================================================= */

/* -----------------------------------------------------------------------
   Buton toggle — ascuns pe desktop, vizibil sub 960px
------------------------------------------------------------------------ */
.site-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: #fff;
	border-radius: var(--radius-sm);
	transition: background-color 0.18s ease;
}

.site-header__menu-toggle:hover {
	background: rgba(255, 255, 255, 0.10);
}

.site-header__menu-toggle:focus-visible {
	outline: 2px solid var(--club-secondary, #e8b400);
	outline-offset: 2px;
}

/* -----------------------------------------------------------------------
   Iconița hamburger — trei linii
------------------------------------------------------------------------ */
.site-header__hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
	height: 20px;
	pointer-events: none;
}

.site-header__menu-toggle-line {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transform-origin: center;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

/* -----------------------------------------------------------------------
   Transformare în X când meniul este deschis
   Span 1 și 3 se află la ±7px față de centrul container-ului (20px înălțime,
   gap 5px, span 2px → conținut 16px → margine sus/jos 2px fiecare).
------------------------------------------------------------------------ */
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* =======================================================================
   HEADER — Faza 4.1C: social media + buton Contact
======================================================================= */

/* -----------------------------------------------------------------------
   Container acțiuni: social media + Contact
   Flex item în .site-header__nav (desktop); block în panoul mobil (.is-open)
------------------------------------------------------------------------ */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-shrink: 0;
	margin-left: 0.75rem;
	padding-left: 0.75rem;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* -----------------------------------------------------------------------
   Social media — container
------------------------------------------------------------------------ */
.site-header__socials {
	display: flex;
	align-items: center;
	gap: 0.125rem;
}

/* -----------------------------------------------------------------------
   Link social individual — 32×32 tap target, iconă SVG inline
------------------------------------------------------------------------ */
.site-header__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: rgba(255, 255, 255, 0.75);
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.site-header__social-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.10);
}

.site-header__social-link:focus-visible {
	outline: 2px solid var(--club-secondary, #e8b400);
	outline-offset: 2px;
	color: #fff;
}

/* -----------------------------------------------------------------------
   Buton Contact
------------------------------------------------------------------------ */
.site-header__contact {
	display: inline-flex;
	align-items: center;
	padding: 0.375rem 0.875rem;
	background: var(--club-secondary, #e8b400);
	color: #1a1a1a;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: var(--radius-sm);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.site-header__contact:hover {
	filter: brightness(0.88);
	color: #1a1a1a;
}

.site-header__contact:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.site-header__contact:active {
	transform: scale(0.97);
}

/* -----------------------------------------------------------------------
   Progresiv: ascunde social media la lățimi medii (961–1100px)
   Rețelele sociale rămân vizibile în panoul mobil (<960px)
------------------------------------------------------------------------ */
@media (min-width: 961px) and (max-width: 1100px) {
	.site-header__socials {
		display: none;
	}
}

/* =======================================================================
   FOOTER — Faza 4.2
======================================================================= */

.site-footer {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
	margin-top: 4rem;
}

/* -----------------------------------------------------------------------
   Zona principală cu coloane
------------------------------------------------------------------------ */
.site-footer__main {
	padding: 3.5rem 0 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Grid auto-fit: până la 4 coloane pe desktop (min 220px fiecare) */
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2.5rem;
}

/* -----------------------------------------------------------------------
   Coloana identitate
------------------------------------------------------------------------ */
.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.site-footer__logo {
	max-height: 60px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Fallback text când nu există logo */
.site-footer__name {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	line-height: 1.2;
}

.site-footer__tagline {
	margin: 0;
	font-size: 0.825rem;
	color: rgba(255, 255, 255, 0.50);
	font-style: italic;
	line-height: 1.5;
}

/* -----------------------------------------------------------------------
   Coloane secundare (navigație, contact, social)
------------------------------------------------------------------------ */
.site-footer__column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Titlu coloană */
.site-footer__title {
	font-family: var(--font-heading);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.10em;
	color: rgba(255, 255, 255, 0.42);
	margin: 0;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* -----------------------------------------------------------------------
   Meniu footer
------------------------------------------------------------------------ */
.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.site-footer__menu li a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.5;
	display: inline-block;
	padding: 0.2rem 0;
	transition: color 0.18s ease;
}

.site-footer__menu li a:hover {
	color: #fff;
}

.site-footer__menu li a:focus-visible {
	outline: 2px solid var(--club-secondary, #e8b400);
	outline-offset: 2px;
	color: #fff;
}

/* -----------------------------------------------------------------------
   Contact
------------------------------------------------------------------------ */
.site-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-style: normal;
}

.site-footer__contact-row {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.55;
}

.site-footer__contact-row a {
	color: rgba(255, 255, 255, 0.80);
	text-decoration: none;
	transition: color 0.18s ease;
}

.site-footer__contact-row a:hover {
	color: #fff;
}

.site-footer__contact-row a:focus-visible {
	outline: 2px solid var(--club-secondary, #e8b400);
	outline-offset: 2px;
	color: #fff;
}

/* -----------------------------------------------------------------------
   Social media
------------------------------------------------------------------------ */
.site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: rgba(255, 255, 255, 0.68);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.site-footer__social-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.30);
}

.site-footer__social-link:focus-visible {
	outline: 2px solid var(--club-secondary, #e8b400);
	outline-offset: 2px;
	color: #fff;
}

/* -----------------------------------------------------------------------
   Bara de jos — copyright + credit
------------------------------------------------------------------------ */
.site-footer__bottom {
	padding: 1.25rem 0;
}

.site-footer__bottom .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-footer__copyright,
.site-footer__credit {
	margin: 0;
	font-size: 0.775rem;
	color: rgba(255, 255, 255, 0.40);
	line-height: 1.5;
}

/* -----------------------------------------------------------------------
   Buton de bază
------------------------------------------------------------------------ */
.btn {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn:active {
	transform: scale(0.98);
}

.btn--primary {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
	border: 2px solid var(--club-primary, #1a3a5c);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	filter: brightness(0.82);
	color: #fff;
}

.btn--secondary {
	background: var(--club-secondary, #e8b400);
	color: #1a1a1a;
	border: 2px solid var(--club-secondary, #e8b400);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
	filter: brightness(0.88);
}

.btn--outline {
	background: transparent;
	color: var(--club-primary, #1a3a5c);
	border: 2px solid var(--club-primary, #1a3a5c);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
}

/* -----------------------------------------------------------------------
   Buton suplimentar: outline alb (pentru hero pe fundal întunecat)
------------------------------------------------------------------------ */
.btn--outline-white {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--outline-white:hover,
.btn--outline-white:focus-visible {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
	color: #fff;
}

.btn--outline-white:active {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(0.98);
}

/* Animație discretă la deschiderea meniului mobil (opacity + transform, fără transition-all) */
@keyframes sportavo-nav-open {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -----------------------------------------------------------------------
   Responsive: header <960px — navigație mobilă cu hamburger
------------------------------------------------------------------------ */
@media (max-width: 960px) {
	.site-header__inner {
		gap: 0;
	}

	.site-header__menu-toggle {
		display: flex;
	}

	.site-header__nav {
		display: none;
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		background: var(--club-primary, #1a3a5c);
		padding: 1rem 1.25rem;
		z-index: 999;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.site-header__nav.is-open {
		display: block;
		animation: sportavo-nav-open 0.2s ease forwards;
	}

	/* Meniu vertical pe mobil */
	.site-header__nav.is-open .site-header__menu {
		flex-direction: column;
		gap: 0.125rem;
	}

	.site-header__nav.is-open .site-header__menu > li {
		width: 100%;
	}

	.site-header__nav.is-open .site-header__menu > li > a {
		padding: 0.625rem 0.875rem;
		border-radius: var(--radius-sm);
		font-size: 0.9rem;
	}

	/* Submenuri afișate static pe mobil (fără hover) */
	.site-header__nav.is-open .site-header__menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: none;
		border-left: 2px solid rgba(255, 255, 255, 0.2);
		border-radius: 0;
		background: transparent;
		padding: 0.125rem 0 0.125rem 1rem;
		min-width: 0;
	}

	.site-header__nav.is-open .site-header__menu .sub-menu a {
		color: rgba(255, 255, 255, 0.8);
		font-size: 0.85rem;
		padding: 0.4rem 0.75rem;
		background: transparent;
	}

	.site-header__nav.is-open .site-header__menu .sub-menu a:hover {
		color: #fff;
		background: rgba(255, 255, 255, 0.08);
	}

	/* Indicator dropdown ascuns pe mobil */
	.site-header__nav.is-open .site-header__menu .menu-item-has-children > a::after {
		display: none;
	}

	/* Faza 4.1C: acțiuni (social media + Contact) în panoul mobil */
	.site-header__nav.is-open .site-header__actions {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		margin-left: 0;
		padding-left: 0;
		margin-top: 0.375rem;
		padding-top: 0.75rem;
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.site-header__nav.is-open .site-header__social-link {
		width: 40px;
		height: 40px;
	}

	.site-header__nav.is-open .site-header__contact {
		padding: 0.5rem 1.375rem;
		font-size: 0.875rem;
	}
}

/* =======================================================================
   HOMEPAGE — FAZA 3.1
   Hero + Următorul meci + Ultimul rezultat
======================================================================= */

/* -----------------------------------------------------------------------
   Home Page wrapper
------------------------------------------------------------------------ */
.home-page {
	overflow: hidden;
}

/* -----------------------------------------------------------------------
   Hero
------------------------------------------------------------------------ */
.home-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: flex-end;
	background-color: var(--club-primary, #1a3a5c);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* Fallback gradient când nu există imagine.
   Suprapune un gradient subtil peste background-color: var(--club-primary).
   Nu folosim color-mix() — incompatibil cu browsere vechi (Chrome < 111). */
.home-hero--no-image {
	background-image: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.06) 0%,
		rgba(0, 0, 0, 0.30) 100%
	);
}

.home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.15) 0%,
		rgba(0, 0, 0, 0.50) 50%,
		rgba(0, 0, 0, 0.80) 100%
	);
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	color: #fff;
	padding-top: 6rem;
	padding-bottom: 4rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.875rem;
	max-width: 720px;
}

.home-hero__logo-wrap {
	display: flex;
	margin-bottom: 0.75rem;
	flex-shrink: 0;
}

.home-hero__logo {
	max-width: 160px;
	max-height: 112px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.home-hero__title {
	font-family: var(--font-heading);
	font-size: clamp(2.75rem, 7vw, 5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	margin: 0;
	text-transform: uppercase;
	text-shadow:
		0 2px 4px rgba(0, 0, 0, 0.4),
		0 8px 24px rgba(0, 0, 0, 0.2);
}

.home-hero__slogan {
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	line-height: 1.5;
	margin: 0;
	opacity: 0.9;
	font-style: italic;
	font-weight: 400;
}

.home-hero__location {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.65;
	font-weight: 500;
}

.home-hero__location-item + .home-hero__location-item::before {
	content: '·';
	margin-right: 1.25rem;
	opacity: 0.5;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.625rem;
}

/* -----------------------------------------------------------------------
   Match sections (common)
------------------------------------------------------------------------ */
.home-match-section {
	padding: 4.5rem 0;
}

.home-next-match {
	background: #f5f6f8;
}

.home-last-result {
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-match-section__title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--club-primary, #1a3a5c);
	margin: 0 0 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.home-match-section__title::after {
	content: '';
	flex: 1;
	height: 2px;
	background: linear-gradient(
		to right,
		var(--club-secondary, #e8b400),
		transparent
	);
}

.home-match-section__empty {
	color: #777;
	font-style: italic;
	font-size: 0.95rem;
}

/* -----------------------------------------------------------------------
   Match card
------------------------------------------------------------------------ */
.match-card {
	background: #fff;
	border-radius: var(--radius-md);
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.05),
		0 4px 12px rgba(26, 58, 92, 0.08),
		0 0 0 1px rgba(26, 58, 92, 0.04);
	padding: 2rem;
	max-width: 600px;
}

.home-last-result .match-card {
	background: #f5f6f8;
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.04),
		0 4px 12px rgba(26, 58, 92, 0.06);
}

.match-card__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.25rem;
}

/* Echipa gazdă — aliniat stânga */
.match-card__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	min-width: 0;
}

.match-card__team--home {
	align-items: flex-start;
}

.match-card__team--away {
	align-items: flex-end;
}

.match-card__logo {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.match-card__logo-img {
	max-width: 60px;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.match-card__logo--placeholder {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
}

.match-card__team-name {
	font-weight: 600;
	font-size: 0.925rem;
	color: #1a1a1a;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.match-card__team--home .match-card__team-name {
	text-align: left;
}

.match-card__team--away .match-card__team-name {
	text-align: right;
}

/* Centru: vs / scor / date */
.match-card__vs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	flex-shrink: 0;
}

.match-card__vs-text {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: #aaa;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.match-card__date {
	font-size: 0.775rem;
	color: #666;
	font-weight: 500;
	white-space: nowrap;
}

.match-card__time {
	font-size: 1rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	letter-spacing: 0.02em;
}

.match-card__score {
	font-family: var(--font-heading);
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--club-primary, #1a3a5c);
	line-height: 1;
	white-space: nowrap;
}

/* Meta: badge acasă, stadion, competiție */
.match-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.875rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	font-size: 0.775rem;
	color: #666;
}

.match-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: 100px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.match-card__badge--home {
	background: var(--club-secondary, #e8b400);
	color: #1a1a1a;
	box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.12);
}

.match-card__competition {
	color: var(--color-text-dark, #1a1a1a);
	font-weight: 600;
}

/* =======================================================================
   HOMEPAGE — FAZA 3.2
   Ultimele știri + Jucători evidențiați
======================================================================= */

/* -----------------------------------------------------------------------
   Home Section — wrapper generic pentru secțiunile din Faza 3.2+
------------------------------------------------------------------------ */
.home-section {
	padding: 5rem 0;
}

.home-latest-news {
	background: #f5f6f8;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.home-featured-players {
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* -----------------------------------------------------------------------
   Section header — titlu + subtitlu
------------------------------------------------------------------------ */
.home-section__header {
	margin-bottom: 2.5rem;
}

.home-section__title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--club-primary, #1a3a5c);
	margin: 0 0 0.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.home-section__title::after {
	content: '';
	flex: 1;
	height: 2px;
	background: linear-gradient(
		to right,
		var(--club-secondary, #e8b400),
		transparent
	);
}

.home-section__subtitle {
	margin: 0;
	font-size: 0.9rem;
	color: #666;
	line-height: 1.5;
}

.home-section__empty {
	color: #777;
	font-style: italic;
	font-size: 0.95rem;
}

/* -----------------------------------------------------------------------
   News grid
------------------------------------------------------------------------ */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.news-card {
	background: #fff;
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.05),
		0 4px 12px rgba(26, 58, 92, 0.08),
		0 0 0 1px rgba(26, 58, 92, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
	transform: translateY(-3px);
	box-shadow:
		0 2px 4px rgba(26, 58, 92, 0.07),
		0 8px 24px rgba(26, 58, 92, 0.12),
		0 0 0 1px rgba(26, 58, 92, 0.05);
}

.news-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	flex-shrink: 0;
	background: #dde0e6;
	position: relative;
	text-decoration: none;
}

.news-card__image--placeholder {
	background: linear-gradient(
		135deg,
		var(--club-primary, #1a3a5c) 0%,
		rgba(26, 58, 92, 0.45) 100%
	);
}

/* Acoperă atât <img class="news-card__img"> (ACF/explicit) cât și <img> generat de WP */
.news-card__img,
.news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.28s ease;
}

.news-card:hover .news-card__img,
.news-card:hover .news-card__image img {
	transform: scale(1.04);
}

.news-card__content {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.news-card__meta {
	font-size: 0.75rem;
	color: #888;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.news-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
}

.news-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.news-card__title a:hover,
.news-card__title a:focus-visible {
	color: var(--club-primary, #1a3a5c);
}

.news-card__excerpt {
	font-size: 0.85rem;
	color: #555;
	line-height: 1.6;
	flex: 1;
}

.news-card__excerpt p {
	margin: 0;
}

.news-card__cta {
	align-self: flex-start;
	margin-top: 0.5rem;
	font-size: 0.8rem;
	padding: 0.45rem 1rem;
}

/* -----------------------------------------------------------------------
   Players grid
------------------------------------------------------------------------ */
.players-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.25rem;
}

.player-card {
	background: #fff;
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.05),
		0 4px 12px rgba(26, 58, 92, 0.07);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.player-card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 2px 6px rgba(26, 58, 92, 0.08),
		0 12px 28px rgba(26, 58, 92, 0.13);
}

.player-card__image {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--club-primary, #1a3a5c);
	flex-shrink: 0;
	text-decoration: none;
}

.player-card__image--placeholder {
	background: linear-gradient(
		160deg,
		var(--club-primary, #1a3a5c) 0%,
		rgba(26, 58, 92, 0.5) 100%
	);
}

/* Acoperă atât <img class="player-card__img"> cât și <img> generat de WP */
.player-card__img,
.player-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.28s ease;
}

.player-card:hover .player-card__img,
.player-card:hover .player-card__image img {
	transform: scale(1.05);
}

.player-card__number {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	background: var(--club-secondary, #e8b400);
	color: #1a1a1a;
	border-radius: var(--radius-sm);
	padding: 0.1rem 0.45rem;
	line-height: 1.4;
	letter-spacing: -0.01em;
	pointer-events: none;
}

.player-card__info {
	padding: 0.75rem 0.75rem 0.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1;
}

.player-card__name {
	font-size: 0.85rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0;
}

.player-card__position {
	font-size: 0.7rem;
	color: var(--club-primary, #1a3a5c);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0;
}

.player-card__link {
	display: block;
	margin: 0.5rem 0.75rem 0.75rem;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.35rem 0.5rem;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--club-primary, #1a3a5c);
	border: 1.5px solid var(--club-primary, #1a3a5c);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.player-card__link:hover,
.player-card__link:focus-visible {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
}

.player-card__link:active {
	transform: scale(0.98);
}

/* =======================================================================
   HOMEPAGE — FAZA 3.3A
   Sponsori
======================================================================= */

.home-sponsors {
	background: #f5f6f8;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* -----------------------------------------------------------------------
   Niveluri sponsori
------------------------------------------------------------------------ */
.sponsors-level {
	margin-bottom: 2.5rem;
}

.sponsors-level:last-child {
	margin-bottom: 0;
}

.sponsors-level__label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #bbb;
	margin: 0 0 0.875rem;
}

/* -----------------------------------------------------------------------
   Grile per nivel — auto-fill responsive fara breakpoint explicit
------------------------------------------------------------------------ */
.sponsors-grid {
	display: grid;
	gap: 1rem;
}

/* Principal — centrat, 1 card larg */
.sponsors-level--principal .sponsors-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.sponsors-level--principal .sponsor-card {
	flex: 0 1 320px;
}

/* Gold — carduri medii */
.sponsors-level--gold .sponsors-grid {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Silver — carduri mai mici */
.sponsors-level--silver .sponsors-grid {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* Bronze — carduri compacte */
.sponsors-level--bronze .sponsors-grid {
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 0.75rem;
}

/* -----------------------------------------------------------------------
   Card sponsor
------------------------------------------------------------------------ */
.sponsor-card__inner {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	min-height: 80px;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

a.sponsor-card__inner:hover {
	border-color: var(--club-primary, #1a3a5c);
	box-shadow: 0 4px 12px rgba(26, 58, 92, 0.1);
}

a.sponsor-card__inner:focus-visible {
	border-color: var(--club-primary, #1a3a5c);
	box-shadow: 0 4px 12px rgba(26, 58, 92, 0.1);
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: 2px;
}

/* Sponsor principal — card mai mare si mai proeminent */
.sponsors-level--principal .sponsor-card__inner {
	padding: 2rem 3rem;
	min-height: 120px;
	border-color: rgba(0, 0, 0, 0.1);
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.04),
		0 4px 16px rgba(26, 58, 92, 0.07);
}

/* -----------------------------------------------------------------------
   Logo sponsor
------------------------------------------------------------------------ */
.sponsor-logo__img {
	max-height: 56px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	filter: grayscale(20%) opacity(0.85);
	transition: filter 0.18s ease, opacity 0.18s ease;
}

a.sponsor-card__inner:hover .sponsor-logo__img,
a.sponsor-card__inner:focus-visible .sponsor-logo__img {
	filter: grayscale(0%) opacity(1);
}

.sponsors-level--principal .sponsor-logo__img {
	max-height: 88px;
}

/* Text fallback cand nu exista logo */
.sponsor-card__name {
	font-size: 0.82rem;
	font-weight: 600;
	color: #666;
	text-align: center;
	line-height: 1.3;
}

/* =======================================================================
   HOMEPAGE — FAZA 3.3B
   CTA final
======================================================================= */

.home-cta {
	background: var(--club-primary, #1a3a5c);
	background-image: linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.22) 0%,
		rgba(255, 255, 255, 0.04) 100%
	);
	padding: 5rem 0;
}

/* -----------------------------------------------------------------------
   Grid CTA
------------------------------------------------------------------------ */
.home-cta__grid--dual {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.home-cta__grid--single {
	display: flex;
	justify-content: center;
}

/* -----------------------------------------------------------------------
   Card CTA
------------------------------------------------------------------------ */
.home-cta__card {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-top: 3px solid var(--club-secondary, #e8b400);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	color: #fff;
}

.home-cta__grid--single .home-cta__card {
	max-width: 580px;
	width: 100%;
	text-align: center;
}

/* -----------------------------------------------------------------------
   Titlu + Text
------------------------------------------------------------------------ */
.home-cta__title {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 1.15;
	margin: 0 0 1rem;
	color: #fff;
}

.home-cta__text {
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 2rem;
}

/* -----------------------------------------------------------------------
   Actions — butoane CTA
------------------------------------------------------------------------ */
.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.home-cta__grid--single .home-cta__actions {
	justify-content: center;
}

/* Focus vizibil pe fundal întunecat */
.home-cta .btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.9);
	outline-offset: 3px;
}

/* =======================================================================
   HOMEPAGE — FAZA 3.4A
   Staff tehnic
======================================================================= */

.home-staff {
	background: #f5f6f8;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* -----------------------------------------------------------------------
   Staff grid — 4 coloane desktop
------------------------------------------------------------------------ */
.staff-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

/* -----------------------------------------------------------------------
   Staff card
------------------------------------------------------------------------ */
.staff-card {
	background: #fff;
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.04),
		0 4px 12px rgba(26, 58, 92, 0.07);
	transition: box-shadow 0.18s ease;
}

.staff-card:hover {
	box-shadow:
		0 2px 4px rgba(26, 58, 92, 0.07),
		0 8px 20px rgba(26, 58, 92, 0.12);
}

/* -----------------------------------------------------------------------
   Imaginea staff
------------------------------------------------------------------------ */
.staff-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--club-primary, #1a3a5c);
	flex-shrink: 0;
}

.staff-card__image--placeholder {
	background: linear-gradient(
		160deg,
		rgba(26, 58, 92, 0.65) 0%,
		rgba(26, 58, 92, 0.30) 100%
	);
}

/* Acopera atat <img class="staff-card__img"> cat si <img> generat de WP */
.staff-card__img,
.staff-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* -----------------------------------------------------------------------
   Continut card
------------------------------------------------------------------------ */
.staff-card__content {
	padding: 1rem 1.125rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
	border-top: 2px solid var(--club-secondary, #e8b400);
}

.staff-card__name {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.staff-card__role {
	font-size: 0.72rem;
	color: var(--club-primary, #1a3a5c);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
}

.staff-card__bio {
	font-size: 0.82rem;
	color: #666;
	line-height: 1.55;
	margin: 0.25rem 0 0;
}

/* =======================================================================
   HOMEPAGE — FAZA 3.4B
   Academia de juniori
======================================================================= */

.home-academy {
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* -----------------------------------------------------------------------
   Academy grid — 4 coloane desktop
------------------------------------------------------------------------ */
.academy-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

/* -----------------------------------------------------------------------
   Academy card
------------------------------------------------------------------------ */
.academy-card {
	background: #fff;
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.05),
		0 4px 12px rgba(26, 58, 92, 0.08),
		0 0 0 1px rgba(26, 58, 92, 0.04);
	transition: box-shadow 0.18s ease;
}

.academy-card:hover {
	box-shadow:
		0 2px 4px rgba(26, 58, 92, 0.07),
		0 8px 20px rgba(26, 58, 92, 0.12),
		0 0 0 1px rgba(26, 58, 92, 0.05);
}

/* -----------------------------------------------------------------------
   Imaginea grupei
------------------------------------------------------------------------ */
.academy-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--club-primary, #1a3a5c);
	flex-shrink: 0;
}

.academy-card__image--placeholder {
	background: linear-gradient(
		135deg,
		rgba(26, 58, 92, 0.80) 0%,
		rgba(26, 58, 92, 0.42) 100%
	);
}

/* Acopera atat <img class="academy-card__img"> cat si <img> generat de WP */
.academy-card__img,
.academy-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* -----------------------------------------------------------------------
   Continut card
------------------------------------------------------------------------ */
.academy-card__content {
	padding: 1rem 1.125rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	flex: 1;
}

/* Badge categorie varsta */
.academy-card__age {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	background: var(--club-secondary, #e8b400);
	color: #1a1a1a;
	padding: 0.15rem 0.55rem;
	border-radius: 100px;
	line-height: 1.6;
	box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.12);
}

.academy-card__title {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* -----------------------------------------------------------------------
   Lista detalii (antrenor, zile, ora, locatie)
------------------------------------------------------------------------ */
.academy-card__details {
	list-style: none;
	margin: 0.375rem 0 0;
	padding: 0.6rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.academy-card__detail {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	font-size: 0.78rem;
	line-height: 1.45;
}

.academy-card__detail-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--club-primary, #1a3a5c);
	white-space: nowrap;
	flex-shrink: 0;
}

.academy-card__detail-value {
	color: #555;
	font-weight: 500;
}

/* -----------------------------------------------------------------------
   Buton general — centrat sub grid
------------------------------------------------------------------------ */
.home-academy__actions {
	text-align: center;
}

/* -----------------------------------------------------------------------
   Responsive — Faza 3.2 breakpoints
------------------------------------------------------------------------ */
@media (max-width: 960px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.players-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-section {
		padding: 4rem 0;
	}

	/* Faza 3.4A */
	.staff-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Faza 3.4B */
	.academy-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Faza 5.1 */
	.squad-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* -----------------------------------------------------------------------
   Responsive — Faza 3.1 + 3.2 (640px și mai mic)
------------------------------------------------------------------------ */
@media (max-width: 640px) {
	.home-hero {
		min-height: 75vh;
	}

	.home-hero__inner {
		padding-top: 4rem;
		padding-bottom: 2.5rem;
	}

	.home-hero__logo-wrap {
		margin-bottom: 0.625rem;
	}

	.home-hero__logo {
		max-width: 108px;
		max-height: 76px;
	}

	.home-hero__actions {
		flex-direction: column;
		width: 100%;
	}

	.home-hero__actions .btn {
		text-align: center;
		width: 100%;
		max-width: 280px;
	}

	.home-match-section {
		padding: 3rem 0;
	}

	.match-card {
		padding: 1.25rem;
	}

	.match-card__teams {
		gap: 0.625rem;
	}

	.match-card__logo,
	.match-card__logo-img {
		width: 44px;
		height: 44px;
		max-width: 44px;
		max-height: 44px;
	}

	/* Placeholder overflow: fără resize explicit depășea containerul (52px > 44px) */
	.match-card__logo--placeholder {
		width: 44px;
		height: 44px;
	}

	.match-card__score {
		font-size: 1.625rem;
	}

	.match-card__team-name {
		font-size: 0.8rem;
	}

	/* Faza 3.2 */
	.news-grid {
		grid-template-columns: 1fr;
	}

	.players-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.home-section {
		padding: 3rem 0;
	}

	.player-card__info {
		padding: 0.625rem 0.625rem 0.25rem;
	}

	.player-card__name {
		font-size: 0.8rem;
	}

	.player-card__link {
		margin: 0.4rem 0.625rem 0.625rem;
		font-size: 0.7rem;
	}

	/* Faza 3.3A */
	.sponsors-level--principal .sponsor-card {
		flex: 0 1 100%;
	}

	.sponsors-level--principal .sponsor-card__inner {
		padding: 1.5rem 2rem;
		min-height: 90px;
	}

	.sponsors-level--gold .sponsors-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sponsors-level--silver .sponsors-grid,
	.sponsors-level--bronze .sponsors-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.5rem;
	}

	.sponsor-card__inner {
		padding: 0.75rem 0.5rem;
		min-height: 60px;
	}

	.sponsor-logo__img {
		max-height: 40px;
	}

	.sponsors-level--principal .sponsor-logo__img {
		max-height: 60px;
	}

	/* Faza 3.3B */
	.home-cta {
		padding: 3.5rem 0;
	}

	.home-cta__grid--dual {
		grid-template-columns: 1fr;
	}

	.home-cta__card {
		padding: 1.75rem;
	}

	.home-cta__grid--single .home-cta__card {
		text-align: left;
	}

	.home-cta__grid--single .home-cta__actions {
		justify-content: flex-start;
	}

	/* Faza 3.4A */
	.staff-grid {
		grid-template-columns: 1fr;
	}

	/* Faza 3.4B */
	.academy-grid {
		grid-template-columns: 1fr;
	}

	/* Faza 5.1 */
	.squad-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}

	.squad-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
}

/* =======================================================================
   SQUAD PAGE — Faza 5.1
   page-lot.php + template-parts/cards/player-card.php
======================================================================= */

.squad-page {
	padding-bottom: 5rem;
}

/* ---- Antet pagină (fundal club-primary, full-width) ---- */
.squad-page__header {
	background: var(--club-primary, #1a3a5c);
	padding: 3.5rem 0 3rem;
	margin-bottom: 3.5rem;
	position: relative;
	overflow: hidden;
}

.squad-page__header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
	pointer-events: none;
}

.squad-page__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.01em;
	line-height: 1.1;
	margin: 0 0 0.5rem;
}

.squad-page__subtitle {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.52);
	margin: 0;
	letter-spacing: 0.02em;
}

.squad-page__intro {
	margin-bottom: 3rem;
}

/* ---- Mesaje fallback ---- */
.squad-page__unavailable,
.squad-page__empty {
	padding: 5rem 0;
	text-align: center;
}

.squad-page__unavailable p,
.squad-page__empty p {
	font-size: 1rem;
	color: rgba(0,0,0,0.40);
	margin: 0;
}

/* ---- Grupă ---- */
.squad-group {
	margin-bottom: 3.5rem;
}

.squad-group:last-child {
	margin-bottom: 0;
}

.squad-group__title {
	font-family: var(--font-heading);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(0,0,0,0.33);
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ---- Grid ---- */
.squad-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

/* ---- Card ---- */
.squad-player-card {
	position: relative;
	background: #fff;
	border-radius: var(--radius-md, 10px);
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.07);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.squad-player-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.07);
	transform: translateY(-3px);
}

.squad-player-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.squad-player-card__link:focus-visible {
	outline: 3px solid var(--club-secondary, #e8b400);
	outline-offset: 3px;
	border-radius: var(--radius-md, 10px);
}

/* Zona imagine — raport 3:4 (player-card: 400×500) */
.squad-player-card__image-wrap {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--club-primary, #1a3a5c);
	overflow: hidden;
}

.squad-player-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.3s ease;
}

.squad-player-card:hover .squad-player-card__image {
	transform: scale(1.04);
}

/* Gradient peste imagine */
.squad-player-card__image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.40) 0%, transparent 55%);
	pointer-events: none;
}

/* Placeholder (fără fotografie) */
.squad-player-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, var(--club-primary, #1a3a5c) 0%, rgba(0,0,0,0.55) 100%);
}

.squad-player-card__placeholder-icon {
	width: 45%;
	height: 45%;
	opacity: 0.16;
	fill: #fff;
}

/* Badge număr tricou */
.squad-player-card__number {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	background: var(--club-secondary, #e8b400);
	color: var(--club-primary, #1a3a5c);
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
	min-width: 1.9rem;
	height: 1.9rem;
	padding: 0 0.35rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	letter-spacing: -0.02em;
}

/* Conținut text sub imagine */
.squad-player-card__content {
	padding: 0.875rem 0.875rem 1rem;
}

.squad-player-card__name {
	font-family: var(--font-heading);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--color-text-dark, #1a1a1a);
	margin: 0 0 0.2rem;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.squad-player-card__position {
	font-size: 0.72rem;
	color: rgba(0,0,0,0.42);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Ecrane foarte înguste (375px) — 1 coloană pentru squad */
@media (max-width: 375px) {
	/* Faza 5.1 */
	.squad-grid {
		grid-template-columns: 1fr;
	}

	.squad-page__header {
		padding: 2rem 0 1.75rem;
	}
}

/* Mobil ≤430px — nume/poziție pot ocupa maximum 2 rânduri în loc de trunchiere pe un rând
   Reafirmă explicit grid-ul pe 2 coloane: regula de bază .squad-grid (repeat(4,1fr), mai jos
   în fișier) altfel câștigă la orice lățime ≤640px, deoarece apare după media query-ul de 640px. */
@media (max-width: 430px) {
	.squad-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.squad-player-card__name,
	.squad-player-card__position {
		width: 100%;
		white-space: normal;
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}

/* =======================================================================
   FOOTER — Faza 4.2: responsive
======================================================================= */

/* Tabletă — 2 coloane */
@media (max-width: 768px) {
	.site-footer__main {
		padding: 2.5rem 0 2rem;
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

/* Mobil — 1 coloană */
@media (max-width: 480px) {
	.site-footer__main {
		padding: 2rem 0 1.5rem;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.site-footer__bottom .container {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}
}

/* =======================================================================
   PLAYER PROFILE — Faza 5.2
   single-jucator.php
======================================================================= */

/* ---- Hero ---- */
.player-profile__hero {
	background: var(--club-primary, #1a3a5c);
	margin-bottom: 3rem;
	overflow: hidden;
	position: relative;
}

.player-profile__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 65%);
	pointer-events: none;
}

.player-profile__hero-inner {
	display: grid;
	grid-template-columns: 1fr 2fr;
	min-height: 420px;
	position: relative;
	z-index: 1;
}

/* Coloana imagine */
.player-profile__media {
	position: relative;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.22);
}

.player-profile__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.player-profile__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, rgba(0,0,0,0.18) 0%, transparent 100%);
}

.player-profile__placeholder-icon {
	width: 38%;
	height: 38%;
	opacity: 0.15;
	fill: #fff;
}

/* Coloana identitate */
.player-profile__identity {
	padding: 3rem 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
}

.player-profile__number {
	font-family: var(--font-heading);
	font-size: clamp(2.5rem, 7vw, 5rem);
	font-weight: 900;
	color: var(--club-secondary, #e8b400);
	line-height: 1;
	letter-spacing: 0.01em;
	display: block;
	margin-bottom: 0.125rem;
}

.player-profile__name {
	font-family: var(--font-heading);
	font-size: clamp(1.625rem, 3.5vw, 2.75rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
	letter-spacing: 0.01em;
	margin: 0;
}

.player-profile__position {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.52);
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
}

/* ---- Conținut principal ---- */
.player-profile {
	padding-bottom: 4rem;
}

/* ---- Grid detalii ---- */
.player-profile__details {
	padding: 2.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.player-profile__details-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.75rem 2rem;
}

.player-profile__detail {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.player-profile__detail-label {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	color: rgba(0, 0, 0, 0.36);
	line-height: 1.3;
}

.player-profile__detail-value {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	line-height: 1.3;
}

/* ---- Biografie ---- */
.player-profile__bio {
	padding: 2.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.player-profile__bio-title {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	margin: 0 0 1.25rem;
	letter-spacing: -0.01em;
}

/* ---- Înapoi la lot ---- */
.player-profile__back {
	padding-top: 2rem;
}

/* ---- Mesaj indisponibil ---- */
.player-profile__unavailable {
	padding: 5rem 0;
	text-align: center;
}

.player-profile__unavailable p {
	font-size: 1rem;
	color: rgba(0, 0, 0, 0.40);
	margin: 0;
}

/* ---- Responsive ---- */

/* Tabletă — coloane egale, detalii 2 coloane */
@media (max-width: 768px) {
	.player-profile__hero-inner {
		grid-template-columns: 1fr 1fr;
		min-height: 360px;
	}

	.player-profile__identity {
		padding: 2rem 1.75rem;
	}

	.player-profile__details-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobil — hero stacked (imagine sus), detalii 2 coloane */
@media (max-width: 640px) {
	.player-profile__hero-inner {
		grid-template-columns: 1fr;
		min-height: unset;
	}

	/* Imagine sus cu înălțime fixă când este stacked */
	.player-profile__media {
		height: 300px;
	}

	.player-profile__identity {
		padding: 1.75rem 1.5rem 2rem;
		gap: 0.4rem;
	}

	.player-profile__hero {
		margin-bottom: 2.5rem;
	}
}

/* Ecrane foarte înguste — detalii 1 coloană */
@media (max-width: 375px) {
	.player-profile__details-grid {
		grid-template-columns: 1fr;
	}

	.player-profile__media {
		height: 260px;
	}
}

/* =======================================================================
   STAFF PAGE — Faza 5.3
   page-staff.php + template-parts/cards/staff-card.php
======================================================================= */

.staff-page {
	padding-bottom: 5rem;
}

/* ---- Antet pagina (fundal club-primary, full-width) ---- */
.staff-page__header {
	background: var(--club-primary, #1a3a5c);
	padding: 3.5rem 0 3rem;
	margin-bottom: 3.5rem;
	position: relative;
	overflow: hidden;
}

.staff-page__header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
	pointer-events: none;
}

.staff-page__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.01em;
	line-height: 1.1;
	margin: 0 0 0.5rem;
	position: relative;
}

.staff-page__subtitle {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.52);
	margin: 0;
	letter-spacing: 0.02em;
	position: relative;
}

.staff-page__intro {
	margin-bottom: 3rem;
}

/* ---- Mesaje fallback ---- */
.staff-page__unavailable,
.staff-page__empty {
	padding: 5rem 0;
	text-align: center;
}

.staff-page__unavailable p,
.staff-page__empty p {
	font-size: 1rem;
	color: rgba(0,0,0,0.40);
	margin: 0;
}

/* ---- Grupă ---- */
.staff-group {
	margin-bottom: 3.5rem;
}

.staff-group:last-child {
	margin-bottom: 0;
}

.staff-group__title {
	font-family: var(--font-heading);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(0,0,0,0.33);
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ---- Grid ---- */
.staff-page-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

/* ---- Card ---- */
.staff-member-card {
	background: #fff;
	border-radius: var(--radius-md, 10px);
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.07);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.staff-member-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 2px 5px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

/* Zona imagine — raport 3:4 */
.staff-member-card__image-wrap {
	position: relative;
	aspect-ratio: 3 / 4;
	background: var(--club-primary, #1a3a5c);
	overflow: hidden;
}

.staff-member-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* Gradient discret peste imagine */
.staff-member-card__image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.30) 0%, transparent 50%);
	pointer-events: none;
}

/* Placeholder (fara fotografie) */
.staff-member-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, var(--club-primary, #1a3a5c) 0%, rgba(0,0,0,0.50) 100%);
}

.staff-member-card__placeholder-icon {
	width: 40%;
	height: 40%;
	opacity: 0.15;
	fill: #fff;
}

/* Continut text */
.staff-member-card__content {
	padding: 1rem 1rem 1.125rem;
}

.staff-member-card__name {
	font-family: var(--font-heading);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	margin: 0 0 0.2rem;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.staff-member-card__role {
	font-size: 0.72rem;
	color: rgba(0,0,0,0.42);
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.staff-member-card__bio {
	font-size: 0.78rem;
	color: rgba(0,0,0,0.55);
	margin: 0;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- Responsive ---- */

/* Tabletă — 2 coloane */
@media (max-width: 768px) {
	.staff-page-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.staff-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}
}

/* Ecrane foarte înguste — 1 coloana */
@media (max-width: 375px) {
	.staff-page-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.staff-page__header {
		padding: 2rem 0 1.75rem;
		margin-bottom: 2rem;
	}
}

/* =======================================================================
   MATCHES PAGE — Faza 5.4
   page-program.php + template-parts/cards/match-card.php

   CSS scoped la .matches-list .match-card pentru a nu afecta .match-card
   de pe homepage (next-match.php, last-result.php) care are max-width: 600px
   și structura internă centrată (vs / date / time în coloana centrală).
======================================================================= */

/* ---- Antet pagina ---- */
.matches-page__header {
	background: var(--club-primary, #1a3a5c);
	padding: 3.5rem 0 3rem;
	margin-bottom: 3.5rem;
	position: relative;
	overflow: hidden;
}

.matches-page__header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
	pointer-events: none;
}

.matches-page__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.01em;
	line-height: 1.1;
	margin: 0 0 0.5rem;
}

.matches-page__subtitle {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.52);
	margin: 0;
	letter-spacing: 0.02em;
}

.matches-page {
	padding-bottom: 5rem;
}

.matches-page__intro {
	margin-bottom: 3rem;
}

/* ---- Mesaj indisponibil ---- */
.matches-page__unavailable {
	padding: 5rem 0;
	text-align: center;
}

.matches-page__unavailable p {
	font-size: 1rem;
	color: rgba(0,0,0,0.40);
	margin: 0;
}

/* ---- Secțiuni (viitoare / rezultate) ---- */
.matches-section {
	margin-bottom: 4rem;
}

.matches-section:last-child {
	margin-bottom: 0;
}

.matches-section__title {
	font-family: var(--font-heading);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(0,0,0,0.33);
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.matches-section__empty {
	color: rgba(0,0,0,0.40);
	font-style: italic;
	font-size: 0.95rem;
	margin: 0;
	padding: 2rem 0;
}

/* ---- Lista de carduri ---- */
.matches-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ---- Card meci (pagina program) ---- */
/* Override: .match-card de pe homepage are max-width: 600px și structura centrată.
   Scoping la .matches-list evită orice interferență. */
.matches-list .match-card {
	max-width: none;
	padding: 1.125rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	border: 1px solid rgba(0,0,0,0.07);
	box-shadow:
		0 1px 3px rgba(26,58,92,0.04),
		0 3px 10px rgba(26,58,92,0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.matches-list .match-card:hover {
	box-shadow:
		0 3px 10px rgba(26,58,92,0.08),
		0 6px 20px rgba(26,58,92,0.10);
	transform: translateY(-1px);
}

/* Diferentiere vizuală discretă: rezultat = fundal ușor tonal */
.matches-list .match-card--result {
	background: #f8f9fb;
	box-shadow:
		0 1px 2px rgba(26,58,92,0.03),
		0 2px 8px rgba(26,58,92,0.05);
}

/* ---- Meta (sus): competiție + dată/oră + status ---- */
/* Override: .match-card__meta de pe homepage are margin-top + border-top
   (este bara de jos a cardului). Pe pagina program meta este în sus, fără borduri. */
.matches-list .match-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	flex-wrap: wrap;
}

.match-card__meta-info {
	display: flex;
	align-items: center;
	gap: 0.375rem 0.75rem;
	flex-wrap: wrap;
}

/* Competiție — badge compact */
.matches-list .match-card__competition {
	font-family: var(--font-heading);
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff;
	background: var(--club-primary, #1a3a5c);
	padding: 0.15rem 0.55rem;
	border-radius: 100px;
	line-height: 1.7;
	white-space: nowrap;
}

/* Dată + oră */
.match-card__datetime {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.match-card__time-sep {
	color: rgba(0,0,0,0.28);
	font-size: 0.75rem;
}

/* Override: homepage are .match-card__date + .match-card__time cu font mai mare */
.matches-list .match-card__date {
	font-size: 0.775rem;
	color: rgba(0,0,0,0.48);
	font-weight: 500;
	white-space: nowrap;
}

.matches-list .match-card__time {
	font-size: 0.775rem;
	font-weight: 600;
	color: rgba(0,0,0,0.60);
	letter-spacing: 0;
}

/* Badge „Urmează" — discret, aliniat la dreapta în meta */
.match-card__status {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.6rem;
	border-radius: 100px;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--club-secondary, #e8b400);
	color: #1a1a1a;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.12);
}

/* ---- Echipe (centru card) ---- */
/* .match-card__teams reutilizează grid 1fr auto 1fr din homepage CSS.
   Override: align-items și gap pentru layout orizontal cu logo inline. */
.matches-list .match-card__teams {
	align-items: center;
	gap: 0.875rem;
}

/* Echipa gazdă: flex row (logo stânga + nume dreapta) */
.matches-list .match-card__team {
	display: flex;
	gap: 0.625rem;
}

.matches-list .match-card__team--home {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
}

/* Echipa oaspete: flex row-reverse (nume stânga + logo dreapta) */
.matches-list .match-card__team--away {
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-start;
}

/* Text aliniere */
.matches-list .match-card__team--home .match-card__team-name {
	text-align: left;
}

.matches-list .match-card__team--away .match-card__team-name {
	text-align: right;
}

.matches-list .match-card__team-name {
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--color-text-dark, #1a1a1a);
	line-height: 1.3;
}

/* Logo — dimensiune pentru lista de meciuri */
.matches-list .match-card__logo {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.matches-list .match-card__logo-img {
	max-width: 44px;
	max-height: 44px;
}

/* Placeholder logo: cerc neutru cu icon fotbal */
.match-card__logo-placeholder {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(0,0,0,0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.match-card__logo-placeholder svg {
	width: 22px;
	height: 22px;
	color: rgba(0,0,0,0.20);
}

/* Centru: vs / scor — .match-card__vs reutilizat din homepage (flex col, center) */
.matches-list .match-card__vs {
	min-width: 80px;
	gap: 0.2rem;
}

/* Override: homepage are 1rem bold; pe program page 'vs' este discret */
.matches-list .match-card__vs-text {
	font-size: 0.8rem;
	color: rgba(0,0,0,0.25);
	letter-spacing: 0.06em;
}

/* Scor — override: homepage are 2.25rem; lista are 1.75rem */
.matches-list .match-card__score {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--club-primary, #1a3a5c);
	line-height: 1;
	white-space: nowrap;
}

.match-card__score-sep {
	font-size: 1.25rem;
	font-weight: 400;
	color: rgba(0,0,0,0.28);
	line-height: 1;
}

/* Scor incomplet — mesaj discret */
.match-card__incomplete {
	font-size: 0.7rem;
	color: rgba(0,0,0,0.36);
	font-style: italic;
	margin: 0;
	text-align: center;
	max-width: 90px;
	line-height: 1.4;
}

/* ---- Stadion (jos card) ---- */
.match-card__venue {
	font-size: 0.75rem;
	color: rgba(0,0,0,0.40);
	padding-top: 0.625rem;
	border-top: 1px solid rgba(0,0,0,0.06);
	margin-top: 0.125rem;
}

/* ---- Responsive ---- */

/* Tabletă */
@media (max-width: 768px) {
	.matches-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}

	.matches-list .match-card {
		padding: 1rem 1.125rem;
	}

	.matches-list .match-card__logo,
	.matches-list .match-card__logo-img {
		width: 36px;
		height: 36px;
		max-width: 36px;
		max-height: 36px;
	}

	.match-card__logo-placeholder {
		width: 30px;
		height: 30px;
	}

	.matches-list .match-card__score {
		font-size: 1.5rem;
	}

	.matches-list .match-card__vs {
		min-width: 68px;
	}
}

/* Mobil îngust (375px) */
@media (max-width: 375px) {
	.matches-page__header {
		padding: 2rem 0 1.75rem;
		margin-bottom: 2rem;
	}

	.matches-list .match-card {
		padding: 0.875rem 1rem;
		gap: 0.625rem;
	}

	.matches-list .match-card__teams {
		gap: 0.375rem;
	}

	.matches-list .match-card__logo,
	.matches-list .match-card__logo-img {
		width: 30px;
		height: 30px;
		max-width: 30px;
		max-height: 30px;
	}

	.match-card__logo-placeholder {
		width: 26px;
		height: 26px;
	}

	.matches-list .match-card__score {
		font-size: 1.25rem;
		gap: 0.2rem;
	}

	.match-card__score-sep {
		font-size: 1rem;
	}

	.matches-list .match-card__vs {
		min-width: 56px;
	}

	.matches-list .match-card__team-name {
		font-size: 0.82rem;
	}
}

/* ============================================================================
   ACADEMY PAGE — Faza 5.5
   Namespace: .academy-page, .academy-group-card
   Scoped complet față de .academy-card de pe homepage (academy-section.php).
   Fără: color-mix(), Google Fonts, librării externe, transition: all.
   ============================================================================ */

/* ---------- Header pagina ---------- */
.academy-page__header {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
	padding: 3.5rem 0 3rem;
	margin-bottom: 3rem;
	position: relative;
	overflow: hidden;
}

.academy-page__title {
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0 0 0.5rem;
	color: #fff;
	line-height: 1.15;
}

.academy-page__subtitle {
	font-size: 1rem;
	color: rgba(255,255,255,0.72);
	margin: 0;
	line-height: 1.6;
}

/* ---------- Intro (conținut editor) ---------- */
.academy-page__intro {
	max-width: 720px;
	margin: 0 auto 2.5rem;
	line-height: 1.75;
	color: #333;
}

/* ---------- Modul dezactivat / fallback fără grupe ---------- */
.academy-page__unavailable,
.academy-page__empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: #666;
	font-size: 0.975rem;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: var(--radius-md);
	background: #fafafa;
	max-width: 480px;
	margin: 2rem auto;
}

/* ---------- Grilă carduri — 2 coloane desktop ---------- */
.academy-page__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
	margin-bottom: 3rem;
}

/* ---------- Cardul grupei ---------- */
.academy-group-card {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow:
		0 1px 2px rgba(0,0,0,0.04),
		0 4px 12px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
}

/* ---------- Media: raport 4:3, object-fit cover ---------- */
.academy-group-card__media {
	position: relative;
	width: 100%;
	padding-top: 75%;
	overflow: hidden;
	background: #eef0f2;
	flex-shrink: 0;
}

.academy-group-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.academy-group-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(0,0,0,0.18);
}

.academy-group-card__placeholder svg {
	width: 52px;
	height: 52px;
}

/* ---------- Conținut ---------- */
.academy-group-card__content {
	padding: 1.375rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	flex: 1;
}

/* ---------- Etichetă vârstă / categorie ---------- */
.academy-group-card__age {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--club-secondary, #e8b400);
	background: rgba(0,0,0,0.05);
	border: 1px solid rgba(0,0,0,0.08);
	padding: 0.2rem 0.6rem;
	border-radius: var(--radius-sm);
	align-self: flex-start;
}

/* ---------- Titlul grupei ---------- */
.academy-group-card__title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--club-primary, #1a3a5c);
	margin: 0;
	line-height: 1.25;
}

/* ---------- Detalii (antrenor, zile, oră, locație) ---------- */
.academy-group-card__details {
	list-style: none;
	margin: 0;
	padding: 0.875rem 0 0;
	border-top: 1px solid rgba(0,0,0,0.07);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.academy-group-card__detail {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.academy-group-card__detail-label {
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #666;
	white-space: nowrap;
	min-width: 4.5rem;
	flex-shrink: 0;
}

.academy-group-card__detail-value {
	color: #222;
}

/* ---------- Informații pentru părinți ---------- */
.academy-group-card__parent-info {
	border-top: 1px solid rgba(0,0,0,0.07);
	padding-top: 0.875rem;
	margin-top: auto;
}

.academy-group-card__parent-title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #999;
	margin: 0 0 0.5rem;
}

.academy-group-card__parent-info p {
	font-size: 0.9rem;
	color: #444;
	line-height: 1.65;
	margin: 0 0 0.5rem;
}

.academy-group-card__parent-info p:last-child {
	margin-bottom: 0;
}

.academy-group-card__parent-info ul,
.academy-group-card__parent-info ol {
	font-size: 0.9rem;
	color: #444;
	line-height: 1.65;
	padding-left: 1.25rem;
	margin: 0 0 0.5rem;
}

/* ---------- Tabletă ---------- */
@media (max-width: 768px) {
	.academy-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}

	.academy-page__grid {
		gap: 1.25rem;
	}

	.academy-group-card__content {
		padding: 1.125rem 1.25rem 1.25rem;
	}
}

/* ---------- Mobil: 1 coloană ---------- */
@media (max-width: 600px) {
	.academy-page__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

/* ---------- Mobil îngust (375px) ---------- */
@media (max-width: 375px) {
	.academy-page__header {
		padding: 2rem 0 1.75rem;
		margin-bottom: 2rem;
	}

	.academy-page__title {
		font-size: 1.5rem;
	}

	.academy-group-card__content {
		padding: 1rem 1.125rem 1.125rem;
		gap: 0.75rem;
	}

	.academy-group-card__title {
		font-size: 1.1rem;
	}

	.academy-group-card__detail {
		font-size: 0.85rem;
	}

	.academy-group-card__detail-label {
		min-width: 4rem;
	}
}

/* ============================================================================
   SPONSORS PAGE — Faza 5.6
   Namespace: .sponsors-page, .sponsors-group, .sponsors-page-grid, .sponsor-page-card
   Separat complet față de .sponsor-card, .sponsors-grid, .sponsors-level (homepage).
   Fără: color-mix(), Google Fonts, librării externe, transition: all.
   ============================================================================ */

/* ---------- Header pagina ---------- */
.sponsors-page__header {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
	padding: 3.5rem 0 3rem;
	margin-bottom: 3rem;
}

.sponsors-page__title {
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0 0 0.5rem;
	color: #fff;
	line-height: 1.15;
}

.sponsors-page__subtitle {
	font-size: 1rem;
	color: rgba(255,255,255,0.72);
	margin: 0;
	line-height: 1.6;
}

/* ---------- Conținut editor ---------- */
.sponsors-page__intro {
	max-width: 720px;
	margin: 0 auto 2.5rem;
	line-height: 1.75;
	color: #333;
}

/* ---------- Stări modul dezactivat / fără sponsori ---------- */
.sponsors-page__unavailable,
.sponsors-page__empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: #666;
	font-size: 0.975rem;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: var(--radius-md);
	background: #fafafa;
	max-width: 480px;
	margin: 2rem auto;
}

/* ---------- Secțiune grup nivel ---------- */
.sponsors-group {
	margin-bottom: 3rem;
}

.sponsors-group__title {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0,0,0,0.1);
	position: relative;
}

.sponsors-group__title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 2.5rem;
	height: 2px;
	background: var(--club-primary, #1a3a5c);
}

/* Sponsor principal — titlu mai proeminent */
.sponsors-group--principal .sponsors-group__title {
	font-size: 1rem;
	letter-spacing: 0.06em;
	color: var(--club-primary, #1a3a5c);
}

.sponsors-group--principal .sponsors-group__title::after {
	width: 3rem;
	background: var(--club-secondary, #e8b400);
}

/* ---------- Grile per nivel ---------- */
.sponsors-page-grid {
	display: grid;
	gap: 1.5rem;
}

/* Principal: max 2 coloane, centrate față de container */
.sponsors-page-grid--principal {
	grid-template-columns: repeat(2, 1fr);
	max-width: 840px;
	margin-left: auto;
	margin-right: auto;
}

/* Gold: 3 coloane */
.sponsors-page-grid--gold {
	grid-template-columns: repeat(3, 1fr);
}

/* Silver: 4 coloane */
.sponsors-page-grid--silver {
	grid-template-columns: repeat(4, 1fr);
}

/* Bronze și Alți parteneri: 4 coloane */
.sponsors-page-grid--bronze,
.sponsors-page-grid--alti-parteneri {
	grid-template-columns: repeat(4, 1fr);
}

/* ---------- Card bază ---------- */
.sponsor-page-card {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(0,0,0,0.04),
		0 4px 12px rgba(0,0,0,0.06);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Hover discret — numai pentru carduri cu link.
 * Clasa sponsor-page-card--linked adăugată din PHP când sponsor_website există.
 * Evită :has() pentru compatibilitate mai largă cu browsere vechi.
 */
.sponsor-page-card--linked {
	cursor: pointer;
}

.sponsor-page-card--linked:hover {
	transform: translateY(-2px);
	box-shadow:
		0 2px 4px rgba(0,0,0,0.06),
		0 8px 24px rgba(0,0,0,0.1);
}

.sponsor-page-card--linked:active {
	transform: translateY(0);
}

/* Focus vizibil accesibil */
a.sponsor-page-card__link:focus-visible {
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: -2px;
}

/* ---------- Wrapper intern: <a> sau <div> ---------- */
.sponsor-page-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
}

/* ---------- Logo container ---------- */
.sponsor-page-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	padding: 1.5rem 2rem;
	background: #f8f9fa;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	flex-shrink: 0;
	overflow: hidden;
}

.sponsor-page-card__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Fallback text — afișat când lipsesc imaginile */
.sponsor-page-card__name-fallback {
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	text-align: center;
	line-height: 1.35;
	word-break: break-word;
}

/* Înălțime logo per nivel — ierarhie vizuală clară */
.sponsors-page-grid--principal .sponsor-page-card__logo {
	height: 180px;
	padding: 2rem 2.5rem;
}

.sponsors-page-grid--silver .sponsor-page-card__logo,
.sponsors-page-grid--bronze .sponsor-page-card__logo,
.sponsors-page-grid--alti-parteneri .sponsor-page-card__logo {
	height: 90px;
	padding: 1.125rem 1.5rem;
}

/* ---------- Corp card ---------- */
.sponsor-page-card__body {
	padding: 1.125rem 1.375rem 1.375rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.sponsor-page-card__name {
	font-family: var(--font-heading);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	margin: 0;
	line-height: 1.3;
}

.sponsors-page-grid--principal .sponsor-page-card__name {
	font-size: 1.05rem;
}

.sponsor-page-card__description {
	font-size: 0.85rem;
	color: #555;
	line-height: 1.65;
}

.sponsors-page-grid--principal .sponsor-page-card__description {
	font-size: 0.9rem;
}

/* Acțiune: span stilizat ca buton text, în interiorul <a> — fără imbricare interactive */
.sponsor-page-card__action {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--club-primary, #1a3a5c);
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0,0,0,0.07);
}

.sponsor-page-card__action::after {
	content: '→';
	font-style: normal;
}

/* ---------- Tabletă (≤1024px) ---------- */
@media (max-width: 1024px) {
	.sponsors-page-grid--silver,
	.sponsors-page-grid--bronze,
	.sponsors-page-grid--alti-parteneri {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Tabletă (≤768px) ---------- */
@media (max-width: 768px) {
	.sponsors-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}

	.sponsors-page-grid--principal {
		grid-template-columns: 1fr;
		max-width: 480px;
	}

	.sponsors-page-grid--gold,
	.sponsors-page-grid--silver,
	.sponsors-page-grid--bronze,
	.sponsors-page-grid--alti-parteneri {
		grid-template-columns: repeat(2, 1fr);
	}

	.sponsors-page-grid--principal .sponsor-page-card__logo {
		height: 160px;
	}

	.sponsors-group {
		margin-bottom: 2.5rem;
	}
}

/* ---------- Mobil (≤480px) ---------- */
@media (max-width: 480px) {
	.sponsors-page-grid {
		gap: 1rem;
	}

	.sponsor-page-card__logo {
		height: 90px;
		padding: 1rem 1.25rem;
	}

	.sponsors-page-grid--principal .sponsor-page-card__logo {
		height: 130px;
		padding: 1.25rem 1.5rem;
	}

	.sponsor-page-card__body {
		padding: 0.875rem 1rem 1rem;
	}
}

/* ---------- Mobil îngust (≤375px) ---------- */
@media (max-width: 375px) {
	.sponsors-page__header {
		padding: 2rem 0 1.75rem;
		margin-bottom: 2rem;
	}

	.sponsors-page__title {
		font-size: 1.5rem;
	}

	.sponsors-page-grid--principal {
		grid-template-columns: 1fr;
	}

	.sponsors-page-grid--gold,
	.sponsors-page-grid--silver,
	.sponsors-page-grid--bronze,
	.sponsors-page-grid--alti-parteneri {
		grid-template-columns: 1fr;
	}

	.sponsors-group__title {
		font-size: 0.72rem;
	}
}


/* ============================================================
   GALLERY PAGE — Faza 5.7
   Namespace: .gallery-page, .gallery-filters, .gallery-card
   Separat de orice altă secțiune.
   ============================================================ */

/* ---------- Antet pagina ---------- */
.gallery-page__header {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
	padding: 4rem 0 3.5rem;
	margin-bottom: 3.5rem;
}

.gallery-page__title {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 0.625rem;
}

.gallery-page__subtitle {
	font-family: var(--font-body);
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
	line-height: 1.5;
}

/* ---------- Intro ---------- */
.gallery-page__intro {
	margin-bottom: 2.5rem;
}

/* ---------- Filtre categorie ---------- */
.gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2.5rem;
}

.gallery-filter {
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.5rem 1.125rem;
	border: 2px solid var(--club-primary, #1a3a5c);
	border-radius: 2rem;
	background: transparent;
	color: var(--club-primary, #1a3a5c);
	cursor: pointer;
	line-height: 1;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.gallery-filter:hover {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
}

.gallery-filter.is-active {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
}

.gallery-filter:focus-visible {
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: 2px;
}

.gallery-filter:active {
	opacity: 0.85;
}

/* ---------- Grid albume ---------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	margin-bottom: 4rem;
}

/* Itemul din grid — ascuns de JS la filtrare */
.gallery-grid__item[hidden] {
	display: none;
}

/* ---------- Card album ---------- */
.gallery-card {
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.05),
		0 4px 14px rgba(26, 58, 92, 0.08);
	height: 100%;
	/* transition pe elementul animat — nu pe părintele .gallery-grid__item */
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.gallery-card:hover {
	transform: translateY(-3px);
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.06),
		0 12px 30px rgba(26, 58, 92, 0.14);
}

.gallery-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.gallery-card__link:focus-visible {
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: -2px;
}

/* ---------- Media (16:9) ---------- */
.gallery-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #dce4ec;
	flex-shrink: 0;
}

.gallery-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* transition pe starea de bază — efectul se declanșează la hover pe card */
	transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-card__image {
	transform: scale(1.04);
}

.gallery-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(26, 58, 92, 0.2);
}

.gallery-card__placeholder svg {
	width: 3rem;
	height: 3rem;
}

/* ---------- Conținut card ---------- */
.gallery-card__content {
	padding: 1.25rem 1.375rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gallery-card__meta {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-wrap: wrap;
	margin-bottom: 0.625rem;
}

.gallery-card__category {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #fff;
	background: var(--club-primary, #1a3a5c);
	padding: 0.2em 0.6em;
	border-radius: 3px;
	line-height: 1.5;
	white-space: nowrap;
}

.gallery-card__date {
	font-family: var(--font-body);
	font-size: 0.8rem;
	color: #8a95a1;
	line-height: 1.4;
}

.gallery-card__title {
	font-family: var(--font-heading);
	font-size: 1.0rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	margin: 0 0 0.5rem;
	line-height: 1.35;
}

.gallery-card__excerpt {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: #5a6470;
	line-height: 1.65;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Stări goale / indisponibil ---------- */
.gallery-page__empty,
.gallery-page__unavailable {
	padding: 3rem 0 4rem;
	text-align: center;
	color: #666;
	font-size: 1rem;
	line-height: 1.6;
}

/* ---------- Tabletă (≤1024px) — 2 coloane ---------- */
@media (max-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

/* ---------- Tabletă (≤768px) ---------- */
@media (max-width: 768px) {
	.gallery-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}

	.gallery-page__title {
		font-size: 1.875rem;
	}

	.gallery-grid {
		gap: 1.25rem;
		margin-bottom: 3rem;
	}
}

/* ---------- Mobil (≤480px) — 1 coloană ---------- */
@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 1.125rem;
	}

	.gallery-card__content {
		padding: 1rem 1.125rem 1.25rem;
	}
}

/* ---------- Mobil îngust (≤375px) ---------- */
@media (max-width: 375px) {
	.gallery-page__header {
		padding: 2rem 0 1.75rem;
		margin-bottom: 2rem;
	}

	.gallery-page__title {
		font-size: 1.5rem;
	}

	.gallery-filters {
		gap: 0.375rem;
	}

	.gallery-filter {
		font-size: 0.75rem;
		padding: 0.4rem 0.875rem;
	}

	.gallery-card__title {
		font-size: 0.95rem;
	}
}

/* =============================================================================
   CONTACT PAGE — Faza 5.8
   Namespace: .contact-page, .contact-card, .contact-page__socials
   Separat de orice altă secțiune.
   ============================================================ */

/* ---------- Antet pagină ---------- */
.contact-page__header {
	background: var(--club-primary, #1a3a5c);
	color: #fff;
	padding: 4rem 0 3.5rem;
	margin-bottom: 3.5rem;
}

.contact-page__title {
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.15;
	margin: 0 0 0.625rem;
	color: #fff;
	text-transform: uppercase;
}

.contact-page__subtitle {
	font-family: var(--font-body);
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
	line-height: 1.6;
}

/* ---------- Conținut pagină ---------- */
.contact-page__intro {
	margin-bottom: 2.5rem;
}

/* ---------- Grid carduri — 3 coloane desktop ---------- */
.contact-page__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

/* ---------- Card contact ---------- */
.contact-card {
	background: #fff;
	border: 1px solid #e4e8ed;
	border-radius: var(--radius-lg);
	padding: 1.75rem 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(26, 58, 92, 0.07);
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	transition: box-shadow 0.22s ease, transform 0.22s ease;
	border-top: 3px solid var(--club-primary, #1a3a5c);
}

.contact-card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(26, 58, 92, 0.12);
	transform: translateY(-2px);
}

/* ---------- Iconiță ---------- */
.contact-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(26, 58, 92, 0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--club-primary, #1a3a5c);
	flex-shrink: 0;
	margin-bottom: 0.25rem;
}

/* ---------- Titlu card ---------- */
.contact-card__title {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--club-primary, #1a3a5c);
	margin: 0;
	line-height: 1.3;
}

/* ---------- Valoare ---------- */
.contact-card__value {
	font-family: var(--font-body);
	font-size: 1rem;
	color: #1a1a1a;
	line-height: 1.65;
	margin: 0;
	font-style: normal;
	word-break: break-word;
}

/* ---------- Link din card (tel:/mailto:) ---------- */
.contact-card__link {
	color: var(--club-primary, #1a3a5c);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.18s ease;
}

.contact-card__link:hover {
	color: var(--club-secondary, #e8b400);
}

.contact-card__link:focus-visible {
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---------- Acțiune card (link hartă) ---------- */
.contact-card__action {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--club-primary, #1a3a5c);
	text-decoration: none;
	margin-top: auto;
	padding-top: 0.625rem;
	border-top: 1px solid #e4e8ed;
	transition: color 0.18s ease;
}

.contact-card__action:hover {
	color: var(--club-secondary, #e8b400);
}

.contact-card__action:focus-visible {
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---------- Notă informativă ---------- */
.contact-page__note {
	background: rgba(26, 58, 92, 0.05);
	border-left: 3px solid var(--club-primary, #1a3a5c);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	padding: 1rem 1.25rem;
	margin-bottom: 2.5rem;
}

.contact-page__note p {
	margin: 0;
	font-size: 0.9375rem;
	color: #2a2a2a;
	line-height: 1.6;
}

/* ---------- Secțiunea social media ---------- */
.contact-page__socials {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid #e4e8ed;
	margin-bottom: 4rem;
}

.contact-page__social-title {
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--club-primary, #1a3a5c);
	margin: 0 0 1.25rem;
}

.contact-page__social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.contact-page__social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.125rem;
	background: #fff;
	border: 1.5px solid #d8dfe8;
	border-radius: var(--radius-md);
	color: var(--club-primary, #1a3a5c);
	text-decoration: none;
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.contact-page__social-link:hover {
	background: var(--club-primary, #1a3a5c);
	border-color: var(--club-primary, #1a3a5c);
	color: #fff;
	transform: translateY(-1px);
}

.contact-page__social-link:focus-visible {
	outline: 2px solid var(--club-primary, #1a3a5c);
	outline-offset: 3px;
	border-radius: var(--radius-md);
}

.contact-page__social-link:active {
	transform: translateY(0);
}

.contact-page__social-name {
	font-size: 0.875rem;
}

/* ---------- Stări goale / indisponibil ---------- */
.contact-page__empty,
.contact-page__unavailable {
	padding: 3rem 0 4rem;
	text-align: center;
	color: #666;
	font-size: 1rem;
	line-height: 1.6;
}

/* ---------- Tabletă (≤1024px) — 2 coloane ---------- */
@media (max-width: 1024px) {
	.contact-page__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Tabletă mică (≤768px) ---------- */
@media (max-width: 768px) {
	.contact-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}

	.contact-page__title {
		font-size: 1.875rem;
	}
}

/* ---------- Mobil (≤480px) — 1 coloană ---------- */
@media (max-width: 480px) {
	.contact-page__grid {
		grid-template-columns: 1fr;
	}

	.contact-card {
		padding: 1.375rem 1.25rem;
	}

	.contact-page__social-list {
		gap: 0.625rem;
	}

	.contact-page__social-link {
		padding: 0.5rem 0.875rem;
		font-size: 0.85rem;
	}
}

/* ---------- Mobil îngust (≤375px) ---------- */
@media (max-width: 375px) {
	.contact-page__header {
		padding: 2rem 0 1.75rem;
		margin-bottom: 2rem;
	}

	.contact-page__title {
		font-size: 1.5rem;
	}

	.contact-card__value {
		font-size: 0.9375rem;
	}

	.contact-page__social-link {
		padding: 0.5rem 0.75rem;
		font-size: 0.8rem;
	}
}

/* =======================================================================
   BLOG — Arhivă știri (index.php, folosit pentru pagina /stiri/)
   Scop separat de .news-grid/.news-card (homepage) — nu le atinge.
======================================================================= */

.posts-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	margin: 2.5rem 0 3rem;
}

.post-item {
	background: #fff;
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.05),
		0 4px 12px rgba(26, 58, 92, 0.08),
		0 0 0 1px rgba(26, 58, 92, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-item:hover {
	transform: translateY(-3px);
	box-shadow:
		0 2px 4px rgba(26, 58, 92, 0.07),
		0 8px 24px rgba(26, 58, 92, 0.12),
		0 0 0 1px rgba(26, 58, 92, 0.05);
}

/* Raport 7:5 — mai blând decât 16:9, ancorat sus (object-position) ca linie de apărare
   suplimentară față de crop-ul deja aplicat de WordPress la dimensiunea 'news-thumb'. */
.post-item__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 7 / 5;
	overflow: hidden;
	flex-shrink: 0;
	background: #dde0e6;
}

.post-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 0.28s ease;
}

.post-item:hover .post-item__thumb img {
	transform: scale(1.04);
}

.post-item__content {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.post-item__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
}

.post-item__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.post-item__title a:hover,
.post-item__title a:focus-visible {
	color: var(--club-primary, #1a3a5c);
}

.post-item__date {
	font-size: 0.75rem;
	color: #888;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.post-item__excerpt {
	font-size: 0.85rem;
	color: #555;
	line-height: 1.6;
	flex: 1;
}

.post-item__excerpt p {
	margin: 0;
}

.post-item__read-more {
	align-self: flex-start;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	padding: 0.45rem 1rem;
}

/* Tabletă — 2 coloane */
@media (max-width: 960px) {
	.posts-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

/* Mobil — 1 coloană */
@media (max-width: 640px) {
	.posts-list {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		margin: 1.75rem 0 2.5rem;
	}
}

/* -----------------------------------------------------------------------
   Articol individual (single.php) — imagine antet
   Același raport blând + ancorare sus ca la arhivă, pentru consecvență.
------------------------------------------------------------------------ */
.single-post__thumb {
	width: 100%;
	aspect-ratio: 8 / 5;
	overflow: hidden;
	border-radius: var(--radius-md);
	margin-bottom: 1.75rem;
	background: #dde0e6;
}

.single-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

@media (max-width: 640px) {
	.single-post__thumb {
		aspect-ratio: 4 / 3;
		border-radius: var(--radius-sm);
		margin-bottom: 1.25rem;
	}
}

/* =======================================================================
   CLASAMENT — pagina completă (/clasament/) + secțiune compactă homepage
======================================================================= */

/* -----------------------------------------------------------------------
   Antet pagina — mirror .matches-page__header / .sponsors-page__header
------------------------------------------------------------------------ */
.standings-page__header {
	background: var(--club-primary, #1a3a5c);
	padding: 3.5rem 0 3rem;
	margin-bottom: 3.5rem;
	position: relative;
	overflow: hidden;
}

.standings-page__header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
	pointer-events: none;
}

.standings-page__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.01em;
	line-height: 1.1;
	margin: 0 0 0.5rem;
}

.standings-page__subtitle {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.52);
	margin: 0;
	letter-spacing: 0.02em;
}

.standings-page {
	padding-bottom: 5rem;
}

.standings-page__intro {
	margin-bottom: 3rem;
}

.standings-page__unavailable,
.standings-page__empty {
	padding: 5rem 0;
	text-align: center;
}

.standings-page__unavailable p,
.standings-page__empty p {
	font-size: 1rem;
	color: rgba(0,0,0,0.40);
	margin: 0;
}

/* -----------------------------------------------------------------------
   Tabel complet
------------------------------------------------------------------------ */
.standings-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--radius-md);
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.05),
		0 4px 12px rgba(26, 58, 92, 0.08),
		0 0 0 1px rgba(26, 58, 92, 0.04);
}

.standings-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
	background: #fff;
}

.standings-table th,
.standings-table td {
	padding: 0.85rem 0.75rem;
	text-align: center;
	font-size: 0.875rem;
	white-space: nowrap;
}

.standings-table thead th {
	font-family: var(--font-heading);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.85);
	background: var(--club-primary, #1a3a5c);
}

.standings-table__col-pos {
	width: 3rem;
}

.standings-table__col-team {
	text-align: left;
	white-space: normal;
	min-width: 180px;
}

.standings-table__col-pts {
	font-weight: 700;
}

.standings-table__row {
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.standings-table__row:last-child {
	border-bottom: none;
}

.standings-table__row:nth-child(even) {
	background: rgba(0,0,0,0.015);
}

.standings-table__row--own {
	background: rgba(0,0,0,0.025);
	box-shadow: inset 3px 0 0 var(--club-secondary, #e8b400);
}

.standings-table__row--own .standings-table__team-name {
	color: var(--club-primary, #1a3a5c);
}

.standings-table__team {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.standings-table__logo {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.standings-table__logo-img {
	max-width: 26px;
	max-height: 26px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.standings-table__logo-placeholder {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0,0,0,0.06);
	display: block;
}

.standings-table__team-name {
	font-weight: 600;
	color: #1a1a1a;
}

.standings-table__own-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.5rem;
	border-radius: 100px;
	background: var(--club-secondary, #e8b400);
	color: #1a1a1a;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
	.standings-page__header {
		padding: 2.5rem 0 2rem;
	}

	.standings-table th,
	.standings-table td {
		padding: 0.65rem 0.5rem;
		font-size: 0.8rem;
	}

	/* Simplificare mobil: păstrăm poziția, echipa, MJ, DG, Pct — ascundem V/E/Î/GM/GP.
	   Wrap-ul rămâne cu overflow-x:auto ca plasă de siguranță pentru nume lungi. */
	.standings-table__col-narrow {
		display: none;
	}
}

@media (max-width: 375px) {
	.standings-table__col-team {
		min-width: 140px;
	}
}

/* -----------------------------------------------------------------------
   Homepage — secțiune compactă
------------------------------------------------------------------------ */
.home-standings {
	background: #f5f6f8;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.standings-compact-list {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius-md);
	box-shadow:
		0 1px 2px rgba(26, 58, 92, 0.05),
		0 4px 12px rgba(26, 58, 92, 0.08),
		0 0 0 1px rgba(26, 58, 92, 0.04);
	overflow: hidden;
}

.standings-compact-row {
	display: grid;
	grid-template-columns: 2rem 2rem 1fr auto auto auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.standings-compact-row:last-child {
	border-bottom: none;
}

.standings-compact-row--own {
	background: rgba(0, 0, 0, 0.02);
	box-shadow: inset 3px 0 0 var(--club-secondary, #e8b400);
}

.standings-compact-row__pos {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.875rem;
	color: #888;
	text-align: center;
}

.standings-compact-row--own .standings-compact-row__pos {
	color: var(--club-primary, #1a3a5c);
}

.standings-compact-row__logo {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.standings-compact-row__logo-img {
	max-width: 26px;
	max-height: 26px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.standings-compact-row__logo-placeholder {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	display: block;
}

.standings-compact-row__name {
	font-weight: 600;
	font-size: 0.9rem;
	color: #1a1a1a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.standings-compact-row--own .standings-compact-row__name {
	color: var(--club-primary, #1a3a5c);
}

.standings-compact-row__played,
.standings-compact-row__gd,
.standings-compact-row__pts {
	font-size: 0.825rem;
	font-weight: 600;
	color: #666;
	text-align: right;
	min-width: 1.75rem;
}

.standings-compact-row__pts {
	color: var(--club-primary, #1a3a5c);
	font-weight: 700;
	min-width: 2rem;
}

.home-standings__actions {
	margin-top: 2rem;
	text-align: center;
}

@media (max-width: 480px) {
	.standings-compact-row {
		grid-template-columns: 1.5rem 1.75rem 1fr auto auto auto;
		gap: 0.5rem;
		padding: 0.625rem 0.875rem;
	}

	.standings-compact-row__name {
		font-size: 0.825rem;
	}

	.standings-compact-row__played,
	.standings-compact-row__gd,
	.standings-compact-row__pts {
		font-size: 0.75rem;
		min-width: 1.5rem;
	}
}

/* =======================================================================
   SECȚIUNEA CLUB — Istorie, Conducere, Palmares, Stadion
   page-istorie.php, page-conducere.php, page-palmares.php, page-stadion.php
   template-parts/cards/conducere-card.php, template-parts/cards/palmares-card.php

   Namespace comun: .club-page (header, mesaje fallback, grid) — reutilizat de
   toate cele patru pagini, ca și .staff-page / .sponsors-page pentru secțiunile lor.
======================================================================= */

/* ---- Antet pagina (fundal club-primary, full-width) — identic ca structură
   cu .staff-page__header / .sponsors-page__header ---- */
.club-page__header {
	background: var(--club-primary, #1a3a5c);
	padding: 3.5rem 0 3rem;
	margin-bottom: 3.5rem;
	position: relative;
	overflow: hidden;
}

.club-page__header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
	pointer-events: none;
}

.club-page__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.01em;
	line-height: 1.1;
	margin: 0 0 0.5rem;
	position: relative;
}

.club-page__subtitle {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.52);
	margin: 0;
	letter-spacing: 0.02em;
	position: relative;
}

.club-page {
	padding-bottom: 5rem;
}

.club-page__intro {
	margin-bottom: 3rem;
}

/* ---- Mesaje fallback (modul dezactivat / listă goală) ---- */
.club-page__unavailable,
.club-page__empty {
	padding: 5rem 0;
	text-align: center;
}

.club-page__unavailable p,
.club-page__empty p {
	font-size: 1rem;
	color: rgba(0,0,0,0.40);
	margin: 0;
}

/* -----------------------------------------------------------------------
   Tipografie conținut bogat (Gutenberg): intro Conducere/Palmares,
   corpul articolului Istorie, descrierea Stadionului.
------------------------------------------------------------------------ */
.club-page__intro.entry-content,
.club-article__body.entry-content,
.stadium-layout__main.entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: rgba(0,0,0,0.72);
}

.club-page__intro.entry-content > *:first-child,
.club-article__body.entry-content > *:first-child,
.stadium-layout__main.entry-content > *:first-child {
	margin-top: 0;
}

.club-page__intro.entry-content p,
.club-article__body.entry-content p,
.stadium-layout__main.entry-content p {
	margin: 0 0 1.375rem;
}

.club-page__intro.entry-content h2,
.club-article__body.entry-content h2,
.stadium-layout__main.entry-content h2 {
	font-family: var(--font-heading);
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--club-primary, #1a3a5c);
	line-height: 1.25;
	margin: 2.5rem 0 1rem;
}

.club-page__intro.entry-content h3,
.club-article__body.entry-content h3,
.stadium-layout__main.entry-content h3 {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	line-height: 1.3;
	margin: 2rem 0 0.875rem;
}

.club-page__intro.entry-content ul,
.club-page__intro.entry-content ol,
.club-article__body.entry-content ul,
.club-article__body.entry-content ol,
.stadium-layout__main.entry-content ul,
.stadium-layout__main.entry-content ol {
	margin: 0 0 1.375rem;
	padding-left: 1.375rem;
}

.club-page__intro.entry-content li,
.club-article__body.entry-content li,
.stadium-layout__main.entry-content li {
	margin-bottom: 0.5rem;
}

.club-page__intro.entry-content img,
.club-article__body.entry-content img,
.stadium-layout__main.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md, 10px);
	display: block;
	margin: 1.75rem 0;
}

.club-page__intro.entry-content figcaption,
.club-article__body.entry-content figcaption,
.stadium-layout__main.entry-content figcaption {
	font-size: 0.8rem;
	color: rgba(0,0,0,0.45);
	text-align: center;
	margin-top: -1.25rem;
	margin-bottom: 1.75rem;
}

.club-page__intro.entry-content a,
.club-article__body.entry-content a,
.stadium-layout__main.entry-content a {
	color: var(--club-primary, #1a3a5c);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* =======================================================================
   ISTORIE — page-istorie.php
======================================================================= */

.club-article__thumb {
	margin-bottom: 2.5rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.club-article__image {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.club-article__body {
	max-width: 740px;
	margin: 0 auto;
}

/* Aspect bun și fără fotografie: corpul textului rămâne centrat, cu spațiu generos sus */
.club-article--no-thumb .club-article__body {
	margin-top: 0.5rem;
}

/* =======================================================================
   CONDUCERE — page-conducere.php + conducere-card.php
======================================================================= */

.club-page-grid--conducere {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.conducere-card {
	background: #fff;
	border-radius: var(--radius-md, 10px);
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.07);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.conducere-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 2px 5px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

.conducere-card__image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--club-primary, #1a3a5c);
	overflow: hidden;
}

.conducere-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.conducere-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, var(--club-primary, #1a3a5c) 0%, rgba(0,0,0,0.50) 100%);
}

.conducere-card__placeholder-icon {
	width: 38%;
	height: 38%;
	opacity: 0.15;
	fill: #fff;
}

.conducere-card__content {
	padding: 1.125rem 1.125rem 1.25rem;
}

/* Fără trunchiere: nume și funcții lungi se lasă pe două rânduri, fără ellipsis */
.conducere-card__name {
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.conducere-card__role {
	font-size: 0.75rem;
	color: rgba(0,0,0,0.45);
	margin: 0 0 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

.conducere-card__bio {
	font-size: 0.82rem;
	color: rgba(0,0,0,0.58);
	margin: 0;
	line-height: 1.55;
}

/* =======================================================================
   PALMARES — page-palmares.php + palmares-card.php
======================================================================= */

.palmares-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 780px;
}

.palmares-item {
	display: flex;
	align-items: flex-start;
	gap: 1.125rem;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.07);
	border-radius: var(--radius-md, 10px);
	padding: 1.25rem 1.375rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.palmares-item:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.09), 0 2px 5px rgba(0,0,0,0.05);
	transform: translateY(-1px);
}

.palmares-item__icon {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: linear-gradient(160deg, var(--club-secondary, #e8b400) 0%, var(--club-primary, #1a3a5c) 130%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.palmares-item__icon svg {
	width: 1.4rem;
	height: 1.4rem;
	fill: none;
	stroke: #fff;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.palmares-item__content {
	flex: 1;
	min-width: 0;
}

.palmares-item__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem;
	margin-bottom: 0.2rem;
}

.palmares-item__result {
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--club-primary, #1a3a5c);
	line-height: 1.3;
}

.palmares-item__season {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(0,0,0,0.42);
	letter-spacing: 0.03em;
}

.palmares-item__competition {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(0,0,0,0.55);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.4rem;
}

.palmares-item__description {
	font-size: 0.85rem;
	color: rgba(0,0,0,0.55);
	line-height: 1.55;
	margin: 0;
}

/* =======================================================================
   STADION — page-stadion.php
======================================================================= */

.stadium-hero {
	margin-bottom: 2.5rem;
}

.stadium-hero__image {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	display: block;
}

.stadium-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2.5rem;
	align-items: start;
}

.stadium-layout--no-sidebar {
	grid-template-columns: 1fr;
}

.stadium-layout--no-sidebar .stadium-layout__main {
	max-width: 740px;
}

.stadium-sidebar {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.07);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
	position: sticky;
	top: 1.5rem;
}

.stadium-facts {
	margin: 0 0 1.25rem;
}

.stadium-facts__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stadium-facts__row:last-child {
	border-bottom: none;
}

.stadium-facts__row dt {
	font-size: 0.78rem;
	color: rgba(0,0,0,0.45);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.stadium-facts__row dd {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--club-primary, #1a3a5c);
	text-align: right;
}

.stadium-address {
	margin: 0 0 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0,0,0,0.06);
}

.stadium-sidebar > .stadium-address:first-child {
	padding-top: 0;
	border-top: none;
}

.stadium-address__label {
	font-size: 0.78rem;
	color: rgba(0,0,0,0.45);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 0.35rem;
}

.stadium-address__value {
	font-size: 0.88rem;
	color: rgba(0,0,0,0.65);
	line-height: 1.55;
	margin: 0;
}

.stadium-maps-link {
	display: block;
	width: 100%;
	text-align: center;
}

/* ---- Responsive: Club (Istorie, Conducere, Palmares, Stadion) ---- */

@media (max-width: 1024px) {
	.stadium-layout {
		grid-template-columns: 1fr;
	}

	.stadium-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.club-page__header {
		padding: 2.5rem 0 2rem;
		margin-bottom: 2.5rem;
	}

	.club-page-grid--conducere {
		grid-template-columns: repeat(2, 1fr);
	}

	.stadium-layout {
		gap: 1.75rem;
	}
}

@media (max-width: 480px) {
	.club-page-grid--conducere {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.club-page__header {
		padding: 2rem 0 1.75rem;
		margin-bottom: 2rem;
	}

	.palmares-item {
		padding: 1rem;
		gap: 0.875rem;
	}

	.palmares-item__icon {
		width: 2.25rem;
		height: 2.25rem;
	}
}

/* -----------------------------------------------------------------------
   Accesibilitate: prefers-reduced-motion
   Utilizatorii cu preferința pentru mișcare redusă primesc tranziții instant.
   Funcționalitatea rămâne intactă — nu sunt ascunse elemente sau conținut.
------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
