/*!
 * About page (About Venture Up) styling
 */

:root {
  --vu-sun-gold: #ffd900;
  --vu-night: #050713;
  --vu-space: #0f1834;
  --vu-ink: #1f2c57;
  --vu-slate: #141d3b;
  --vu-fog: #f4f6ff;
  --vu-cloud: #fffef7;
  --vu-paper: #ffffff;
  --vu-muted: #8d93b8;
  --vu-highlight: #fff173;
  --vu-pill: #fff8c3;
  --vu-pill-hover: #ffe347;
  --vu-shadow-strong: 0 40px 80px rgba(5, 7, 19, 0.45);
  --vu-shadow-soft: 0 20px 40px rgba(5, 7, 19, 0.18);
  --vu-card-shadow: 0 30px 60px rgba(5, 7, 19, 0.18);
  --vu-border-soft: rgba(255, 255, 255, 0.18);
  --vu-about-tab-gap: 1rem;
  --vu-about-tab-pad: .45rem 1.15rem;
  --vu-about-band-pad: clamp(6px, .2vw, 12px);
  --vu-about-band-width: min(720px, 94%);
  --vu-about-glass: rgba(255, 255, 255, 0.82);
  --vu-about-glass-soft: rgba(255, 255, 255, 0.72);
  --vu-about-glass-shadow: 0 20px 45px rgba(5, 7, 19, 0.12);
  --vu-about-glass-border: 1px solid rgba(255, 255, 255, 0.45);
  --vu-about-layer-offset: clamp(10px, 1.5vw, 18px);
  --vu-section-radius: 18px;
  --vu-section-pad: clamp(20px, 3vw, 36px);
  --vu-section-bg: var(--vu-paper);
  --vu-section-border: 1px solid var(--vu-border-soft);
  --vu-section-shadow: var(--vu-shadow-soft);
  --vu-section-layer-bg: var(--vu-about-glass-soft);
  --vu-section-layer-border: var(--vu-about-glass-border);
  --vu-section-layer-shadow: var(--vu-about-glass-shadow);
  --vu-section-layer-offset: var(--vu-about-layer-offset);
  --vu-section-layer-radius: 22px;
  --vu-section-gap: clamp(24px, 3vw, 36px);
  --vu-section-scroll-margin: calc(var(--hdr-h, 7rem) + 80px);
}

.vu-about-layer {
  position: relative;
  padding: clamp(4px, 2vw, 12px) 0 clamp(32px, 5vw, 60px);
  display: grid;
  width: 100%;
  container-type: inline-size;
  container-name: page;
}

.vu-about-layer::before {
  content: "";
  position: absolute;
  inset: clamp(-12px, 1vw, 6px) clamp(10px, 4vw, 18px) clamp(10px, 2vw, 20px);
  width: min(88%, 1050px);
  margin: 10px auto;
  border-radius: 44px;
  background: var(--vu-cloud);
  box-shadow: var(--vu-shadow-strong);
  z-index: 0;
}

@media (max-width: 768px) {
  .vu-about-layer::before {
    content: none;
  }
}

.vu-about {
  /*  background: var(--vu-paper);*/
  border-radius: 30px;
  padding: clamp(0px, 0vw, 0px);
  position: relative;
  z-index: 1;
}

/*=============== tab location==============*/
.vu-about-tabs {
  margin: clamp(5px, 3vw, 10px) auto clamp(5px, 3vw, 15px);
  padding: 0;
  position: sticky;
  top: calc(var(--hdr-h, 7rem) + 12px);
  z-index: 25;
  background: rgba(5, 7, 19, 0.35);
  border-radius: 32px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  max-width: var(--vu-about-band-width);
}

/*=============== tab list==============*/
.vu-about-tabs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--vu-about-tab-gap);
  margin: 0;
  padding: 0;
  justify-content: center;
}

/*=============== tab size and stuff==============*/
.vu-about-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  padding: var(--vu-about-tab-pad);
  border-radius: 999px;
  background: var(--vu-pill);
  border: 1px solid transparent;
  color: var(--vu-slate);
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border 200ms ease, box-shadow 200ms ease;
}

.vu-about-tab:hover,
.vu-about-tab:focus-visible {
  background: var(--vu-pill-hover);
  color: var(--vu-night);
}

.vu-about-tab.is-active {
  background: var(--vu-slate);
  color: var(--vu-sun-gold);
  border-color: var(--vu-sun-gold);
  box-shadow: 0 12px 25px rgba(4, 25, 78, 0.35);
}

.vu-about-section.is-active {
  border-color: rgba(4, 25, 78, 0.35);
  box-shadow: 0 18px 35px rgba(4, 25, 78, 0.18);
}

.vu-about-section-head h2 {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  border-bottom: 4px solid var(--vu-sun-gold);
  display: inline-block;
  padding-bottom: 6px;
  overflow-wrap: anywhere;
}

.vu-about-section-body {
  color: var(--vu-ink);
  line-height: 1.7;
}

.vu-about-section-body strong {
  color: var(--vu-sun-gold);
}

.vu-about-section-body a {
  color: var(--vu-slate);
  font-weight: 600;
  text-decoration-color: rgba(255, 217, 0, 0.55);
}

.vu-about-section-body p {
  margin-bottom: 1.2em;
}

.vu-about-training-topics {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.vu-about-training-topics li {
  background: var(--vu-fog);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(4, 25, 78, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.training-topic-name {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vu-slate);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.training-topic-desc {
  color: var(--vu-ink);
  font-size: 0.95em;
}

body.page-id-20 #title-header {
  text-align: center;
  position: relative;
}

body.page-id-20 #title-header h1 {
  --title-chip-bg: var(--grad-gold-soft, linear-gradient(135deg, var(--vu-sun-gold), #fff9d1));
  --title-chip-color: var(--vu-night);
  --title-chip-radius: 999px;
  --title-chip-pad-inline: clamp(2.8rem, 9vw, 6rem);
  --title-chip-pad-block: clamp(.9rem, 1.4vw, 1.2rem);
  --title-chip-letter: 0.18em;
  --title-chip-size: clamp(1.55rem, 2.6vw, 2.1rem);
  --title-chip-shadow: 0 16px 30px rgba(0, 0, 0, .18);
  --title-chip-border: 1px solid rgba(255, 255, 255, .35);
  margin: 0;
}

body.page-id-20 #title-header::before,
body.page-id-20 #title-header::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--vu-about-glass-shadow);
  pointer-events: none;
  z-index: 0;
}

body.page-id-20 #title-header::before {
  inset: calc(var(--title-chip-pad-block, 1rem) * -1.1) clamp(8px, 3vw, 32px) auto clamp(8px, 3vw, 32px);
  max-width: min(92%, 1100px);
  background: var(--vu-about-glass);
}

body.page-id-20 #title-header::after {
  inset: calc(var(--title-chip-pad-block, 1rem) * -1.8) clamp(0px, 5vw, 48px) auto clamp(0px, 5vw, 48px);
  max-width: min(100%, 1200px);
  background: var(--vu-about-glass-soft);
  opacity: .7;
}

body.page-id-20 #title-header h1 {
  position: relative;
  z-index: 1;
}

@container page (max-width: 768px) {
  .vu-about {
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }

  .vu-about-layer::before {
    width: 95%;
    border-radius: 28px;
  }

  .vu-about-section {
    padding: 1.25rem;
  }

  .vu-about-tab {
    width: 100%;
    justify-content: flex-start;
  }

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

  .vu-about-tabs {
    max-width: 100%;
  }
}

/* Fallback for browsers without container queries */
@media (max-width: 768px) {
  @supports not (container-type: inline-size) {
    .vu-about {
      border-radius: 18px;
      padding: 20px;
    }

    .vu-about-section {
      padding: 1.25rem;
    }
  }
}

/* =========================================
   Our Team Grid (Embedded Leadership)
   ========================================= */

/* Grid Layout */
.vu-about-team .vu-leadership__team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

@container page (max-width: 1200px) {
  .vu-about-team .vu-leadership__team {
    grid-template-columns: repeat(3, 1fr);
  }
}

@container page (max-width: 900px) {
  .vu-about-team .vu-leadership__team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container page (max-width: 600px) {
  .vu-about-team .vu-leadership__team {
    grid-template-columns: 1fr;
  }
}

/* Fallback Media Queries */
@media (max-width: 1200px) {
  @supports not (container-type: inline-size) {
    .vu-about-team .vu-leadership__team {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

@media (max-width: 900px) {
  @supports not (container-type: inline-size) {
    .vu-about-team .vu-leadership__team {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}

@media (max-width: 600px) {
  @supports not (container-type: inline-size) {
    .vu-about-team .vu-leadership__team {
      grid-template-columns: 1fr;
    }
  }
}

/* Card Styling Override for Grid Context */
.vu-about-team .leader-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.65);
  /* Light/Airy Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(5, 7, 19, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  max-width: 100%;
}

.vu-about-team .leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(5, 7, 19, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.vu-about-team .leader-card.is-open {
  background: #fff;
  border-color: var(--vu-sun-gold);
  box-shadow: 0 25px 50px rgba(5, 7, 19, 0.15);
  z-index: 2;
  /* Pop above neighbors */
}

/* Brand Accent: Gold Triangle in top-left */
.vu-about-team .leader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--vu-sun-gold), transparent 50%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.8;
  pointer-events: none;
}

/* Toggle Button Layout - Vertical Stack */
.vu-about-team .leader-card__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  gap: 1rem;
  width: 100%;
  height: 100%;
  /* Fill height so card is clickable */
}

/* Avatar - Compact Circle */
.vu-about-team .leader-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1/1;
  /* Ensure square */
}

/* Meta Text */
.vu-about-team .leader-card__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.vu-about-team .leader-card__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin: 0;
}

.vu-about-team .leader-card__meta h2 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
  color: var(--vu-night);
  overflow-wrap: anywhere;
}

.vu-about-team .leader-card__role {
  font-size: 0.85rem;
  color: var(--vu-muted);
  margin: 0;
  overflow-wrap: anywhere;
}

/* Chevron - Move to bottom */
.vu-about-team .leader-card__chevron {
  margin-top: auto;
  /* Push to bottom if flex container has height */
  width: 32px;
  height: 32px;
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.vu-about-team .leader-card:hover .leader-card__chevron {
  border-color: var(--vu-sun-gold);
  background: #fff;
}

.vu-about-team .leader-card.is-open .leader-card__chevron {
  background: var(--vu-sun-gold);
  border-color: var(--vu-sun-gold);
  color: var(--vu-night);
}

.vu-about-team .leader-card.is-open .leader-card__chevron::before {
  border-color: var(--vu-night);
  /* Dark arrow on gold */
}

/* Expanded Panel */
.vu-about-team .leader-card__panel {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(244, 246, 255, 0.4);
  /* Very subtle fill */
  text-align: left;
  /* Reset text alignment for bio */
  padding: 1.25rem;
  font-size: 0.95rem;
}