:root {
  --azure: #17458f;
  --navy: #0c2d5c;
  --gold: #f7a81b;
  --peach: #f4a261;
  --peach-light: #fff2e4;
  --cream: #fafaf7;
  --white: #ffffff;
  --ink: #23262b;
  --slate: #4a4a4a;
  --line: #e4e2dc;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(12, 45, 92, 0.10);
  --shadow-sm: 0 2px 8px rgba(12, 45, 92, 0.08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar */
.topbar {
  background: var(--navy);
  color: #cfd9ea;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar a { color: #cfd9ea; }
.topbar a:hover { color: var(--gold); }

/* Updated Topbar Social Styles */
.topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Individual Brand Badge Backgrounds */
.topbar-social a.facebook { background: #1877F2; }
.topbar-social a.linkedin { background: #0A66C2; }
.topbar-social a.youtube  { background: #FF0000; }
.topbar-social a.email    { background: #EA4335; }

.topbar-social a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.topbar-social svg {
  width: 15px;
  height: 15px;
  fill: #ffffff; /* Keeps icon logos white inside the colored badge */
}

/* Site Header */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .club-name { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.brand-text .club-sub { font-size: 0.78rem; color: var(--azure); letter-spacing: 0.06em; text-transform: uppercase; }

/* Navigation */
nav.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav > ul > li {
  position: relative;
}

nav.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  border-radius: 6px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li.active > a,
nav.main-nav > ul > li:hover > a {
  background: var(--azure);
  color: var(--white);
}

.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--navy);
  transition: transform 0.2s ease;
}

nav.main-nav > ul > li:hover > a .arrow,
nav.main-nav > ul > li.active > a .arrow {
  border-top-color: var(--white);
}

/* Sub-Menu (Desktop Dropdown) */
nav.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

nav.main-nav li.has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav.main-nav .sub-menu li {
  margin: 0;
}

nav.main-nav .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: none;
  border-radius: 0;
}

nav.main-nav .sub-menu a:hover {
  background: var(--cream);
  color: var(--azure);
}

/* 3-Column Layout & Sidebar Styling */
.content-grid {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 24px;
  padding: 30px 0;
}

.sidebar-widget {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  border-bottom: 2px solid var(--azure);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.hero-banner-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-banner-box img { width: 100%; height: 260px; object-fit: cover; }

.hero-banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(12,45,92,0.9), transparent);
  color: #fff;
  padding: 20px;
}

.hero-banner-caption h2 { color: #fff; margin-bottom: 4px; }
.hero-banner-caption p { color: #d9e2f1; margin: 0; }

.section-banner {
  background: var(--azure);
  color: #fff;
  padding: 10px 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  margin: 20px 0 14px;
}

.content-block {
  margin-bottom: 28px;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.calendar-table th, .calendar-table td {
  padding: 6px 2px;
}

.calendar-table .active-day {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 50%;
}

/* Mobile Toggle & Responsive Styles */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--azure);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--azure);
  margin: 4px 0;
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }

  nav.main-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    background: var(--cream);
    padding: 0;
    margin-left: 20px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  nav.main-nav li.has-children.open .sub-menu {
    display: block;
  }

  nav.main-nav li.has-children.open .arrow {
    transform: rotate(180deg);
  }
}

.contact-info-card {
  background: #002452;
  color: #ffffff;
  padding: 30px;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-badge { background: #EA4335; }
.facebook-badge { background: #1877F2; }
.address-badge { background: var(--azure); }

.icon-badge svg {
  width: 20px;
  height: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cfd9ea;
  font-weight: 600;
}

.contact-details a {
  color: var(--gold);
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-container iframe {
  display: block;
}

footer.site-footer {
  background: var(--navy);
  color: #cfd9ea;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 20px;
}

.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid a { color: #cfd9ea; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { padding-top: 16px; font-size: 0.85rem; text-align: center; }