/* Home announcement — Montserrat, flat header/body (no wave) */
.home-announcement-popup {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
	font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
	--hp-c-header: #122338;
	--hp-c-hero: #a8c8dd;
	--hp-c-cta: #6b4ca3;
	--hp-c-date: #9b59b6;
	--hp-badge-tint: color-mix(in srgb, var(--hp-c-cta) 12%, #ffffff 88%);
	--hp-badge-ink: color-mix(in srgb, var(--hp-c-cta) 70%, #1a0a2e 30%);
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.home-announcement-popup {
		--hp-badge-tint: #ede7f4;
		--hp-badge-ink: #4a2d6e;
	}
}

.home-announcement-popup[hidden] {
	display: none !important;
}

.home-announcement-popup:not([hidden]) {
	opacity: 0;
	transition: opacity 0.28s ease;
}

.home-announcement-popup.home-announcement-popup--visible {
	opacity: 1;
}

body.home-announcement-popup-open {
	overflow: hidden;
}

.home-announcement-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 22, 32, 0.58);
	cursor: pointer;
}

.home-announcement-popup__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	margin: 0;
	overflow: hidden;
	background: #fff;
	color: #1f1f1f;
	border-radius: 2.125rem;
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.06),
		0 12px 28px rgba(15, 20, 40, 0.18),
		0 28px 64px rgba(10, 12, 28, 0.35),
		0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* With image: hero art on top, rounded only at top of card */
.home-announcement-popup__media {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	line-height: 0;
	background: #e8eaef;
	border-radius: 2.125rem 2.125rem 0 0;
	overflow: hidden;
}

.home-announcement-popup__img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: contain;
	object-position: center;
}

/* --- Dark header band (2026 FUNDRAISER + main title) — no image: band is top of card with round corners */
.home-announcement-popup__panel--no-image .home-announcement-popup__head {
	border-radius: 2.125rem 2.125rem 0 0;
}

.home-announcement-popup__head {
	position: relative;
	background: var(--hp-c-header, #122338);
	color: #fff;
	text-align: center;
	padding: 1.5rem 1.75rem 1.4rem;
}

.home-announcement-popup__panel--with-image .home-announcement-popup__head {
	border-radius: 0;
}

.home-announcement-popup__head-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

/* 1) Small line first — e.g. 2026 FUNDRAISER (μικρότερο) */
.home-announcement-popup__kicker {
	margin: 0 0 0.5rem;
	width: 100%;
	text-align: center;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.95;
	line-height: 1.35;
}

/* 2) Main title second — e.g. The House Always Wins (μεγαλύτερο) */
.home-announcement-popup__hero {
	margin: 0;
	width: 100%;
	text-align: center;
	font-size: clamp(1.75rem, 5.5vw, 2.15rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: #fff;
}

/* Decorative line under hero — true center (block + auto margins) */
.home-announcement-popup__hero::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	margin: 0.55rem auto 0;
	background: #9b59b6;
	border: 0;
}

/* --- Body: pill date, location, copy, CTA (mockup) --- */
.home-announcement-popup__body {
	background: #fff;
	padding: 1rem 1.75rem 1.35rem;
	text-align: center;
	font-size: 17px;
	line-height: 1.55;
}

.home-announcement-popup__badge-wrap {
	margin: 0 0 0.75rem;
	text-align: center;
}

.home-announcement-popup__badge {
	display: inline-block;
	padding: 0.4rem 0.95rem;
	background: var(--hp-badge-tint, #ede7f4);
	color: #9b59b6;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 999px;
	line-height: 1.3;
}

.home-announcement-popup__location {
	margin: 0 0 0.65rem;
	font-size: 1.45rem;
	font-weight: 700;
	color: #111;
	line-height: 1.35;
	text-align: center;
}

.home-announcement-popup__content {
	font-size: 17px;
	line-height: 1.55;
	color: #3a3a3a;
	text-align: center;
}

.home-announcement-popup__content p {
	margin: 0 0 0.4rem;
}

.home-announcement-popup__content p:last-child {
	margin-bottom: 0;
}

.home-announcement-popup__content--empty-note {
	text-align: left;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #444;
}

.home-announcement-popup__empty-link-wrap {
	margin: 0.75rem 0 0;
	text-align: center;
}

.home-announcement-popup__empty-link {
	display: inline-block;
	color: var(--hp-c-cta, #6b4ca3);
	font-weight: 600;
}

.home-announcement-popup__actions {
	margin: 0;
	text-align: center;
}

/* Match theme .btn.btn-primary (same as content Type 3 / acf_btn) — no custom padding override */
.home-announcement-popup a.home-announcement-popup__cta.btn.btn-primary {
	display: inline-block;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
}

.home-announcement-popup__dismiss-wrap {
	margin: 1rem 0 0;
	text-align: center;
}

.home-announcement-popup__dismiss {
	padding: 0.25rem 0.5rem;
	margin: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 1.25rem;
	font-weight: 500;
	color: #8e949c;
	text-decoration: none;
	cursor: pointer;
}

.home-announcement-popup__dismiss:hover,
.home-announcement-popup__dismiss:focus {
	color: #5c6168;
}

.home-announcement-popup__dismiss:focus {
	outline: none;
}

.home-announcement-popup__dismiss:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hp-c-cta, #6b4ca3);
	border-radius: 2px;
}

/* Close — over image and/or header (top-right of card) */
.home-announcement-popup__close {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	z-index: 4;
	width: 3.35rem;
	height: 3.35rem;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: background 0.15s ease, color 0.15s ease;
}

.home-announcement-popup__close:hover,
.home-announcement-popup__close:focus {
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
}

.home-announcement-popup__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.home-announcement-popup__close-icon {
	display: block;
	line-height: 1;
}
