
/* Timeline container */
.timeline {
  position: relative;
}
/* Disable old central line; we attach the line to carousel lane */
.timeline:before {
  display: none;
}

.event {
  position: relative;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.event .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.event .meta .tag {
  border-top-left-radius: 30px;
  /* border: 2px solid #73AD21; */
  padding: 7px;
  /* border-left: 5px solid rgba(255, 255, 255, 0.35); */
  border-top: 1px solid #d84e7a;
}
.event .meta .title {
  padding: 7px;
  /* border-left: 5px solid rgba(255, 255, 255, 0.35); */
  border-top: 1px solid #d84e7a;
}
.event .title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.event .accent {
  height: 6px;
  border-radius: 6px;
  background: var(--primary);
  margin: 8px 0;
}

/* Two-lane event body */
.event .body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.event .lane {
  position: relative;
}
.event .lane.poster .poster {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.event .lane.poster .poster img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Lego-edge vertical line is the left edge of the carousel lane */
.event .lane.carousel {
  padding-left: 24px;
}
.event .lane.carousel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, var(--primary), #285475);
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

/* Alternate lanes on desktop */
.event.left .lane.carousel {
  order: 1;
}
.event.left .lane.poster {
  order: 2;
}
.event.right .lane.poster {
  order: 1;
}
.event.right .lane.carousel {
  order: 2;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}
.carousel .slides {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.carousel .slides img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.carousel .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
}
.carousel .dot.active {
  background: #fff;
}

/* Testimonials grid */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.testimonial {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
}
.testimonial .name {
  font-weight: 700;
  color: var(--primary);
}
.testimonial .role {
  color: var(--muted);
  font-size: 0.8rem;
}

#section-aboutus {
  /* box-shadow: var(--shadow); */
  background: var(--surface);
  /* border-width: 1px; */
  /* border-style: solid; */
  /* border-color: rgb(229, 231, 235); */
  /* border-image: initial; */
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.9em;
  font-weight: 100;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

.rating-group {
  display: grid;
  gap: 0.25rem;
}

.rating-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.rating-stars .star {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ccc;
}

.rating-stars .star.active {
  color: #f5a623;
}

/* Forms */
.form {
  display: grid;
  gap: 0.75rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.msg-prompt {
  font-size: 0.8em;
  font-weight: 100;
  color: var(--muted);
}

.input:focus,
.textarea:focus {
  outline: 2px solid var(--ring);
  border-color: var(--primary);
}
option {
  background-color: #3e3e3e;
  color: white;
  border: 1px solid #555;
  /* Note: Most styling for options inside the dropdown is ignored by many browsers */
}

.form-btn {
  padding: 0.6rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .event .body {
    grid-template-columns: 1fr;
  }
  .event .lane.poster {
    order: 1;
  }
  .event .lane.carousel {
    order: 2;
    padding-left: 18px;
  }
}
@media (max-width: 640px) {
  .event .meta {
    font-size: 0.8rem;
  }
  .event .title {
    font-size: 0.9rem;
  }
}

@media (min-width: 780px) {
  #section-aboutus {
    font-size: 1em;
  }
}