/* FIN Bilingual – header, top bar and home hero slider */
:root {
	--fin-navy: #1e2a5a;
	--fin-navy-2: #26346b;
	--fin-red: #e3262b;
	--fin-red-dark: #c41d22;
	--fin-gold: #f5b93d;
	--fin-cream: #f9f7f3;
	--fin-ink: #1e2a5a;
	--fin-pad: clamp(16px, 2.8vw, 56px);
	--fin-ease: cubic-bezier(.22, .61, .36, 1);
}

/* Hide the theme's own header, top bar and home hero (replaced below). */
body.fin-has-design .fin-theme-hidden,
body.fin-has-design [class*="topbar"]:not([class*="fin-"]),
body.fin-has-design [class*="top-bar"]:not([class*="fin-"]) { display: none !important; }
body.fin-has-design { padding-top: 0 !important; }

.fin-site-top, .fin-hero { font-family: inherit; -webkit-font-smoothing: antialiased; }
.fin-site-top *, .fin-hero * { box-sizing: border-box; }
.fin-wrap { width: 100%; max-width: 1920px; margin: 0 auto; padding-left: var(--fin-pad); padding-right: var(--fin-pad); }
.fin-ico { flex: none; display: inline-block; vertical-align: middle; }
.fin-site-top .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Top bar ---------- */
.fin-topbar { background: var(--fin-navy); color: #d9deef; font-size: 14px; line-height: 1.3; }
.fin-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.fin-topbar__left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.fin-topbar__date { color: var(--fin-gold); font-weight: 500; white-space: nowrap; }
.fin-topbar__sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .28); flex: none; }
.fin-topbar__hl { color: #d9deef !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-topbar__hl strong { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fin-topbar__hl .fin-ico { width: 16px; height: 16px; transition: transform .25s var(--fin-ease); }
.fin-topbar__hl:hover .fin-ico { transform: translateX(4px); }
.fin-topbar__search { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: #d9deef; font: inherit; cursor: pointer; padding: 6px 0; }
.fin-topbar__search:hover, .fin-topbar__search[aria-expanded="true"] { color: #fff; }
.fin-topbar__search .fin-ico { width: 16px; height: 16px; }

.fin-search { background: var(--fin-navy-2); padding: 14px 0; }
.fin-search[hidden] { display: none; }
.fin-search__inner { display: flex; align-items: center; gap: 12px; color: #fff; }
.fin-search input[type="search"] { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 10px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--fin-ink); background: #fff; }

/* ---------- Header ---------- */
.fin-header { background: var(--fin-cream); border-bottom: 1px solid rgba(30, 42, 90, .06); position: sticky; top: 0; z-index: 999; }
.admin-bar .fin-header { top: 32px; }
.fin-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 84px; }
.fin-header__brand { display: flex; align-items: center; min-width: 0; }
.fin-header__brand img, .fin-header__brand .custom-logo { max-height: 52px; width: auto; display: block; }
.fin-logo--text { font-size: 22px; font-weight: 800; color: var(--fin-navy); text-decoration: none; }
.fin-header__nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); list-style: none; margin: 0; padding: 0; }
.fin-header__nav li { margin: 0; }
.fin-header__nav a { position: relative; display: inline-block; padding: 8px 0; color: var(--fin-navy); text-decoration: none; font-size: clamp(15px, .95vw, 17px); font-weight: 500; transition: color .2s; }
.fin-header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--fin-red); transform: scaleX(0); transition: transform .3s var(--fin-ease); }
.fin-header__nav a:hover, .fin-header__nav a.is-current { color: var(--fin-red); }
.fin-header__nav a.is-current::after, .fin-header__nav a:hover::after { transform: scaleX(1); }
.fin-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.fin-header__actions--mobile, .fin-header__toggle { display: none; }

.fin-lang { display: inline-flex; padding: 3px; background: #efefed; border: 1px solid rgba(30, 42, 90, .08); border-radius: 10px; }
.fin-lang a { display: inline-block; padding: 5px 11px; border-radius: 7px; color: var(--fin-navy); text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.2; }
.fin-lang a.is-active { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-weight: 600; }

.fin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 9px; padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: transform .2s var(--fin-ease), background .2s, box-shadow .2s; }
.fin-btn--navy { background: var(--fin-navy); color: #fff !important; }
.fin-btn--navy:hover { background: var(--fin-navy-2); transform: translateY(-1px); }
.fin-btn--red { background: var(--fin-red); color: #fff !important; }
.fin-btn--red:hover { background: var(--fin-red-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(227, 38, 43, .35); }
.fin-btn--pill { border-radius: 999px; }
.fin-btn--lg { padding: 15px 28px; font-size: 16px; }
.fin-btn .fin-ico { transition: transform .25s var(--fin-ease); }
.fin-btn:hover .fin-ico { transform: translateX(4px); }

/* ---------- Hero slider ---------- */
.fin-hero { position: relative; height: clamp(500px, 72vh, 780px); color: #fff; overflow: hidden; background: #111a3a; isolation: isolate; }
.fin-hero__slides { position: absolute; inset: 0; }
.fin-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--fin-ease), visibility 0s linear 1.2s; }
.fin-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--fin-ease), visibility 0s; z-index: 1; }
.fin-hero__bg { position: absolute; inset: -2%; background: #1e2a5a center/cover no-repeat; transform: scale(1.12); transition: transform 8s linear; will-change: transform; }
.fin-hero__slide.is-active .fin-hero__bg { transform: scale(1); }
.fin-hero__shade { position: absolute; inset: 0; background:
	linear-gradient(90deg, rgba(8, 12, 30, .72) 0%, rgba(8, 12, 30, .45) 38%, rgba(8, 12, 30, 0) 70%),
	linear-gradient(0deg, rgba(8, 12, 30, .78) 0%, rgba(8, 12, 30, 0) 34%); }
.fin-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 120px; padding-top: 32px; }
.fin-hero__content > * { max-width: 760px; margin: 0; }
.fin-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px !important; }
.fin-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--fin-red); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fin-badge .fin-ico { width: 15px; height: 15px; }
.fin-hero__date { display: inline-flex; align-items: center; gap: 8px; color: var(--fin-gold); font-size: 16px; font-weight: 500; }
.fin-hero__date .fin-ico { width: 20px; height: 20px; }
.fin-hero__title { font-size: clamp(36px, 4.4vw, 80px) !important; line-height: 1.02 !important; font-weight: 800 !important; letter-spacing: -.03em; color: #fff !important; margin-bottom: 20px !important; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.fin-hero__kicker { display: block; }
.fin-hero__accent { color: var(--fin-gold); }
.fin-hero__desc { font-size: clamp(16px, 1.1vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 620px !important; margin-bottom: 24px !important; }

/* Staggered entrance of the text */
.fin-hero__slide .fin-anim { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .9s var(--fin-ease), transform .9s var(--fin-ease), filter .9s var(--fin-ease); }
.fin-hero__slide.is-active .fin-anim { opacity: 1; transform: none; filter: none; }
.fin-hero__slide.is-active .fin-anim:nth-child(1) { transition-delay: .35s; }
.fin-hero__slide.is-active .fin-anim:nth-child(2) { transition-delay: .5s; }
.fin-hero__slide.is-active .fin-anim:nth-child(3) { transition-delay: .65s; }
.fin-hero__slide.is-active .fin-anim:nth-child(4) { transition-delay: .8s; }
.fin-hero__slide.is-leaving .fin-anim { opacity: 0; transform: translateY(-20px); transition-duration: .5s; transition-delay: 0s; }

/* Bottom tabs with progress bars */
.fin-hero__nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: 22px; }
.fin-hero__nav-inner { display: flex; align-items: flex-end; gap: 24px; }
.fin-hero__tabs { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 36px); min-width: 0; }
.fin-hero__tab { position: relative; background: none; border: 0; padding: 16px 0 0; text-align: left; color: rgba(255, 255, 255, .72); font: inherit; cursor: pointer; min-width: 0; transition: color .3s; }
.fin-hero__tab:hover, .fin-hero__tab.is-active { color: #fff; }
.fin-hero__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.fin-hero__bar i { position: absolute; inset: 0; background: var(--fin-gold); transform: scaleX(0); transform-origin: left center; }
.fin-hero__tab.is-done .fin-hero__bar i { transform: scaleX(1); opacity: .45; }
.fin-hero__tab.is-active .fin-hero__bar i { animation: fin-progress var(--fin-dur, 6500ms) linear forwards; opacity: 1; }
.fin-hero.is-paused .fin-hero__tab.is-active .fin-hero__bar i { animation-play-state: paused; }
@keyframes fin-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fin-hero__tab-label { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fin-gold); opacity: .85; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-hero__tab-title { display: block; font-size: clamp(14px, 1vw, 17px); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-hero__tab.is-active .fin-hero__tab-title { font-weight: 600; }
.fin-hero__arrows { display: flex; gap: 10px; flex: none; padding-bottom: 4px; }
.fin-hero__arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; transition: background .2s; }
.fin-hero__arrow:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.fin-header__inner { grid-template-columns: auto 1fr auto; }
	.fin-header__nav ul { justify-content: center; }
	.fin-btn { font-size: 16px; padding: 12px 18px; }
}

@media (max-width: 960px) {
	.fin-header__inner { grid-template-columns: 1fr auto; min-height: 66px; gap: 12px; }
	.fin-header__brand img, .fin-header__brand .custom-logo { max-height: 42px; }
	.fin-header__actions:not(.fin-header__actions--mobile) { display: none; }
	.fin-header__toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(30, 42, 90, .15); background: #fff; color: var(--fin-navy); cursor: pointer; }
	.fin-header__toggle .fin-ico:last-child { display: none; }
	.fin-header__toggle[aria-expanded="true"] .fin-ico:first-of-type { display: none; }
	.fin-header__toggle[aria-expanded="true"] .fin-ico:last-child { display: inline-block; }
	.fin-header__nav { grid-column: 1 / -1; display: none; padding: 8px 0 18px; }
	.fin-header.is-open .fin-header__nav { display: block; animation: fin-drop .3s var(--fin-ease); }
	.fin-header__nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.fin-header__nav a { display: block; padding: 12px 4px; font-size: 16px; border-bottom: 1px solid rgba(30, 42, 90, .08); }
	.fin-header__nav a::after { display: none; }
	.fin-header__actions--mobile { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

	.fin-hero { height: auto; min-height: clamp(480px, 80vh, 700px); }
	.fin-hero__content { padding-bottom: 160px; }
	.fin-hero__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; scrollbar-width: none; }
	.fin-hero__tabs::-webkit-scrollbar { display: none; }
	.fin-hero__tab { flex: 0 0 min(44vw, 220px); scroll-snap-align: start; }
}
@keyframes fin-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 782px) { .admin-bar .fin-header { top: 0; } }

@media (max-width: 640px) {
	.fin-topbar { font-size: 13px; }
	.fin-topbar__inner { min-height: 40px; }
	.fin-topbar__hl-label, .fin-topbar__sep, .fin-topbar__search span { display: none; }
	.fin-topbar__left { gap: 10px; }
	.fin-hero__content { justify-content: flex-end; padding-bottom: 150px; }
	.fin-hero__shade { background: linear-gradient(0deg, rgba(8, 12, 30, .9) 0%, rgba(8, 12, 30, .55) 55%, rgba(8, 12, 30, .25) 100%); }
	.fin-hero__meta { gap: 10px; }
	.fin-badge { font-size: 13px; padding: 6px 12px; }
	.fin-hero__date { font-size: 15px; }
	.fin-hero__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.fin-btn--lg { padding: 16px 24px; font-size: 16px; }
	.fin-hero__arrows { display: none; }
	.fin-hero__tab { flex-basis: 62vw; }
	.fin-hero__tab-label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.fin-hero__bg, .fin-hero__slide, .fin-hero__slide .fin-anim { transition: opacity .3s !important; transform: none !important; filter: none !important; }
}

/* Theme info bar that used to appear under the hero */
body.fin-has-design .fin-hero + [class*="bar"]:not([class*="fin-"]) { display: none !important; }

/* ---------- Home blog section ---------- */
.fin-blog { padding: clamp(48px, 6vw, 96px) 0; background: var(--fin-cream); }
.fin-blog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.fin-blog__eyebrow { margin: 0 0 6px; color: var(--fin-red); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.fin-blog__title { margin: 0 !important; color: var(--fin-navy); font-size: clamp(26px, 2.6vw, 42px) !important; line-height: 1.15; font-weight: 800; }
.fin-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.fin-post { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(30,42,90,.06), 0 8px 24px rgba(30,42,90,.06); display: flex; flex-direction: column; transition: transform .3s var(--fin-ease), box-shadow .3s; }
.fin-post:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,42,90,.12); }
.fin-post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e4dc; }
.fin-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--fin-ease); }
.fin-post:hover .fin-post__img img { transform: scale(1.05); }
.fin-post__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--fin-navy), var(--fin-red)); }
.fin-post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fin-post__date { margin: 0; font-size: 13px; color: #6b7280; letter-spacing: .04em; }
.fin-post__title { margin: 0 !important; font-size: 19px !important; line-height: 1.35; font-weight: 700; }
.fin-post__title a { color: var(--fin-navy); text-decoration: none; }
.fin-post__title a:hover { color: var(--fin-red); }
.fin-post__excerpt { margin: 0; color: #4b5563; font-size: 15px; line-height: 1.6; flex: 1; }
.fin-post__more { display: inline-flex; align-items: center; gap: 6px; color: var(--fin-red); font-weight: 600; text-decoration: none; font-size: 15px; }
.fin-post__more .fin-ico { width: 16px; height: 16px; transition: transform .25s; }
.fin-post__more:hover .fin-ico { transform: translateX(4px); }
@media (max-width: 960px) { .fin-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fin-blog__grid { grid-template-columns: 1fr; } }

/* ---------- Embedded festival video ---------- */
.fin-video { margin: 28px 0; max-width: 100%; }
.fin-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.fin-video__frame iframe, .fin-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fin-video figcaption { margin-top: 8px; font-size: 14px; opacity: .7; }
