body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #e3e1dd no-repeat center center fixed;
  background-size: cover;
  scroll-behavior: smooth;
}

.widget-container {
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.filters {
  display: flex;
  gap: 20px;
  color: #fff;
  font-weight: bold;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filters input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-radius: 4px;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

#cyberFilter:checked {
  background-color: #3B82F6;
  border-color: #3B82F6;
}

#othersFilter:checked {
  background-color: #EAB308;
  border-color: #EAB308;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  font-size: 1.8rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 45%;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn.left {
  left: 8px;
}

.nav-btn.right {
  right: 8px;
}

.carousel-wrapper {
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.year-slide {
  flex: 0 0 100%;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}

.year-slide h2 {
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  z-index: 1;
  border-radius: 10px;
}

.timeline {
  position: relative;
  margin: 40px 0;
  padding: 0 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
}

.event {
  position: relative;
  width: 45%;
  margin-bottom: 40px;
  padding: 10px;
  color: #fff;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.event.visible {
  opacity: 1;
  transform: translateY(0);
}

.event.hidden {
  opacity: 0;
  transform: translateY(5px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.event.left {
  left: 0;
  margin-right: 55%;
  text-align: right;
  transform: translateX(-20px);
}

.event.right {
  left: 55%;
  margin-left: 0;
  text-align: left;
  transform: translateX(20px);
}

.event::before {
  content: '';
  position: absolute;
  top: 10px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  left: -6px;
}

.category-cyber::before {
  background-color: #3B82F6; /* Blue */
}

.category-others::before {
  background-color: #EAB308; /* Gold */
}

.show-more-btn {
  display: block;
  margin: 0 auto 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #fff;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.show-more-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

@media screen and (max-width: 768px) {
  .timeline::before {
    display: none;
  }
  .event, .event.left, .event.right {
    width: 100%;
    left: 0;
    text-align: left;
    transform: none;
    margin-right: 0;
    margin-left: 0;
  }
}