body { background: #8C4B2D; font-family: 'Sarabun', sans-serif; margin: 0; padding: 0; margin-top: 60px; }
header, footer { color: white; text-align: center; padding: 20px; }
nav { background: #C89E76; padding: 20px 0; text-align: center; position: fixed; width: 100%; z-index: 100; top: 0px; }
nav a { margin: 0 8px; color: white; text-decoration: none; font-weight: bold; }
section { padding: 20px; background: white; display: flex; justify-content: center; }
section .container, footer .container { max-width: 500px; width: 100%; }
section h2 { margin: 0px; }
footer { display: flex; justify-content: center; }
footer p { margin: 5px 0; text-align: left; }
iframe { width: 100%; height: 200px; border: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
footer a { font-size: 14px; color: white; text-decoration: none; }
hr { margin: 0px 16px; max-width: 600px; width: 100%; }
.divider { background-color: white; display: flex; justify-content: center; width: 100%; }

/* Carousel Styles */
.carousel {
  position: relative;
  max-width: 500px;
  overflow: hidden;
  background: #8C4B2D;
}
.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel-slide img {
  width: 80%;
  height: 500px;
  border-radius: 8px;
  object-fit: cover;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
}
.dot.active {
  background: white;
}

/* Timeline Container */
.timeline {
  position: relative;
  margin: 20px auto 0px auto;
  padding: 20px 0;
  max-width: 600px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 50%;
  width: 4px;
  height: 95%;
  background: #C89E76;
  transform: translateX(-50%);
}

/* Timeline Items */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 10px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.timeline-item:nth-child(odd) {
  margin-bottom: 16px;
  left: 20%;
}
.timeline-item:nth-child(even) {
  margin-bottom: 16px;
  left: 20%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 10px;
  height: 10px;
  background: #C89E76;
  border-radius: 50%;
  border: 3px solid #ffffff;
}
.timeline-item:nth-child(odd)::after {
  right: 0;
  left: 0;
}
.timeline-item:nth-child(even)::after {
  left: 0;
}

/* For better alignment */
.timeline-item p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-slide img {
    width: 90%;
    height: 450px;
  }
  .timeline {
    padding: 20px;
  }
  .timeline-item {
    width: 90%;
    left: 0 !important;
    margin-bottom: 20px;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
  }
  .timeline-item::after {
    left: -8px;
  }
}