/* ==========================================================================
   ACHIEVEMENTS & EXPERIENCES — 3D DEPTH SHOWCASE
   Consistent with the "Depth" 3D design system:
   Sage, sand, leaf, emerald and amber palette; real 3D perspective,
   extruded cards, 3D buttons, simultaneous 3-photo layout and swap.
   ========================================================================== */

/* --- SECTION CONTAINER --- */
.achievements-section {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  overflow: visible;
}

.achievements-container {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
  position: relative;
}

/* --- SECTION HEADER --- */
.achievements-header {
  margin-bottom: 2.25rem;
}

.achievements-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.achievements-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(233, 166, 63, 0.7);
}

.achievements-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.achievements-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

/* --- 3D EVENT TABS NAVIGATION --- */
.ach-event-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ach-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 700 0.95rem var(--body);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--sand), 0 8px 16px rgb(var(--shadow) / 0.1);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.ach-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--sand), 0 12px 20px rgb(var(--shadow) / 0.15);
}

.ach-tab-btn.active {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--amber-deep), 0 10px 20px rgb(var(--shadow) / 0.2);
  transform: translateY(1px);
}

.ach-tab-btn .tab-badge-count {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink);
}

/* --- MASTER 3D SHOWCASE STAGE --- */
.ach-showcase-stage {
  position: relative;
  perspective: 1200px;
  margin: 0 auto;
}

/* Ambient Glow */
.ach-ambient-glow {
  position: absolute;
  top: -20px;
  left: 5%;
  right: 5%;
  bottom: -20px;
  border-radius: 30px;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.4;
  transition: background 0.6s ease;
}

/* Main 3D Showcase Card */
.ach-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--sand);
  box-shadow: 0 8px 0 var(--leaf), 0 25px 45px rgb(var(--shadow) / 0.18);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.ach-media-grid {
  position: relative;
  width: 100%;
  display: block;
  z-index: 1;
}

.ach-card:hover {
  box-shadow: 0 10px 0 var(--amber), 0 35px 55px rgb(var(--shadow) / 0.22);
}

/* --- TRINITY PHOTO SHOWCASE (1 HERO + 2 COMPANIONS) --- */
.ach-media-trinity {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 0;
  height: 520px;
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Primary Spotlight Frame */
.ach-primary-frame {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 0 var(--sand), 0 16px 28px rgb(var(--shadow) / 0.2);
}

.ach-primary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.ach-primary-frame:hover .ach-primary-img {
  transform: scale(1.03);
}

/* Frame Overlays */
.ach-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 32, 25, 0.92) 0%,
    rgba(20, 32, 25, 0.35) 45%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #FFFFFF;
  pointer-events: none;
}

.ach-frame-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ach-frame-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(38, 53, 45, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.ach-frame-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ach-frame-caption {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.ach-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Right Twin Companion Stack */
.ach-twin-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.ach-companion-card {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--sand), 0 10px 20px rgb(var(--shadow) / 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ach-companion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--amber), 0 16px 26px rgb(var(--shadow) / 0.22);
}

.ach-companion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.ach-companion-card:hover .ach-companion-img {
  transform: scale(1.05);
}

.ach-companion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 32, 25, 0.9) 0%,
    rgba(20, 32, 25, 0.25) 50%,
    transparent 80%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  color: #FFFFFF;
  pointer-events: none;
}

.ach-companion-caption {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
  max-width: 70%;
}

.ach-swap-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 0 var(--amber-deep);
}

/* --- SOLO CARD (FOR 1-IMAGE / CERTIFICATE EVENTS) --- */
.ach-media-solo {
  padding: 1.5rem 1.5rem 0;
  height: 480px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ach-solo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #19261f;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--sand), 0 16px 28px rgb(var(--shadow) / 0.18);
}

.ach-solo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #19261f;
  transition: transform 0.4s ease;
}

.ach-solo-frame:hover .ach-solo-img {
  transform: scale(1.02);
}

/* --- 3D CONTENT & NARRATIVE PANEL --- */
.ach-content-panel {
  padding: 2rem 2.25rem 2.25rem;
  border-top: 2px solid var(--sand);
  background: var(--surface);
  position: relative;
  z-index: 2;
  border-radius: 0 0 24px 24px;
  flex: 1 0 auto;
}

.ach-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ach-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ach-date-stamp {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.ach-event-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.ach-event-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.ach-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
}

.ach-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--display);
  font-size: 0.82rem;
}

.ach-badge-tag .b-label {
  color: var(--muted);
}

.ach-badge-tag .b-val {
  font-weight: 700;
  color: var(--ink);
}

.ach-badge-tag.highlight {
  background: #fbf2df;
  border: 1px solid var(--amber);
}

.ach-badge-tag.highlight .b-val {
  color: var(--amber-deep);
}

.ach-narrative-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 85ch;
  margin-bottom: 1.75rem;
}

/* Actions Row with 3D Extrusion */
.ach-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ach-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  transition: transform 0.12s, box-shadow 0.12s;
}

.ach-btn-action.primary {
  background: var(--green);
  color: #FFFFFF;
  box-shadow: 0 6px 0 var(--green-deep), 0 14px 22px rgb(var(--shadow) / 0.25);
}

.ach-btn-action.primary:hover {
  transform: translateY(-2px);
}

.ach-btn-action.primary:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--green-deep);
}

.ach-btn-action.secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--sand), 0 14px 22px rgb(var(--shadow) / 0.12);
}

.ach-btn-action.secondary:hover {
  transform: translateY(-2px);
}

.ach-btn-action.secondary:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--sand);
}

/* --- 3D NAVIGATION ARROW CONTROLS --- */
.ach-arrow-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 0;
  box-shadow: 0 6px 0 var(--leaf), 0 14px 24px rgb(var(--shadow) / 0.18);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ach-arrow-btn:hover {
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 8px 0 var(--leaf), 0 18px 30px rgb(var(--shadow) / 0.24);
}

.ach-arrow-btn:active {
  transform: translateY(-50%) translateY(4px);
  box-shadow: 0 1px 0 var(--leaf);
}

.ach-arrow-btn.prev {
  left: -22px;
}

.ach-arrow-btn.next {
  right: -22px;
}

/* --- 3D FOOTER STATUS & PROGRESS --- */
.ach-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding: 0 0.5rem;
}

.ach-counter-display {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--muted);
}

.ach-counter-display .curr-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
}

.ach-progress-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ach-dot-item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sand);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 0 rgb(var(--shadow) / 0.15);
}

.ach-dot-item.active {
  width: 30px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 3px 0 var(--green-deep);
}

.ach-pause-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 0 var(--sand), 0 8px 14px rgb(var(--shadow) / 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ach-pause-btn:hover {
  transform: translateY(-2px);
}

.ach-pause-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sand);
}

/* --- LIGHTBOX MODAL --- */
.ach-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(38, 53, 45, 0.92);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ach-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.ach-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
}

.ach-lb-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.ach-lb-close-btn {
  background: var(--amber);
  border: 0;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 var(--amber-deep);
  transition: transform 0.15s;
}

.ach-lb-close-btn:hover {
  transform: scale(1.08);
}

.ach-lb-close-btn:active {
  transform: translateY(3px);
  box-shadow: none;
}

.ach-lb-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.ach-lb-image {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ach-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s;
}

.ach-lb-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.ach-lb-nav.prev { left: 1rem; }
.ach-lb-nav.next { right: 1rem; }

.ach-lb-footer {
  text-align: center;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.ach-lb-counter {
  font-family: var(--display);
  font-size: 0.82rem;
  color: var(--sand);
  margin-top: 0.35rem;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .ach-media-trinity {
    height: 440px;
    gap: 1rem;
  }
  .ach-arrow-btn.prev { left: -10px; }
  .ach-arrow-btn.next { right: -10px; }
}

@media (max-width: 820px) {
  .ach-media-trinity {
    grid-template-columns: 1fr;
    height: auto;
  }
  .ach-primary-frame {
    height: 360px;
  }
  .ach-twin-stack {
    flex-direction: row;
    height: 180px;
  }
  .ach-companion-card {
    height: 100%;
  }
  .ach-companion-caption {
    font-size: 0.8rem;
  }
  .ach-arrow-btn {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
}

@media (max-width: 580px) {
  .achievements-section {
    padding: 3rem 0;
  }
  .ach-content-panel {
    padding: 1.5rem;
  }
  .ach-primary-frame {
    height: 280px;
  }
  .ach-twin-stack {
    flex-direction: column;
    height: auto;
    gap: 0.85rem;
  }
  .ach-companion-card {
    height: 140px;
  }
  .ach-media-solo {
    height: 300px;
    padding: 1rem 1rem 0;
  }
  .ach-arrow-btn.prev { left: 6px; }
  .ach-arrow-btn.next { right: 6px; }
}
