/* ================================================================
   LXMUN · presidium.css
   Page-specific styles for the Presidium (主席团) subpage.
   Theme: Blue / White — consistent with homepage
   Requires: global.css, components.css
   ================================================================ */


/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.pd-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--navbar-h);
  overflow: hidden;
  background:
    url('#') center / cover no-repeat;
  background-color: var(--color-primary-dark);
}

/* Airbus-style gradient: dark bottom-left → transparent top-right */
.pd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(0, 20, 70, 0.82) 0%,
    rgba(0, 31, 92, 0.60) 45%,
    rgba(0, 0, 0, 0.05)  100%
  );
  pointer-events: none;
}

/* Shield SVG background layer */
.pd-hero__geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.pd-hero__geo svg { width: 100%; height: 100%; }

.pd-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--container-pad);
  max-width: 700px;
  text-align: center;      
  margin-inline: auto;     
}

.pd-hero__slogan {
  font-family: var(--font-latin);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-lg);
}

.pd-hero__slogan strong {
  font-weight: 700;
  display: block;
}

.pd-hero__label {
  font-family: var(--font-latin);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-xs);
}

.pd-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.pd-hero__subtitle {
  font-family: var(--font-latin);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Blue accent bar — Airbus style */
.pd-hero__accent {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-link);
  margin-inline: auto;   
  margin-top: var(--space-md);
}


/* ════════════════════════════════════════════
   SECTION LABEL — shared utility (Airbus style)
   ════════════════════════════════════════════ */
.pd-label {
  font-family: var(--font-latin);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.pd-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-right: 10px;
}

.pd-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}


/* ════════════════════════════════════════════
   FUNCTIONS CAROUSEL — "Our purpose in action"
   ════════════════════════════════════════════ */
.pd-functions {
  background: #fff;
  border-top: 1px solid #e6e6e6;
}

.pd-functions__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.pd-functions__controls {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.pd-ctrl {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-primary);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-base), border-color var(--transition-base);
  color: var(--color-primary);
}

.pd-ctrl:hover {
  background: var(--color-primary);
  color: #fff;
}

.pd-ctrl svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Viewport + sliding track */
.pd-functions__viewport {
  overflow: hidden;
}

.pd-functions__track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pd-func-slide {
  flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pd-func-slide__img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-muted);
}

/* Placeholder bg tones */
.pd-func-slide__img--1 { background-color: #C8D8EE; }
.pd-func-slide__img--2 { background-color: #B8CCE4; }
.pd-func-slide__img--3 { background-color: #D0DCEE; }
.pd-func-slide__img--4 { background-color: #B0C4DC; }
.pd-func-slide__img--5 { background-color: #C0D0E8; }

.pd-func-slide__tag {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  background: rgba(11, 92, 171, 0.08);
  padding: 3px 8px;
  border-radius: 2px;
  align-self: flex-start;
}

.pd-func-slide__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}

.pd-func-slide__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Dot indicators */
.pd-functions__dots {
  display: flex;
  gap: 6px;
  margin-top: var(--space-md);
  justify-content: center;
}

.pd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D0D8E8;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-base), transform var(--transition-base);
}

.pd-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}


/* ════════════════════════════════════════════
   YEAR REVIEW — "Discover what we achieve"
   Expandable image panels with + button
   ════════════════════════════════════════════ */
.pd-review {
  background: var(--color-primary-dark);
  padding-block: 0;
}

.pd-review__head {
  padding: var(--space-xl) var(--container-pad) var(--space-lg);
  max-width: var(--container-max);
  margin-inline: auto;
}

.pd-review__head .pd-label {
  color: rgba(255,255,255,0.5);
}

.pd-review__head .pd-label::before {
  background: var(--color-link);
}

.pd-review__head .pd-section-title {
  color: #fff;
}

/* Panels container — full width */
.pd-review__panels {
  display: flex;
  height: 480px;
  overflow: hidden;
}

.pd-review__panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-review__panel:hover {
  flex: 2.2;
}

.pd-review__panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s ease;
  filter: brightness(0.75);
}

.pd-review__panel:hover .pd-review__panel-bg {
  transform: scale(1.06);
  filter: brightness(0.92);
}

/* Placeholder bg colors */
.pd-review__panel-bg--1 { background-color: #1E3A6A; }
.pd-review__panel-bg--2 { background-color: #162E58; }
.pd-review__panel-bg--3 { background-color: #1A3462; }
.pd-review__panel-bg--4 { background-color: #12274E; }
.pd-review__panel-bg--5 { background-color: #1C3260; }

/* Bottom gradient */
.pd-review__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,15,50,0.75) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Panel label — always visible at bottom */
.pd-review__panel-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show title only when not expanded */
.pd-review__panel:not(:hover) .pd-review__panel-label {
  opacity: 0.8;
  writing-mode: vertical-rl;
  /* transform: rotate(180deg); */
}

/* Plus button */
.pd-review__plus {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background var(--transition-base), transform var(--transition-base);
}

.pd-review__plus:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.1);
}

.pd-review__plus.is-open {
  transform: rotate(45deg);
  background: rgba(255,255,255,0.25);
}

/* Info card — appears on plus click */
.pd-review__info {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg) var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pd-review__info.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pd-review__info-year {
  font-family: var(--font-latin);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.pd-review__info-title {
  font-size: var(--fs-md);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: var(--space-xs);
}

.pd-review__info-desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
}


/* ════════════════════════════════════════════
   STATS — "Launch your career"
   ════════════════════════════════════════════ */
.pd-stats {
  background: var(--color-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pd-stats__geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.pd-stats__geo svg { width: 100%; height: 100%; }

.pd-stats__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.pd-stats__text {
  padding: var(--space-2xl) var(--container-pad) var(--space-2xl) 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.pd-stats__text .pd-label {
  color: rgba(255,255,255,0.5);
}

.pd-stats__text .pd-label::before {
  background: var(--color-link);
}

.pd-stats__text .pd-section-title {
  color: #fff;
}

.pd-stats__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  max-width: 420px;
}

.pd-stats__grid {
  padding: var(--space-2xl) 0 var(--space-2xl) var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  align-content: center;
}

.pd-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-stat__num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pd-stat__num sup {
  font-size: 0.45em;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}

.pd-stat__label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-latin);
}

.pd-stat__divider {
  width: 24px;
  height: 2px;
  background: var(--color-link);
  margin-bottom: 2px;
}


/* ════════════════════════════════════════════
   MEMBERS BELT — left-to-right infinite scroll
   ════════════════════════════════════════════ */
.pd-members {
  background: var(--color-bg-muted);
  overflow: hidden;
  position: relative;
}

/* Shield SVG background */
.pd-members__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.pd-members__bg svg { width: 100%; height: 100%; }

.pd-members__head {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-xl);
}

/* Belt wrapper — fades edges */
.pd-belt {
  position: relative;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  margin-bottom: var(--space-md);
}

/* Scrolling track — 9 originals + 9 dupes = seamless */
.pd-belt__track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: pd-belt-scroll 36s linear infinite;
  will-change: transform;
}

.pd-belt__track:hover {
  animation-play-state: paused;
}

@keyframes pd-belt-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual member card */
.pd-member-card {
  flex-shrink: 0;
  width: 200px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  cursor: default;
}

.pd-member-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
}

.pd-member-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center top;
}

/* Placeholder tones */
.pd-member-card__img--sg   { background-color: #BDD0E8; }
.pd-member-card__img--vsg  { background-color: #C8D8EE; }
.pd-member-card__img--ead  { background-color: #B8CCE4; }
.pd-member-card__img--cad  { background-color: #C0D4EC; }
.pd-member-card__img--ed   { background-color: #CADAEE; }
.pd-member-card__img--cd   { background-color: #B4C8E0; }
.pd-member-card__img--mpc  { background-color: #C4D4EA; }
.pd-member-card__img--tech { background-color: #BCCCE6; }
.pd-member-card__img--pr   { background-color: #C6D6EC; }

.pd-member-card__body {
  padding: 12px 14px 14px;
}

.pd-member-card__role {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.pd-member-card__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

/* Hover pause hint */
.pd-members__hint {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  font-family: var(--font-latin);
  padding-bottom: var(--space-xl);
}


/* ════════════════════════════════════════════
   JOIN — "Airbus Full-Year results" layout
   Left: tall portrait image, Right: text
   ════════════════════════════════════════════ */
.pd-join {
  background: #fff;
  border-top: 1px solid #e6e6e6;
}

.pd-join__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 520px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.pd-join__img {
  background-color: var(--color-bg-muted);
  background-size: cover;
  background-position: center top;
  /* Replace: background-image: url('../../media/YOUR.jpg') */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-family: var(--font-latin);
  letter-spacing: 0.1em;
}

.pd-join__text {
  padding: var(--space-2xl) var(--container-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.pd-join__text .pd-section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.pd-join__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.9;
  max-width: 480px;
}

.pd-join__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-chinese);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  align-self: flex-start;
  transition: background var(--transition-base);
}

.pd-join__btn:hover {
  background: var(--color-accent-hover);
}

.pd-join__btn__arrow {
  font-size: 1.1em;
  transition: transform var(--transition-base);
}

.pd-join__btn:hover .pd-join__btn__arrow {
  transform: translateX(4px);
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pd-func-slide {
    flex: 0 0 calc(50% - var(--space-md) / 2);
  }

  .pd-stats__inner {
    grid-template-columns: 1fr;
  }

  .pd-stats__text {
    padding: var(--space-xl) 0 var(--space-lg);
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .pd-stats__grid {
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .pd-join__inner {
    grid-template-columns: 1fr;
  }

  .pd-join__img {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .pd-hero__content {
    padding-inline: var(--space-md);
  }

  .pd-func-slide {
    flex: 0 0 calc(100% - var(--space-md));
  }

  .pd-review__panels {
    height: 320px;
  }

  .pd-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pd-member-card {
    width: 160px;
  }
}
