/* dimas */
/* home */

a.tbl-pink:hover {
  background: #3f72af;
  text-decoration: none;
}

.about img {
  width: 500px;
  height: auto;
  border-radius: 10px;
  margin-right: 20px;
}

.story img {
  width: 500px;
  height: auto;
  border-radius: 10px;
  margin-left: 20px;
}

section.about .kolom {
  flex: 1; /* Mengisi ruang yang tersedia di sebelah kanan gambar */
}

.wrapper section {
  display: flex;
  margin-bottom: 50px;
  background-color: var(--content-bg-color);; /* Warna latar belakang */
  padding: 20px; /* Ruang padding di dalam section */
  border-radius: 10px; /* Sudut bulatan untuk section */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Bayangan section */
}

.wrapper section .kolom {
  flex: 1; /* Mengisi ruang yang tersedia di sebelah kanan gambar */
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Memberi jarak antara setiap event timeline */
  position: relative;
  margin: 20px auto;
  padding: 20px 0;
}

section.garis .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #000000;
  top: 0; 
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-event {
  position: relative;
  padding: 0 15px;
  margin: 20px 0;
  width: 100%;
}

.kolom h2 {
  margin-bottom: 5px;
  color: var(--analytics-text-color);
}

.kolom p{
  color: var(--analytics-text-color);
}

.timeline-content {
  background-color: #1d50ad;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  width: 45%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
  margin-top: 0;
  color: #d4cdcd;
}

.timeline-content .date {
  color: #d4cdcd;
  margin-bottom: 10px;
}

.timeline-content p{
  color: var(--analytics-text-color);
}

.timeline-event:nth-child(even) .timeline-content {
  left: 50%;
  transform: translateX(10%);
}

.timeline-event:nth-child(odd) .timeline-content {
  left: 50%;
  transform: translateX(-110%);
}

.timeline-event:hover .timeline-content {
  background-color: #f0f0f0;
  color: #333;
}

.timeline-event:hover .timeline-content h3 {
  color: #555;
}

.timeline-event:hover .timeline-content .date {
  color: #777;
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-event:nth-child(even) .timeline-content::before {
  border-width: 10px 10px 10px 0;
  border-color: transparent #8ba47a transparent transparent;
  left: -10px;
  top: 20px;
}

.timeline-event:nth-child(odd) .timeline-content::before {
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #8ba47a;
  right: -10px;
  top: 20px;
}

/* Tampilan Tambahan */
.timeline-event:hover .timeline-content {
  background-color: #f0f0f0;
  color: #333;
}

.timeline-event:hover .timeline-content h3 {
  color: #555;
}

.timeline-event:hover .timeline-content .date {
  color: #777;
}

@media screen and (max-width: 1040px){
  .wrapper img {
    width: 220px;
  }
}

@media screen and (max-width: 768px){
  .wrapper img {
    width: 180px;
  }

  .wrapper p {
    font-size: 12px;
  }

  .wrapper h2 {
    font-size: 14px;
  }
}

@media screen and (max-width: 576px){
  .wrapper img {
    width: 75px;
  }

  .wrapper p {
    font-size: 5px;
  }

  .wrapper h2{
    font-size: 9px;
  }

  .wrapper h3{
    font-size: 9px;
  }

  .timeline-event:nth-child(even) .timeline-content::before {
    border-width: 7px 7px 7px 0;
    left: -7px;
  }
  
  .timeline-event:nth-child(odd) .timeline-content::before {
    border-width: 7px 0 7px 7px;
    right: -7px;
  }

}
