.competitions-hero {
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
  padding: 3rem 1rem;
  text-align: center;
}

.competitions-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.competitions-title {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.competitions-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.competitions-section {
  background-color: #f9fafb;
  padding: 3rem 1rem;
  min-height: 100vh;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #3b82f6, #e5e7eb);
  top: 0;
}

.timeline-event {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-event-left {
  margin-left: 0;
  margin-right: auto;
  width: 50%;
  padding-right: 3rem;
  text-align: right;
}

.timeline-event-right {
  margin-left: auto;
  margin-right: 0;
  width: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #3b82f6;
  border: 4px solid #ffffff;
  border-radius: 50%;
  top: 1rem;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.timeline-event-left .timeline-marker {
  right: -2.5rem;
}

.timeline-event-right .timeline-marker {
  left: -2.5rem;
}

.timeline-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  border-left: 4px solid #3b82f6;
}

.timeline-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.timeline-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-yellow {
  background-color: #fef3c7;
  color: #92400e;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.timeline-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.timeline-link:hover {
  color: #2563eb;
}

.competitions-footer {
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
  padding: 1rem 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
  padding: 0.5rem;
}

.footer-item:hover,
.footer-item.active {
  color: #3b82f6;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

.footer-login {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.footer-login:hover {
  background-color: #2563eb;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 1rem;
  }

  .timeline-event-left,
  .timeline-event-right {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-event-left .timeline-marker,
  .timeline-event-right .timeline-marker {
    left: 0.5rem;
    right: auto;
  }

  .timeline-card {
    border-left: 4px solid #3b82f6;
  }

  .competitions-footer {
    position: static;
  }

  .footer-container {
    justify-content: space-around;
    gap: 0.5rem;
  }

  .footer-item {
    flex: 1;
    max-width: 60px;
  }

  .footer-login {
    flex: 1;
    max-width: 120px;
    padding: 0.5rem 1rem;
  }

  .timeline-header {
    justify-content: flex-start;
  }

  .timeline-badge {
    margin-left: auto;
  }

  .competitions-title {
    font-size: 1.5rem;
  }

  .competitions-subtitle {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .timeline {
    margin: 0;
  }

  .timeline::before {
    left: 0.75rem;
  }

  .timeline-event {
    margin-bottom: 2rem;
  }

  .timeline-event-left,
  .timeline-event-right {
    padding-left: 2.5rem;
    padding-right: 0;
  }

  .timeline-event-left .timeline-marker,
  .timeline-event-right .timeline-marker {
    left: 0.25rem;
  }

  .timeline-marker {
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  .timeline-card {
    padding: 1rem;
  }

  .timeline-title {
    font-size: 0.95rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline-badge {
    display: inline-block;
  }

  .footer-container {
    gap: 0.25rem;
  }

  .footer-item {
    font-size: 0.65rem;
  }

  .footer-login {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .competitions-hero {
    padding: 2rem 1rem;
  }

  .competitions-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .competitions-subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}
