#staff-title {
  text-align: center;
  padding: 2rem 1rem 0.75rem;  /* reduced bottom padding */
  margin-bottom: 0.5rem;       /* prevents extra gap */
}

#staff-title h2 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0d4f7a;
}

#staff-title p {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  color: #0d4f7a;
  font-weight: 600;
}

/* Decorative line below text */
#staff-title::after {
  content: "";
  width: 80%;
  max-width: 600px;
  height: 2px;
  background: #d1d1d1;
  display: block;
  margin: 1.5rem auto 0;
}

/* ===== STAFF GRID LAYOUT ===== */

#staff-grid {
  padding: 1rem 1.5rem 4rem;   /* much less space above cards */
}

/* Table as grid */
#staff-grid table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

#staff-grid td {
  width: 33.333%;
  padding: 1.5rem;
  vertical-align: top;
  border: none;
  outline: none;
}

/* Remove any default borders/outlines WA might inject */
#staff-grid table,
#staff-grid table * {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Each cell becomes a card with 3D perspective */
#staff-grid td.staff-card {
  perspective: 1200px;
}

/* Inner flipping element */
#staff-grid .staff-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;            /* card proportion similar to your screenshot */
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
}

/* Front + back faces */
#staff-grid .staff-card-front,
#staff-grid .staff-card-back {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  backface-visibility: hidden;
}

/* FRONT: photo + name pill */
#staff-grid .staff-card-front {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Portrait image */
#staff-grid .staff-card-front img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name/title pill at bottom */
#staff-grid .staff-name-pill {
  margin: 1.25rem auto 1.5rem;
  padding: 0.7rem 1.75rem;
  max-width: 90%;
  background: #e3e3e3;
  border-radius: 999px;
  font-size: 0.95rem;
  text-align: center;
}

/* BACK: bio side */
#staff-grid .staff-card-back {
  background: #f5f5f5;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: left;
}

#staff-grid .staff-card-back p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Flip state */
#staff-grid .staff-card-inner.flipped {
  transform: rotateY(180deg);
}

/* RESPONSIVE: stack cards on small screens */
@media (max-width: 767px) {
  #staff-grid table,
  #staff-grid tbody,
  #staff-grid tr,
  #staff-grid td {
    display: block;
    width: 100% !important;
  }

  #staff-grid td {
    padding: 1rem 0;
  }
}


/* MAIN SECTION WRAPPER */
#event-main {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

/* ---- TOP TEXT BLOCKS ---- */

/* FIRST LINE = small label (Celebrating Culture) */
#event-main p:first-of-type {
  margin: 0 0 0.5rem;
  color: #00878c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 600;
}

/* SECOND LINE = big main title */
#event-main p:nth-of-type(2) {
  margin: 0 0 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  font-size: 2rem;
  font-weight: 700;
}

/* ---- GRID TABLE ---- */


#event-main table,
#event-main table * {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#event-main td {
  padding: 1.5rem;
  vertical-align: top;
  text-align: center;
}

/* IMAGE at top of each card */
#event-main td img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0 auto 1rem;
  border-radius: 6px;
}

/* TEXT inside each card */
/* FIRST paragraph inside a cell = label ("Events") */
#event-main td p:nth-of-type(1) {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
}

/* SECOND paragraph inside a cell = title */
#event-main td p:nth-of-type(2) {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* THIRD paragraph inside a cell = description */
#event-main td p:nth-of-type(3) {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* RESPONSIVE STACKING */
@media (max-width: 767px) {
  #event-main table,
  #event-main tbody,
  #event-main tr,
  #event-main td {
    display: block;
    width: 100% !important;
  }

  #event-main td {
    padding: 1rem 0;
  }
}

/* BUTTON LINKS inside event-main */
#event-main a {
  display: inline-block;
  background: #0d1b3d;            /* DARK BLUE default */
  color: #ffffff;                 /* white text default */
  padding: 0.75rem 1.75rem;
  border-radius: 999px;           /* pill shape */
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

/* HOVER: Lime-yellow background + navy text */
#event-main a:hover {
  background: #e7f041;            /* lime yellow */
  color: #0d1b3d;                 /* dark navy text */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Click/active state */
#event-main a:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* HERO WRAPPER */
#event-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  padding: 5rem 1.5rem 4rem; /* top, sides, bottom */

  /* Make the gadget background behave like a hero image */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

/* Teal overlay on top of the background image */
#event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 135, 140, 0.55);  /* adjust opacity as needed */
  z-index: 0;
}

/* Make sure all inner content is above the overlay */
#event-hero > * {
  position: relative;
  z-index: 1;
}

/* Logo image */
#event-hero img {
  max-width: 220px;
  height: auto;
  margin-bottom: 1.5rem;
}

/* TYPOGRAPHY */
#event-hero h1,
#event-hero h2 {
  margin: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  font-size: 2.4rem !important;
  font-weight: 700 !important;
}

/* Optional highlight span (e.g. "THE PALM BEACHES") */
#event-hero h1 span,
#event-hero h2 span {
  color: #ffd34a;
}

/* Body text */
#event-hero p {
  margin: 0.4rem auto;
  max-width: 42rem;
  font-size: 1.2rem !important;
}

/* Last paragraph, treat as description */
#event-hero p:last-of-type {
  margin-top: 1.5rem;
  font-size: 1.05rem !important;
}

/* Larger screens */
@media (min-width: 768px) {
  #event-hero {
    padding: 6rem 2rem 5rem;
  }

  #event-hero h1,
  #event-hero h2 {
    font-size: 2.6rem !important;
  }
}

@media (min-width: 1024px) {
  #event-hero h1,
  #event-hero h2 {
    font-size: 2.9rem !important;
  }

  #event-hero img {
    max-width: 260px;
  }
}

/* Wrapper for the entire 3-column section */
.program-features {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 60px auto;
    max-width: 1200px;
}

/* Individual feature columns */
.program-feature-item {
    flex: 1;
}

/* Headings inside each column */
.program-feature-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Body text inside each column */
.program-feature-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Program / campaign hero */
#program-hero {
  /* make the background behave like a real hero image */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Text inside the hero */
#program-hero p {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  max-width: 60rem;

  /* translucent box behind the text */
  background: rgba(0, 0, 0, 0.35);
  padding: 18px 24px;
  border-radius: 10px;
  display: inline-block;

  /* optional: a tiny glow to separate from the image */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
/* ==========================
   TRAINING HERO LEFT COLUMN
   Gadget ID: training-hero
   ========================== */

#training-hero {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(
      120deg,
      rgba(32, 44, 86, 0.92),
      rgba(77, 86, 120, 0.92)
    ),
    url("https://pmhca.wildapricot.org/resources/Pictures/Training%20Header.png") center/cover no-repeat;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Top label: EVENT / VIRTUAL TRAINING / etc. */
#training-hero .hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 8px;
}

/* Big title line */
#training-hero .hero-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 12px;
}

/* Subtitle sentence */
#training-hero .hero-subtitle {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 18px;
}

/* Meta block (Date / Time / Format) */
#training-hero .hero-meta p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.6;
}

#training-hero .hero-meta strong {
  color: #ffffff;
}

/* CTA buttons container */
#training-hero .hero-ctas {
  margin-top: 18px;
}

/* Buttons */
#training-hero .hero-ctas a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: 12px;
  margin-top: 8px;
  border: 2px solid #ffffff;
}

/* First button = solid */
#training-hero .hero-ctas a:first-child {
  background: #ffffff;
  color: #202c56;
}

/* Second button = outline */
#training-hero .hero-ctas a:nth-child(2) {
  background: transparent;
  color: #ffffff;
}

/* Hover states */
#training-hero .hero-ctas a:first-child:hover {
  background-color: #e8eb68;
  border-color: #e8eb68;
  color: #202c56;
}

#training-hero .hero-ctas a:nth-child(2):hover {
  background-color: rgba(255,255,255,0.15);
}

/* ==================================
   TRAINING HERO RIGHT COLUMN CARD
   Gadget ID: event-hero-right
   ================================== */

#training-hero-right {
  background: #f5f7fb;
  border-radius: 20px;
  padding: 24px 28px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #333333;
}

/* Each section (What you'll learn / Who should attend) */
#training-hero-right .hero-card-section {
  margin-bottom: 24px;
}

/* Section titles */
#training-hero-right .hero-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #202c56;
  margin-bottom: 8px;
}

/* Lists */
#training-hero-right ul {
  margin: 0 0 4px 20px;
  padding: 0;
}

#training-hero-right li {
  margin-bottom: 4px;
}

/* Responsive – add a bit of spacing when stacked */
@media (max-width: 800px) {
  #training-hero-right {
    margin-top: 16px;
  }
}

/* === KEYFRAME ANIMATION === */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Wrapper to keep the video clean and full-width */
#video-header {
  width: 100%;
  overflow: hidden;
  background: #000; /* fallback before video loads */
}

/* The responsive video */
#header-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* fills width without distortion */
  max-height: 70vh;  /* prevents the video from being too tall */
}

.btn-membership {
  display: inline-block;
  padding: 10px 22px;
  background-color: #202c56;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px; /* slightly rounded corners */
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-membership:hover,
.btn-membership:focus {
  background-color: #4d5678;
  color: #ffffff;
  text-decoration: none;
}

/* Container */
#nav {
  background: #ffffff !important;
  padding: 10px 40px 10px 0;
  text-align: right;
}

/* Reset WA overrides */
#nav * {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* NAV BAR CONTAINER */
#nav {
  background: #ffffff;
  padding: 10px 40px 10px 0;
  text-align: right;                 /* aligns the menu block to the right */
}

/* The actual menu container inside the gadget */
#nav .menuInner {
  display: inline-block;             /* so it can be right-aligned by #nav */
}

/* TOP-LEVEL MENU ROW */
#nav .menuInner ul.firstLevel {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Top-level items (horizontal) */
#nav .menuInner ul.firstLevel > li {
  display: inline-block;
  margin: 0 0 0 40px;               /* space between items */
}

#nav .menuInner ul.firstLevel > li:first-child {
  margin-left: 0;
}

/* ALL MENU LINKS */
#nav .menuInner a {
  color: #000000 !important;         /* black text */
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  padding: 5px 0;
}

/* Hover */
#nav .menuInner a:hover {
  text-decoration: underline;
}

/* DROPDOWN BACKGROUND + READABILITY FIX */
#nav .menuInner ul.secondLevel,
#nav .menuInner ul.level2,
#nav .menuInner ul ul {
  background: #ffffff !important;       /* solid white background */
  padding: 10px 0;                      /* spacing inside dropdown */
  min-width: 200px;                     /* consistent width */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);  /* subtle shadow */
  z-index: 9999;                        /* ensures dropdown sits on top */
}

/* Dropdown items */
#nav .menuInner ul.secondLevel li,
#nav .menuInner ul.level2 li,
#nav .menuInner ul ul li {
  white-space: nowrap;                  /* prevent awkward wrapping */
}

/* Dropdown links */
#nav .menuInner ul.secondLevel li a,
#nav .menuInner ul.level2 li a,
#nav .menuInner ul ul li a {
  display: block;
  padding: 8px 20px;
  font-size: 16px;
  color: #000000 !important;
  background: #ffffff !important;
  text-decoration: none;
}

/* Hover on dropdown items */
#nav .menuInner ul.secondLevel li a:hover,
#nav .menuInner ul.level2 li a:hover,
#nav .menuInner ul ul li a:hover {
  background: #f2f2f2 !important;
}

/* Hide default WildApricot footer */
#idFooterPoweredByWA {
  display: none !important;
}

/* ===========================
   PMHCA FOOTER BASE
   =========================== */

#pmhca-footer {
  background-color: #202c56;          /* deep blue */
  color: #ffffff;
  padding: 48px 20px 32px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#pmhca-footer a {
  color: #9fdcff;                     /* light blue links */
  text-decoration: underline;
}

#pmhca-footer a:hover {
  text-decoration: none;
}

/* 3-column layout: LEFT (logos/text), MIDDLE (contact), RIGHT (988 + mailing) */
#pmhca-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

/* Generic column text */
#pmhca-footer .footer-col p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===========================
   LEFT COLUMN
   =========================== */

/* Logos row */
#pmhca-footer .footer-logo-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

#pmhca-footer .footer-logo-img {
  max-height: 80px;
  width: auto;
}

#pmhca-footer .footer-logo-divider {
  width: 1px;
  height: 70px;
  background-color: rgba(255,255,255,0.5);
}

/* Social icons under logos */
#pmhca-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

#pmhca-footer .footer-social a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

#pmhca-footer .footer-social a:hover {
  background-color: rgba(255,255,255,0.12);
}

/* Youth MOVE text */
#pmhca-footer .footer-small {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 360px;
}

#pmhca-footer .footer-link {
  margin-top: 0.6rem;
  font-weight: 600;
}

/* ===========================
   MIDDLE COLUMN
   =========================== */

#pmhca-footer .footer-email {
  margin-bottom: 0.8rem;
  font-weight: 600;
}

#pmhca-footer .footer-label {
  font-weight: 600;
  margin-top: 0.8rem;
}

/* ===========================
   RIGHT COLUMN (988 + mailing)
   =========================== */

#pmhca-footer .footer-988-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

#pmhca-footer .footer-988-sub {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

#pmhca-footer .footer-links {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

#pmhca-footer .footer-copy {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  /* Stack columns but keep order: left, middle, right */
  #pmhca-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #pmhca-footer .footer-small {
    max-width: none;
  }
}

@media (max-width: 600px) {
  #pmhca-footer {
    padding: 32px 16px 24px;
  }

  #pmhca-footer .footer-logo-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #pmhca-footer .footer-social {
    justify-content: flex-start;
  }
}