/* ==========================================================================
   EASYNAUKRI4U: SIX PILLARS HORIZONTAL TIMELINE EXPERIENCE
   - Pinned scroll sequence powered by GSAP + ScrollTrigger
   - Progressive 6-step timeline with glowing lime line & pulsating nodes
   - Dominant centerpiece information card with subtle 3D depth & spring ease
   - Staggered child element entrances (icon, badge, title, desc, citation)
   - Interactive desktop cursor-following radial glow backdrop
   - Mobile-adaptive vertical stepper layout (zero horizontal overflow)
   ========================================================================== */

:root {
  --pt-lime: #caf34c;
  --pt-lime-glow: rgba(202, 243, 76, 0.45);
  --pt-lime-soft: rgba(202, 243, 76, 0.15);
  --pt-ink: #191c18;
  --pt-muted: #596153;
  --pt-line-gray: #e2e8f0;
  --pt-line-dark: #cbd5e1;
  --pt-card-bg: #ffffff;
}

/* --------------------------------------------------------------------------
   1. Section & Pinned Wrapper Structure (Compact Proportions)
   -------------------------------------------------------------------------- */
.pillars-timeline-section {
  position: relative;
  overflow: visible;
  padding: 44px 0 54px !important;
  background: var(--bg, #fafbf6);
}

.pillars-timeline-section .section-head {
  margin-bottom: 22px !important;
}

.pillars-timeline-section .section-head__eyebrow {
  font-size: 10px !important;
  padding: 4px 10px !important;
  margin-bottom: 8px !important;
}

.pillars-timeline-section .section-head__title {
  font-size: clamp(30px, 3.6vw, 44px) !important;
  line-height: 1.05 !important;
  margin-bottom: 6px !important;
}

.pillars-timeline-section .section-head__lead {
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  max-width: 660px !important;
  margin-inline: auto !important;
}

.pillars-timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 32px 22px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 35%), var(--pt-lime-soft) 0%, rgba(255, 255, 255, 0.96) 45%, #ffffff 100%);
  border: 2px solid var(--pt-ink);
  border-radius: 22px;
  box-shadow: 6px 7px 0 var(--pt-ink), 0 16px 36px -10px rgba(25, 28, 24, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  user-select: none;
}

/* Ambient Radial Glow Canvas (Tracks Mouse on Desktop) */
.pillars-timeline__glow {
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 35%), rgba(202, 243, 76, 0.22), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.pillars-timeline-wrapper:hover .pillars-timeline__glow {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   2. Horizontal 6-Step Timeline Track & Nodes
   -------------------------------------------------------------------------- */
.pillars-timeline__nav {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 780px;
  margin: 0 auto 20px;
  padding: 4px 10px 8px;
}

.pillars-timeline__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Inactive Gray Background Line */
.pillars-timeline__line-bg {
  position: absolute;
  top: 17px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--pt-line-gray);
  border-radius: 3px;
  z-index: 1;
}

/* Progressive Lime-Green Filled Line */
.pillars-timeline__line-progress {
  position: absolute;
  top: 17px;
  left: 20px;
  width: 0%;
  max-width: calc(100% - 40px);
  height: 3px;
  background: linear-gradient(90deg, #159b70 0%, #84cc16 50%, var(--pt-lime) 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--pt-lime-glow);
  z-index: 2;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nodes Wrapper */
.pillars-timeline__nodes {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Individual Timeline Node Button */
.pillars-timeline__node {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  position: relative;
}

.pillars-timeline__node:focus-visible {
  outline: 2px solid var(--pt-ink);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Circular Node Dot */
.pillars-timeline__node-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--pt-line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Circular Inner Number Display */
.pillars-timeline__node-num {
  font-family: 'Space Grotesk', var(--font-sans), sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pt-muted);
  transition: color 0.3s ease;
}

/* Step Category Sub-label underneath */
.pillars-timeline__node-label {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pt-muted);
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Soft Lime Pulse Aura Ring on Active State */
.pillars-timeline__node-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Completed & Active Node States */
.pillars-timeline__node.is-completed .pillars-timeline__node-dot {
  background: var(--pt-lime);
  border-color: var(--pt-ink);
  color: var(--pt-ink);
}

.pillars-timeline__node.is-completed .pillars-timeline__node-num {
  color: var(--pt-ink);
}

.pillars-timeline__node.is-active {
  transform: translateY(-2px);
}

.pillars-timeline__node.is-active .pillars-timeline__node-dot {
  width: 38px;
  height: 38px;
  background: var(--pt-lime);
  border: 2px solid var(--pt-ink);
  box-shadow: 0 0 0 4px var(--pt-lime-glow), 2px 3px 0 var(--pt-ink);
  transform: scale(1.06);
}

.pillars-timeline__node.is-active .pillars-timeline__node-num {
  color: var(--pt-ink);
  font-weight: 800;
  font-size: 0.82rem;
}

.pillars-timeline__node.is-active .pillars-timeline__node-label {
  color: var(--pt-ink);
  font-weight: 800;
  transform: translateY(1px);
}

.pillars-timeline__node.is-active .pillars-timeline__node-pulse {
  opacity: 1;
  animation: pillarNodeGlow 2.2s ease-in-out infinite;
}

@keyframes pillarNodeGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(202, 243, 76, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(202, 243, 76, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(202, 243, 76, 0);
  }
}

/* --------------------------------------------------------------------------
   3. Single Visually Dominant Information Card Stage
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   3. Single Visually Dominant Information Card Stage
   -------------------------------------------------------------------------- */
.pillars-timeline__stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 650px;
  min-height: 240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

/* Each Information Card (Stacked in same grid cell) */
.pillars-timeline__card {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--pt-ink);
  border-radius: 18px;
  padding: 22px 28px 20px;
  box-shadow: 5px 6px 0 var(--pt-ink),
              0 18px 36px -10px rgba(25, 28, 24, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.35s;
  will-change: transform, opacity;
  overflow: hidden;
}

/* Active State: Elevated, Crisp, Visible */
.pillars-timeline__card.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  z-index: 10;
}

/* Subtle Top Accent Border Glow */
.pillars-timeline__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #159b70, var(--pt-lime), #84cc16);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Big Faint Step Watermark */
.pillars-timeline__card .academic-watermark {
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: 'Space Grotesk', var(--font-sans), sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(25, 28, 24, 0.05);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease, transform 0.4s ease;
}

.pillars-timeline__card.is-active .academic-watermark {
  color: rgba(202, 243, 76, 0.4);
  transform: scale(1.05);
}

/* Card Header (Icon + Badge) */
.pillars-timeline__card .pillar-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pillars-timeline__card .pillar-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f4f7eb;
  border: 1.5px solid var(--pt-ink);
  color: var(--pt-ink);
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 var(--pt-ink);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillars-timeline__card .pillar-card__icon svg {
  width: 20px;
  height: 20px;
}

.pillars-timeline__card.is-active .pillar-card__icon {
  background: var(--pt-lime);
  transform: rotate(-3deg) scale(1.04);
}

.pillars-timeline__card .academic-field-pill {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f1f5e6;
  color: var(--pt-ink);
  border: 1.5px solid var(--pt-ink);
  border-radius: 7px;
  padding: 3px 10px;
  box-shadow: 1.5px 1.5px 0 var(--pt-ink);
}

/* Card Title */
.pillars-timeline__card .pillar-card__title {
  font-family: 'Barlow Condensed', Impact, sans-serif !important;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--pt-ink);
  line-height: 1.15;
  margin: 0 0 8px;
  text-transform: uppercase;
}

/* Card Description */
.pillars-timeline__card .pillar-card__desc {
  font-family: var(--font-sans), sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--pt-muted);
  margin: 0 0 16px;
}

/* Card Footer Citation */
.pillars-timeline__card .academic-citation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fafbf6;
  border: 1px solid var(--pt-line-gray);
  border-radius: 9px;
  font-family: var(--font-sans), sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pt-ink);
  width: fit-content;
}

.pillars-timeline__card .academic-bullet {
  color: #65a30d;
  font-size: 0.9rem;
}

/* Card Controls (Prev / Next Quick Buttons for Clickers) */
.pillars-timeline__footer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.pillars-timeline__nav-btn {
  appearance: none;
  border: 1.5px solid var(--pt-ink);
  background: #ffffff;
  color: var(--pt-ink);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0 var(--pt-ink);
  transition: all 0.2s ease;
}

.pillars-timeline__nav-btn:hover:not(:disabled) {
  background: var(--pt-lime);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--pt-ink);
}

.pillars-timeline__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.pillars-timeline__step-indicator {
  font-family: 'Space Grotesk', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pt-muted);
}

.pillars-timeline__step-indicator b {
  color: var(--pt-ink);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   5. Tablet & Mobile Responsive Behaviors
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .pillars-timeline-wrapper {
    padding: 32px 24px 36px;
    border-radius: 22px;
  }

  .pillars-timeline__node-label {
    display: none; /* Hide text labels on narrow tablets to keep horizontal spacing intact */
  }

  .pillars-timeline__card {
    padding: 30px 28px 26px;
  }
}

/* Mobile Vertical Stepper Layout (<= 768px): Zero Horizontal Overflow */
@media (max-width: 768px) {
  .pillars-timeline-section {
    padding: 48px 0 !important;
  }

  .pillars-timeline-wrapper {
    padding: 24px 16px 26px;
    border-radius: 20px;
    box-shadow: 5px 6px 0 var(--pt-ink);
  }

  .pillars-timeline__nav {
    margin-bottom: 24px;
    padding: 8px 6px 16px;
  }

  /* Vertical 6-Step Spine */
  .pillars-timeline__track {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
  }

  .pillars-timeline__line-bg {
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: auto;
    width: 3px;
    height: calc(100% - 40px);
    border-radius: 3px;
  }

  .pillars-timeline__line-progress {
    top: 20px;
    left: 20px;
    right: auto;
    width: 3px;
    height: 0%;
    max-width: none;
    max-height: calc(100% - 40px);
    border-radius: 3px;
    transition: height 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pillars-timeline__nodes {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .pillars-timeline__node {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    padding: 6px 12px;
    border-radius: 14px;
    background: transparent;
    text-align: left;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .pillars-timeline__node.is-active {
    background: rgba(202, 243, 76, 0.22);
    transform: translateX(4px);
  }

  .pillars-timeline__node-dot {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-width: 2px;
    flex-shrink: 0;
  }

  .pillars-timeline__node-num {
    font-size: 0.8rem;
  }

  .pillars-timeline__node.is-active .pillars-timeline__node-dot {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-width: 2px;
    box-shadow: 0 0 0 4px var(--pt-lime-glow), 2px 3px 0 var(--pt-ink);
  }

  .pillars-timeline__node.is-active .pillars-timeline__node-num {
    font-size: 0.85rem;
  }

  .pillars-timeline__node-label {
    display: inline-block !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--pt-muted);
  }

  .pillars-timeline__node.is-active .pillars-timeline__node-label {
    color: var(--pt-ink);
    font-weight: 800;
  }

  /* Card Adaptations for Mobile */
  .pillars-timeline__stage {
    min-height: auto;
  }

  .pillars-timeline__card {
    padding: 24px 20px 22px;
    border-radius: 16px;
    box-shadow: 4px 5px 0 var(--pt-ink);
  }

  .pillars-timeline__card .academic-watermark {
    font-size: 3.4rem;
    top: 10px;
    right: 16px;
  }

  .pillars-timeline__card .pillar-card__icon {
    width: 44px;
    height: 44px;
  }

  .pillars-timeline__card .pillar-card__title {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .pillars-timeline__card .pillar-card__desc {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .pillars-timeline__card .academic-citation {
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .pillars-timeline__footer-controls {
    margin-top: 20px;
    padding-top: 16px;
  }
}

/* Avoid allocating compositing layers for every inactive pillar. */
.pillars-timeline__card { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .pillars-timeline__card { transition: none; }
  .pillars-timeline__node.is-active .pillars-timeline__node-dot { animation: none; }
}
