html {
      scroll-behavior: smooth;
    }

    body {
      background-color: #f8f9fa;
    }

    .navbar-brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      white-space: normal;
      font-weight: 600;
    }

    .navbar-brand img {
      width: 52px;
      height: auto;
      object-fit: contain;
      flex-shrink: 0;
      border-radius: 50%;
    }

    .navbar-brand span {
      line-height: 1.15;
    }

    .hero-section {
      background: #ffffff;
      border: 1px solid #dee2e6;
      border-radius: 1rem;
      padding: 3rem 2rem;
      margin-bottom: 2rem;
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
      text-align: center;
    }
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 640px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  z-index: -1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
}
    .hero-welcome {
      position: relative;
      overflow: hidden;
      min-height: 640px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 1rem;
      background: none !important;
      padding: 0;
    }

    .hero-welcome::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/images/welcome-bg.jpg") center/cover no-repeat;
      z-index: 0;
    }

    .hero-welcome::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.60);
      z-index: 1;
    }

    .hero-welcome .hero-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      color: #fff;
      padding: 3rem 2rem;
    }

    .hero-welcome .crest {
      background: transparent !important;
      filter: invert(1) brightness(1.05) !important;
      mix-blend-mode: normal !important;
      display: inline-block;
    }

    .hero-welcome .content-wrap {
      max-width: 850px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 1rem;
      padding: 1.5rem;
      backdrop-filter: blur(1px);
    }

    .hero-welcome a { color: #fff; }

    .hero-membership {
      position: relative;
      overflow: hidden;
      min-height: 640px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 1rem;
      background: none !important;
      padding: 0;
      color: #fff;
    }

    .hero-membership::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/images/staunton.jpg") center/cover no-repeat;
      z-index: 0;
    }

    .hero-membership::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.60);
      z-index: 1;
    }

    .hero-membership .hero-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      padding: 3rem 2rem;
      text-align: center;
    }

    .hero-membership .content-wrap {
      max-width: 850px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 1rem;
      padding: 1.5rem;
      backdrop-filter: blur(1px);
    }

    .hero-contact {
      position: relative;
      overflow: visible;
      min-height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 1rem;
      background: none !important;
      padding: 0;
      color: #fff;
    }

    .hero-contact::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/images/contact-bg.jpg") center/cover no-repeat;
      z-index: 0;
    }

    .hero-contact::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.60);
      z-index: 1;
    }

    .hero-contact .hero-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      padding: 3rem 2rem;
      text-align: center;
    }

    .hero-contact .content-wrap {
      max-width: 850px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 1rem;
      padding: 1.5rem;
      backdrop-filter: blur(1px);
      text-align: left;
      color: #fff;
      overflow: visible;
    }

    .hero-news {
      position: relative;
      overflow: hidden;
      min-height: 640px;
      border-radius: 1rem;
      background: none !important;
      padding: 3rem 1.5rem;
      color: #fff;
      display: block;
    }

    .hero-news::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/images/news-bg.jpg") center/cover no-repeat;
      z-index: 0;
    }

    .hero-news::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.60);
      z-index: 1;
    }

    .hero-news .hero-content {
      position: relative;
      z-index: 2;
      width: min(100%, 1200px);
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 0.5rem;
      text-align: center;
      color: #fff;
      display: block;
    }

    .hero-news .news-placeholder {
      max-width: 1100px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 1rem;
      padding: 1.5rem;
      backdrop-filter: blur(1px);
      color: #fff;
    }

    .hero-news h2,
    .hero-news h3,
    .hero-news p,
    .hero-news a {
      color: #fff;
    }

    .hero-news .team-card {
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 1rem;
      padding: 1.5rem;
      height: 100%;
      background: rgba(255, 255, 255, 0.04);
      color: #fff;
    }

    .hero-news .team-card .team-icon {
      margin-bottom: 1rem;
      transition: transform 0.25s ease, text-shadow 0.25s ease, color 0.25s ease, filter 0.25s ease;
      display: inline-block;
    }

    .hero-news .team-card:hover .team-icon,
    .hero-news .team-card .team-icon:hover {
      transform: translateY(-4px) scale(1.15);
      text-shadow: 0 0 18px rgba(255,255,255,0.45);
      filter: brightness(1.35);
    }

    .hero-news .team-card:hover .team-icon.gold,
    .hero-news .team-card .team-icon.gold:hover {
      color: #ffd05b;
    }

    .hero-news .team-card:hover .team-icon.silver,
    .hero-news .team-card .team-icon.silver:hover {
      color: #f0f0f0;
    }

    .hero-news .team-card:hover .team-icon.bronze,
    .hero-news .team-card .team-icon.bronze:hover {
      color: #ffb56b;
    }

    .hero-news .team-card:hover .team-icon.black-piece,
    .hero-news .team-card .team-icon.black-piece:hover {
      color: #ffffff;
    }

    .hero-news .king-sparkle { color: #ffd05b; animation: king-sparkle 2.4s ease-in-out infinite; }
    @keyframes king-sparkle {
      0%, 100% { color: #ffd05b; text-shadow: 0 0 3px rgba(255,208,91,.35); filter: brightness(1); }
      45% { color: #ffd05b; text-shadow: 0 0 8px rgba(255,208,91,.8), 7px -7px 2px rgba(255,255,255,.8), -7px 5px 2px rgba(255,226,138,.7); filter: brightness(1.12); }
      55% { color: #ffd05b; text-shadow: 0 0 14px rgba(255,208,91,.95), -5px -8px 1px rgba(255,255,255,.9), 8px 4px 2px rgba(255,226,138,.8); filter: brightness(1.25); }
    }
    @media (prefers-reduced-motion: reduce) { .hero-news .king-sparkle { animation: none; } }

    /* Body background slider (cycles hero backgrounds) */
    #bg-slider {
      position: fixed;
      inset: 0;
      z-index: -9999;
      pointer-events: none;
    }

    #bg-slider .slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transition: opacity 1s ease-in-out;
      opacity: 0;
    }

    #bg-slider .slide.active {
      opacity: 1;
    }

    /* Footer styles */
    .site-footer {
      background: #0b0b0f;
      color: #fff;
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    .site-footer a { color: #fff; opacity: 0.95; text-decoration: none; }
    .site-footer a:hover { opacity: 1; text-decoration: underline; }
    .site-footer .social-icons .list-inline-item { margin-left: .5rem; margin-right: .5rem; }
    .site-footer .social-icons svg { width: 22px; height: 22px; vertical-align: middle; fill: currentColor; }
    .site-footer .footer-nav { margin-bottom: .5rem; }

    /* Navbar social icon sizing and visibility */
    .navbar .icons a { color: inherit; display: inline-flex; align-items: center; }
    .navbar .icons svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; fill: currentColor; color: inherit; }
    .navbar .icons .label { display: none; }
    .navbar .icons .icon-x { color: #111; }
    .navbar .icons .icon-facebook { color: #1877F2; }
    .navbar .icons .icon-instagram { color: #E1306C; }
    .navbar .icons .icon-envelope { color: #495057; }

    .hero-history {
      position: relative;
      overflow: hidden;
      min-height: 640px;
      border-radius: 1rem;
      background: none !important;
      padding: 3rem 1.5rem;
      color: #fff;
      width: 100%;
      display: block;
    }

    .hero-history::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/images/history-bg.jpg") center/cover no-repeat;
      z-index: 0;
    }

    .hero-history::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.60);
      z-index: 1;
    }

    .hero-history .hero-content {
      position: relative;
      z-index: 2;
      width: min(100%, 1200px);
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 0.5rem;
      text-align: center;
      display: block;
    }

    .hero-history .content-wrap {
      width: min(100%, 1100px);
      max-width: 1100px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 1rem;
      padding: 2rem 2.5rem;
      backdrop-filter: blur(1px);
      text-align: left;
      box-sizing: border-box;
    }

    .hero-section h1,
    .hero-section h2 {
      margin-bottom: 1.25rem;
    }

    .hero-committee h2 {
      font-weight: 300;
      letter-spacing: 0.02em;
      color: #fff;
    }

    .hero-section p,
    .hero-section ul,
    .hero-section ol,
    .hero-section .content-wrap {
      max-width: 850px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-section p {
      margin-bottom: 1rem;
    }

    .hero-history .content-wrap {
      width: min(100%, 1100px) !important;
      max-width: 1100px !important;
      padding: 2rem 2.5rem;
      box-sizing: border-box;
    }

    .hero-history .content-wrap p,
    .hero-history .content-wrap ul,
    .hero-history .content-wrap ol {
      max-width: none !important;
      width: 100%;
    }

    .hero-section p:last-child,
    .hero-section ul:last-child,
    .hero-section ol:last-child {
      margin-bottom: 0;
    }

    .hero-committee {
      position: relative;
      overflow: hidden;
      min-height: 640px;
      border-radius: 1rem;
      background: none !important;
      padding: 3rem 1.5rem;
      color: #fff;
      width: 100%;
      display: block;
    }

    .hero-committee::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("/images/committee-bg.jpg") center/cover no-repeat;
      z-index: 0;
    }

    .hero-committee::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.60);
      z-index: 1;
    }

    .hero-committee .hero-content {
      position: relative;
      z-index: 2;
      width: min(100%, 1200px);
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 0.5rem;
      text-align: center;
      display: block;
    }

    .hero-committee .content-wrap {
      width: min(100%, 1100px);
      max-width: 1100px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 1rem;
      padding: 2rem 2.5rem;
      backdrop-filter: blur(1px);
      box-sizing: border-box;
    }

    .committee-placeholder,
    .news-placeholder {
      max-width: 850px;
      margin: 0 auto;
      text-align: left;
    }

    .committee-card,
    .team-card {
      border: 1px solid #dee2e6;
      border-radius: 1rem;
      padding: 1.5rem;
      height: 100%;
      background-color: #fff;
      color: #111 !important;
    }

    .hero-committee .committee-card {
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .hero-committee .committee-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.08);
      border-color: rgba(13, 110, 253, 0.22);
    }

    .committee-photo {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      background-color: #f8f9fa;
      margin: 0 auto 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #111111;
      font-size: 2.5rem;
      box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
    }

    .contact-card {
      max-width: 850px;
      margin: 0 auto;
      text-align: left;
    }

    .contact-card .cf-turnstile {
      width: 100%;
      max-width: 100%;
    }

    .hp-field {
      position: absolute !important;
      left: -9999px !important;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }
.team-icon {
  line-height: 1;
  font-weight: 700;
}

.team-icon.gold {
  color: #d4af37;
}

.team-icon.silver {
  color: #c0c0c0;
}

.team-icon.bronze {
  color: #cd7f32;
}

.team-icon.black-piece {
  color: #111111;
}
.btn-reset {
  color: #111111 !important;
  background-color: #ffffff !important;
  border: 2px solid #111111 !important;
  font-weight: 700;
  box-shadow: none;
}

.btn-reset:hover,
.btn-reset:focus-visible {
  color: #ffffff !important;
  background-color: #111111 !important;
  border-color: #111111 !important;
}
/* Mobile phone layout improvements */
@media (max-width: 991px) {
  body {
    overflow-x: hidden;
  }

  main.container {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .navbar-brand {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .navbar-brand img {
    width: 40px;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .icons {
    margin-left: 0 !important;
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  #bg-slider {
    display: none;
  }

  .hero-section,
  .hero-welcome,
  .hero-membership,
  .hero-contact,
  .hero-news,
  .hero-history,
  .hero-committee {
    min-height: auto;
    padding: 1.25rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
  }

  .hero-welcome .hero-content,
  .hero-membership .hero-content,
  .hero-contact .hero-content,
  .hero-news .hero-content,
  .hero-history .hero-content,
  .hero-committee .hero-content {
    padding: 1.25rem 0.75rem;
  }

  .hero-welcome .content-wrap,
  .hero-membership .content-wrap,
  .hero-contact .content-wrap,
  .hero-news .news-placeholder,
  .hero-history .content-wrap,
  .hero-committee .content-wrap {
    padding: 1rem;
    width: 100%;
  }

  .hero-section h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .hero-section h2 {
    font-size: 1.3rem;
  }

  .hero-section p,
  .hero-section ul,
  .hero-section ol {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .committee-card,
  .team-card {
    padding: 1rem;
  }

  .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .contact-card .btn {
    width: 100%;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer .text-md-end {
    text-align: center !important;
  }

  .site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.35rem;
  }

  .hero-section h2 {
    font-size: 1.15rem;
  }

  .hero-welcome .hero-content,
  .hero-membership .hero-content,
  .hero-contact .hero-content,
  .hero-news .hero-content,
  .hero-history .hero-content,
  .hero-committee .hero-content {
    padding: 1rem 0.25rem;
  }

  .hero-welcome .content-wrap,
  .hero-membership .content-wrap,
  .hero-contact .content-wrap,
  .hero-news .news-placeholder,
  .hero-history .content-wrap,
  .hero-committee .content-wrap {
    padding: 0.9rem;
  }
}


  .social-placeholder{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;color:inherit;opacity:.65;cursor:default}.navbar .icons .list-inline-item{vertical-align:middle}.navbar .icons .social-placeholder{width:20px;height:20px}.navbar .icons .icon-tiktok{width:17px;height:17px;color:#111;transform:translateY(-4px)}.social-placeholder svg{display:block;fill:currentColor}.site-footer .social-icons .list-inline-item{vertical-align:middle}.site-footer .social-icons .social-placeholder{width:22px;height:22px}
