/* ============================================================
   Aikido Shinju-Kai — Theme CSS
   Font: Mulish (Google Fonts)
   Framework: Custom CSS (no Bootstrap)
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-red:       #c0392b;
  --color-red-dark:  #a93226;
  --color-black:     #111111;
  --color-white:     #ffffff;
  --color-lgrey:     #f4f4f4;
  --color-mgrey:     #e0e0e0;
  --color-text:      #222222;
  --color-muted:     #666666;

  --font-body:       'Mulish', sans-serif;
  --font-script:     'Mulish', sans-serif;

  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.125rem);
  --text-lg:   clamp(1.125rem, 2.2vw, 1.25rem);
  --text-xl:   clamp(1.25rem,  2.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   3vw,   2rem);
  --text-3xl:  clamp(2rem,     4vw,   2.75rem);
  --text-4xl:  clamp(2.5rem,   5vw,   3.5rem);

  --leading-tight:  1.2;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.14);

  --nav-height: 64px;
  --container-max: 1200px;
  --container-narrow: 840px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-red); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: var(--space-6); }
li { margin-bottom: var(--space-2); line-height: var(--leading-loose); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-black);
  margin-bottom: var(--space-4);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 500; }
h6 { font-size: var(--text-base); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p { margin-bottom: var(--space-4); }
small { font-size: var(--text-xs); }

.script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  line-height: var(--leading-normal);
}

.text-red   { color: var(--color-red); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-fluid {
  width: 100%;
  padding-inline: 0;
}

.grid { display: grid; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.py-4  { padding-block: var(--space-4); }
.py-8  { padding-block: var(--space-8); }
.py-12 { padding-block: var(--space-12); }
.py-16 { padding-block: var(--space-16); }
.py-20 { padding-block: var(--space-20); }
.px-6  { padding-inline: var(--space-6); }
.px-8  { padding-inline: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mx-auto { margin-inline: auto; }

/* --- Background Sections --- */
.bg-red    { background-color: var(--color-red); }
.bg-black  { background-color: var(--color-black); }
.bg-white  { background-color: var(--color-white); }
.bg-lgrey  { background-color: var(--color-lgrey); }

section { padding-block: var(--space-16); }
section.compact { padding-block: var(--space-8); }

/* --- Navbar --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background: var(--color-lgrey);
  border-bottom: 1px solid var(--color-mgrey);
}
.top-bar .container {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding-block: var(--space-2);
  flex-wrap: wrap;
}
.top-bar a {
  font-size: var(--text-xs);
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
}
.top-bar a.text-red { color: var(--color-red); }
.top-bar a:hover { color: var(--color-red); text-decoration: none; }

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--space-4);
  gap: var(--space-3);
}
.nav-brand-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-logo img { height: 58px; width: auto; }

.nav-links {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links li { position: relative; margin: 0; }
.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-align: center;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-red); text-decoration: none; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65em;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-mgrey);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: var(--space-2) 0;
  margin: 0;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--color-lgrey); color: var(--color-red); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .top-bar { display: none; }
  .nav-toggle { display: block; }
  .main-nav { align-items: stretch; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: relative;
    background: var(--color-white);
    border-top: 1px solid var(--color-mgrey);
    padding: var(--space-4);
    gap: var(--space-3);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--space-3) 0; width: 100%; }
  .dropdown-menu {
    display: none !important;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-mgrey);
    margin-left: var(--space-4);
    border-radius: 0;
  }
  .nav-dropdown.open .dropdown-menu { display: block !important; }
}

/* --- Buttons --- */
.btn, .btn-red {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-red, .btn {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn-red:hover, .btn:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  text-decoration: none;
}

/* --- Split Hero --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.hero-split .hero-text {
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-split .hero-image {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-text { padding: var(--space-10) var(--space-6); }
  .hero-split .hero-image { min-height: 240px; order: -1; }
}

/* --- Home Sections --- */
#home-intro {
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('/images/home/dojo.jpeg') center/cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: var(--space-20);
}
#home-intro h2 { font-size: var(--text-3xl); color: var(--color-white); }
#home-intro h1 {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
#home-intro p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-8); }
#home-intro .btn { font-size: var(--text-base); padding: var(--space-4) var(--space-10); }

.quote-band {
  text-align: center;
  padding-block: var(--space-16);
}
.quote-band h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-2xl);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.quote-band p { font-size: var(--text-sm); opacity: 0.8; }

/* --- Accordion --- */
.accordion { border: 1px solid var(--color-mgrey); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--color-mgrey); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  width: 100%;
  background: var(--color-white);
  border: none;
  text-align: left;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--color-lgrey); }
.accordion-header::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  transition: transform 0.3s;
}
.accordion-item.open .accordion-header { color: var(--color-red); }
.accordion-item.open .accordion-header::after { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: var(--space-6);
  background: var(--color-white);
  border-top: 1px solid var(--color-mgrey);
}
.accordion-item.open .accordion-body { display: block; }
.bg-lgrey .accordion { background: var(--color-white); }

/* --- Instructor Cards --- */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-8);
}
.instructor-card { text-align: center; }
.instructor-card img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 25px;
  margin-inline: auto;
  margin-bottom: var(--space-3);
  border: 3px solid var(--color-mgrey);
}
.instructor-card p { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-1); }
.instructor-card small {
  color: var(--color-red);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}
.instructor-featured { text-align: center; padding-block: var(--space-10); }
.instructor-featured img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 25px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  border: 4px solid var(--color-red);
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  display: block;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-mgrey);
}

/* --- Dojo Cards / Filter --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  justify-content: center;
}
.filter-btn {
  padding: var(--space-2) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-mgrey);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.dojo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}
.dojo-card {
  background: var(--color-white);
  border: 1px solid var(--color-mgrey);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.dojo-card:hover { box-shadow: var(--shadow); }
.dojo-card h5 { font-size: var(--text-sm); font-weight: 700; color: var(--color-black); margin-bottom: var(--space-2); }
.dojo-card p { font-size: var(--text-xs); color: var(--color-muted); margin-bottom: var(--space-2); line-height: var(--leading-loose); }
.dojo-address { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-muted); }
.dojo-card .map-link { font-size: var(--text-xs); color: var(--color-red); text-decoration: none; font-weight: 600; }
.dojo-card[data-hidden="true"] { display: none; }
.dojo-status { font-size: var(--text-xs); font-weight: 600; color: var(--color-red); margin-bottom: var(--space-2); }
.dojo-note { font-size: var(--text-xs); margin-bottom: var(--space-4); }

.schedule-list { margin-top: var(--space-2); display: flex; flex-direction: column; gap: var(--space-2); }
.schedule-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--color-mgrey);
  background: var(--color-lgrey);
  position: relative;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.schedule-slot:hover { background: rgba(192,57,43,0.06); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.schedule-slot[data-slot-type="children"] { border-left: 3px solid #f39c12; }
.schedule-slot[data-slot-type="adult"]    { border-left: 3px solid #c0392b; }
.schedule-slot[data-slot-type="mixed"]    { border-left: 3px solid #27ae60; }
.schedule-slot[data-slot-type="ladies"]   { border-left: 3px solid #9b59b6; }
.schedule-slot[data-slot-type="senior-sg50"] { border-left: 3px solid #2980b9; }
.schedule-slot .schedule-badge {
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted);
  flex: 0 0 30%;
}
.schedule-slot .schedule-icon { font-size: var(--text-sm); }
.schedule-timegroup { display: flex; flex-direction: column; gap: var(--space-1); text-align: left; flex: 0 0 70%; }
.schedule-time { font-size: var(--text-sm); font-weight: 600; color: var(--color-black); line-height: 1.2; }
.schedule-day  { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
@media (max-width: 640px) {
  .schedule-slot { flex-direction: column; align-items: flex-start; }
  .schedule-slot .schedule-badge,
  .schedule-slot .schedule-timegroup { flex: 1 1 100%; }
}

/* --- HQ Schedule Table --- */
.schedule-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.schedule-table th, .schedule-table td { padding: var(--space-2) var(--space-4); border: 1px solid var(--color-mgrey); text-align: left; }
.schedule-table th { background: var(--color-red); color: var(--color-white); font-weight: 600; }
.schedule-table tr:nth-child(even) td { background: var(--color-lgrey); }
.schedule-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.schedule-tag {
  display: inline-flex;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.1);
  color: #111;
}
.schedule-tag.type-juniors          { background: #a0d8ef; }
.schedule-tag.type-beginners-child  { background: #5d99c6; color: #fff; }
.schedule-tag.type-adults           { background: #fff2cc; border-color: #d5b887; }
.schedule-tag.type-beginners-adult  { background: #fce5cd; border-color: #e69138; }
.schedule-tag.type-mixed-family     { background: #d9d2e9; border-color: #674ea7; }
.schedule-tag.type-advanced         { background: #d0e0e3; border-color: #45818e; }
.schedule-tag.type-sg50             { background: #ead1dc; border-color: #a64d79; }
.schedule-instructor { font-weight: 600; }

@media (max-width: 640px) {
  .responsive-table thead { display: none; }
  .responsive-table tr { display: block; margin-bottom: var(--space-4); border: 1px solid var(--color-mgrey); border-radius: var(--radius); overflow: hidden; }
  .responsive-table td { display: flex; justify-content: space-between; padding: var(--space-3) var(--space-4); border: none; border-bottom: 1px solid var(--color-mgrey); font-size: var(--text-sm); }
  .responsive-table td::before { content: attr(data-label); font-weight: 600; margin-right: var(--space-4); }
  .responsive-table td:last-child { border-bottom: none; }
}

.examiners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.grading-report-table-wrap { background: var(--color-white); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); overflow-x: auto; }
.grading-report-table { min-width: 600px; }
.grading-report-table td { color: var(--color-black); }
.grading-report-table tr:nth-child(even) td { background: rgba(0,0,0,0.03); }
.schedule-table-wrapper { overflow-x: auto; margin-bottom: var(--space-6); }
.schedule-table-wrapper table { min-width: 600px; }

.schedule-legend { background: var(--color-lgrey); border-radius: var(--radius); padding: var(--space-5); margin-top: var(--space-6); text-align: left; max-width: 520px; }
.schedule-legend-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.schedule-legend-table td { padding: 0.35rem 0.5rem; }
.schedule-legend-table td:first-child { width: 45%; }
.schedule-legend-table tbody tr + tr { border-top: 1px solid rgba(0,0,0,0.05); }

.schedule-tabs { margin-top: var(--space-6); }
.schedule-tabs__controls { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.schedule-tab-control {
  background: var(--color-white);
  border: 1px solid var(--color-mgrey);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}
.schedule-tab-control.is-active,
.schedule-tab-control:hover { background: var(--color-red); border-color: var(--color-red); color: var(--color-white); }
.schedule-tab-panel { display: none; }
.schedule-tab-panel.is-active { display: block; }

/* --- Timeline --- */
.timeline { padding-block: var(--space-8); }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-mgrey);
  align-items: start;
}
.timeline-year { font-family: var(--font-script); font-size: var(--text-3xl); color: var(--color-red); line-height: 1; text-align: right; }
.timeline-content h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.timeline-content p { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 80px 1fr; gap: var(--space-4); }
  .timeline-year { font-size: var(--text-2xl); }
}

/* --- Overseas Dojos Grid --- */
.overseas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-6);
}
.overseas-dojo-item {
  text-align: center;
  cursor: pointer;
  padding: var(--space-4);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.overseas-dojo-item:hover { background: var(--color-lgrey); }
.overseas-dojo-item img { width: 80px; height: 80px; object-fit: contain; margin-inline: auto; margin-bottom: var(--space-3); }
.overseas-dojo-item p { font-size: var(--text-xs); font-weight: 600; margin-bottom: var(--space-1); }
.overseas-dojo-item small { font-size: var(--text-xs); color: var(--color-muted); }

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-10);
  position: relative;
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--color-muted);
  line-height: 1;
}
.modal-close:hover { color: var(--color-red); }
.overseas-info { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-2) var(--space-3); align-items: start; margin-top: var(--space-3); font-size: var(--text-sm); }
.overseas-info .ico { color: var(--color-red); }
.overseas-schedule { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.overseas-schedule td { padding: var(--space-1) var(--space-3); }
.overseas-schedule .day { font-weight: 600; }

/* --- Contact Form --- */
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-form label { font-size: var(--text-sm); font-weight: 600; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-mgrey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  margin-top: var(--space-2);
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-red); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button[type="submit"] { align-self: flex-start; }

/* --- Life Members --- */
.members-year h4 { font-size: var(--text-xl); color: var(--color-red); border-bottom: 1px solid var(--color-mgrey); padding-bottom: var(--space-3); margin-bottom: var(--space-4); }
.members-year p { font-size: var(--text-sm); margin-bottom: var(--space-2); }

/* --- Fees Tables --- */
.fees-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-10); font-size: var(--text-sm); }
.fees-table th { background: var(--color-black); color: var(--color-white); padding: var(--space-3) var(--space-5); text-align: left; font-size: var(--text-xs); letter-spacing: 0.05em; text-transform: uppercase; }
.fees-table td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-mgrey); vertical-align: middle; }
.fees-table td:last-child { text-align: right; }
.fees-table .amount { font-size: var(--text-2xl); font-weight: 700; color: var(--color-red); }
.fees-table small { color: var(--color-muted); }

/* --- Hero image backgrounds --- */
.bg-adult1         { background: url('/images/classes/adult/1.jpg') center/cover; }
.bg-adult2         { background: url('/images/classes/adult/2.jpg') center/cover; }
.bg-children1      { background: url('/images/classes/children/1.jpg') center/cover; }
.bg-ladies1        { background: url('/images/classes/ladies/1.jpg') center/cover; }
.bg-ladies2        { background: url('/images/classes/ladies/2.jpg') center/cover; }
.bg-mixed1         { background: url('/images/classes/mixed/1.jpg') center/cover; }
.bg-seniors1       { background: url('/images/classes/seniors/1.jpg') center/cover; }
.bg-weapons1       { background: url('/images/classes/weapons/1.jpg') center/cover; }
.bg-weapons2       { background: url('/images/classes/weapons/2.jpg') center/cover; }
.bg-private1       { background: url('/images/classes/private/1.jpg') center/cover; }
.bg-sep1           { background: url('/images/classes/sep/1.jpg') center/cover; }
.bg-corp1          { background: url('/images/classes/corp/1.jpg') center/cover; }
.bg-instructional1 { background: url('/images/classes/instructional/1.jpg') center/cover; }
.bg-academy1       { background: url('/images/classes/academy/1.jpg') center/cover; }
.bg-careers        { background: url('/images/careers/1.jpg') center/cover; }
.bg-shihan         { background: url('/images/about/shihan.jpg') center/cover; }
.bg-morihei        { background: url('/images/about/morihei.jpg') center/cover; }
.bg-history        { background: url('/images/about/history.jpg') center/cover; }
.bg-dojo           { background: url('/images/about/dojo.jpeg') center/cover; }
.bg-frame          { background: url('/images/how-to-join/painting.jpeg') center/cover; }
.bg-door           { background: url('/images/how-to-join/door.jpeg') center/cover; }
.bg-life           { background: url('/images/life/1.jpg') center/cover; }
.bg-studio         { background: url('/images/home/dojo.jpeg') center/cover; }

/* --- Footer --- */
footer {
  background: #f7f7f7;
  color: var(--color-text);
  padding-block: var(--space-12);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-10); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
footer h5 { color: var(--color-black); font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-5); }
footer a { display: flex; align-items: center; gap: var(--space-3); color: var(--color-black); font-size: var(--text-sm); margin-bottom: var(--space-3); line-height: var(--leading-tight); }
footer a:hover { color: var(--color-red); text-decoration: none; }
footer p { font-size: var(--text-sm); line-height: var(--leading-loose); color: var(--color-muted); }
footer .hours-row { display: flex; flex-direction: column; font-size: var(--text-sm); gap: var(--space-1); }
.footer-bottom { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(0,0,0,0.06); text-align: center; font-size: var(--text-xs); color: var(--color-black); }
.footer-bottom a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--color-red); text-decoration: underline; }

/* --- Vision/Mission --- */
.vision-mission { text-align: center; padding-block: var(--space-16); }
.vision-mission .vm-label { font-family: var(--font-script); font-size: var(--text-4xl); color: var(--color-red); margin-bottom: var(--space-4); }
.vision-mission p { font-size: var(--text-lg); max-width: 600px; margin-inline: auto; margin-bottom: var(--space-3); }

/* --- Benefits list --- */
.benefits-section { padding-block: var(--space-12); }
.benefits-section h4 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.benefits-section ul { list-style: none; padding: 0; }
.benefits-section li { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-4); font-size: var(--text-sm); }
.benefits-section li::before { content: '✓'; color: var(--color-red); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.cta-block { margin-top: var(--space-10); }

/* --- Featured --- */
.featured-image { padding-block: var(--space-12); }
.featured-image img { max-width: 860px; margin-inline: auto; border-radius: var(--radius); }

/* --- Bookings iframe --- */
.bookings-wrap { padding-block: var(--space-10); }
.bookings-wrap iframe { width: 100%; min-height: 600px; border: none; }
.powered-by { text-align: center; font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-3); }

/* --- Grading belt colors --- */
.g_white  { color: #aaaaaa; }
.g_blue   { color: #1565C0; }
.g_gold   { color: #F9A825; }
.g_brown  { color: #795548; }
.g_black  { color: #111111; }
.belt-pill {
  display: inline-flex;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  margin-right: var(--space-2);
  border: 1px solid rgba(0,0,0,0.1);
  vertical-align: middle;
}
.belt-pill.belt-white  { background: #ffffff; border-color: rgba(0,0,0,0.15); }
.belt-pill.belt-blue   { background: #1565C0; border-color: #0f4a9f; }
.belt-pill.belt-gold   { background: #F9A825; border-color: #d18c1a; }
.belt-pill.belt-brown  { background: #795548; border-color: #5f4237; }
.belt-pill.belt-black  { background: #111111; border-color: #000000; }
.belt-pill.belt-red    { background: #c0392b; border-color: #992d22; }
.belt-pill.belt-yellow { background: #f7dc6f; border-color: #c39c60; }
.belt-pill.belt-orange { background: #e67e22; border-color: #b45f13; }
.belt-pill.belt-green  { background: #27ae60; border-color: #1f8748; }
.belt-pill.belt-purple { background: #8e44ad; border-color: #6d2e89; }
.belt-pill.belt-silver { background: linear-gradient(135deg, #d6d7d7, #f4f6f6); border-color: #b3b6b7; }

/* --- Utility --- */
.divider { border: none; border-top: 1px solid var(--color-mgrey); margin-block: var(--space-8); }
.note { font-size: var(--text-xs); color: var(--color-muted); }
.fine-print { font-size: var(--text-xs); color: var(--color-muted); line-height: var(--leading-loose); }
.fine-print ul { padding-left: var(--space-5); }
.fine-print li { margin-bottom: var(--space-2); }
