:root {
  --sfr-navy: #102a43;
  --sfr-blue: #1769aa;
  --sfr-blue-dark: #0e4e83;
  --sfr-sky: #eaf4fb;
  --sfr-ink: #243b53;
  --sfr-muted: #627d98;
  --sfr-paper: #ffffff;
  --sfr-line: #d9e2ec;
  --sfr-radius: 1rem;
  --sfr-shadow: 0 1rem 2.5rem rgba(16, 42, 67, 0.1);
}

html {
  scroll-behavior: smooth;
}

section[id],
main[id] {
  scroll-margin-top: 100px;
}

body {
  background: #f7f9fc;
  color: var(--sfr-ink);
  font-family: "Raleway", sans-serif;
  line-height: 1.7;
}

.team-member .grid figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

h1,
h2,
h3,
h4,
h5,
.navbar,
.btn {
  font-family: "Montserrat", sans-serif;
}

a {
  color: var(--sfr-blue);
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

a:hover,
a:focus {
  color: var(--sfr-blue-dark);
}

#fixed-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.35rem 1.5rem rgba(16, 42, 67, 0.1);
}

#fixed-navbar .navbar {
  min-height: 96px;
  margin-bottom: 0;
  border: 0;
  background: transparent;
}

#fixed-navbar .navbar-header,
#fixed-navbar .nav-container {
  min-height: 96px;
}

#fixed-navbar .navbar-brand {
  height: 96px;
  padding: 8px 15px;
}

#fixed-navbar .navbar-brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

#fixed-navbar .navbar-nav > li > a {
  padding: 38px 10px;
  color: var(--sfr-navy);
  font-size: 1.4rem;
  font-weight: 600;
}

#fixed-navbar .navbar-nav > li > a:hover,
#fixed-navbar .navbar-nav > li > a:focus,
#fixed-navbar .navbar-nav > .open > a {
  background: transparent;
  color: var(--sfr-blue);
}

#fixed-navbar .dropdown-menu {
  border: 1px solid var(--sfr-line);
  border-radius: 0.75rem;
  box-shadow: var(--sfr-shadow);
}

#fixed-navbar .dropdown-menu > li > a {
  padding: 0.7rem 1.2rem;
  font-size: 1.4rem;
}

#fixed-navbar .language-switch > a {
  margin: 18px 0 18px 8px;
  padding: 9px 13px;
  border: 1px solid var(--sfr-line);
  border-radius: 999px;
  background: var(--sfr-paper);
  line-height: 1.2;
}

#fixed-navbar .language-switch > a:hover,
#fixed-navbar .language-switch > a:focus {
  background: var(--sfr-sky);
}

#home {
  min-height: 620px;
  background-color: var(--sfr-navy);
  background-image: linear-gradient(120deg, rgba(16, 42, 67, 0.92), rgba(23, 105, 170, 0.72));
}

#home .parallax-overlay {
  background: linear-gradient(120deg, rgba(16, 42, 67, 0.78), rgba(23, 105, 170, 0.35));
}

#home h1,
#home .lead,
#home .home-title {
  color: #fff;
}

#home .home-title {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

#slider-home .slider-home-panel.slider-hidden {
  display: none !important;
}

.section-title h1,
.section-title h2,
.post-title {
  color: var(--sfr-navy);
}

.section-title .lead,
.lead {
  color: var(--sfr-muted);
}

.page-content {
  min-height: 60vh;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.modern-hero {
  display: flex;
  min-height: 560px;
  align-items: center;
  padding: 5rem 0;
  background: linear-gradient(110deg, rgba(16, 42, 67, 0.96), rgba(23, 105, 170, 0.76)), var(--sfr-navy);
  color: #fff;
}

.modern-hero h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.modern-hero .lead {
  max-width: 650px;
  color: #eaf4fb;
  font-size: 1.25rem;
}

.hero-eyebrow {
  color: #b9dcf4;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.modern-hero .btn-default {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
}

.modern-hero .btn-default:hover,
.modern-hero .btn-default:focus {
  background: rgba(255, 255, 255, 0.15);
}

.modern-section {
  padding: 5rem 0;
}

.modern-section-tint {
  background: var(--sfr-sky);
}

.section-intro {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-intro h2 {
  color: var(--sfr-navy);
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.modern-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.link-list {
  padding-left: 1.2rem;
}

.membership-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.membership-price {
  color: var(--sfr-blue);
  font-size: 1.8rem;
  font-weight: 800;
}

.membership-price small {
  color: var(--sfr-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.legal-note {
  margin-top: 1.5rem;
  text-align: center;
}

.page-heading {
  margin-bottom: 2rem;
}

.page-heading h1,
.news-article h1 {
  color: var(--sfr-navy);
}

.content-panel,
.news-article article {
  margin: 1.25rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--sfr-line);
  border-radius: var(--sfr-radius);
  background: var(--sfr-paper);
  box-shadow: 0 0.5rem 1.5rem rgba(16, 42, 67, 0.05);
}

.content-panel details {
  padding: 1rem 0;
  border-top: 1px solid var(--sfr-line);
}

.content-panel summary {
  color: var(--sfr-navy);
  cursor: pointer;
  font-weight: 700;
}

.content-panel details p {
  margin: 0.75rem 0 0;
  color: var(--sfr-muted);
}

.club-official-photo {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

.news-article {
  min-height: 60vh;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.news-article-image {
  max-width: 480px;
  border-radius: var(--sfr-radius);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--sfr-sky);
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photo-grid a:hover img,
.photo-grid a:focus img {
  transform: scale(1.04);
}

.gallery-subtitle {
  margin: 2rem 0 1rem;
  color: var(--sfr-navy);
}

.feature-video {
  display: block;
  width: min(100%, 900px);
  border-radius: var(--sfr-radius);
  background: #000;
}

.btn,
.btn-primary {
  border: 0;
  border-radius: 999px;
  background-color: var(--sfr-blue);
  box-shadow: 0 0.4rem 1rem rgba(23, 105, 170, 0.18);
  color: #fff;
  font-weight: 600;
}

.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--sfr-blue-dark);
  color: #fff;
}

.news-section {
  padding: 5rem 0;
  background: var(--sfr-paper);
}

.news-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.news-section-heading h2 {
  margin: 0;
  color: var(--sfr-navy);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.news-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--sfr-line);
  border-radius: var(--sfr-radius);
  background: var(--sfr-paper);
  box-shadow: 0 0.5rem 1.5rem rgba(16, 42, 67, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sfr-shadow);
}

.news-card .news-category {
  margin-bottom: 0.65rem;
  color: var(--sfr-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0 0 0.75rem;
  color: var(--sfr-navy);
  font-size: 1.15rem;
  line-height: 1.4;
}

.news-card-image {
  display: block;
  width: 100%;
  height: 160px;
  margin: 0.25rem 0 1rem;
  border-radius: 0.25rem;
  background: #f7f9fc;
  object-fit: contain;
}

.youth-flyer {
  margin: 2rem auto;
  text-align: center;
}

.youth-flyer-image {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto;
  border-radius: var(--sfr-radius);
}

.youth-flyer figcaption {
  margin-top: 0.75rem;
  color: var(--sfr-muted);
  font-size: 0.9rem;
}

.award-news-figure {
  margin: 2rem 0;
  text-align: center;
}

.award-news-image {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin: 0 auto;
  border-radius: var(--sfr-radius);
}

.award-news-figure figcaption {
  margin-top: 0.75rem;
  color: var(--sfr-muted);
  font-size: 0.9rem;
}

.award-slider-image {
  display: block;
  width: min(80vw, 620px);
  max-height: 260px;
  margin: 0 auto;
  object-fit: contain;
}

.news-card p {
  flex: 1;
  color: var(--sfr-muted);
}

.sponsor-credit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
  color: var(--sfr-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.sponsor-credit img {
  width: 112px;
  height: auto;
  flex: 0 0 auto;
  border: 1px solid var(--sfr-line);
  border-radius: 0.25rem;
}

.project-sponsor {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--sfr-line);
  border-radius: var(--sfr-radius);
  background: #f7f9fc;
}

.project-sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.project-sponsors figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--sfr-line);
  border-radius: 0.25rem;
  background: #fff;
  text-align: center;
}

.project-sponsors img {
  width: 100%;
  height: 5rem;
  object-fit: contain;
}

.project-sponsors figcaption {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-sponsors-compact {
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.project-sponsors-compact img {
  height: 3.5rem;
}

.project-sponsors-compact figure {
  padding: 0.4rem;
}

.project-sponsors-compact figcaption {
  font-size: 0.75rem;
}

.project-sponsor p {
  margin: 0;
}

.news-card .news-read-more {
  font-weight: 700;
}

#footer {
  padding-top: 3rem;
  background: var(--sfr-navy);
  color: #d9e2ec;
}

#footer a,
#footer .footer-logo a {
  color: #fff;
}

#footer .footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

#footer .footer-menu .pull-left,
#footer .footer-menu .pull-right {
  float: none !important;
}

@media (max-width: 767px) {
  #fixed-navbar .navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #fixed-navbar .navbar-brand {
    order: 1;
  }

  #fixed-navbar .navbar-toggle {
    order: 2;
    margin: 26px 15px 26px 0;
    border-color: var(--sfr-line);
    background: #fff;
  }

  #fixed-navbar .navbar-toggle .icon-bar {
    background: var(--sfr-navy);
  }

  #fixed-navbar .navbar-collapse {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    border-top: 1px solid var(--sfr-line);
    box-shadow: none;
  }

  #fixed-navbar .navbar-nav > li > a {
    padding: 12px 15px;
    font-size: 1.4rem;
  }

  #fixed-navbar .navbar-nav .dropdown-menu {
    display: block;
    position: static;
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 0.75rem;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #fixed-navbar .dropdown-menu > li > a {
    padding: 8px 15px;
    color: var(--sfr-navy);
    font-size: 1.3rem;
  }

  #fixed-navbar .language-switch > a {
    display: inline-block;
    margin: 6px 15px 12px;
  }

  .news-section {
    padding: 3.5rem 0;
  }

  .news-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .project-sponsors {
    gap: 0.5rem;
  }

  .project-sponsors figure {
    padding: 0.5rem;
  }

  .modern-columns,
  .membership-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .modern-section {
    padding: 3.5rem 0;
  }

  .modern-hero {
    min-height: 500px;
  }

  #home {
    min-height: 560px;
  }
}
