/* === GLOBAL STYLES === */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #081833;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*.container {
  flex: 1 0 auto;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}*/

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 20px 0;
}

section{
    padding: 12px 0 14px;
}

form {
  margin-top: 0;
}

main {
  text-align: center;
  flex: 1 0 auto;
}

#about, #contact {
  scroll-margin-top: 92px;
}

footer {
  background-color: #0b1e3c;
  text-align: center;
  padding: 16px 40px;
  font-size: 0.9rem;
  color: #efc643;
  flex-shrink: 0;
}

.bg-secondary {
  background-color: #ffffff;
}

/* === HERO SLIDER === */
.hero-container {
  position: relative;
  height: 60vh;
  max-height: 500px;
  width: 100%;
  overflow: hidden;
}

.swiper {
  height: 100%;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(8, 24, 51, 0.6);
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  max-width: 90%;
  color: #efc643;
}

.hero-overlay h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.hero-overlay .cta-button {
  font-size: 1rem;
  padding: 12px 24px;
}

/* === TYPOGRAPHY === */
/*h1 {
  text-align: center;
  font-size: 1.5em;
  color: #081833;
  margin: 0.2em 0 0.4em;
}

h2 {
  font-size: 1.1em;
  color: #081833;
  margin-bottom: 0.6em;
  text-align: center;
}*/

/* Default dark background typography */
h1, h2, h3 {
  color: #efc643;
}

h4, h5, h6, p {
  color: #ffffff;
}

/* Override for light background sections */
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3 {
  color: #666666;
}

.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary p {
  color: #081833;
}


.bg-secondary a {
  color: #081833;
  text-decoration: underline;
}

/* === HEADER/NAV === */
.topnav {
  background-color: rgba(8, 24, 51, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 40px;
  flex-wrap: wrap;
}

.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
    flex-shrink: 0;
}
.logo img {
  height: 80px;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: bold;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links .active {
  color: #efc643;
  border-bottom: 2px solid #efc643;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 10px;
}

.insta-icon {
  font-size: 1.8em;
  color: #efc643;
  display: flex;
  align-items: center;
  line-height: 1;
   text-decoration: none;
}

.icon {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon:hover .hamburger {
  transform: scale(1.1);
  color: #ffc800;
}

.hamburger {
  font-size: 1.8rem;
  color: #efc643;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* === COACH CARDS SECTION === */

.coaches {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding-top: 20px;
}

.coach-card {
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coach-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /*border-radius: 8px;*/
}

.coach-label {
  background-color: #f0f0f0;
  color: #081833;
  padding: 16px;
  /*border-radius: 0 0 8px 8px;*/
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.coach-label h3 {
  margin: 0.2em 0 0;
  font-size: 1.1em;
}

.coach-label .title {
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 0.95em;
}

.coach-label .blurb {
  font-size: 0.9em;
  margin-bottom: 1em;
  line-height: 1.4;
}

.coach-label a {
  color: #081833;
  font-weight: bold;
  text-decoration: underline;
  font-size: 0.9em;
}

/* === FACILITIES GALLERY === */
.facilities {
  padding: 3px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3px;
  /*max-width: 1200px;*/
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* === AFFILIATIONS SECTION === */

.affiliations {
  background-color: #0b1e3c; /* Optional: matches your footer shade */
  padding: 30px 20px;
  text-align: center;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 0;
}

.logos img {
  width: auto;
  height: 100px;
  max-width: 100%;
  filter: grayscale(100%); /* optional: stylish */
  transition: filter 0.3s ease;
}

.logos img:hover {
  filter: grayscale(0%);
}

/* === COURSES CARDS SECTION === */

.courses {
  padding: 40px 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Base card */
.course-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;        /* portrait */
  background: #000;            /* avoids flash during load */
}

/* Image subtle zoom on hover */
.course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.course-card:hover img {
  transform: scale(1.05);
}

/* Full-height overlay + bottom-pinned text */
.course-overlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  text-align: center;

  /* Fade-up gradient so the image shows near the top */
  background: linear-gradient(
    to top,
    rgba(8, 24, 51, 0.90) 0%,
    rgba(8, 24, 51, 0.75) 35%,
    rgba(8, 24, 51, 0.00) 100%
  );
  color: #efc643;

  /* Hidden by default; reveal on hover */
  opacity: 0;
  transition: opacity 250ms ease;
}

/* Reveal on hover or keyboard focus */
.course-card:hover .course-overlay,
.course-card:focus-within .course-overlay {
  opacity: 1;
}

.course-overlay.is-always-on { opacity: 1; }

.course-overlay h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.course-overlay p {
  margin: 0;
  font-size: 1rem;
}

/* Always show overlay on touch devices (no hover) */
@media (hover: none) {
  .course-overlay { opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .course-card img,
  .course-overlay {
    transition: none;
  }
}

@media screen and (min-width: 1024px) {
  .course-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
  }
}

/* === COURSE MODAL (centered + scrollable) === */

.course-details-btn {
  margin-top: 10px;
  padding: 10px 14px;
  font-weight: bold;
  background: transparent;
  border: 2px solid #efc643;
  color: #efc643;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.course-details-btn:hover,
.course-details-btn:focus {
  background: #efc643;
  color: #081833;
}

/* Overlay */
.course-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  padding: 4vh 16px;           /* breathing room around the dialog */
}

/* Show when targeted (your #modal-... links) */
.course-modal:target {
  display: grid;
  place-items: center;          /* centers the dialog on desktop */
}

/* Lock background scroll in modern browsers */
body:has(.course-modal:target) {
  overflow: hidden;
}

/* Backdrop */
.course-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* Dialog */
.course-modal__dialog {
  position: relative;
  z-index: 1;                   /* above the backdrop */
  width: min(900px, 100%);
  max-height: 92dvh;            /* stay in viewport */
  overflow: auto;               /* scroll INSIDE the modal when tall */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;

  background: #0b1e3c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Image side */
.course-modal__image-wrap {
  background: #000;
  min-height: 260px;
}
.course-modal__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text side */
.course-modal__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow-wrap: anywhere;      /* prevent long lines from spilling */
}
.course-modal__content h3 { color: #efc643; margin: 0; }
.course-modal__content p  { margin: 0; }

/* Close button */
.course-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #efc643;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Mobile: stack columns, keep scrollable height */
@media (max-width: 760px) {
  .course-modal { padding: 2vh 8px; }
  .course-modal__dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 92dvh;          /* still scroll inside modal */
  }
}

/* === COURSE MODAL === */
/*.course-details-btn {*/
/*  margin-top: 10px;*/
/*  padding: 10px 14px;*/
/*  font-weight: bold;*/
/*  background: transparent;*/
/*  border: 2px solid #efc643;*/
/*  color: #efc643;*/
/*  cursor: pointer;*/
/*  transition: background 0.2s ease, color 0.2s ease;*/
/*}*/
/*.course-details-btn:hover,*/
/*.course-details-btn:focus {*/
/*  background: #efc643;*/
/*  color: #081833;*/
/*}*/

/* container */
/*.course-modal {*/
/*  position: fixed;*/
/*  inset: 0;*/
/*  display: none;*/
/*  z-index: 1000;*/
  overscroll-behavior: contain;  /* stop scroll chaining to body */
/*}*/
/*.course-modal.is-open { display: block; }*/

/*.course-modal:target { display: block; }*/

/*Lock background scroll while any modal is open (uses :has, works in modern browsers) */
/*body:has(.course-modal:target) {*/
/*  overflow: hidden;*/
/*}*/

/* backdrop */
/*.course-modal__backdrop {*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  background: rgba(0,0,0,0.6);*/
/*}*/

/* dialog */
/*.course-modal__dialog {*/
/*  position: relative;*/
/*  max-width: 900px;*/
/*  margin: 4vh 16px;*/
/*  background: #0b1e3c;*/
/*  color: #fff;*/
/*  border: 1px solid rgba(255,255,255,0.1);*/
/*  display: grid;*/
/*  grid-template-columns: 1fr 1fr;*/
/*  gap: 0;*/
/*  box-shadow: 0 10px 40px rgba(0,0,0,0.5);*/
/*}*/

/* image side */
/*.course-modal__image-wrap {*/
/*  background: #000;*/
/*  min-height: 260px;*/
/*}*/
/*.course-modal__image-wrap img {*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  object-fit: cover;*/
/*}*/

/* text side */
/*.course-modal__content {*/
/*  padding: 24px;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  justify-content: center;*/
/*  gap: 14px;*/
/*}*/
/*.course-modal__content h3 { color: #efc643; margin: 0; }*/
/*.course-modal__content p { margin: 0; }*/

/* CTA re-use your .cta-button styles, optionally make it full width here */
/*.course-modal__cta {*/
/*  align-self: flex-start;*/
/*}*/

/* close button */
/*.course-modal__close {*/
/*  position: absolute;*/
/*  top: 6px;*/
/*  right: 8px;*/
/*  background: transparent;*/
/*  border: none;*/
/*  color: #efc643;*/
/*  font-size: 2rem;*/
/*  line-height: 1;*/
/*  cursor: pointer;*/
/*}*/

/* responsive */
/*@media (max-width: 760px) {*/
/*  .course-modal__dialog {*/
/*    grid-template-columns: 1fr;*/
/*    margin: 4vh 12px;*/
/*    max-height: 92svh; */
/*  }*/
/*}*/

/* === MOBILE BREAKPOINT === */
@media screen and (max-width: 879px) {
  .topnav {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
  }

  .logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
  }
  
  .logo img {
    height: 50px;
  }

  .topnav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 2;
  }

  .icon {
    display: block;
    font-size: 30px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(8, 24, 51, 0.92);
    display: none;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    padding: 12px 20px;
    z-index: 99;
  }

  .nav-links.responsive {
    display: flex;
  }

  .nav-links a {
    width: auto;
    text-align: right;
    padding: 10px 10px;
  }
}

.contact-details p {
  font-size: 1rem;
  margin: 8px 0;
  font-size: 1.2rem; 
  font-weight: normal;
}

.contact-details i {
  margin-right: 10px;
  color: #efc643;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.contact-icons a {
  font-size: 2.2rem; /* adjust size here */
  color: #efc643;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-icons a:hover {
  color: #ffc800;
}

.small-map {
  max-width: 600px;
  margin: 20px auto;
}

.small-map iframe {
  width: 100%;
  height: 350px;
  border-radius: 0 !important;
}

/* === SMALL DEVICE RADIO TWEAK === */
@media (max-width: 480px) {
  .radio-wrap {
    align-items: flex-start;
  }

  .radio-wrap input[type="radio"] {
    margin-top: 4px;
  }

  .radio-wrap label {
    font-size: 0.95rem;
  }
}

/* === DESKTOP BREAKPOINT (default state) === */
@media screen and (min-width: 880px) {
  .icon {
    display: none !important;
  }
}

/* === FORM STYLES === */
.registration h1 {
  text-align: center;
  font-size: 1.5em;
  color: #081833;
  margin: 0.2em 0 0.4em;
}

.registration h2 {
  font-size: 1.1em;
  color: #081833;
  margin-bottom: 0.6em;
  text-align: center;
}

.registration main{
  color:#081833;
}

.form-container {
  background: #f4f4f4;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-container img.logo {
  max-width: 120px;
  margin-bottom: 20px;
}

.form-card {
  display: none;
  flex-direction: column;
  width: 100%;
  min-width: 300px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.form-card.active {
  display: flex;
}

.form-card label,
.form-card p {
  margin: 12px 0 5px;
  font-weight: bold;
}

.form-card input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.form-card button {
  margin-top: 20px;
  padding: 12px;
  background: #081833;
  color: #efc643;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.form-card button:hover {
  background: #efc643;
  color: #081833;
}

input.error {
  border: 2px solid red;
}

.radio-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  line-height: 1.4;
  gap: 10px;
  flex-wrap: nowrap;
}

.radio-wrap input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.radio-wrap label {
  flex: 1;
  font-size: 1rem;
  color: #081833;
  cursor: pointer;
}

.error-message {
  color: red;
  font-size: 0.85em;
  margin-top: 4px;
  margin-bottom: 10px;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  white-space: pre-line;
  margin-top: 0.2em;
  margin-bottom: 1em;
}

#progressBarContainer {
  width: 100%;
  height: 10px;
  background-color: #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background-color: #efc643;
  transition: width 0.3s ease-in-out;
}

.cta-button {
  background-color: #efc643;
  color: #081833;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
}

.g-recaptcha { display: inline-block; }
.recaptcha-wrap { text-align: center; margin: 12px 0; }