:root {
  --sovi-purple: #8C55F2;
  --sovi-dark: #111111;
  --sovi-gray: #666666;
  --sovi-bg-soft: #F5F0FF;
  --sovi-white: #FFFFFF;
  --sovi-border: #E8DDFC;
  
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#new-journey-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#new-journey-wrapper {
  font-family: var(--font-base);
  color: var(--sovi-dark);
  background: url('../assets/journey/bg_gradient.png') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hero Section */
#new-journey-wrapper .hero-section {
  text-align: center;
  padding: 60px 20px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

#new-journey-wrapper .subtitle {
  color: var(--sovi-purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#new-journey-wrapper .title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  white-space: nowrap;
}

#new-journey-wrapper .title .highlight {
  color: var(--sovi-purple);
}

#new-journey-wrapper .description {
  font-size: 1.25rem;
  color: var(--sovi-gray);
  line-height: 1.6;
}

/* Timeline Section */
#new-journey-wrapper .timeline-section {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

#new-journey-wrapper .timeline-bg {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

#new-journey-wrapper .cards-container {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  align-items: stretch; /* Make all items same height */
}

#new-journey-wrapper .timeline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: calc(20% - 19.2px);
  min-width: 230px;
}

#new-journey-wrapper .timeline-icon-wrapper {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 24px;
}

#new-journey-wrapper .timeline-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

#new-journey-wrapper .timeline-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
}

#new-journey-wrapper .t-text-wrapper {
  margin-bottom: 24px;
  height: 140px; /* Fixed height so images start at same line and bottom align */
}

#new-journey-wrapper .t-date {
  color: var(--sovi-purple);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#new-journey-wrapper .t-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--sovi-dark);
}

#new-journey-wrapper .t-desc {
  font-size: 0.875rem;
  color: var(--sovi-gray);
  line-height: 1.6;
}

#new-journey-wrapper .t-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(140, 85, 242, 0.08), 0 4px 10px rgba(0,0,0,0.03);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
#new-journey-wrapper .title {
    font-size: 2.5rem;
    white-space: normal;
  }
#new-journey-wrapper .cards-container {
    overflow-x: auto;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    align-items: stretch;
  }
#new-journey-wrapper .timeline-item {
    min-width: 280px;
    scroll-snap-align: center;
  }
}

/* Connector Line */
#new-journey-wrapper .connector-wrapper {
  margin-top: 75px; /* ~2cm */
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
  padding: 0 20px;
  box-sizing: border-box;
}

#new-journey-wrapper .timeline-nodes-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto;
  overflow: visible;
}

#new-journey-wrapper .timeline-nodes-container svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Node Markers */
#new-journey-wrapper .node-marker {
  position: absolute;
  transform: translate(-50%, -50%); /* Center the marker exactly on the line point */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

/* Puts the card above the line */
#new-journey-wrapper .node-icon-card {
  position: absolute;
  bottom: 14px; /* Lift above the dot */
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  background-color: #FFFFFF; /* Solid white like reference */
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(140, 85, 242, 0.15), 0 4px 10px rgba(140, 85, 242, 0.05); /* Soft, wide purple shadow */
}

/* Map pin tail pointing down from the card */
#new-journey-wrapper .node-icon-card::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #FFFFFF; /* White triangle pointing down */
}

/* The faint vertical line connecting pin to the dot */
#new-journey-wrapper .node-icon-card::after {
  content: '';
  position: absolute;
  bottom: -14px; /* Bridge the gap */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 8px;
  background: rgba(140, 85, 242, 0.3);
}

#new-journey-wrapper .node-icon-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

#new-journey-wrapper .node-date {
  position: absolute;
  bottom: -32px; /* Align all dates horizontally below the timeline curve */
  transform: translateX(-50%);
  font-size: 0.875rem; /* Increased by one step */
  font-weight: 800; /* Made bolder */
  color: var(--sovi-purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Content Grid Below Timeline */
#new-journey-wrapper .content-grid-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Make all boxes equal height */
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 60px; /* Space below the curve and dates */
  padding: 0 20px;
  box-sizing: border-box;
}

#new-journey-wrapper .content-box {
  flex: 1; /* Equal width for all boxes */
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(140, 85, 242, 0.04);
}

/* Progressive Background Colors (White to Purple) */
#new-journey-wrapper .box-1 { 
  background-color: rgba(255, 255, 255, 0.85); 
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 10px 30px rgba(140, 85, 242, 0.04);
}
#new-journey-wrapper .box-2 { 
  background-color: rgba(250, 245, 255, 0.85); 
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 10px 30px rgba(140, 85, 242, 0.04);
}
#new-journey-wrapper .box-3 { 
  background-color: rgba(242, 232, 255, 0.85); 
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(140, 85, 242, 0.04);
}
#new-journey-wrapper .box-4 { 
  background-color: rgba(232, 215, 255, 0.85); 
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 10px 30px rgba(140, 85, 242, 0.04);
}
#new-journey-wrapper .box-5 { 
  background-color: rgba(220, 195, 255, 0.85); 
  box-shadow: inset 0 0 0 1px rgba(140, 85, 242, 0.1), 0 10px 30px rgba(140, 85, 242, 0.04);
}

/* Content Box Typography */
#new-journey-wrapper .c-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sovi-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

#new-journey-wrapper .c-desc {
  font-size: 0.875rem;
  color: var(--sovi-gray);
  line-height: 1.6;
  margin: 0;
}

#new-journey-wrapper .c-desc strong {
  font-weight: 600;
}

#new-journey-wrapper .c-desc .purple-strong {
  color: var(--sovi-purple);
}

#new-journey-wrapper .c-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sovi-purple);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

#new-journey-wrapper .c-watermark {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.1; /* Adjusted for solid circle */
  pointer-events: none;
}

/* Make content box relative for the absolute watermark */
#new-journey-wrapper .content-box {
  position: relative;
  flex: 1; /* Equal width for all boxes */
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(140, 85, 242, 0.04);
  overflow: hidden; /* Keep watermark inside */
}

/* Responsive Adjustments for Content Grid */
@media (max-width: 1024px) {
#new-journey-wrapper .content-grid-container {
    overflow-x: auto;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
  }
#new-journey-wrapper .content-box {
    min-width: 260px;
    scroll-snap-align: center;
  }
}

/* Stats Section */
#new-journey-wrapper .stats-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

#new-journey-wrapper .stats-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px 48px;
  box-shadow: 0 4px 20px rgba(140, 85, 242, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#new-journey-wrapper .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 24px;
  flex: 1;
}

#new-journey-wrapper .stat-icon-wrapper {
  color: var(--sovi-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

#new-journey-wrapper .stat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

#new-journey-wrapper .stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sovi-purple);
  line-height: 1.2;
}

#new-journey-wrapper .stat-label {
  font-size: 0.75rem;
  color: var(--sovi-gray);
  font-weight: 500;
  white-space: nowrap;
}

#new-journey-wrapper .stat-divider {
  width: 1px;
  height: 32px;
  background-color: rgba(140, 85, 242, 0.15);
}

/* Trust Section */
#new-journey-wrapper .trust-section {
  text-align: center;
  margin-bottom: 80px;
}

#new-journey-wrapper .trust-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sovi-purple);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#new-journey-wrapper .trust-logos {
  display: flex;
  justify-content: center;
}

#new-journey-wrapper .logos-img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.85; /* Blend well with background */
}


/* OVERRIDES for press.css conflicts */
#new-journey-wrapper .hero-section {
    background-color: transparent !important;
    overflow: visible !important;
    padding: 60px 20px 20px !important;
}

#new-journey-wrapper .stats-section {
    background-color: transparent !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-bottom: 19px !important;
    position: relative;
    width: 100%;
}

#new-journey-wrapper h1, 
#new-journey-wrapper h2, 
#new-journey-wrapper h3, 
#new-journey-wrapper h4, 
#new-journey-wrapper h5, 
#new-journey-wrapper h6 {
    margin: 0;
    line-height: inherit;
}

#new-journey-wrapper .title {
    line-height: 1.15 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

#new-journey-wrapper .subtitle {
    margin-bottom: 8px !important;
}

#new-journey-wrapper {
    background: url('../assets/journey/bg_gradient.png') no-repeat center center / cover !important;
    min-height: 100vh !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%); /* Full bleed */
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#new-journey-wrapper .title {
    line-height: 1.2 !important; /* Slightly increased to avoid g clipping on safari/chrome */
    padding-bottom: 5px !important;
}

#new-journey-wrapper .stats-container {
    border: none !important;
    outline: none !important;
}

@media (max-width: 1024px) {
  #new-journey-wrapper .title {
    white-space: normal !important;
  }
}
