:root {
  --navy: #0c1f38;
  --navy-dark: #081527;
  --ice: #4fb8e8;
  --ice-light: #eaf7fd;
  --red: #c8202f;
  --white: #ffffff;
  --gray: #6b7686;
  --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy-dark);
  background: var(--white);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: var(--ice-light);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--ice-light); }
.topbar a:hover { color: var(--ice); }

/* Header */
header.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--ice);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
}
.logo {
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}
.logo-badge {
  background: var(--white);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.logo-badge img {
  display: block;
  height: 40px;
  width: auto;
}
.logo span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--ice);
  margin-top: 2px;
}

nav.main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  border-radius: 4px;
  display: block;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--ice);
  color: var(--navy-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions .icon-btn {
  color: var(--white);
  font-size: 18px;
  position: relative;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* Ownership banner */
.ownership-banner {
  background:
    linear-gradient(180deg, rgba(8,21,39,0.85) 0%, rgba(8,21,39,0.55) 60%, rgba(8,21,39,0.85) 100%),
    repeating-linear-gradient(135deg, #123258 0 40px, #0d2846 40px 80px);
  padding: 32px 24px;
  text-align: left;
}
.ownership-banner .container { max-width: 900px; margin: 0 auto; }
.ownership-label {
  display: block;
  color: var(--ice);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.ownership-banner h3 {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}
.ownership-banner .body-text {
  color: #cfe4f3;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.ownership-banner .body-text strong { color: var(--white); }
.ownership-warning {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(224,183,122,0.4);
  border-radius: 24px;
  padding: 10px 20px;
  color: #e8c98a;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}
.ownership-warning .icon { flex-shrink: 0; margin-top: 1px; }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(8,21,39,0.85) 0%, rgba(8,21,39,0.55) 60%, rgba(8,21,39,0.85) 100%),
    repeating-linear-gradient(135deg, #123258 0 40px, #0d2846 40px 80px);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero .tagline {
  color: var(--ice);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Announcement cards */
.announcements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}
.announce-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(79,184,232,0.35);
  border-radius: 8px;
  padding: 22px 22px 24px;
  backdrop-filter: blur(2px);
}
.announce-card .tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.announce-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--white);
}
.announce-card p {
  font-size: 14px;
  color: #cfe4f3;
  margin-bottom: 14px;
}
.announce-card .btn {
  display: inline-block;
  background: var(--ice);
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 4px;
  transition: background 0.15s;
}
.announce-card .btn:hover { background: var(--white); }

/* Info strip */
.info-strip {
  background: var(--ice-light);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--navy-dark);
}
.info-strip strong { color: var(--red); }
.info-strip a { color: var(--navy); text-decoration: underline; }

/* Section grid on homepage */
.section-links {
  padding: 56px 24px;
}
.section-links h2 {
  text-align: center;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-links .sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 34px;
  font-size: 14px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(12,31,56,0.12);
}
.card .thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ice) 130%);
}
.card .body { padding: 16px 18px 20px; }
.card h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--gray); }

/* Generic page hero (subpages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 46px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-hero .crumb {
  color: var(--ice);
  font-size: 13px;
  margin-top: 6px;
}

.page-content {
  padding: 48px 24px;
  max-width: 860px;
  margin: 0 auto;
}
.page-content h2 {
  color: var(--navy);
  font-size: 22px;
  margin-bottom: 14px;
}
.flyer-wrap {
  max-width: 760px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(12,31,56,0.18);
}
.flyer-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.page-content p {
  color: #3a4657;
  margin-bottom: 14px;
  font-size: 15px;
}
.page-content .contact-box {
  margin-top: 30px;
  background: var(--ice-light);
  border-left: 4px solid var(--ice);
  padding: 18px 20px;
  border-radius: 4px;
  font-size: 14px;
}
.page-content h3 {
  color: var(--navy);
  font-size: 17px;
  margin: 24px 0 12px;
}
.info-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  font-size: 14px;
  color: #3a4657;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list li:nth-child(odd) { background: var(--ice-light); }
.info-list .label { font-weight: 600; color: var(--navy); }

/* Forms */
.site-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  margin: 14px 0 24px;
  background: #fafcfe;
}
.site-form .field {
  margin-bottom: 16px;
}
.site-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy-dark);
}
.site-form textarea { resize: vertical; min-height: 80px; }
.site-form .submit-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
}
.site-form .submit-btn:hover { background: var(--ice); color: var(--navy-dark); }
.honeypot-field { position: absolute; left: -9999px; }

/* Callout boxes */
.callout {
  border-radius: 6px;
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 14px;
}
.callout h3 { margin-top: 0; }
.callout-yellow {
  background: #fdf6d8;
  border: 1px solid #e8d576;
  color: #4a3f05;
}
.callout-red {
  background: #fdeceb;
  border: 1px solid #f0b8b4;
  color: var(--red);
  font-weight: 700;
  text-align: center;
}

/* Schedule tables */
.schedule-block { margin-bottom: 24px; }
.schedule-block h4 {
  color: var(--navy);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 18px 0 8px;
}
.schedule-list li {
  display: flex;
  gap: 16px;
  padding: 9px 16px;
  font-size: 13px;
  color: #3a4657;
  border-bottom: 1px solid var(--border);
}
.schedule-list { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 4px; }
.schedule-list li:last-child { border-bottom: none; }
.schedule-list li:nth-child(odd) { background: var(--ice-light); }
.schedule-list .time { font-weight: 700; color: var(--navy); white-space: nowrap; min-width: 110px; }

/* Class descriptions */
.desc-block { margin-bottom: 18px; }
.desc-block h4 { color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.desc-block p { margin-bottom: 0; }

details.term-details {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 14px 18px;
}
details.term-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
details.term-details[open] summary { margin-bottom: 10px; }

.session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pay-mini {
  display: inline-block;
  background: #1a8a4a;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.pay-mini:hover { background: #146b3a; }

.pay-btn {
  display: inline-block;
  background: #1a8a4a;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  margin: 8px 0 4px;
}
.pay-btn:hover { background: #146b3a; }
.pay-note { font-size: 12px; color: var(--gray); margin-top: 6px; }

.book-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  margin: 4px 0 8px;
}
.book-btn:hover { background: var(--ice); color: var(--navy-dark); }

.calendar-embed {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0 24px;
}
.calendar-embed iframe { display: block; }

.hl-red { color: var(--red); font-weight: 700; }
.schedule-list .time.hl-red { color: var(--red); }
.callout-yellow strong { color: var(--red); }

/* Quick nav */
.quick-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}
.quick-nav a {
  background: var(--ice-light);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.quick-nav a:hover { background: var(--white); border-color: var(--ice); }

/* Program cards */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 18px 0 32px;
}
.program-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}
.program-card .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.program-card .badge {
  background: var(--ice-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.program-card .badge.price { background: var(--navy); color: var(--white); }
.program-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 8px;
}
.program-card p {
  font-size: 13.5px;
  color: #3a4657;
  margin-bottom: 8px;
}
.program-card p:last-child { margin-bottom: 0; }
.program-card .req { font-size: 12.5px; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c6d6;
  padding: 40px 24px 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 24px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 13px;
  color: #b9c6d6;
  margin-bottom: 8px;
}
.footer-grid a:hover { color: var(--ice); }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #6b7f97;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    display: none;
    padding: 8px 16px 16px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; }
  header.site-header { position: relative; }
  .nav-toggle { display: block; }
}
