/* ========================================= */
/* TIMELINE SECTION */
/* ========================================= */

.timeline-section {
  max-width: 1240px;

  margin: 120px auto;

  padding: 0 24px;

  position: relative;

  overflow: hidden;
}

/* glow background */

.timeline-section::before {
  content: "";

  width: 550px;
  height: 550px;

  border-radius: 50%;

  background:
    radial-gradient(
      rgba(227,6,19,0.05),
      transparent 70%
    );

  position: absolute;

  top: -180px;
  right: -180px;

  z-index: -1;

  pointer-events: none;
}

/* ========================================= */
/* ITEM */
/* ========================================= */

.timeline-item {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 60px;

  margin-bottom: 90px;

  opacity: 0;

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease;
}

/* alternate */

.timeline-item.right {
  flex-direction: row-reverse;
}

/* ========================================= */
/* IMAGE */
/* ========================================= */

.timeline-img {
  flex: 1 1 50%;

  position: relative;

  overflow: hidden;

  border-radius: 30px;

  box-shadow:
    0 18px 50px rgba(0,0,0,0.08);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* hover */

.timeline-img:hover {
  transform:
    translateY(-6px);

  box-shadow:
    0 28px 60px rgba(0,0,0,0.12);
}

/* image */

.timeline-img img {
  width: 100%;
  height: auto;

  display: block;

  border-radius: 30px;

  transform: scale(1);

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}

/* zoom */

.timeline-img:hover img {
  transform:
    scale(1.05);

  filter:
    brightness(1.03);
}

/* shine effect */

.timeline-img::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 60%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.22),
      transparent
    );

  transform: skewX(-20deg);

  transition:
    left 0.9s ease;

  z-index: 2;

  pointer-events: none;
}

.timeline-img:hover::before {
  left: 150%;
}

/* ========================================= */
/* CONTENT */
/* ========================================= */

.timeline-content {
  flex: 1 1 50%;

  max-width: 540px;

  background:
    rgba(255,255,255,0.72);

  backdrop-filter: blur(14px);

  padding: 45px;

  border-radius: 30px;

  box-shadow:
    0 18px 50px rgba(0,0,0,0.06);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* hover */

.timeline-content:hover {
  transform:
    translateY(-5px);

  box-shadow:
    0 26px 60px rgba(0,0,0,0.10);
}

/* ========================================= */
/* TITLE */
/* ========================================= */

.timeline-content h3 {
  font-size: 28px;
  font-weight: 700;

  color: #10264a;

  margin-bottom: 16px;

  line-height: 1.2;

  letter-spacing: -0.5px;

  position: relative;
}

/* underline */

.timeline-content h3::after {
  content: "";

  width: 55px;
  height: 4px;

  background: #e30613;

  border-radius: 100px;

  display: block;

  margin-top: 14px;
}

/* ========================================= */
/* TEXT */
/* ========================================= */

.timeline-content p {
  font-size: 17px;

  line-height: 1.9;

  color: #555;

  margin-bottom: 28px;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

/* subtle interaction */

.timeline-content p:hover {
  color: #222;

  transform:
    translateX(2px);
}

/* ========================================= */
/* BUTTON */
/* ========================================= */

.expand-btn {
  width: 72px;
  height: 72px;

  background:
    linear-gradient(
      135deg,
      #c40018 0%,
      #b10015 100%
    );

  border-radius: 100px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  position: relative;

  overflow: hidden;

  cursor: pointer;

  text-decoration: none;

  box-shadow:
    0 14px 34px rgba(196,0,24,0.20);

  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* expand */

.expand-btn:hover {
  width: 270px;

  transform:
    translateY(-3px);

  box-shadow:
    0 22px 44px rgba(196,0,24,0.28);
}

/* text */

.btn-text {
  position: absolute;

  left: 34px;

  color: #ffffff;

  font-size: 18px;
  font-weight: 700;

  font-family: Arial, sans-serif;

  opacity: 0;

  white-space: nowrap;

  transition:
    opacity 0.2s ease;

  transition-delay: 0.1s;
}

/* show text */

.expand-btn:hover .btn-text {
  opacity: 1;
}

/* plus */

.plus {
  width: 72px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;

  font-size: 72px;
  font-weight: 200;

  line-height: 0.7;

  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  transition:
    left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* move plus */

.expand-btn:hover .plus {
  left: 84%;
}

/* ========================================= */
/* ANIMATION */
/* ========================================= */

.timeline-item.left {
  transform:
    translateX(-70px);
}

.timeline-item.right {
  transform:
    translateX(70px);
}

.timeline-item.show {
  opacity: 1;

  transform:
    translateX(0);
}

/* ========================================= */
/* LARGE SCREENS */
/* ========================================= */

@media (min-width: 1400px) {

  .timeline-section {
    max-width: 1320px;
  }

  .timeline-content h3 {
    font-size: 32px;
  }

  .timeline-content p {
    font-size: 18px;
  }

}

/* ========================================= */
/* TABLET */
/* ========================================= */

@media (max-width: 1024px) {

  .timeline-item {
    gap: 35px;

    margin-bottom: 70px;
  }

  .timeline-content {
    padding: 35px;
  }

  .timeline-content h3 {
    font-size: 24px;
  }

  .timeline-content p {
    font-size: 16px;
  }

  .timeline-img,
  .timeline-img img,
  .timeline-content {
    border-radius: 24px;
  }

}

/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 768px) {

  .timeline-section {
    margin: 70px auto;

    padding: 0 18px;
  }

  .timeline-item {
    flex-direction: column;

    gap: 28px;

    margin-bottom: 60px;
  }

  .timeline-item.right {
    flex-direction: column;
  }

  .timeline-img {
    width: 100%;
  }

  .timeline-content {
    width: 100%;

    max-width: 100%;

    padding: 28px;

    border-radius: 22px;
  }

  .timeline-img,
  .timeline-img img {
    border-radius: 22px;
  }

  .timeline-content h3 {
    font-size: 22px;
  }

  .timeline-content p {
    font-size: 15px;

    line-height: 1.8;
  }

  /* disable expand on mobile */

  .expand-btn {
    width: 62px;
    height: 62px;
  }

  .expand-btn:hover {
    width: 62px;
  }

  .btn-text {
    display: none;
  }

  .plus {
    width: 62px;
    height: 62px;

    font-size: 60px;
  }

  .expand-btn:hover .plus {
    left: 50%;
  }

}

/* ========================================= */
/* SMALL MOBILE */
/* ========================================= */

@media (max-width: 480px) {

  .timeline-section {
    margin: 60px auto;

    padding: 0 16px;
  }

  .timeline-item {
    gap: 22px;

    margin-bottom: 50px;
  }

  .timeline-content {
    padding: 22px;

    border-radius: 18px;
  }

  .timeline-img,
  .timeline-img img {
    border-radius: 18px;
  }

  .timeline-content h3 {
    font-size: 20px;

    line-height: 1.3;
  }

  .timeline-content p {
    font-size: 14px;

    line-height: 1.7;
  }

  .expand-btn {
    width: 56px;
    height: 56px;
  }

  .plus {
    width: 56px;
    height: 56px;

    font-size: 52px;
  }

}