/* CSS asli yang sudah kamu berikan */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.rowcar {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; align-items: center; */
  background-color: #ffff;
  border-radius: 15px;
  /* margin-bottom: 50px; */
  width: 70%;
  height: 70%;
  margin: 0 auto 50px;
}

.col-lg-6 {
  flex-basis: 50%;
}

.warna {
  background-color: #16B88C;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.our-journey {
  margin-top: 20px;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffff;
}

.carousel-inner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

.carousel-caption {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* background-color: #ffff; border-radius: 15px; */
}

.carousel-caption h5 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  margin-left: 30px;
  margin-right: 30px;
}

.carousel-caption p {
  font-size: 15px;
  color: black;
  text-align: left;
  margin-left: 30px;
  margin-right: 30px;
}

.achievment {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  /* color: #16B88C; */
  margin-top: 30px;
  margin-bottom: 30px;
   /*box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8); */
   /*text-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);*/
  /*text-shadow: 0 5px 10px #0c0d0d;*/
}

.achievment h2 {
  color: #16B88C;
}

.achievment h5 {
  color: #16b88c;
}

.items {
  display: flex;
  flex-direction: row;
}

.items img {
  width: 70%;
  height: auto;
}

.parag {
  font-weight: bold;
  color: black;
}

.headabout {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headabout h4{
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  text-shadow: 2px 2px 4px #16b88c;
  font-size: 2.5rem;
  line-height: 1.2;
  max-width: 90%;
}

.headabout a{
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 4px 8px #16b88c;
}

.headabout img {
  width: 100%; 
  height: 60vh;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Media Queries untuk handphone dan tablet */

@media (max-width: 576px) {
  .carousel-caption {
    bottom: 20px;
  }
  .carousel-caption h4 {
    font-size: 18px;
  }
  .carousel-caption a {
    font-size: 14px;
    padding: 10px 20px;
  }
  .img-fluid {
    height: 200px;
  }
  .carousel-inner img {
    height: 200px;
  }
  .headabout {
    min-height: 50vh;
  }
  
  .headabout h4{
    top: 15%;
    font-size: 1.5rem;
    max-width: 95%;
    padding: 0 15px;
  }
  
  .headabout img {
    height: 50vh;
  }

  .headabout a{
    bottom: 20%;
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .skala img{
    scale: 50%;
  }
}

@media (max-width: 768px) {
  .col-lg-6 {
      flex-basis: 100%;
  }

  .rowcar {
    display: block; /* Ubah display menjadi block */
    flex-wrap: nowrap; /* Nonaktifkan flex-wrap */
    /* background-color: initial;  */
    /* border-radius: 0; Hapus border-radius */
    width: 100%; /* Sesuaikan width menjadi 100% */
    height: auto; /* Sesuaikan height menjadi auto */
    /* margin: 0; Hapus margin */
  }

  .carousel-caption {
    align-items: center;
    text-align: center;
  }

  .carousel-caption h5 {
      font-size: 28px;
  }

  .carousel-caption p {
      font-size: 14px;
  }

  .achievment {
      font-size: 24px;
  }

  .achievment h2, .achievment h5 {
      font-size: 20px;
  }

  .items {
      flex-direction: column;
  }

  .items img {
      width: 100%;
  }

  .carousel-caption h4 {
    font-size: 22px;
  }
  .carousel-caption a {
    font-size: 16px;
    padding: 12px 24px;
  }
  .img-fluid {
    height: 250px;
  }

  .headabout {
    min-height: 55vh;
  }
  
  .headabout h4{
    top: 18%;
    font-size: 2rem;
    max-width: 92%;
  }
  
  .headabout img {
    height: 55vh;
  }

  .headabout a{
    bottom: 22%;
  }
}

@media (max-width: 1024px) {
  .col-lg-6 {
      flex-basis: 100%;
  }

  .rowcar {
      width: 85%;
      height: auto;
  }

  .carousel-caption h5 {
      font-size: 32px;
  }

  .carousel-caption p {
      font-size: 15px;
  }

  .achievment {
      font-size: 30px;
  }

  .achievment h2, .achievment h5 {
      font-size: 24px;
  }
  .carousel-inner img {
    height: 250px;
  }

  .carousel-caption {
    align-items: center;
    text-align: center;
  }
}