@import url("theme_settings/theme_settings.css");
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Rubik:wght@400;500;600;700&display=swap");

/* ============================================================
   Tokens
   ============================================================ */
:root {
	--color-1: var(--color-1-theme, #6A1A1D);
	--color-2: var(--color-2-theme, #152238);
	--color-over-1: var(--color-over-1-theme, #ffffff);
	--color-over-2: var(--color-over-2-theme, #ffffff);
	--color-1-isDark: var(--color-1-theme-isDark, 1);
	--color-2-isDark: var(--color-2-theme-isDark, 1);

	--size-sm: 48rem;   /* tablet */
	--size-md: 64rem;   /* desktop */
	--size-lg: 80rem;
	--size-xl: 120rem;

	--content-max: 1366px;
	--bar-pad-x: clamp(1rem, 4vw, 1.25rem);

	--font-title: 'Rubik', system-ui, sans-serif;
	--font-body: 'Lato', system-ui, sans-serif;
}

/* ============================================================
   Body shell  [Structural]
   ============================================================ */
html { height: 100%; overflow-x: clip; }

body {
	margin: 0;
	min-height: 100%;
	overflow-x: clip;
	display: flex;
	flex-direction: column;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.5;
	color: #000;
}

.site-header,
.site-footer { flex: none; }

#content_main {
	flex: 1 0 auto;
	width: 100%;
	box-sizing: border-box;
	--content-pad-x: clamp(0.5rem, 5%, 3rem);
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 1.5rem var(--content-pad-x);
}

body:has(.homepage) #content_main {
	max-width: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 500; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: #fff;
	color: var(--color-1);
	padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; }

.hidden-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
	position: relative;
	background: var(--color-1);
	color: var(--color-over-1, #fff);
}

.site-header__bar {
	max-width: var(--content-max);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0.75rem var(--bar-pad-x) 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.site-header__identity {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}
body a.site-header__identity { color: var(--color-over-1, #fff); }

.site-header__logo { width: auto; height: 4rem; }

.site-header__name-group { display: flex; flex-direction: column; }
.site-header__name { font-family: var(--font-title); font-size: 1.375rem; line-height: 1.2; }
.site-header__tagline { font-family: var(--font-body); font-size: 1rem; line-height: 1.3; }

.site-header__actions {
	order: -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

#google_translate_element {
	display: none;
	background: #fff;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

.site-header__apply {
	background: #fff;
	border: 0;
	border-bottom: 4px solid var(--color-2);
	border-radius: 100px;
	padding: 0.625rem 1.5rem;
	font-family: var(--font-title);
	white-space: nowrap;
	text-decoration: none;
}
body a.site-header__apply { color: #000; }
.site-header__apply:hover,
.site-header__apply:focus-visible { background: var(--color-2); border-bottom-color: var(--color-1); }
body a.site-header__apply:hover,
body a.site-header__apply:focus-visible { color: #fff; }

/* ============================================================
   Navigation — hamburger at all viewports
   ============================================================ */
.site-nav { display: flex; }

.menu-toggle {
	position: relative;
	z-index: 30;
	width: 3rem; height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 0;
	border-bottom: 4px solid var(--color-2);
	border-radius: 100px;
	color: var(--color-2);
	cursor: pointer;
}
.menu-toggle::after {
	font-family: 'Material Symbols Outlined';
	font-variation-settings: 'FILL' 1;
	content: 'menu';
	font-size: 1.75rem;
	text-transform: none;
	line-height: 1;
}
.menu-toggle[aria-expanded="true"]::after { content: 'close'; }

.nav-menu { display: none; list-style: none; margin: 0; padding: 0; }

/* Open (mobile/tablet): vertical panel overlaying content below the header */
.nav-menu.show {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0; right: 0;
	z-index: 20;
	background: #fff;
	box-shadow: 0 0.5rem 0 0 rgba(21, 34, 56, 0.18);
	padding: 0.5rem 0;
}

.nav-item { position: relative; }
.nav-item.dropdown,
.sub-menu-item.dropdown { display: grid; grid-template-columns: 1fr auto; align-items: center; }

.nav-item-inner {
	display: block;
	padding: 0.75rem var(--bar-pad-x);
	font-family: var(--font-body);
	font-size: 1rem;
}
div.nav-item-inner { text-decoration: none; color: #000; }
body a.nav-item-inner { color: #000; }

.dropdown-toggle {
	background: none;
	border: 0;
	padding: 0 0.5rem;
	color: #000;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.dropdown-toggle::after {
	font-family: 'Material Symbols Outlined';
	content: 'expand_more';
	font-size: 1.5rem;
	text-transform: none;
	line-height: 1;
	transition: transform 0.2s ease;
}
.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* Dropdown panels: navy surface, white items, maroon hover (per Components frame) */
.sub-menu-holder { grid-column: 1 / -1; display: none; background: var(--color-2); }
.sub-menu-holder:has(.sub-menu.show) { display: block; }

.sub-menu { list-style: none; margin: 0; padding: 0; }
.sub-menu-item.dropdown > .dropdown-toggle { color: var(--color-over-2, #fff); }
.sub-menu-item > a {
	display: block;
	padding: 0.5rem 2rem;
	font-size: 1rem;
}
body .sub-menu-item > a { color: var(--color-over-2, #fff); }
.sub-menu-item > a:hover,
.sub-menu-item > a:focus-visible { background: var(--color-1); }

.sub-menu .sub-menu { display: none; grid-column: 1 / -1; background: var(--color-2); }
.sub-menu .sub-menu.show { display: block; }
.sub-menu .sub-menu .sub-menu-item > a { padding-left: 3rem; }

/* ============================================================
   Section title + "more" button
   ============================================================ */
.section-title {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(1.625rem, 3.4vw, 2.125rem);
	text-align: center;
	color: var(--color-2);
	filter: brightness(var(--color-2-isDark));
	margin: 0;
}

.section-more { display: flex; justify-content: center; margin-top: 1rem; }
.more-button {
	background: #fff;
	border: 0;
	border-bottom: 4px solid var(--color-2);
	border-radius: 100px;
	padding: 0.75rem 2rem;
	font-family: var(--font-body);
	font-size: 1.125rem;
	text-decoration: none;
}
body a.more-button { color: #000; }
.more-button:hover,
.more-button:focus-visible { background: var(--color-2); border-bottom-color: var(--color-1); }
body a.more-button:hover,
body a.more-button:focus-visible { color: #fff; }

/* ============================================================
   Swiper — shared arrow treatment (navy square, white chevron)
   ============================================================ */
.swiper-container { position: relative; }

.swiper-container .swiper-button-prev,
.swiper-container .swiper-button-next {
	--swiper-navigation-color: #fff;
	--swiper-navigation-size: 1.375rem;
	width: 44px; height: 44px;
	background: var(--color-2);
	border: 0;
	border-radius: 50%;
}
.swiper-container .swiper-button-prev::after,
.swiper-container .swiper-button-next::after {
	font-family: 'Material Symbols Outlined';
	font-variation-settings: 'FILL' 1;
	font-size: var(--swiper-navigation-size);
	text-transform: none;
}
.swiper-container .swiper-button-prev::after { content: 'chevron_left'; }
.swiper-container .swiper-button-next::after { content: 'chevron_right'; }

/* ============================================================
   Section 1 — photo gallery (center mode)
   ============================================================ */
.gallery {
	background: var(--color-1);
	padding: 0 0 3.5rem;
}
/* SR-only heading sits over the maroon section — give it a contrasting color
   so contrast checkers don't flag the (invisible) hidden text */
#gallery_heading { color: var(--color-over-1, #fff); }
.gallery__carousel {
	/* full-bleed: side images run to the screen edge (no centered max-width cap) */
	width: 100%;
	/* place prev/next at the edges of the centered slide (offset tracks slidesPerView) */
	--swiper-navigation-sides-offset: calc(8.33% - 22px);
}
@media (min-width: 48rem) { .gallery__carousel { --swiper-navigation-sides-offset: calc(25% - 22px); } }
@media (min-width: 64rem) { .gallery__carousel { --swiper-navigation-sides-offset: calc(30.77% - 22px); } }
.gallery__carousel .swiper { width: 100%; }
.gallery__figure { margin: 0; }
.gallery__figure img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 40px;
}
.gallery__carousel .swiper-slide { opacity: 0.5; transition: opacity 0.3s ease; }
.gallery__carousel .swiper-slide-active { opacity: 1; }
.gallery__figure figcaption {
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	padding: 0.5rem 0.75rem;
}

/* ============================================================
   Section 2 — events
   ============================================================ */
.events {
	max-width: var(--content-max);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 3.5rem var(--bar-pad-x);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.events__carousel { padding: 0 4rem; --swiper-navigation-sides-offset: 0; }
.events__carousel .swiper { width: 100%; padding-top: 2.5rem; }

.event-card { display: flex; flex-direction: column; height: 100%; }
.event-card__head {
	background: var(--color-2);
	border-radius: 24px;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9375rem;
	position: relative;
	z-index: 1;
	color: #fff;
}
.event-card__date {
	width: 80px; height: 80px;
	background: #fff;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--color-2);
	font-family: var(--font-title);
	line-height: 1.05;
}
.event-card__month { font-size: 1.5rem; font-weight: 400; }
.event-card__day { font-size: 1.5rem; font-weight: 400; }
.event-card__title {
	font-family: var(--font-title);
	font-weight: 400;
	font-size: 1.625rem;
	text-align: center;
	margin: 0;
	color: #fff;
}
body .event-card__title a { color: #fff; }
.event-card__body {
	background: #fff;
	border: 8px solid var(--color-1);
	border-radius: 0 0 24px 24px;
	padding: 3rem 1rem 1rem;
	margin-top: -40px;
	text-align: center;
	flex: 1 0 auto;
}
.event-card__meta { font-family: var(--font-body); margin: 0; color: #000; }

/* ============================================================
   Section 3 — news (active photo + faded summaries)
   ============================================================ */
.news {
	max-width: var(--content-max);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 var(--bar-pad-x) 3.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.news__layout { position: relative; padding: 0; }
/* static so the arrows resolve against .news__layout (photo + cards) and sit
   over the photo, above the summaries — not just centered on the card row */
.news__carousel { position: static; padding: 0 4rem; --swiper-navigation-sides-offset: 0; }
.news__stage { display: flex; justify-content: center; margin-bottom: 1rem; }
.news__photo {
	width: 100%;
	max-width: 700px;
	aspect-ratio: 700 / 300;
	object-fit: cover;
	border-radius: 24px;
	opacity: 1;
	transition: opacity 0.35s ease;
}
.news__photo--logo {
	object-fit: contain;
	background: var(--color-1);
	padding: 2rem;
}
.news__carousel .swiper { width: 100%; }
.news__carousel .swiper-slide { opacity: 0.5; transition: opacity 0.3s ease; height: auto; display: flex; }
.news__carousel .swiper-slide-active { opacity: 1; }

.news-card {
	background: var(--color-1);
	border-radius: 24px;
	padding: 1rem;
	color: #fff;
	width: 100%;
}
.news-card__title { font-family: var(--font-title); font-weight: 400; font-size: 1.625rem; margin: 0 0 0.25rem; color: #fff; }
body .news-card__title a { color: #fff; text-decoration: none; }
body .news-card__title a:hover,
body .news-card__title a:focus-visible { text-decoration: underline; }
.news-card__summary { font-family: var(--font-body); margin: 0; color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--color-1); color: var(--color-over-1, #fff); }
.site-footer__inner {
	max-width: var(--content-max);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 2rem var(--bar-pad-x);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}
.site-footer__identity { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__logo { width: auto; height: 4rem; }
.site-footer__name { font-family: var(--font-title); font-size: 1.375rem; }

.site-footer__middle {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}
.site-footer__social ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 1.5rem;
}
.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem; height: 4rem;
	background: #fff;
	border-radius: 50%;
}
.site-footer__social svg,
.site-footer__social img { width: 2rem; height: 2rem; display: block; }

.site-footer__contact {
	font-style: normal;
	font-family: var(--font-body);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: left;
}
body .site-footer__contact a { color: var(--color-over-1, #fff); text-decoration: underline; }

.site-footer__bar { background: var(--color-2); }
.site-footer__edlio {
	max-width: var(--content-max);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0.75rem var(--bar-pad-x);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}
body .site-footer__edlio a { color: var(--color-over-2, #fff); display: inline-flex; align-items: center; }
.site-footer__edlio svg { fill: currentColor; }
.site-footer__edlio a:first-child svg { width: 140px; height: 20px; }
.site-footer__edlio a:last-child svg { height: 1.5rem; width: auto; }

/* ============================================================
   Inside-page title
   ============================================================ */
.pageTitle {
	color: #000;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(1.625rem, 3.4vw, 2.125rem);
	margin-block: 1rem;
}

/* ============================================================
   Tablet (>=48rem)
   ============================================================ */
@media (min-width: 48rem) {
	.site-header__bar { flex-direction: row; align-items: center; justify-content: space-between; }
	.site-header__actions { order: 0; justify-content: flex-end; }
	.site-header__logo { height: 5rem; }
	.site-header__name { font-size: 1.625rem; }
	.site-header__tagline { font-size: 1.125rem; }
	#google_translate_element { display: block; }

	.site-footer__inner { align-items: center; }
	.site-footer__middle { flex-direction: row; justify-content: space-between; align-items: center; }
	.site-footer__contact { text-align: right; }
}

/* ============================================================
   Desktop (>=64rem) — open nav becomes a horizontal bar
   ============================================================ */
@media (min-width: 64rem) {
	.site-header__logo { height: 6.25rem; }

	/* When open, the header content is hidden but kept in flow (visibility, not
	   display) so the header height is unchanged — prevents a layout jump on open/close */
	.site-header:has(.nav-menu.show) .site-header__identity,
	.site-header:has(.nav-menu.show) #google_translate_element,
	.site-header:has(.nav-menu.show) .site-header__apply { visibility: hidden; }

	/* Open menu = white bar with an 8px navy bottom border, items spread, X at the right */
	.nav-menu.show {
		top: 50%;
		transform: translateY(-50%);
		left: 0; right: 0;
		max-width: var(--content-max);
		margin: 0 auto;
		height: 3.875rem;
		box-sizing: border-box;
		background: #fff;
		border: 0;
		border-bottom: 8px solid var(--color-2);
		border-radius: 100px;
		box-shadow: none;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		padding: 0 4rem 0 1.5rem;
	}
	.nav-menu.show .nav-item-inner { padding: 0.5rem; white-space: nowrap; }

	.menu-toggle[aria-expanded="true"] {
		background: transparent;
		border-color: transparent;
		z-index: 31;
	}

	/* level-1 overlay pattern: toggle spans the cell, label sits above it */
	.nav-menu > .nav-item { display: flex; align-items: center; }
	.nav-menu > .nav-item.dropdown { display: grid; grid-template-columns: 1fr; }
	.nav-menu > .nav-item.dropdown > a.nav-item-inner,
	.nav-menu > .nav-item.dropdown > div.nav-item-inner {
		grid-column: 1; grid-row: 1;
		margin-right: 1.75rem;
		position: relative; z-index: 1;
	}
	.nav-menu > .nav-item > .dropdown-toggle {
		grid-column: 1; grid-row: 1;
		width: 100%;
		justify-content: flex-end;
	}
	div.nav-item-inner { pointer-events: none; }

	/* level-2 panel drops below its top-level item */
	.nav-menu > .nav-item > .sub-menu-holder {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 14rem;
		background: var(--color-2);
		box-shadow: 0 0.5rem 0 0 rgba(21, 34, 56, 0.25);
		z-index: 25;
	}
	.nav-menu > .nav-item.drop-left > .sub-menu-holder { left: auto; right: 0; }

	/* level-3 flyout */
	.sub-menu-item.dropdown { position: relative; }
	.nav-menu .sub-menu .sub-menu {
		position: absolute;
		top: 0; left: 100%;
		min-width: 14rem;
		background: var(--color-2);
		box-shadow: 0 0.5rem 0 0 rgba(21, 34, 56, 0.25);
	}
	.nav-menu .drop-left .sub-menu-item.dropdown > .sub-menu { left: auto; right: 100%; }
	.nav-menu .sub-menu .sub-menu .sub-menu-item > a { padding-left: 2rem; }
}
</content>
