/* =========================================================
   CAMP CREEK KOMBAT — STYLES.CSS (CLEAN + ORGANIZED)
========================================================= */

/* =========================================================
   1) THEME TOKENS
========================================================= */
:root{
  --bg: #0b0f14;
  --panel: rgba(18,26,36,.78);
  --panel2: rgba(15,22,32,.78);
  --text: #e9eef6;
  --muted: #b7c3d6;

  /* Blue from your logo */
  --accent: #1f5ea8;

  /* Yellow brand highlight */
  --gold: #ffd166;

  /* Schedule accents */
  --schedule-blue: #3b82f6;
  --schedule-teal: #14b8a6;
  --schedule-gold: #f59e0b;

  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.35);
}

/* =========================================================
   2) BASE / RESETS
========================================================= */
*{
  box-sizing: border-box;
}

html{
  overflow-x: hidden;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

a{
  color: inherit;
  text-decoration: none;
}

.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

.small{
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   3) HEADER + NAV
========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,15,20,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo{
  height: 56px;
  width: auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  padding: 4px;
}

.site-title{
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .4px;
  color: #ffffff;
}

.tagline{
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 1.8px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.nav a.active{
  background: var(--accent);
  color: #ffffff !important;
}

/* This prevents Our Team from staying blue if an older class is still on it */
.nav a.btn-team-primary{
  background: transparent;
  color: var(--muted) !important;
  border: none;
  padding: 10px 12px;
  font-weight: 700;
}

.nav a.btn-team-primary:hover{
  background: rgba(255,255,255,.06);
  color: var(--text) !important;
}

.nav a.btn-team-primary.active{
  background: var(--accent);
  color: #ffffff !important;
}

/* =========================================================
   4) BUTTONS
========================================================= */
.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.btn:hover{
  filter: brightness(1.05);
}

.btn-outline{
  background: transparent;
  border: 2px solid rgba(255,255,255,0.20);
  color: #ffffff !important;
}

.btn-outline:hover{
  background: rgba(255,255,255,0.08);
}

.btn-team-primary{
  background: var(--accent);
  color: #fff !important;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.10);
}

/* =========================================================
   5) SECTIONS
========================================================= */
.section{
  padding: 48px 0;
}

.section h2{
  margin: 0 0 10px;
  font-size: 28px;
}

.section-alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--centered{
  text-align: center;
}

.section--centered p{
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--muted);
}

.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
  max-width: 720px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.card h3{
  margin: 0 0 6px;
  font-size: 20px;
}

.card p{
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   6) FOOTER
========================================================= */
.footer{
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: rgba(11,15,20,.6);
  color: var(--muted);
}

.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p{
  margin: 0;
}

/* =========================================================
   7) INDEX HERO
========================================================= */
.hero-solid{
  min-height: 85vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(255,209,102,.12), transparent 60%),
    radial-gradient(900px 520px at 80% 30%, rgba(31,94,168,.22), transparent 55%),
    linear-gradient(135deg, #0b0f14 0%, #111a24 60%, #0b0f14 100%);
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.hero-content{
  max-width: 900px;
  padding: 26px 0;
  text-align: center;
  margin: 0 auto;
}

.hero-logo{
  width: 240px;
  margin: 0 auto 18px;
  display: block;
  opacity: 0.98;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.10);
}

.hero-logo-left{
  width: 190px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.10);
}

.hero-title{
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 2px;
  margin: 0 0 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-subtitle{
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero-text{
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 22px;
}

.hero-buttons{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-bullets{
  list-style: none;
  padding: 0;
  margin: 14px auto 18px;
  display: grid;
  gap: 10px;
  justify-content: center;
}

.hero-bullets li{
  position: relative;
  padding-left: 18px;
  font-weight: 650;
}

.hero-bullets li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.about-link{
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 800;
}

.about-link:hover{
  text-decoration: underline;
}

/* =========================================================
   7b) HERO COMMUNITY / SOCIAL LINKS
========================================================= */
.hero-community{
  margin-top: 32px;
  text-align: center;
}

.hero-community-label{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero-socials{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn{
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  background: rgba(15,22,32,.85);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.social-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.social-btn.facebook:hover{
  background: rgba(24,119,242,.25);
  border-color: rgba(24,119,242,.55);
}

.social-btn.instagram:hover{
  background: linear-gradient(
    135deg,
    rgba(193,53,132,.35),
    rgba(245,96,64,.35)
  );
  border-color: rgba(245,96,64,.55);
}

.social-btn.discord:hover{
  background: rgba(88,101,242,.35);
  border-color: rgba(88,101,242,.65);
}

.hero-social-note{
  margin-top: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   7c) HOME ABOUT SECTION
========================================================= */
.section-about{
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-about h2{
  margin-bottom: 18px;
}

.about-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 20px;
  text-align: left;
}

.about-block{
  background: rgba(15,22,32,.75);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px 20px;
}

.about-block h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}

.about-block p{
  margin: 0 0 10px;
  color: var(--muted);
}

.about-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--muted);
}

.about-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

/* =========================================================
   8) BASIC SCHEDULE TABLE
========================================================= */
.schedule{
  margin: 16px auto 0;
  max-width: 1100px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.schedule-row{
  display: grid;
  grid-template-columns: 1.4fr .8fr 1.8fr;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(18,26,36,.55);
  border-top: 1px solid var(--border);
  text-align: center;
  justify-items: center;
  align-items: center;
}

.schedule-row:first-child{
  border-top: none;
}

.schedule-row strong,
.schedule-row span{
  text-align: center;
  justify-self: center;
}

/* =========================================================
   9) SCHEDULE PAGE
========================================================= */
.schedule-hero{
  padding: 74px 0 38px;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(31,94,168,.22), transparent 34%),
    radial-gradient(circle at top right, rgba(245,158,11,.12), transparent 30%);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(59,130,246,.35);
  border-radius: 999px;
  background: rgba(59,130,246,.12);
  color: #b8d6ff;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.schedule-hero h1{
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: .95;
  letter-spacing: -.04em;
  color: #ffffff;
  text-shadow: 0 5px 20px rgba(0,0,0,.45);
}

.schedule-hero p{
  width: min(760px, 100%);
  margin: 22px auto 0;
  color: #c7d2e3;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.schedule-section{
  padding: 34px 0;
}

.section-heading{
  text-align: center;
  margin-bottom: 26px;
}

.section-heading h2{
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff;
  letter-spacing: -.03em;
}

.section-heading p{
  width: min(760px, 100%);
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.class-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.schedule-section .class-card{
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.schedule-section .class-card::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--card-color);
}

.schedule-section .class-card.gi{
  --card-color: var(--schedule-blue);
}

.schedule-section .class-card.nogi{
  --card-color: var(--schedule-teal);
}

.day-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.11);
  color: #ffffff;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 20px;
}

.schedule-section .class-card h3{
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 2rem;
  letter-spacing: -.03em;
}

.class-time{
  margin: 0 0 16px;
  color: var(--card-color);
  font-weight: 900;
  font-size: 1.15rem;
}

.schedule-section .class-card p:last-child{
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Open Mat Section */

.openmat-wrap{
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(245,158,11,.22);
  background:
    radial-gradient(circle at top, rgba(245,158,11,.15), transparent 45%),
    var(--panel2);
  box-shadow: var(--shadow);
}

.openmat-top{
  text-align: center;
  margin-bottom: 28px;
}

.openmat-top h2{
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #ffffff;
  letter-spacing: -.03em;
  text-align: center;
}

.openmat-top p{
  max-width: none;
  width: 100%;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.openmat-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.date-card{
  min-height: 150px;
  padding: 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,12,18,.58);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.date-card .month{
  color: var(--schedule-gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
}

.date-card .day{
  color: #ffffff;
  font-size: 2.55rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.04em;
}

.date-card .weekday{
  color: #c7d2e3;
  font-weight: 800;
  font-size: .92rem;
}

.date-card .date-time{
  color: #111827;
  background: var(--schedule-gold);
  border-radius: 999px;
  padding: 5px 9px;
  margin: 8px auto 0;
  font-size: .82rem;
  font-weight: 950;
  width: fit-content;
}

/* Ready to Start Training Box */

.schedule-cta{
  padding: 48px 0 80px;
  text-align: center;
}

.cta-box{
  padding: 38px;
  border-radius: 32px;
  border: 1px solid rgba(59,130,246,.25);
  background:
    linear-gradient(145deg, rgba(31,94,168,.22), rgba(245,158,11,.08)),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-box h2{
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -.03em;
  text-align: center;
}

.cta-box p{
  width: 100%;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
  white-space: nowrap;
}

/* =========================================================
   10) CONTACT PAGE
========================================================= */
.contact-page{
  padding: 80px 0;
}

.contact-card{
  width: min(680px, 100%);
  margin: 0 auto;
  background: rgba(18,26,36,.70);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.contact-title,
.contact-heading{
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: 0.5px;
  font-weight: 950;
}

.contact-title span,
.contact-heading span{
  color: var(--gold);
  position: relative;
}

.contact-title span::after,
.contact-heading span::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  opacity: .95;
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label,
.form-group label{
  font-weight: 650;
  color: var(--muted);
  font-size: 15px;
  display: block;
}

.required,
.req{
  color: var(--gold);
  font-weight: 900;
  margin-left: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,22,32,0.85);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: var(--gold);
}

.contact-submit,
.contact-form button{
  align-self: center;
  margin-top: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 850;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  width: auto;
  transition: filter .15s ease, transform .12s ease;
}

.contact-submit:hover,
.contact-form button:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.form-note,
.contact-note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   11) PEOPLE HUB
========================================================= */
.people-hero{
  text-align: center;
}

.people-title{
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 950;
  margin: 0 0 10px;
}

.people-intro{
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 18px;
}

.team-photo-wrap{
  display: flex;
  justify-content: center;
  margin: 22px 0 32px;
}

.team-photo-wrap img{
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  object-fit: contain;
}

.people-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  justify-items: center;
}

.people-card{
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.people-card h3{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.people-card p{
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 260px;
}

.people-card .btn{
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 850;
  border-radius: 999px;
  width: auto;
}

.people-back{
  display: inline-block;
  margin: 10px 0 20px;
  color: var(--gold);
  font-weight: 800;
}

.people-back:hover{
  text-decoration: underline;
}

/* =========================================================
   12) INSTRUCTORS / STAFF BIO PAGES
========================================================= */
.staff-page{
  max-width: 980px;
  margin: 0 auto;
}

.staff-title{
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 950;
  margin: 0 0 26px;
  color: var(--accent);
  letter-spacing: .5px;
  position: relative;
}

.staff-title::after{
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  background: var(--gold);
  border-radius: 999px;
}

.staff-grid{
  display: grid;
  gap: 18px;
}

.staff-card{
  background: rgba(18,26,36,.70);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.staff-name{
  margin: 0 0 6px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 950;
  letter-spacing: .3px;
}

.staff-role{
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 14px;
}

.staff-bio p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.staff-bio p strong{
  color: var(--text);
  font-weight: 850;
}

/* =========================================================
   13) COMMUNITY PAGE
========================================================= */
.community-page{
  max-width: 1100px;
}

.community-sections{
  margin-top: 18px;
  display: grid;
  gap: 22px;
}

.community-block{
  background: rgba(18,26,36,.55);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.community-title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.community-sub{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 900px;
}

.community-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.community-card{
  background: rgba(15,22,32,.70);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.community-name{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 18px;
}

.community-text{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.community-tag{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: rgba(31,94,168,.22);
  border: 1px solid rgba(31,94,168,.35);
}

/* =========================================================
   14) GALLERY PAGE
========================================================= */
.gallery-page{
  max-width: 1100px;
}

.gallery-feature{
  position: relative;
  display: block;
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(18,26,36,.45);
}

.gallery-feature img{
  width: 100%;
  height: clamp(220px, 34vw, 360px);
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  filter: brightness(0.92);
  transform: scale(1.01);
}

.gallery-feature-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.gallery-feature-title{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .6px;
}

.gallery-feature-sub{
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.gallery-masonry{
  margin-top: 18px;
  column-count: 3;
  column-gap: 14px;
}

.gallery-tile{
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(18,26,36,.45);
  break-inside: avoid;
}

.gallery-tile img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform .18s ease, filter .18s ease;
  filter: brightness(0.96);
}

.gallery-tile:hover img{
  transform: scale(1.02);
  filter: brightness(1.05);
}

.gallery-note{
  margin-top: 12px;
  color: var(--muted);
}

/* =========================================================
   15) CLASSES PAGE
========================================================= */
.classes-page{
  max-width: 1100px;
}

.section-title{
  margin: 0 0 10px;
  font-size: 28px;
}

.classes-sub{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 920px;
}

.classes-cta-row{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.classes-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.classes-grid .class-card{
  background: rgba(18,26,36,.70);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.classes-grid .class-card h3{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.classes-grid .class-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.plans-embed{
  width: 100%;
  max-width: 1100px;
  height: 760px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  margin-top: 10px;
}

.plans-embed iframe{
  width: 100%;
  height: 100%;
  border: none;
}

.plans-fallback{
  margin-top: 10px;
  color: var(--muted);
}

.plans-fallback a{
  color: var(--gold);
  font-weight: 800;
}

.classes-page > .people-title,
.classes-page > .people-intro{
  text-align: center;
}

#classes .cards{
  max-width: 900px;
  margin: 18px auto 0;
}

#classes .card{
  text-align: left;
}

#plans .classes-page{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#plans .plans-embed{
  max-width: 900px;
  width: 100%;
}

#plans .plans-fallback{
  text-align: center;
}

/* =========================================================
   15b) AFFILIATIONS / SPONSORS
========================================================= */
.affiliations-grid{
  display: grid;
  justify-content: center;
  margin-top: 18px;
}

.affiliation-card{
  background: rgba(18,26,36,.70);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  text-align: center;
  max-width: 360px;
}

.affiliation-card img{
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.affiliation-name{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 16px;
}

.affiliation-text{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   16) HELPERS
========================================================= */
.no-wrap{
  white-space: nowrap;
}

.single-line-note{
  max-width: none;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

/* =========================================================
   17) RESPONSIVE
========================================================= */
@media (max-width: 1100px){
  .openmat-top p{
    white-space: normal;
  }
}

@media (max-width: 900px){
  .header-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .nav{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
    overflow-x: hidden;
  }

  .nav a,
  .nav a.btn-team-primary{
    flex: 1 1 auto;
    text-align: center;
    font-size: 13px;
    padding: 7px 5px;
    white-space: nowrap;
  }

  .hero-title{
    white-space: normal;
  }

  .schedule-row{
    grid-template-columns: 1fr;
  }

  .class-grid{
    grid-template-columns: 1fr;
  }

  .openmat-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .community-grid{
    grid-template-columns: 1fr;
  }

  .gallery-masonry{
    column-count: 2;
  }

  .plans-embed{
    height: 680px;
  }

  .about-grid{
    grid-template-columns: 1fr;
  }

  #classes .cards{
    max-width: 100%;
  }

  #classes .card{
    padding: 16px;
  }

  #plans .classes-page{
    align-items: stretch;
  }

  #plans .plans-embed{
    max-width: 100%;
  }

  .single-line-note{
    white-space: normal;
  }

  .footer-row{
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 700px){
  .cta-box p{
    white-space: normal;
  }
}

@media (max-width: 640px){
  body{
    font-size: 16px;
  }

  .container{
    width: min(100% - 28px, 1100px);
  }

  .site-title{
    font-size: 20px;
  }

  .tagline{
    font-size: 12px;
  }

  .nav{
    width: 100%;
  }

  .nav a,
  .nav a.btn-team-primary{
    font-size: 12.25px;
    padding: 7px 3px;
  }

  .schedule-hero{
    padding: 48px 0 30px;
  }

  .schedule-hero h1{
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .schedule-hero p,
  .section-heading p,
  .openmat-top p,
  .cta-box p{
    font-size: .98rem;
  }

  .schedule-section{
    padding: 26px 0;
  }

  .schedule-section .class-card{
    min-height: auto;
    padding: 22px;
  }

  .openmat-wrap,
  .cta-box{
    padding: 24px;
  }

  .openmat-grid{
    grid-template-columns: 1fr;
  }

  .date-card{
    min-height: 125px;
  }

  .gallery-masonry{
    column-count: 1;
  }
}

@media (max-width: 420px){
  .nav{
    gap: 3px;
  }

  .nav a,
  .nav a.btn-team-primary{
    font-size: 11px;
    padding: 6px 2px;
  }

  .openmat-wrap,
  .cta-box{
    padding: 20px;
    border-radius: 24px;
  }

  .date-card .day{
    font-size: 2.35rem;
  }
}

@media (max-width: 360px){
  .nav a,
  .nav a.btn-team-primary{
    font-size: 10.25px;
    padding: 6px 1px;
  }
}
.training-options .classes-sub{
  max-width: none;
  width: 100%;
  white-space: nowrap;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px){
  .training-options .classes-sub{
    white-space: normal;
  }
}