/* Navbar: thin red-to-orange line */
.navbar {
  border-bottom: 3px solid transparent;
  border-image: var(--zb-gradient) 1;
}

.navbar-brand .navbar-title {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Hero */
.hero {
  background: var(--zb-band-bg);
  border-radius: 1rem;
  padding: 3rem 2.25rem 2.75rem;
  margin: 1rem 0 2rem;
}

.hero-title {
  display: block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  color: var(--zb-title-grey);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  /* spread words evenly when the title wraps, no single word on its own line */
  text-wrap: balance;
}

/* Short dark orange line under the title, same colour as the feedback figures */
.hero-title::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: var(--zb-orange-text);
}

.hero p:has(> .hero-title) {
  max-width: none;
}

.hero p {
  font-size: 1.15rem;
  max-width: 46rem;
  margin: 0;
}

.hero a {
  color: var(--zb-soft-link);
  text-decoration: underline;
}

/* Lesson cards */
.list.grid.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.lesson-card {
  position: relative;
  overflow: hidden;
  background: var(--zb-card-bg);
  border: 1px solid var(--zb-card-border);
  border-radius: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.lesson-card .card-body {
  padding: 1.5rem 1.5rem 1rem;
}

.lesson-card .card-title {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.lesson-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.lesson-card .card-title a:hover {
  color: var(--zb-accent);
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--zb-muted);
  margin-bottom: 0.75rem;
}

.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.lesson-tag {
  border: 1px solid var(--zb-card-border);
  color: var(--zb-muted);
  border-radius: 0.35rem;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.lesson-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-size: 0.85rem;
  background: transparent;
  border-top: 1px solid var(--zb-card-border);
  padding: 0.75rem 1.5rem;
  color: var(--zb-muted);
}

.lesson-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  text-decoration: none;
}

.lesson-cta:hover {
  text-decoration: underline;
}

.lesson-footer {
  flex-direction: column;
}

.lesson-footer a {
  color: inherit;
}

.lesson-footer a:hover {
  color: var(--zb-accent);
}

/* Logo in navbar */
.navbar-brand-container .navbar-logo,
.navbar-brand img {
  max-height: 56px;
  margin-right: 0.5rem;
}

.navbar-brand .navbar-title {
  border-left: 1px solid var(--zb-card-border);
  padding-left: 0.75rem;
}

/* Feedback section */
.feedback {
  background: var(--zb-band-bg);
  border-radius: 1rem;
  padding: 2.5rem 2rem 1.75rem;
  margin: 4rem 0 1rem !important;
}

.feedback-heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.25rem;
  border: none;
}

.feedback-intro,
.feedback p:has(> .feedback-intro) {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--zb-muted);
  margin: 0 0 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2.5rem;
}

.stat {
  padding: 0 1.5rem;
  border-left: 1px solid var(--zb-card-border);
}

.stat:first-child {
  padding-left: 0;
  border-left: none;
}

.stat-number {
  display: block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1;
  color: var(--zb-orange-text);
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  max-width: 16rem;
}

@media (max-width: 767.98px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stat,
  .stat:first-child {
    padding: 0 0 0 1rem;
    border-left: 3px solid var(--zb-orange);
  }
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  background: var(--zb-card-bg);
  border: 1px solid var(--zb-card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.testimonial.featured {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
}

.testimonial blockquote {
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial blockquote::before {
  content: "\201E";
  display: block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 0.6;
  margin-bottom: 0.75rem;
  color: var(--zb-accent);
}

.testimonial blockquote p {
  margin: 0;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--bs-body-color);
}

.testimonial.featured blockquote p {
  font-size: 1.2rem;
}

.testimonial > p:last-child {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--zb-card-border);
  font-size: 0.85rem;
}

.testimonial-workshop {
  font-weight: 600;
}

.testimonial-source {
  color: var(--zb-muted);
}

@media (max-width: 767.98px) {
  .feedback {
    padding: 2rem 1.25rem 1.25rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial.featured {
    grid-column: auto;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial.featured {
    grid-column: 1 / -1;
  }
}

.stats-note {
  display: block;
  font-size: 0.8rem;
  color: var(--zb-muted);
  margin-top: 1.25rem;
}

/* Short quote as soft orange accent card */
.testimonial.accent {
  background: var(--zb-soft-strong);
  border-color: var(--zb-soft-strong);
  color: var(--zb-soft-fg);
  justify-content: center;
}

.testimonial.accent blockquote {
  flex: 0;
}

.testimonial.accent blockquote p,
.testimonial.accent .testimonial-source {
  color: var(--zb-soft-fg);
}

.testimonial.accent blockquote p {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25;
}

.testimonial.accent > p:last-child {
  border-top-color: rgba(0, 0, 0, 0.12);
}

.testimonial.accent .testimonial-source {
  opacity: 0.85;
}

/* Wide, but capped page width on the overview page */
.page-wrap {
  max-width: 1760px;
  margin: 0 auto;
}

@media (max-width: 479.98px) {
  .navbar-brand .navbar-title {
    display: none;
  }
}

/* Red-to-orange accent bar on cards */
.lesson-card::before,
.testimonial.featured::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--zb-gradient-v);
}

/* Quote marks in orange */
.testimonial blockquote::before {
  color: var(--zb-orange);
}

/* Workshops page */
.page-title {
  display: block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 1.5rem 0 1rem;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.event-empty {
  grid-column: 1 / -1;
}

.event-card {
  position: relative;
  overflow: hidden;
  background: var(--zb-card-bg);
  border: 1px solid var(--zb-card-border);
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.5rem 1.85rem;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--zb-gradient-v);
}

.event-date {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--zb-orange-text);
}

.event-title {
  font-size: 1.4rem;
  margin: 0.25rem 0 0.6rem;
  line-height: 1.2;
}

.event-description {
  margin-bottom: 0.75rem;
}

.event-lessons {
  font-size: 0.9rem;
  color: var(--zb-muted);
}

.event-register {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}

.event-register:hover {
  text-decoration: underline;
}

.event-empty {
  color: var(--zb-muted);
}

.event-status {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.5rem;
  border: 1px solid var(--zb-card-border);
  border-radius: 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--zb-muted);
  vertical-align: middle;
}

.event-booked-note {
  font-size: 0.95rem;
  color: var(--zb-muted);
  margin: 0;
}
