:root {
  --fp-surface: #f5f7fb;
  --fp-panel: #ffffff;
  --fp-ink: #0f172a;
  --fp-muted: #5b6476;
  --fp-brand: #1649ba;
  --fp-brand-deep: #0b2467;
  --fp-accent: #f5b700;
  --fp-line: #dce3f0;
  --fp-radius: 18px;
  --fp-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}

html { background: var(--fp-surface); }

.site-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(22, 73, 186, .10), transparent 28rem),
    var(--fp-surface);
  color: var(--fp-ink);
}

.site-header {
  background: linear-gradient(118deg, var(--fp-brand-deep), var(--fp-brand)) !important;
  box-shadow: 0 7px 20px rgba(11, 36, 103, .20);
}

.site-header a { transition: color .18s ease, opacity .18s ease, transform .18s ease; }
.site-header a:hover { color: #fff !important; opacity: .85; }

.site-nav__link {
  position: relative;
  padding: .4rem .1rem;
  letter-spacing: .01em;
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--fp-accent);
}

.site-main { min-height: calc(100vh - 14rem); }

.home-shell { max-width: 1440px; }

.home-hero {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.home-hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1408 / 450;
  object-fit: cover;
}

.home-section { margin-top: clamp(1.75rem, 4vw, 3rem); }

.section-heading {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.section-link {
  color: var(--fp-brand);
  font-weight: 700;
  text-decoration: none;
}
.section-link:hover { color: var(--fp-brand-deep); text-decoration: underline; }

.news-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  background: var(--fp-panel);
  box-shadow: 0 4px 15px rgba(15, 23, 42, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-card:hover {
  border-color: rgba(22, 73, 186, .38);
  box-shadow: var(--fp-shadow);
  transform: translateY(-4px);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.news-card__body { padding: 1rem 1rem 1.1rem; }
.news-card__title { font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.news-card__summary { margin-top: .4rem; color: var(--fp-muted); line-height: 1.5; }

.carousel-control {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(8px);
}

.carousel-control:hover { background: var(--fp-brand); }
.carousel-dot { background: #fff !important; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); }
.site-header__notification {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
}

.site-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem) !important;
  background: linear-gradient(118deg, var(--fp-brand-deep), var(--fp-brand)) !important;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--fp-accent) !important;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .site-header { box-shadow: 0 4px 14px rgba(11, 36, 103, .24); }
  .home-shell { padding-right: 1rem; padding-left: 1rem; }
  .home-hero { margin-top: .35rem; border-radius: 12px; }
  #banner-carousel { background: #071324; }
  .home-hero__image {
    height: min(66vw, 19rem);
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
  .carousel-control { width: 2.35rem; height: 2.35rem; }
}

html.dark .site-body { background: #0b1120; color: #eef2ff; }
html.dark .news-card { border-color: #26344d; background: #111b2e; }
html.dark .news-card__summary { color: #c1cadb; }
html.dark .section-link { color: #93c5fd; }
