/* Tentang V2 — Brand Overview horizontal journey */

.journey-v2-section {
  background:
    radial-gradient(circle at 8% 88%, rgba(247, 162, 27, 0.07) 0%, transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(107, 146, 69, 0.08) 0%, transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--cream, #f4efda) 100%);
  position: relative;
  overflow: hidden;
}

.journey-v2-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.journey-v2-subtitle {
  max-width: 580px;
}

.journey-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--divider, #e8e4dc);
  border-radius: 24px;
  padding: 0.75rem;
  box-shadow: 0 6px 28px rgba(47, 79, 58, 0.06);
  margin-bottom: 0.5rem;
}

.journey-v2-stat {
  text-align: center;
  padding: 1.1rem 0.5rem;
  border-right: 1px solid var(--divider, #e8e4dc);
}

.journey-v2-stat:last-child {
  border-right: 0;
}

.journey-v2-stat .num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--green, #235541);
}

.journey-v2-stat .num .plus {
  color: var(--gold, #f7a21b);
}

.journey-v2-stat .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
  margin-top: 0.45rem;
}

.journey-v2-rail-wrap {
  position: relative;
  margin-top: 1.5rem;
  padding: 0 0 0.5rem;
}

.journey-v2-fade {
  position: absolute;
  top: 0;
  bottom: 4.5rem;
  width: min(88px, 12vw);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.journey-v2-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--cream, #f4efda) 10%, transparent 100%);
}

.journey-v2-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--cream, #f4efda) 10%, transparent 100%);
}

.journey-v2-rail-wrap.has-overflow:not(.at-start) .journey-v2-fade--left,
.journey-v2-rail-wrap.has-overflow:not(.at-end) .journey-v2-fade--right {
  opacity: 1;
}

.journey-v2-nav {
  position: absolute;
  top: calc(50% - 1.5rem);
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--red, #c81f32);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(200, 31, 50, 0.28);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.journey-v2-nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: #a81828;
  box-shadow: 0 12px 28px rgba(200, 31, 50, 0.36);
}

.journey-v2-nav:disabled {
  opacity: 0.28;
  cursor: default;
  transform: translateY(-50%);
  box-shadow: none;
}

.journey-v2-nav--prev {
  left: max(0.75rem, calc((100vw - 1140px) / 2 - 0.25rem));
}

.journey-v2-nav--next {
  right: max(0.75rem, calc((100vw - 1140px) / 2 - 0.25rem));
}

.journey-v2-nav__icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.journey-v2-nav__icon--flip {
  transform: scaleX(-1);
}

.journey-v2-rail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 0 1.75rem;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  --journey-card-w: 240px;
  --journey-side-pad: 0px;
  --journey-gap: 1rem;
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.journey-v2-rail.is-start {
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent 100%);
}

.journey-v2-rail.is-end {
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 100%);
}

.journey-v2-rail.is-start.is-end {
  mask-image: none;
  -webkit-mask-image: none;
}

.journey-v2-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.journey-v2-rail::-webkit-scrollbar {
  display: none;
}

.journey-v2-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--journey-gap, 1rem);
  min-width: max-content;
  padding: 0.5rem var(--journey-side-pad, 0px) 0;
  min-height: 300px;
  box-sizing: border-box;
}

.journey-v2-axis {
  position: absolute;
  left: var(--journey-side-pad, 0px);
  right: var(--journey-side-pad, 0px);
  bottom: 46px;
  top: auto;
  height: 3px;
  background: rgba(247, 162, 27, 0.22);
  transform: none;
  border-radius: 3px;
  z-index: 0;
  overflow: hidden;
}

.journey-v2-axis__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold, #f7a21b), var(--red, #c81f32));
  transform: scaleX(0.04);
  transform-origin: left center;
  transition: transform 0.18s linear;
  border-radius: inherit;
}

.journey-v2-item {
  position: relative;
  width: var(--journey-card-w, 240px);
  flex: 0 0 var(--journey-card-w, 240px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  gap: 0.7rem;
  z-index: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.55;
  transform: scale(0.97);
}

.journey-v2-item.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.journey-v2-item.is-above .journey-v2-card,
.journey-v2-item.is-below .journey-v2-card {
  order: 1;
  align-self: stretch;
  margin: 0;
  flex: 1 1 auto;
}

.journey-v2-node {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  flex: 0 0 auto;
}

.journey-v2-node__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold, #f7a21b);
  color: var(--green, #235541);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px rgba(247, 162, 27, 0.12), 0 5px 14px rgba(47, 79, 58, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.journey-v2-node__dot .am-icon,
.journey-v2-node__dot svg {
  width: 0.9rem;
  height: 0.9rem;
}

.journey-v2-node__year {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--dark, #1a1a1a);
  background: #fff;
  border: 1px solid rgba(247, 162, 27, 0.35);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.journey-v2-item.is-active .journey-v2-node__dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(247, 162, 27, 0.18), 0 8px 20px rgba(47, 79, 58, 0.16);
}

.journey-v2-item.is-now .journey-v2-node__dot {
  background: var(--gold, #f7a21b);
  color: #fff;
  border-color: var(--gold, #f7a21b);
}

.journey-v2-item.is-now .journey-v2-node__year {
  color: var(--gold, #d8b511);
  border-color: rgba(216, 181, 17, 0.5);
}

.journey-v2-card {
  background: #fff;
  border: 1px solid var(--divider, #e8e4dc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(47, 79, 58, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 284px;
}

.journey-v2-item.is-active .journey-v2-card {
  border-color: rgba(107, 146, 69, 0.4);
  box-shadow: 0 18px 42px rgba(47, 79, 58, 0.16);
}

.journey-v2-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(47, 79, 58, 0.14);
}

.journey-v2-item.is-now .journey-v2-card {
  border-color: rgba(216, 181, 17, 0.4);
  background: linear-gradient(160deg, #fff 0%, rgba(245, 183, 34, 0.07) 100%);
}

.journey-v2-card__media {
  height: 140px;
  flex: 0 0 140px;
  background: #f3f0e8;
  overflow: hidden;
}

.journey-v2-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journey-v2-card__body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.journey-v2-card__era {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.28rem;
}

.journey-v2-item.is-now .journey-v2-card__era {
  color: var(--gold, #d8b511);
}

.journey-v2-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dark, #1a1a1a);
  line-height: 1.3;
  margin: 0 0 0.35rem;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journey-v2-card__desc {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.45;
  margin: 0;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journey-v2-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.7rem;
}

.journey-v2-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green, #235541);
  background: rgba(107, 146, 69, 0.1);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.journey-v2-tag .am-icon,
.journey-v2-tag svg {
  width: 0.75rem;
  height: 0.75rem;
}

.journey-v2-card__footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--divider, #e8e4dc);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark, #2f4f3a);
}

.journey-v2-card__footer .am-icon,
.journey-v2-card__footer svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold, #f7a21b);
  flex-shrink: 0;
}

.journey-v2-hint {
  display: none;
}

@media (min-width: 992px) {
  .journey-v2-nav {
    display: inline-flex;
  }

  .journey-v2-hint {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .journey-v2-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-v2-stat:nth-child(2) {
    border-right: 0;
  }

  .journey-v2-stat:nth-child(1),
  .journey-v2-stat:nth-child(2) {
    border-bottom: 1px solid var(--divider, #e8e4dc);
  }

  .journey-v2-track {
    min-height: 280px;
  }

  .journey-v2-card {
    min-height: 268px;
  }

  .journey-v2-card__media {
    height: 124px;
    flex-basis: 124px;
  }
}

@media (max-width: 575.98px) {
  .journey-v2-fade {
    display: none;
  }

  .journey-v2-rail {
    overflow: visible;
    scroll-snap-type: none;
    padding: 0 1rem 0.5rem;
    cursor: default;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .journey-v2-track {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: 0;
    padding: 0.25rem 0 0;
  }

  .journey-v2-axis {
    left: 20px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    transform: none;
    background: rgba(247, 162, 27, 0.22);
  }

  .journey-v2-axis__fill {
    transform: none;
    background: linear-gradient(180deg, var(--gold, #f7a21b), var(--red, #c81f32));
  }

  .journey-v2-item {
    width: 100%;
    flex: none;
    min-height: 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto;
    gap: 0 0.9rem;
    padding: 0.65rem 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    opacity: 1;
    transform: none;
  }

  .journey-v2-item.is-above .journey-v2-card,
  .journey-v2-item.is-below .journey-v2-card {
    grid-row: 1;
    grid-column: 2;
    order: unset;
    align-self: stretch;
    margin: 0;
  }

  .journey-v2-node {
    grid-row: 1;
    grid-column: 1;
    order: unset;
    justify-content: flex-start;
    padding-top: 1.1rem;
  }

  .journey-v2-node__year {
    writing-mode: horizontal-tb;
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    max-width: 64px;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .journey-v2-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: auto;
  }

  .journey-v2-card__media {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .journey-v2-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .journey-v2-card__body {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .journey-v2-card__title {
    font-size: 0.95rem;
    min-height: 0;
  }

  .journey-v2-card__desc {
    -webkit-line-clamp: 4;
  }

  .journey-v2-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-v2-item,
  .journey-v2-card,
  .journey-v2-node__dot,
  .journey-v2-axis__fill {
    transition: none !important;
  }

  .journey-v2-item {
    opacity: 1;
    transform: none;
  }
}
