/* =============================================
   Our Journey — Guidance Section
============================================= */

.journey-middle-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  background: #050a0f url('../../journey/assets/background/journey-background01.webp') top center / 100% auto no-repeat;
}

.journey-middle-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background: linear-gradient(to bottom, #050a0f 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  opacity: var(--fade-opacity, 0);
}

.journey-middle-wrapper::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 400px;
  background: linear-gradient(to bottom, transparent, #050a0f);
  z-index: 3;
  pointer-events: none;
  opacity: var(--fade-opacity, 0);
}

.guidance-section {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  display: block;
}



.guidance-section > * {
  position: relative;
  z-index: 1;
}

.guidance-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 3vw 4rem;
}

/* Header */
.guidance-header {
  text-align: center;
  margin-bottom: 3rem;
}

.guidance-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #a8947a;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.guidance-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
}

/* Carousel / Card wrapper */
.guidance-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.guidance-panels-container {
  flex: 1;
  position: relative;
  min-height: 480px; /* Adjust based on content height to prevent collapsing */
  overflow: hidden;
  margin: 0 -3rem; /* Widen container to push feather mask away from active card */
  /* Feathering mask on left/right edges for smooth sliding effect */
  mask-image: linear-gradient(to right, transparent, black 3rem, black calc(100% - 3rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3rem, black calc(100% - 3rem), transparent);
}

/* Card */
.guidance-panel {
  position: absolute;
  top: 0;
  left: 3rem; /* Offset back into the correct visual position */
  width: calc(100% - 6rem);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, visibility 0.6s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.guidance-panel.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 1;
}

.guidance-panel.slide-out {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
}

.guidance-image-col {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.guidance-image-col::before {
  content: "";
  display: block;
  padding-top: 100%; /* Square aspect ratio */
}

.guidance-image-col img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Column */
.guidance-text-col {
  flex: 1;
  padding-right: 2rem;
}

.guidance-text-col h3 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.guidance-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.guidance-perfect-for {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.guidance-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.guidance-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.guidance-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.8);
}

.guidance-summary {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Navigation buttons */
.guidance-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.guidance-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* =============================================
   Methodology Timeline
============================================= */
.methodology-container {
  width: 100%;
  max-width: none; /* Let it stretch fully to screen edges */
  margin: 0;
  min-height: 100vh; /* Make it full height for pinning */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4vw 20vh 4vw; /* Extra bottom padding pushes the vertically centered content higher up */
  position: relative;
  overflow: hidden; /* Prevent conclusion section from showing prematurely */
}

.methodology-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 7rem auto; /* Increased margin for larger scale, centered */
  gap: 2rem;
}

.methodology-header-left {
  flex: 1;
}

.methodology-header-right {
  flex: 1;
  max-width: 500px;
}

.methodology-header-right p {
  font-size: 1.1rem; /* Larger text */
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.methodology-header-right p strong {
  color: #ffffff;
}

/* Timeline Layout */
.methodology-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.timeline-line {
  position: absolute;
  top: 65px; /* Center of the 130px icons */
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--progress, 0%);
  background: #003366; /* Same as active border color */
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 160px; /* Wider step container */
}

.step-icon-wrapper {
  position: relative;
  width: 130px; /* Larger circles */
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: border-color 0.4s ease;
  backdrop-filter: blur(8px);
}

.step-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #103b66 0%, #04182b 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.step-icon-wrapper svg {
  position: relative;
  z-index: 1;
  width: 40px; /* Larger icon */
  height: 40px;
  color: #ffffff;
}

.timeline-step.active .step-icon-wrapper {
  border-color: transparent;
}

.timeline-step.active .step-icon-wrapper::before {
  opacity: 1;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-phase {
  font-size: 0.95rem; /* Increased size */
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-name {
  font-size: 1.5rem; /* Increased size */
  color: #ffffff;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .guidance-carousel-wrapper {
    flex-direction: column;
  }
  
  .guidance-panel {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .guidance-image-col {
    flex: 1;
    max-width: 100%;
    width: 100%;
  }

  .guidance-image-col::before {
    padding-top: 60%; /* Taller rectangle on mobile */
  }
  
  .guidance-text-col {
    padding-right: 0;
  }

  /* Methodology Responsive */
  .methodology-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .methodology-timeline {
    flex-direction: column;
    gap: 3rem;
    padding: 0 1rem;
    position: relative;
  }

  .timeline-line {
    top: 40px;
    bottom: 40px;
    left: calc(1rem + 40px);
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-progress {
    width: 100%;
    height: var(--progress, 0%);
  }

  .timeline-step {
    flex-direction: row;
    width: 100%;
    text-align: left;
    gap: 2rem;
  }
  
  .step-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-icon-wrapper svg {
    width: 28px;
    height: 28px;
  }
}
