/* TATA TERTIB*/

.tata-tertib-section {
  margin: 80px auto 40px auto; /* Jarak dari atas */
  background-color: #ffd9c7;
  border: 2px solid #c0c17d;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.tata-tertib-section h1 {
  color: #b75151;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.tata-tertib-section h1 i {
  color: #ffb97b;
  margin-right: 10px;
  animation: floatIcon 2s ease-in-out infinite;
}

.tata-tertib-section .divider {
  height: 3px;
  width: 100px;
  background-color: #ffa726;
  margin: 0 auto 30px;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: center;
  animation: growFromCenter 0.8s ease-out forwards;
  opacity: 0;
}

/* Animasi membesar dari tengah */
@keyframes growFromCenter {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Layout Card */
.tertib-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tertib-row.bottom {
  justify-content: center;
}

/* Card Style */
.tertib-box {
  background: #ffe89d;
  border-radius: 16px;
  border: 2px dashed #ffd54f;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
}

.tertib-box:hover {
  transform: translateY(-5px);
  background: #fff3e0;
}

.tertib-box h2 {
  color: #fb8c00;
  margin-bottom: 12px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tertib-box h2 i {
  color: #ff9800;
  animation: floatIcon 2.5s ease-in-out infinite;
}

.tertib-box ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
}

.tertib-box ul li {
  margin: 8px 0;
  line-height: 1.5;
}

.tertib-box ul li strong {
  color: #e65100;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .tertib-box {
    width: 100%;
  }

  .tata-tertib-section {
    padding: 20px;
  }
}

/* Floating Icon Animation */
@keyframes floatIcon {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
