/* ==========================================================================
   SOFMA — School of Freestyle Martial Arts
   Matches archived site styling
   ========================================================================== */

:root {
  --sofma-blue: #2222ee;       /* nav + footer + headings */
  --sofma-blue-hover: #1414c8;
  --sofma-red: #c41e1e;        /* trial button */
  --sofma-red-hover: #a31818;
  --sofma-yellow: #ffe600;     /* submit button */
  --text-color: #333;
  --label-color: #606060;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sofma-blue); text-decoration: none; }
a:hover { color: var(--sofma-blue-hover); }
hr.divider { border: 0; border-top: 1px solid #ccc; margin: 20px auto; max-width: 1200px; }

/* --------------------------------------------------------------------------
   HEADER — logo banner + bright blue nav bar
   -------------------------------------------------------------------------- */
.site-header { background: #fff; }

.logo-banner {
  text-align: center;
  padding: 12px 20px 8px;
  background: #fff;
}
.logo-banner img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
@media (max-width: 700px) {
  .logo-banner { padding: 8px 12px 6px; }
  .logo-banner img { max-height: 70px; }
}
@media (max-width: 480px) {
  .logo-banner img { max-height: 56px; }
}

.main-nav {
  background: var(--sofma-blue);
  padding: 0;
  position: relative;
}
.nav-toggle, .nav-toggle-label { display: none; }

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 16px 22px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background .2s;
}
.nav-menu > li:hover > a,
.nav-menu > li.active > a {
  background: rgba(0, 0, 0, 0.2);
}

.sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--sofma-blue);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
  z-index: 100;
}
.has-sub:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.sub-menu a:hover { background: rgba(0, 0, 0, 0.25); color: #fff; }

/* --------------------------------------------------------------------------
   HERO SLIDESHOW (with nav arrows + dots)
   -------------------------------------------------------------------------- */
.hero-slideshow {
  width: 100%;
  background: #000;
  position: relative;
}
.slideshow {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 70vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,0) 100%);
  color: #fff;
  padding: 60px 24px 22px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  letter-spacing: .5px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* Arrow navigation buttons */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all .2s;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}
.slide-nav:hover {
  background: var(--sofma-blue);
  border-color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.slide-nav.prev { left: 18px; }
.slide-nav.next { right: 18px; }

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: 2px solid rgba(255, 255, 255, .9);
  cursor: pointer;
  padding: 0;
  transition: all .2s;
}
.slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.slide-dot:hover { background: rgba(255, 255, 255, .8); }

@media (max-width: 700px) {
  .slide-nav { width: 38px; height: 38px; font-size: 18px; }
  .slide-nav.prev { left: 10px; }
  .slide-nav.next { right: 10px; }
  .slide-caption { font-size: 16px; padding: 40px 16px 18px; }
}

/* --------------------------------------------------------------------------
   CTA SECTION (free trial)
   -------------------------------------------------------------------------- */
.cta-section {
  text-align: center;
  padding: 40px 20px 30px;
}
.cta-lead, .cta-sub {
  font-size: 16px;
  color: var(--text-color);
  max-width: 900px;
  margin: 0 auto 12px;
}
.trial-button {
  display: inline-block;
  margin-top: 18px;
  background: linear-gradient(to bottom, #d62828 0%, #a01818 100%);
  color: #fff !important;
  padding: 14px 34px;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  border-radius: 8px;
  border: 2px solid #7a0d0d;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
  transition: all .2s;
  letter-spacing: .5px;
}
.trial-button:hover {
  background: linear-gradient(to bottom, #e83838 0%, #b02020 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* --------------------------------------------------------------------------
   FEATURE ROWS (3-column)
   -------------------------------------------------------------------------- */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}
.feature-col {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.feature-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-image-empty { background: transparent; }
.feature-title {
  color: var(--sofma-blue);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: 1px;
}
.feature-text {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 14px;
  padding: 0 10px;
  flex: 1;
}
.more-button {
  display: inline-block;
  background: var(--sofma-blue);
  color: #fff !important;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  margin-top: 6px;
  transition: background .2s;
}
.more-button:hover { background: var(--sofma-blue-hover); }

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  max-width: 1200px;
  margin: 50px auto 30px;
  padding: 0 20px;
}
.contact-heading {
  text-align: center;
  color: var(--sofma-blue);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.enquire-heading {
  text-align: center;
  color: var(--sofma-blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}

.enquire-form .form-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  margin-bottom: 8px;
}
.enquire-form .form-row-checkboxes {
  align-items: start;
}
.form-label {
  font-size: 13px;
  color: var(--label-color);
  padding-right: 10px;
}
.enquire-form input[type="text"],
.enquire-form input[type="email"],
.enquire-form input[type="tel"],
.enquire-form textarea {
  width: 100%;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  background: #f3f3f3;
  border: 1px solid #dbdbdb;
  color: var(--text-color);
}
.enquire-form input:focus,
.enquire-form textarea:focus {
  outline: none;
  border-color: var(--sofma-blue);
  background: #fff;
}
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkbox-list label {
  font-size: 13px;
  color: var(--label-color);
  cursor: pointer;
}
.checkbox-list input[type="checkbox"] { margin-right: 6px; }
.checkbox-list .other-input {
  margin-top: 4px;
  width: 60%;
  padding: 4px 6px;
  font-size: 13px;
  background: #f3f3f3;
  border: 1px solid #dbdbdb;
}
.form-submit {
  background: var(--sofma-yellow);
  color: #1a1a1a;
  border: 1px solid #d4be00;
  padding: 4px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  justify-self: start;
}
.form-submit:hover { background: #fff066; }
.form-success {
  background: #d4edda;
  color: #155724;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-left: 4px solid #28a745;
  font-size: 13px;
}
.form-error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-left: 4px solid #dc3545;
  font-size: 13px;
}

.contact-details p { margin-bottom: 8px; font-size: 14px; }
.contact-details strong { color: var(--text-color); }
.map-wrap { margin-top: 20px; }

/* --------------------------------------------------------------------------
   FOOTER — bright blue
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--sofma-blue);
  color: #fff;
  padding: 30px 20px 20px;
  margin-top: 50px;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.social-icon svg { width: 26px; height: 26px; }
.social-icon:hover { transform: scale(1.1); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 18px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 1px;
}
.footer-copy { color: #fff; }
.footer-nav a {
  color: #fff;
  margin: 0 4px;
  text-transform: uppercase;
}
.footer-nav a:hover { color: #ffeb00; }

/* --------------------------------------------------------------------------
   Inner pages (stubs)
   -------------------------------------------------------------------------- */
.inner-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 400px;
}
.page-title {
  color: var(--sofma-blue);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 24px;
}
.page-content { font-size: 15px; line-height: 1.8; }
.page-content p { margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .features-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .slideshow { height: 380px; }
  .nav-menu > li > a { padding: 14px 16px; font-size: 13px; letter-spacing: 1px; }
}

@media (max-width: 700px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    padding: 14px 20px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-menu > li > a {
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
  }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    display: none;
  }
  .has-sub:hover > .sub-menu { display: block; }

  .slideshow { height: 280px; }
  .slide-caption { font-size: 14px; padding: 10px 14px; }
  .trial-button { font-size: 18px; padding: 12px 26px; }
  .contact-heading { font-size: 26px; }
  .feature-title { font-size: 18px; }
  .enquire-form .form-row { grid-template-columns: 1fr; }
  .form-label { padding: 4px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------------
   ABOUT US PAGE
   -------------------------------------------------------------------------- */
.about-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.about-intro {
  text-align: center;
  margin-bottom: 40px;
}
.about-h1 {
  color: var(--sofma-blue);
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.about-intro p {
  font-size: 15px;
  margin-bottom: 14px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Owner section: 2-column bio + video */
.owner-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}
.owner-bio {
  text-align: left;
}
.owner-h2 {
  color: var(--sofma-blue);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 6px;
}
.owner-bio p {
  font-size: 14px;
  margin: 12px 0;
}
.rank-list {
  list-style: disc;
  margin: 8px 0 8px 24px;
  padding-left: 4px;
}
.rank-list li {
  font-size: 14px;
  margin-bottom: 4px;
  color: #555;
}
.rank-list li strong {
  color: #333;
}

.owner-video {
  text-align: center;
  padding-top: 30px;
}
.video-caption {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
}
.video-placeholder {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 6px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  font-style: italic;
}

/* Qualifications */
.qualifications-section {
  margin: 40px 0;
}
.qualifications-h2 {
  color: var(--sofma-blue);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 20px;
}
.qualifications-list {
  list-style: disc;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
}
.qualifications-list li {
  font-size: 14px;
  margin-bottom: 6px;
  color: #555;
}

/* Instructor cards: 2-column row + 3-column row */
.instructor-row {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 30px auto;
}
.instructor-row-2 { grid-template-columns: 1fr 1fr; }
.instructor-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.instructor-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.instructor-heading {
  color: var(--sofma-blue);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  line-height: 1.3;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.instructor-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f5f5f5;
}
.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.instructor-card p {
  font-size: 14px;
  margin-bottom: 4px;
  text-align: left;
  padding-left: 10px;
}
.instructor-card p strong { color: #333; font-weight: 700; }

@media (max-width: 900px) {
  .owner-section { grid-template-columns: 1fr; }
  .instructor-row-2 { grid-template-columns: 1fr; }
  .instructor-row-3 { grid-template-columns: 1fr; }
  .about-h1 { font-size: 24px; }
  .owner-h2 { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   STUDENT OF THE MONTH PAGE
   -------------------------------------------------------------------------- */
.sotm-page {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.sotm-title {
  text-align: center;
  color: var(--sofma-blue);
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.sotm-featured {
  text-align: center;
  margin-bottom: 30px;
}
.sotm-name {
  font-size: 36px;
  font-weight: 800;
  color: #333;
  margin-bottom: 6px;
}
.sotm-month {
  font-size: 18pt;
  color: #555;
  margin-bottom: 24px;
}
.sotm-photo {
  display: inline-block;
  max-width: 600px;
  margin: 0 auto 18px;
}
.sotm-photo img {
  width: 100%;
  height: auto;
  border: 2px solid #ddd;
}
.sotm-print a {
  display: inline-block;
  background: var(--sofma-blue);
  color: #fff !important;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s;
}
.sotm-print a:hover { background: var(--sofma-blue-hover); color: #fff; }

.sotm-notes {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 13px;
  color: #777;
  font-style: italic;
}
.sotm-notes p { margin-bottom: 10px; }

/* Accordion history */
.sotm-history {
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 24px;
}
.sotm-history-title {
  font-size: 16px;
  color: #555;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}
.sotm-year {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
  background: #fff;
}
.sotm-year summary {
  padding: 12px 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--sofma-blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f8f8;
  user-select: none;
}
.sotm-year summary::-webkit-details-marker { display: none; }
.sotm-year summary::after {
  content: '+';
  font-size: 22px;
  color: var(--sofma-blue);
  transition: transform .2s;
}
.sotm-year[open] summary::after {
  content: '\2212'; /* minus sign */
}
.sotm-year summary:hover { background: #eef; }
.sotm-year-content {
  padding: 14px 24px 18px;
  background: #fff;
}
.sotm-year-content p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}
.sotm-year-content p strong {
  display: inline-block;
  min-width: 100px;
  color: #555;
}

/* Print styles — print only the certificate photo */
@media print {
  body * { visibility: hidden; }
  .sotm-photo, .sotm-photo *,
  .sotm-name, .sotm-month {
    visibility: visible;
  }
  .sotm-featured {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
  }
  .sotm-photo img { border: 0; max-width: 100%; }
}

@media (max-width: 700px) {
  .sotm-name { font-size: 28px; }
  .sotm-month { font-size: 16px; }
  .sotm-title { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   CLASS INFO PAGE (Little Dragons, Kids FMA, Muay Thai, BJJ, Adult FMA, etc.)
   -------------------------------------------------------------------------- */
.class-page {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}
.class-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.class-hero {
  margin-bottom: 24px;
}
.class-hero img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 12px;
}
.class-title {
  color: var(--sofma-blue);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.class-subhead {
  color: var(--sofma-blue);
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
}
.class-h4 {
  color: var(--sofma-blue);
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
  text-decoration: underline;
}
.class-main p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #333;
}

.classes-heading {
  color: var(--sofma-blue);
  font-size: 24px;
  font-weight: 800;
  text-decoration: underline;
  margin: 30px 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.class-times {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.class-times li {
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.class-times li strong {
  display: inline-block;
  min-width: 110px;
  color: var(--sofma-blue);
}

/* Sidebar */
.class-sidebar { display: flex; flex-direction: column; gap: 26px; }
.sidebar-block {
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 20px;
}
.sidebar-heading {
  color: var(--sofma-blue);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 14px;
}

/* Sidebar form variant — tighter spacing, narrower label column */
.sidebar-form .form-row {
  grid-template-columns: 90px 1fr;
}

/* Newsletter signup — single email + submit */
.newsletter-form {
  display: flex;
  gap: 6px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  border: 1px solid #dbdbdb;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--sofma-blue);
}
.newsletter-form .form-submit { white-space: nowrap; }

@media (max-width: 900px) {
  .class-grid { grid-template-columns: 1fr; }
  .class-title { font-size: 26px; }
}

/* --------------------------------------------------------------------------
   ADULT FMA — BELT CURRICULUM TABLE
   -------------------------------------------------------------------------- */
.belt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 14px;
}
.belt-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  vertical-align: middle;
}
.belt-table .belt {
  width: 160px;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}
.belt-white  { background: #fff; color: #333; }
.belt-yellow { background: #fcf63f; color: #333; }
.belt-orange { background: #fa9200; color: #fff; }
.belt-green  { background: #26a72c; color: #fff; }
.belt-black  { background: #000;    color: #fff; }

/* --------------------------------------------------------------------------
   MUAY THAI — FEATURED INSTRUCTOR INSET
   -------------------------------------------------------------------------- */
.instructor-feature {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #f8f8f8;
  border-left: 4px solid var(--sofma-blue);
  padding: 16px 18px;
  margin: 24px 0;
  border-radius: 4px;
}
.instructor-feature img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  flex-shrink: 0;
}
.instructor-feature h4 { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
   BJJ — INSTRUCTOR DUAL CARDS
   -------------------------------------------------------------------------- */
.instructor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.instructor-card {
  margin: 0;
  background: #f8f8f8;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}
.instructor-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.instructor-card figcaption {
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
.instructor-card figcaption strong {
  color: var(--sofma-blue);
  font-size: 15px;
}
.bjj-cta {
  font-size: 16px;
  font-weight: 600;
  color: var(--sofma-blue);
  text-align: center;
  margin-top: 30px;
  padding: 14px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Class hero subtitle (used by Muay Thai and BJJ) */
.class-subtitle {
  font-size: 20px;
  color: #555;
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .belt-table .belt { width: 110px; font-size: 11px; }
  .instructor-feature { flex-direction: column; text-align: center; }
  .instructor-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   LADIES SELF-DEFENCE — WORKSHOP GALLERY + BULLET LISTS
   -------------------------------------------------------------------------- */
.bullet-list {
  margin: 12px 0 22px;
  padding-left: 22px;
  line-height: 1.7;
}
.bullet-list li {
  margin-bottom: 8px;
  color: #333;
}
.bullet-list strong {
  color: var(--sofma-blue);
}

.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
}
.workshop-gallery figure {
  margin: 0;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 4 / 3;
}
.workshop-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.workshop-gallery figure:hover img {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .workshop-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .workshop-gallery { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   BIRTHDAYS PAGE
   -------------------------------------------------------------------------- */
.birthday-banner {
  margin: 0 0 18px;
  border-radius: 4px;
  overflow: hidden;
}
.birthday-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.birthday-feature-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  background: #f8f8f8;
  border-left: 4px solid var(--sofma-blue);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 4px;
}
.birthday-feature-row figure {
  margin: 0;
}
.birthday-feature-row img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.birthday-feature-row figcaption {
  font-size: 13px;
  color: #555;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.birthday-feature-row h4.class-h4 {
  margin-top: 0 !important;
}

@media (max-width: 700px) {
  .birthday-feature-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   CONTACT US PAGE
   -------------------------------------------------------------------------- */
.contact-map {
  margin: 18px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
}
.contact-map iframe {
  display: block;
}
.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.contact-detail {
  background: #f8f8f8;
  border-left: 4px solid var(--sofma-blue);
  padding: 14px 16px;
  border-radius: 4px;
}
.contact-detail h4 {
  margin: 0 0 6px;
  color: var(--sofma-blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-detail p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.contact-detail a {
  color: #333;
  text-decoration: none;
}
.contact-detail a:hover {
  color: var(--sofma-blue);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .contact-details { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   NEWSLETTERS / BLOG PAGE
   -------------------------------------------------------------------------- */
.blog-list {
  margin: 24px 0;
}
.blog-post {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-left: 4px solid var(--sofma-blue);
  border-radius: 4px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.blog-title {
  margin: 0 0 4px;
  color: var(--sofma-blue);
  font-size: 20px;
  font-weight: 800;
  text-transform: none;
}
.blog-date {
  margin: 0 0 12px;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 8px;
}
.blog-details summary {
  cursor: pointer;
  color: var(--sofma-blue);
  font-weight: 600;
  font-size: 14px;
  padding: 4px 0;
  list-style: none;
}
.blog-details summary::-webkit-details-marker { display: none; }
.blog-details summary::before {
  content: '+ ';
  font-weight: 700;
}
.blog-details[open] summary::before {
  content: '− ';
}
.blog-body {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 15px;
  line-height: 1.7;
}
.newsletter-cta {
  background: #f8f8f8;
  border-radius: 4px;
  padding: 18px 22px;
  margin-top: 28px;
  text-align: center;
}
.newsletter-cta h4 { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
   TESTIMONIALS PAGE
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 28px;
}
.testimonial-card {
  margin: 0;
  background: #f8f8f8;
  border-left: 4px solid var(--sofma-blue);
  border-radius: 4px;
  padding: 18px 22px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 48px;
  color: var(--sofma-blue);
  opacity: 0.25;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card blockquote {
  margin: 0 0 12px;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  font-style: italic;
}
.testimonial-card figcaption {
  padding-left: 24px;
  font-size: 14px;
  color: var(--sofma-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.testimonial-empty {
  background: #fafafa;
  border: 1px dashed #ccc;
  padding: 18px 22px;
  border-radius: 4px;
  margin: 18px 0 28px;
  color: #666;
}

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

/* ==========================================================================
   v1.8.0 POLISH PASS
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL TIGHTENING
   -------------------------------------------------------------------------- */
.page-lead {
  text-align: center;
  font-size: 17px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* All click-able cards get a smooth lift */
.discipline-card,
.team-member,
.gallery-preview-item,
.subbrand-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.discipline-card:hover,
.team-member:hover,
.subbrand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

/* --------------------------------------------------------------------------
   STATS STRIP (homepage, below CTA)
   -------------------------------------------------------------------------- */
.stats-strip {
  background: var(--sofma-blue);
  padding: 38px 20px;
  margin: 30px 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .9;
}
@media (max-width: 700px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-num { font-size: 36px; }
}

/* --------------------------------------------------------------------------
   GALLERY PREVIEW (homepage)
   -------------------------------------------------------------------------- */
.gallery-preview {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}
.gallery-preview-heading {
  color: var(--sofma-blue);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gallery-preview-sub {
  color: #555;
  margin-bottom: 28px;
  font-size: 16px;
}
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-preview-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}
.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-preview-item:hover img {
  transform: scale(1.06);
}
@media (max-width: 900px) { .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-preview-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   ABOUT US — OWNER FEATURE (Glen)
   -------------------------------------------------------------------------- */
.owner-feature {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px 20px;
  align-items: start;
}
.owner-photo-wrap {
  background: var(--sofma-blue);
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.owner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.owner-bio { padding-top: 4px; }
.owner-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sofma-red);
  margin-bottom: 8px;
}
.owner-bio .owner-h2 {
  color: var(--sofma-blue);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.1;
}
.owner-rank-line {
  font-size: 15px;
  color: #555;
  font-weight: 600;
  margin-bottom: 18px;
  font-style: italic;
}
.owner-bio p { margin-bottom: 12px; }
@media (max-width: 800px) {
  .owner-feature { grid-template-columns: 1fr; }
  .owner-photo-wrap { max-width: 320px; margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   TEAM GRID (About Us instructor cards)
   -------------------------------------------------------------------------- */
.team-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.team-section-heading {
  color: var(--sofma-blue);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.team-section-sub {
  color: #555;
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 16px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}
.team-member {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--sofma-blue);
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.team-name {
  color: var(--sofma-blue);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 16px 14px 4px;
  text-transform: uppercase;
}
.team-role {
  font-size: 13px;
  color: #555;
  margin: 0 14px 4px;
}
.team-rank {
  font-size: 12px;
  color: var(--sofma-red);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 14px;
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 750px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto 30px; } }

/* Guest instructor cards */
.guest-instructors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.guest-card {
  background: #f8f8f8;
  border-left: 4px solid var(--sofma-blue);
  padding: 20px 24px;
  border-radius: 4px;
}
.guest-name {
  color: var(--sofma-blue);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.guest-discipline {
  color: var(--sofma-red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.guest-card p:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
@media (max-width: 700px) { .guest-instructors { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   HISTORY TIMELINE
   -------------------------------------------------------------------------- */
.history-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.history-heading {
  color: var(--sofma-blue);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.history-sub {
  color: #555;
  margin-bottom: 36px;
  font-size: 16px;
}
.timeline {
  position: relative;
  text-align: left;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sofma-blue);
}
.timeline-item {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 0;
  margin-bottom: 24px;
  position: relative;
  align-items: start;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 73px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--sofma-red);
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 2;
}
.timeline-year {
  font-weight: 800;
  color: var(--sofma-blue);
  font-size: 18px;
  letter-spacing: 1px;
  text-align: right;
  padding-right: 6px;
}
.timeline-text {
  grid-column: 3 / 4;
  font-size: 15px;
  color: #333;
  padding-left: 14px;
  line-height: 1.5;
}
.timeline-now .timeline-year { color: var(--sofma-red); }
.timeline-now::before { background: var(--sofma-blue); }

@media (max-width: 600px) {
  .timeline::before { left: 60px; }
  .timeline-item { grid-template-columns: 60px 24px 1fr; }
  .timeline-item::before { left: 53px; }
  .timeline-year { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   SUB-BRAND GRID
   -------------------------------------------------------------------------- */
.subbrand-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.subbrand-heading {
  color: var(--sofma-blue);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.subbrand-sub {
  color: #555;
  margin-bottom: 28px;
  font-size: 16px;
}
.subbrand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}
.subbrand-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-top: 4px solid var(--sofma-red);
  border-radius: 4px;
  padding: 20px 22px;
}
.subbrand-card h3 {
  color: var(--sofma-blue);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.subbrand-tag {
  color: var(--sofma-red);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.subbrand-card p:last-child {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
@media (max-width: 1000px) { .subbrand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .subbrand-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   TIMETABLE PAGE
   -------------------------------------------------------------------------- */
.timetable-page { padding-bottom: 0; }
.timetable-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 28px auto 24px;
  max-width: 400px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--sofma-blue);
}
.timetable-tab {
  flex: 1;
  background: #fff;
  border: 0;
  padding: 14px 20px;
  color: var(--sofma-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.timetable-tab:hover { background: #f0f0ff; }
.timetable-tab.active {
  background: var(--sofma-blue);
  color: #fff;
}
.timetable-wrap {
  max-width: 1200px;
  margin: 0 auto 30px;
}
.timetable-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
  border: 1px solid #e2e2e2;
}
.timetable {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: #fff;
}
.timetable th {
  background: var(--sofma-blue);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 8px;
  font-size: 13px;
  text-align: center;
}
.timetable td {
  padding: 12px 8px;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 14px;
  vertical-align: middle;
}
.timetable td.tt-time {
  background: #f8f8f8;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  text-align: left;
  padding-left: 16px;
}
.timetable td.tt-class {
  font-weight: 600;
  color: #fff;
  background: var(--sofma-blue);
  border-left: 1px solid rgba(255,255,255,.15);
}
.timetable td.tt-class small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .85;
  margin-top: 2px;
}
.timetable td.tt-dragons { background: #d44a1f; }
.timetable td.tt-white   { background: #5a5a5a; }
.timetable td.tt-orange  { background: #e89a1d; }
.timetable td.tt-green   { background: #2c8c30; }
.timetable td.tt-muay    { background: var(--sofma-red); }
.timetable td.tt-bjj     { background: #1a4cc7; }
.timetable td.tt-fma     { background: #444; }
.timetable td.tt-sword   { background: #6b3010; }
.timetable td.tt-fitness { background: #28a428; }
.timetable td.tt-open    { background: #888; }

.timetable-notes {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tt-note-pill {
  background: #fff8e1;
  border: 1px solid #f0d068;
  color: #8a6500;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Belt progression */
.belt-progression {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px 20px;
  text-align: center;
  background: #f8f8f8;
  border-radius: 4px;
}
.belt-heading {
  color: var(--sofma-blue);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.belt-sub {
  color: #555;
  margin-bottom: 24px;
  font-size: 15px;
}
.belt-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.belt-block {
  width: 60px;
  height: 22px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.belt-arrows {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .belt-block { width: 40px; height: 18px; }
}

.timetable-cta {
  text-align: center;
  margin: 50px auto 30px;
  max-width: 700px;
  padding: 0 20px;
}
.timetable-cta h3 {
  color: var(--sofma-blue);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   DISCIPLINE GRID (Classes overview)
   -------------------------------------------------------------------------- */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}
.discipline-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.discipline-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discipline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discipline-thumb-icon {
  font-size: 80px;
  background: linear-gradient(135deg, var(--sofma-blue), #5050ff);
}
.discipline-card h3 {
  color: var(--sofma-blue);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 16px 18px 6px;
}
.discipline-card .discipline-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sofma-red);
  font-weight: 700;
  margin: 0 18px 10px;
}
.discipline-card > p:nth-of-type(2) {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0 18px 14px;
  flex: 1;
}
.discipline-card .more-button {
  align-self: flex-start;
  margin: 0 18px 18px;
}
@media (max-width: 1000px) { .discipline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .discipline-grid { grid-template-columns: 1fr; } }

.page-cta {
  text-align: center;
  margin: 40px auto;
  max-width: 700px;
  padding: 0 20px;
}
.page-cta h3 {
  color: var(--sofma-blue);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   SOTM PAGE — additions
   -------------------------------------------------------------------------- */
.sotm-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}
.sotm-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sofma-red);
  margin-bottom: 8px;
}
.sotm-caption {
  text-align: center;
  color: #555;
  margin: 14px auto 8px;
  max-width: 520px;
}
.soty-feature {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e2e2e2;
  text-align: center;
}
.soty-photo img { max-width: 360px; }
.sotm-notable {
  margin-top: 50px;
  padding: 30px 20px;
  background: #f8f8f8;
  border-radius: 4px;
  text-align: center;
}
.sotm-name-sm {
  color: var(--sofma-blue);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sotm-caption-sm {
  color: #555;
  font-size: 14px;
  margin-bottom: 16px;
}
.sotm-photo-sm img { max-width: 280px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   FIX EXISTING IMAGE CROPPING (instructor cards in older layouts)
   -------------------------------------------------------------------------- */
.instructor-photo img {
  object-position: center 25%; /* don't cut heads */
}

/* Class hero images sometimes too tall — constrain better */
.class-hero {
  aspect-ratio: 16 / 9;
  max-height: 340px;
  overflow: hidden;
  border-radius: 4px;
}
.class-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Workshop gallery photos: ensure consistent crop */
.workshop-gallery img {
  object-position: center;
}

/* --------------------------------------------------------------------------
   RESPONSIVE TIGHTENING
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .features-row { grid-template-columns: 1fr; }
  .feature-image { max-width: 500px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-menu > li > a { padding: 12px 16px; font-size: 13px; letter-spacing: 1px; }
  .cta-lead { font-size: 18px; }
  .feature-title { font-size: 20px; }
  .about-h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .logo-banner { padding: 6px 10px 0; }
  .trial-button, .more-button, .form-submit { padding: 10px 22px; font-size: 13px; }
  .feature-title { font-size: 18px; }
  .contact-heading, .gallery-preview-heading,
  .team-section-heading, .history-heading,
  .subbrand-heading { font-size: 22px; }
}

/* Print rules — already exist but ensure SOTY photo doesn't break print */
@media print {
  .soty-feature, .sotm-notable, .sotm-history, .sotm-notes,
  .gallery-preview, .stats-strip, .belt-progression { display: none !important; }
}

/* ==========================================================================
   v1.8.1 — Glow buttons + Tile pop hover animations
   ========================================================================== */

/* Glowing trial button — pulsing ember effect on the red CTA */
@keyframes sofma-glow-red {
  0%, 100% {
    box-shadow:
      0 3px 6px rgba(0, 0, 0, .3),
      inset 0 1px 0 rgba(255, 255, 255, .3),
      0 0 12px rgba(214, 40, 40, .55),
      0 0 22px rgba(214, 40, 40, .25);
  }
  50% {
    box-shadow:
      0 4px 10px rgba(0, 0, 0, .35),
      inset 0 1px 0 rgba(255, 255, 255, .35),
      0 0 22px rgba(255, 80, 80, .85),
      0 0 38px rgba(214, 40, 40, .55);
  }
}
.trial-button {
  animation: sofma-glow-red 2.4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.trial-button:hover {
  animation: none;
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 0 28px rgba(255, 80, 80, 1),
    0 0 50px rgba(214, 40, 40, .65);
}

/* Glowing blue "More" buttons — subtler glow */
.more-button {
  position: relative;
  transition: transform .2s ease, box-shadow .25s ease, background .2s;
  box-shadow: 0 2px 6px rgba(34, 34, 238, .3);
}
.more-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(34, 34, 238, .45),
    0 0 16px rgba(80, 100, 255, .55),
    0 0 28px rgba(34, 34, 238, .25);
}

/* Form submit button glow on hover */
.form-submit {
  transition: all .25s ease;
}
.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 230, 0, .55), 0 0 18px rgba(255, 200, 0, .35);
}

/* --------------------------------------------------------------------------
   TILE POP-UP HOVER — apply to all the homepage card tiles
   -------------------------------------------------------------------------- */
.feature-col,
.discipline-card,
.team-member,
.subbrand-card,
.gallery-preview-item {
  transition: transform .35s cubic-bezier(.2, .9, .35, 1.2), box-shadow .35s ease;
  border-radius: 6px;
  overflow: hidden;
}

.feature-col {
  padding: 12px 8px 18px;
  background: #fff;
}
.feature-col:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 18px 38px rgba(34, 34, 238, .18), 0 0 0 1px rgba(34, 34, 238, .06);
}
.feature-col:hover .feature-image img {
  transform: scale(1.08);
}
.feature-image img {
  transition: transform .55s ease;
}

.discipline-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 38px rgba(34, 34, 238, .2);
}
.discipline-card:hover .discipline-thumb img {
  transform: scale(1.08);
}
.discipline-thumb img {
  transition: transform .55s ease;
}

.team-member:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 36px rgba(34, 34, 238, .25);
}
.team-member:hover .team-photo img {
  transform: scale(1.05);
}
.team-photo img {
  transition: transform .5s ease;
}

.subbrand-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 28px rgba(196, 30, 30, .2);
  border-top-color: var(--sofma-blue);
}

.gallery-preview-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

/* Stat items: subtle pulse on the number */
.stat-item .stat-num {
  transition: transform .3s ease;
}
.stat-item:hover .stat-num {
  transform: scale(1.12);
  text-shadow: 0 0 22px rgba(255, 255, 255, .6);
}
.stat-item { transition: transform .3s ease; cursor: default; }
.stat-item:hover { transform: translateY(-2px); }

/* v1.8.2: 4-instructor grid alignment */
.team-grid-4 {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) { .team-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 700px; } }
@media (max-width: 520px)  { .team-grid-4 { grid-template-columns: 1fr; max-width: 320px; } }
