/* home.css */

.sticky-btn {
  transform: translateY(20px);
  pointer-events: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: min(80vh, 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 50%;
  padding-right: 2rem;
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.5rem, 3vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1f2937;
  animation: fadeInUp 1s ease-out;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #6b7280;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-graphic {
  flex: 1;
  max-width: 50%;
  padding-left: 2rem;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Registration Flow */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.timeline-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.timeline-content {
  flex: 1;
}

.timeline-content strong {
  display: block;
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Connector Lines untuk Horizontal Timeline (Desktop) */
.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30px;
  /* Sesuaikan dengan lebar icon */
  right: 30px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  z-index: 0;
  display: none;
  /* Sembunyikan di mobile */
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30px;
  width: 20px;
  height: 3px;
  background: #3b82f6;
  z-index: 0;
  display: none;
  /* Sembunyikan di mobile */
}

/* Responsif Mobile */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 0 3rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }

  .hero-content,
  .hero-graphic {
    max-width: 100%;
    padding: 0;
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero p {
    margin: 0 auto 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .featured-programs-title {
    font-size: 2rem;
  }

  .timeline {
    flex-direction: column;
    gap: 1rem;
  }

  /* Vertikal connector untuk mobile (opsional, garis vertikal) */
  .timeline::before {
    display: block;
    top: 0;
    left: 30px;
    bottom: 0;
    height: auto;
    width: 3px;
  }

  .timeline-item {
    flex-direction: row;
    margin-bottom: 1rem;
    max-width: none;
    width: 100%;
    text-align: left;
    gap: 1rem;
  }

  .timeline-icon {
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .timeline-content strong {
    font-size: 1.1rem;
  }

  .timeline-item::before {
    display: block;
    top: 30px;
    bottom: 0;
    height: auto;
    width: 3px;
    right: auto;
    left: 30px;
    position: static;
    margin-right: 0.5rem;
  }

  .timeline-item::after {
    display: none;
  }

  .timeline-item:not(:last-child)::before {
    bottom: -1rem;
    /* Hubungkan ke item berikutnya */
  }
}

/* Responsif: Horizontal pada Desktop */
@media (min-width: 1200px) {
  .timeline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 -1rem;
    /* Offset untuk spacing */
  }

  .timeline-item {
    flex: 1;
    margin-bottom: 0;
    padding: 1.5rem;
    max-width: calc(25% - 1.5rem);
    /* 4 item, spacing rata */
  }

  .timeline::before {
    display: block;
    top: 30px;
    /* Posisi tengah icon */
  }

  .timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -2rem;
    width: 2rem;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 0;
  }

  .timeline-item::before {
    display: none;
    /* Tidak perlu connector individual di horizontal */
  }

  /* Hover efek lebih halus di desktop */
  .timeline-item:hover {
    transform: scale(1.02);
  }

  .timeline-content p {
    display: none;
  }

  .timeline-content strong {
    white-space: pre-wrap;
    word-spacing: 9999px;
  }
}