/* ─────────────────────────────────────────────
   BJJ PRISHTINA  ·  Main Stylesheet
   ───────────────────────────────────────────── */

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

:root {
  --blue:        #0056ac;
  --blue-light:  #518cc8;
  --black:       #0a0a0a;
  --dark:        #101218;
  --gray:        #494B51;
  --light:       #F3F5F5;
  --white:       #ffffff;
  --accent:      #e8a020;
  --header-h:    100px;
  --ev-balkan:   #c2410c;
  --ev-balkan-bg:#fff5f0;
}

html { scroll-behavior: smooth; overflow-x: hidden}

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--gray);
  background: var(--black);
  overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────── */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
#masthead.scrolled {
  background: rgba(10,10,10,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* SVG logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* Nav links */
nav ul {
  display: flex; gap: 28px;
  list-style: none;
}
nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav ul li a:hover,
nav ul li a.active { color: var(--accent); }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 24px;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  border-radius: 2px;
}
.lang-btn:hover,
.lang-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,160,32,0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-direction: column; gap: 9px;
  margin-left: 16px;
}
.hamburger span {
  display: block; width: 48px; height: 6px;
  background: white; transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(10,10,10,0.99);
  padding: 30px 40px;
  flex-direction: column; gap: 4px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: white; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 2.5rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-lang {
  display: flex; gap: 18px; padding-top: 48px; 
}
.mobile-lang button {
  font-size: 45px;
}

/* ── SECTION SIZING ─────────────────────────── */
section {
  max-width: 100vw;
}

section:not(#home),
.page-hero {
  min-height: calc(100vh - var(--header-h));
}
section[id],
.page-hero[id] {
  scroll-margin-top: var(--header-h);
}

/* ── HERO ───────────────────────────────────── */
#home {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; 
  inset: 0;
  /* Break out the background properties for better browser support */
  background-image: 
    linear-gradient(270deg, rgba(0,86,172,0) 0%, rgba(10,10,10,0.90) 70%),
    url('public/hero.png');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  
  transform: scale(1) translateY(0px);
  will-change: transform;
  transform-origin: right center;
}

/* Add this to shift the image to the right on mobile */
@media (max-width: 768px) {
  .hero-bg {
    background-image: 
    linear-gradient(180deg, rgba(0,86,172,0) 0%, rgba(10,10,10,0.90) 70%),
    url('public/hero.png');
    background-position: right center;
  }
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.05) 3px, rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-content {
    margin: 80% auto 0;
  }
}

.hero-badge {
  display: inline-block;
  align-self: flex-start; 
  width: fit-content;    
  
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 14px;
  margin-bottom: 26px;
  white-space: nowrap;  
}

.hero-title {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.92;
  color: white;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 30px;
}
.hero-title .accent-line { color: var(--accent); display: block; }
.hero-schedule {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.hero-schedule strong { color: white; }

/* CTA button: auto width on desktop (not full-width) */
.hero-cta {
  display: inline-block;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 42px;
  transition: background 0.25s, transform 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

/* ── UTILITY ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.73rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.divider {
  width: 50px; height: 3px;
  background: var(--blue);
  margin: 18px 0 26px;
}

/* ── TRAINING ────────────────────────────────── */
#training {
  background: var(--white);
  padding: 100px 0;
  display: flex; align-items: center;
}
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.training-text p {
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 1rem;
}

/* Training image stack: SVG behind PNG, concentric, constrained */
.training-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* max-width keeps it from overflowing the right column */
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.training-visual .train-back {
  position: absolute;
  width: 92%;
  height: 92%;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.training-visual .train-front {
  position: relative;
  z-index: 1;
  width: 110%;
  height: 110%;
  object-fit: contain;
  display: block;
}

.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 26px;
}
.skills-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--dark);
  display: flex; align-items: center; gap: 10px;
}
.skills-list li i { color: var(--blue); font-size: 0.7rem; flex-shrink: 0; }

/* ── VIDEO ───────────────────────────────────── */
#video-section {
  background: var(--dark);
  padding: 0;
  min-height: 0 !important;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.video-wrapper iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── CLASS STRUCTURE ─────────────────────────── */
#class-structure {
  background: var(--blue);
  padding: 0;
  display: flex; align-items: center;
  min-height: 0 !important;
  position: relative;
  overflow: hidden;
}
#class-structure .container { padding-top: 80px; padding-bottom: 80px; width: 100%; }
#class-structure::before {
  content: 'BJJ';
  position: absolute;
  right: -30px; top: -40px;
  font-family: 'Teko', sans-serif;
  font-size: 280px;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.class-block {
  padding: 40px 30px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.class-block:last-child { border-right: none; }
.class-block .time {
  font-family: 'Teko', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.btn-primary, .btn-submit {
  margin-top: 0px;
}

/* .unit uses the standard [data-lang] system but needs display:block when active */
.class-block .unit {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 2px; margin-bottom: 8px;
  /* hidden by default via [data-lang] rule; shown as block when lang-active */
}
/* Override the generic span[data-lang].lang-active rule so units show as block */
.class-block .unit.lang-active { display: block !important; }

.class-block .name {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .class-block:nth-child(2) {
    border-right: none; 
  }
  
  /* If your separator is created using an ::after pseudo-element, use this instead/too: */
  .class-block:nth-child(2)::after {
    display: none;
  }
}

/* ── RESOURCES ───────────────────────────────── */
#resources {
  background: var(--light);
  padding: 100px 0;
  display: flex; align-items: center;
}
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.resources-intro p {
  margin-top: 18px;
  color: var(--gray);
  line-height: 1.75;
  font-size: 0.95rem;
}
.resource-card {
  background: white;
  padding: 30px 26px;
  margin-bottom: 20px;
  transition: transform 0.25s, box-shadow 0.25s;
  border-left: 3px solid transparent;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-left-color: var(--blue);
}
.resource-card .icon {
  font-size: 1.7rem; color: var(--blue);
  margin-bottom: 12px; display: block;
}
.resource-card h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.resource-card h3 a { color: inherit; text-decoration: none; }
.resource-card h3 a:hover { color: var(--blue); }
.resource-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; }
@media (max-width: 768px) {
  /* 1. Force the grid to use a single consistent gap between the 3 main blocks */
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 20px !important; 
  }

  /* 2. Neutralize the animation wrappers so they don't add extra height */
  #resources .fade-up {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Matches the grid gap for perfect uniformity */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Remove the bottom margin from the cards themselves */
  /* This prevents the "double gap" after 'What to Expect' */
  .resource-card {
    margin-bottom: 0 !important;
  }
}

/* ── ABOUT ───────────────────────────────────── */
#about {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}
.about-image {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  display: block;
}
.about-image-placeholder {
  width: 100%; height: 100%;
  min-height: 500px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0056ac22 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-image-placeholder i { font-size: 5rem; color: rgba(255,255,255,0.1); }
.about-content {
  padding: 80px 70px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-content .section-label { color: var(--blue-light); }
.about-content .section-title { color: white; }
.about-content .divider { background: var(--blue-light); }
.instructor {
  margin-bottom: 26px; padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.instructor:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.instructor-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem; font-weight: 600;
  color: white; text-transform: uppercase;
  margin-bottom: 3px;
}
.instructor-belt {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.73rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 9px; display: block;
}
.instructor p { font-size: 0.93rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ── EVENTS ──────────────────────────────────── */
#events {
  background: white;
  padding: 100px 0;
  display: flex; align-items: flex-start;
}
.events-wrapper {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
.events-wrapper .section-title { margin-bottom: 36px; }

.event-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 26px;
  margin-bottom: 8px;
  background: var(--light);
  border-left: 4px solid var(--blue);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.event-row:hover {
  background: #e8f0fb;
  border-left-color: var(--accent);
}
/* Highlighted events: colour only, no badge/emoji */
.event-row.event-highlight {
  border-left-color: var(--ev-balkan);
  background: var(--ev-balkan-bg);
}
.event-row.event-highlight:hover { background: #ffe5d9; }
.event-row.event-highlight .event-date { color: var(--ev-balkan); }

.event-date {
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
}
.event-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--dark);
}
.event-loc {
  font-size: 0.88rem;
  color: var(--gray);
  white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.event-loc i { color: var(--blue); font-size: 0.73rem; }

.events-empty {
  padding: 40px 30px;
  background: var(--light);
  border-left: 4px solid #ccc;
  text-align: left;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}
.events-empty a { color: var(--blue); font-weight: 600; text-decoration: none; }
.events-empty a:hover { text-decoration: underline; }

.events-note {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--gray);
}
.events-note a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ── TESTIMONIAL ─────────────────────────────── */
#testimonial {
  background: var(--black);
  padding: 100px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
#testimonial::before {
  content: '"';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Teko', sans-serif;
  font-size: 500px;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.testimonial-inner {
  position: relative; z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 60px;
  width: 100%;
}
.quote-icon { font-size: 1.9rem; color: var(--accent); margin-bottom: 28px; display: block; }
.testimonial-text {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 34px;
}
/* Round picture above attribution */
.testimonial-pic {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid var(--blue);
}
.testimonial-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem; font-weight: 600;
  color: white; text-transform: uppercase; display: block;
}
.testimonial-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.73rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
}

.testimonial-banner {
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-height: 500px;
}
.testimonial-banner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0.8;
  filter: grayscale(10%);
}

.testimonial-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 12%, transparent 80%, var(--black) 100%);
}

/* ── FOOTER ──────────────────────────────────── */
footer { background: #000; }
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 60px;
  padding: 80px 40px 50px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo-img {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto 20px;
}
.footer-quote {
  font-style: italic; color: rgba(255,255,255,0.5);
  font-size: 0.88rem; line-height: 1.7; margin-bottom: 6px;
}
.footer-quote-attr { font-size: 0.78rem; color: rgba(255,255,255,0.8); text-align: right; }
.footer-widget h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.55rem; font-weight: 600;
  color: white; text-transform: uppercase;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.footer-info {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem; line-height: 1.8; margin-bottom: 14px;
}
.footer-info strong { color: rgba(255,255,255,0.8); }
.footer-map iframe {
  width: 100%;
  height: auto; 
  aspect-ratio: 1 / 1; 
  border: 0;
  margin-top: 8px; filter: grayscale(50%);
}

.footer-message-part {
  margin-top:30px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 11px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue-light); }
.contact-form textarea { height: 200px; resize: none; }
.footer-note { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.btn-submit {
  background: var(--blue); color: white;
  border: none; padding: 12px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; width: 100%;
}
.btn-submit:hover { background: var(--blue-light); }
.footer-form-success {
  display: none; color: #4caf50; font-size: 0.88rem; margin-top: 8px;
}
.footer-below {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 26px 40px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.footer-widget a {
  color: var(--accent);
  text-decoration: none;
}
.footer-socials { display: flex; gap: 26px; align-items: center; }
.social-link {
  display: flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 0.83rem; letter-spacing: 1px;
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent); }
.social-link i { font-size: 1.15rem; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ── INNER PAGES ─────────────────────────────── */
.page-hero {
  position: relative;
  min-height: calc(100vh);
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  /* Break out the background properties for better browser support */
  background-image: 
    linear-gradient(270deg, rgba(0,86,172,0.80) 0%, rgba(10,10,10,0.90) 60%),
    url('public/hero.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  
  transform: scale(1) translateY(0px);
  will-change: transform;
  transform-origin: center center;
}

.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.05) 3px, rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
}

.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 80px 40px;
  width: 100%;
}
.page-hero-content .section-label { margin-bottom: 14px; }
.page-hero-content .hero-title { font-size: clamp(2.4rem, 7vw, 5.5rem); margin-bottom: 16px; }
.page-hero-content .hero-subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.7;
}


@media (max-width: 768px) {
  .page-hero-bg {
    background-image: 
    linear-gradient(180deg, rgba(0,86,172,0.50) 0%, rgba(10,10,10,0.90) 60%),
    url('public/hero.png');
    background-position: right center;
  }
  .page-hero-content {
    margin: 70% auto 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb > span { color: rgba(255,255,255,0.25); }
/* breadcrumb data-lang items are inline */
.breadcrumb [data-lang] { display: none; }
.breadcrumb [data-lang].lang-active { display: inline; }

/* Article body */
.article-section {
  background: var(--white);
  padding: 90px 0;
}
.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.link-list li i {
  margin-top: 0.55rem;
}
.page-hero-content .section-label {
  text-align: left;
  font-weight: 700;
}
/* Shared content block style (used for expectations, curriculum) */
.expect-block {
  margin-bottom: 52px;
}
.expect-block h2 {
  font-family: 'Teko', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.expect-block h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  margin-top: 24px;
}
.expect-block p {
  font-size: 0.98rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 14px;
}
.expect-block ul,
.expect-block ol {
  margin: 0 0 14px 22px;
  font-size: 0.98rem;
  color: var(--gray);
  line-height: 1.75;
}
.expect-block ul li,
.expect-block ol li { margin-bottom: 6px; }

/* Numbered conduct list */
.conduct-list {
  list-style: none;
  counter-reset: conduct;
}
.conduct-list > li {
  counter-increment: conduct;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #eaeaea;
}
.conduct-list > li:last-child { border-bottom: none; }
.conduct-list > li::before {
  content: counter(conduct, decimal-leading-zero);
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  padding-top: 2px;
}
.conduct-list .rule-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.conduct-list li p {
  font-size: 0.96rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

/* Closing note on inner pages */
.page-closing {
  background: var(--dark);
  padding: 80px 40px;
  text-align: center;
}
.page-closing p {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.page-closing strong { color: var(--accent); font-style: normal; }

/* ── ANIMATIONS ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* Language visibility */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
span[data-lang].lang-active { display: inline; }
a[data-lang].lang-active { display: inline; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  #masthead { padding: 0 20px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .lang-switcher { display: none; }

  .hero-content { padding: 0 28px; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }

  /* Training: text top, visual below */
  .training-grid { grid-template-columns: 1fr; gap: 0; }
  .training-grid > div:last-child {
    order: 2; 
    margin-top: 20px;
  }
  .training-text { order: 1; }
  .training-visual { order: 2; max-width: 400px; margin: 16px auto 0; }
  .skills-list { grid-template-columns: 1fr; margin-top: 16px; }

  .class-grid { grid-template-columns: repeat(2, 1fr); }
  #class-structure .container { padding-top: 60px; padding-bottom: 60px; }

  .resources-grid { grid-template-columns: 1fr; gap: 36px; }

  #about { grid-template-columns: 1fr; }
  .about-image { min-height: 300px; max-height: 400px; }
  .about-content { padding: 60px 28px; }

  .event-row { grid-template-columns: 1fr; gap: 4px; }

  .footer-main { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 40px; }
  .footer-below { flex-direction: column; gap: 18px; text-align: center; }
  .footer-socials { flex-direction: column; gap: 14px; }

  .container { padding: 0 22px; }
  .page-hero-content { padding: 60px 22px; }
  .conduct-list > li { grid-template-columns: 38px 1fr; gap: 12px; }

  .testimonial-banner img { height: 300px;
    transform: scale(1.7);
    transform-origin: top center;}
  
  .site-logo img {
    height: 90px; 
  }

  .mobile-menu {
    text-align: right;
    align-items: flex-end;
  }
  
  .mobile-menu a {
    width: 100%;
    padding: 12px 0;
  }

  .mobile-lang {
    justify-content: flex-end;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-top: 20px;
  }
  
  .hero-schedule {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9); /* Brighter for readability */
  }

  .hero-content {
    display: flex;
    flex-direction: column;
  }
  .section-label, 
  .section-title, 
  .divider {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .divider {
    display: block;
  }

  p, span, div, textarea, .hero-badge {
    font-size: 1rem !important;
  }

  .hero-badge, .testimonial-role {
    font-size: 0.7rem !important;
  }

  h2, .hero-title, h1 span, .time {
    font-size: 2.5rem !important;
  }

  h3, .instructor-name, .footer-socials a, .hero-cta a, .btn-primary, .social-link i, i, .article-body div a, .name {
    font-size: 1.2rem !important;
  }
  .footer-message-part {
    margin-top:40px;
  }

  .conduct-list > li::before {
    text-align: center;
    padding-top: 6px;
  }

  body {
    font-size: 18px;
  }

  .training-text p, 
  .about-content p, 
  .footer-info {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .resource-card i, .resource-card h3 {
    margin: 0 auto;
  }
  .resource-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: none; /* Optional: removes the side border to help with centering feel */
    border-bottom: 3px solid transparent; /* Moves the accent line to the bottom instead */
  }

  .btn-primary, .btn-submit {
    margin-top: 40px;
  }

  .page-closing p {
  margin-bottom: 60px;
  }

  .resource-card .icon {
    margin-left: auto;
    margin-right: auto;
  }

  .resource-card h3 {
    width: 100%;
    text-align: center;
  }

  .testimonial-pic {
  width: 160px; height: 160px;
}
