/* Temporary for development stage, recommend to copy these CSS code to frontend.css when production */
section[data-module="timeline-slide"] {}
section[data-module="timeline-slide"] body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: url('https://ascendchem.com.my/wp-content/uploads/2024/02/bg.jpg') center/cover no-repeat;
}

/* Layout wrapper */
section[data-module="timeline-slide"] .ascendchem-timeline {
  max-width: 1650px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
}

/* Top icon line */
section[data-module="timeline-slide"] .timeline-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

section[data-module="timeline-slide"] .timeline-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 2px dashed #d0d0d0;
  z-index: 0;
}

section[data-module="timeline-slide"] .timeline-icons {
  display: flex;
  justify-content: center;
  gap: 368px;
  z-index: 1;
}

section[data-module="timeline-slide"] .timeline-icon-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3834c5;
  display: flex;
  align-items: center;
  justify-content: center;
}

section[data-module="timeline-slide"] .timeline-icon-item img {
  width: 30px;
  height: 30px;
}

/* Arrows */
section[data-module="timeline-slide"] .arrow {
  background: #3834C5;
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

section[data-module="timeline-slide"] .arrow:hover {
  background: #999;
}

section[data-module="timeline-slide"] .arrow.prev {
  margin-right: 0px;
  left: 0px;
  position: absolute;
}

section[data-module="timeline-slide"] .arrow.next {
  margin-left: 0px;
  right: 0px;
  position: absolute;
}

section[data-module="timeline-slide"] .timeline-content {
  display: flex;
  transition: transform 0.6s ease;
  gap: 40px;
  margin-top: 60px;
  overflow: hidden; /* hide overflow for 4-card view */
  padding-bottom: 40px;
}
section[data-module="timeline-slide"] .timeline-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

section[data-module="timeline-slide"] .timeline-card {
  min-width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

section[data-module="timeline-slide"] .timeline-card h3 {
  font-size: 38px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

section[data-module="timeline-slide"] .timeline-card img {
  width: 80px;
  margin-bottom: 15px;
}

section[data-module="timeline-slide"] .timeline-card p {
  font-size: 18px;
  color: #000;
  line-height: 1.6;
}


/* Typical laptop screen size*/
@media (max-width: 1400px) {
section[data-module="timeline-slide"] .timeline-card {
  min-width: 307px;
}
section[data-module="timeline-slide"] .timeline-icons {
  gap: 272px;
}
section[data-module="timeline-slide"] .timeline-card h3 {
  font-size: 26px;
}
section[data-module="timeline-slide"] .timeline-card p {
  font-size: 16px;
}
section[data-module="timeline-slide"] .timeline-content {
  gap: 20px;
  margin-top: 36px;
}
}

/* Mobile screen size */
@media (max-width: 480px) {
section[data-module="timeline-slide"] .timeline-card {
    min-width: 350px;
  }
section[data-module="timeline-slide"] .timeline-icon-item img {
  position: relative;
  top: 10px;
  left: 10px;
}
section[data-module="timeline-slide"] .timeline-icons {
    overflow: hidden;
  }

section[data-module="timeline-slide"] .timeline-icon-item {
    display: none;
  }

section[data-module="timeline-slide"] .timeline-icon-item:first-child {
    display: block;
  }
}