/* ---------------------------------------------------------------------------
   Common component sections — Events / Gallery, Committee, Contact Us.
   The markup (.about .section .section-title .light-background .text-muted) is
   kept byte-identical to the brown/charcoalblue/lightblue/orange themes so the
   app-injected content renders the same in every theme. These rules replicate
   those themes' section styling, coloured with the yellow theme's own palette
   (accent = --brand, #ce1212). Plain CSS (not Tailwind) so no rebuild needed. */
.section {
  color: #444444;
  background-color: #ffffff;
  padding: 60px 0;
  scroll-margin-top: 135px;
  overflow: clip;
}
/* Alternating light stripe — matches the theme's bg-slate-50. Declared after
   .section so it wins for elements carrying both classes. */
.light-background {
  background-color: #f8fafc;
}
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #171717;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, #444444, transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: rgb(var(--brand));
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
.section-title p {
  margin-bottom: 0;
}
.text-muted {
  color: #6c757d;
}

/* Header logo image — sized via a class so it survives the GrapesJS canvas,
   with background/radius resets to undo the rogue global img styling */
.logo-img {
  height: 36px;
  width: auto;
  max-height: 36px;
  background: transparent;
  border-radius: 0;
}

/* Membership card liveliness (theme-aware via --brand) */
#membership .mem-mini {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}
#membership .mem-mini::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--brand-dark)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
#membership .mem-mini:hover::before { transform: scaleX(1); }
#membership .mem-mini::after {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 160px; height: 160px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgb(var(--brand) / .12), transparent 70%);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .5s ease, transform .5s ease;
  z-index: -1;
}
#membership .mem-mini:hover::after { opacity: 1; transform: scale(1); }
#membership .mem-mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -16px rgb(var(--brand) / .45);
}
#membership .mem-mini h4 { transition: color .3s ease; }
#membership .mem-mini:hover h4 { color: rgb(var(--brand)); }
@media (prefers-reduced-motion: reduce) {
  #membership .mem-mini,
  #membership .mem-mini::before,
  #membership .mem-mini::after { transition: none; }
}
