/* Base styles for the section wrapper to handle background and centering */
.virar-o-jogo-section-wrapper {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f0f0f0; /* Background color as seen in the image */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Takes full viewport height */
  box-sizing: border-box;
  width: 100%; /* Ensures it takes full width */
}

.virar-o-jogo-container {
  max-width: 900px;
  width: 100%;
  padding: 30px;
  border-radius: 8px;

  text-align: center;
}

.virar-o-jogo-title {
  font-size: 2em;
  color: #333;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.virar-o-jogo-highlight {
  color: #DAA51E; /* Orange color from the image */
}

.virar-o-jogo-timeline {
  position: relative;
  margin: 0 auto 50px auto;
  padding: 0;
}

.virar-o-jogo-timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: #DAA51E; /* Orange line */
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.virar-o-jogo-timeline-item {
  display: flex;
  justify-content: center; /* Center items for mobile */
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.virar-o-jogo-timeline-circle {
  width: 40px;
  height: 40px;
  background-color: #DAA51E; /* Orange circle */
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.virar-o-jogo-timeline-content {
  background-color: #fff; /* Ensure content background is white */
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: calc(50% - 40px); /* Adjust width for desktop */
  box-sizing: border-box;
  position: relative;
  margin-top: 60px; /* Space for the circle above it */
}

.virar-o-jogo-timeline-content.virar-o-jogo-left-content {
  margin-right: calc(50% + 20px); /* Pushes it to the left of the line */
}

.virar-o-jogo-timeline-content.virar-o-jogo-right-content {
  margin-left: calc(50% + 20px); /* Pushes it to the right of the line */
}

.virar-o-jogo-date {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.virar-o-jogo-description {
  color: #666;
  line-height: 1.5;
}

.virar-o-jogo-button-container {
  margin-top: 40px;
}

.virar-o-jogo-button {
  display: inline-block;
  background-color: #FBC02C; /* Green color from the image */
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.virar-o-jogo-button:hover {
  background-color: #d39700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .virar-o-jogo-title {
    font-size: 0.85em;
  }

  .virar-o-jogo-timeline::before {
    left: 20px; /* Move line to the left for mobile */
    transform: translateX(0);
  }

  .virar-o-jogo-timeline-item {
    flex-direction: column; /* Stack elements vertically */
    align-items: flex-start; /* Align to the left */
  }

  .virar-o-jogo-timeline-circle {
    left: 20px; /* Align circle with the line */
    transform: translateX(-50%);
    top: 0;
  }

  .virar-o-jogo-timeline-content {
    width: calc(
      100% - 60px
    ); /* Adjust width for mobile, considering padding and circle */
    margin-top: 0; /* Reset top margin */
    margin-left: 60px; /* Push content to the right of the line and circle */
    padding-top: 0; /* Adjust padding as circle is above */
  }

  .virar-o-jogo-timeline-content.virar-o-jogo-left-content,
  .virar-o-jogo-timeline-content.virar-o-jogo-right-content {
    margin-right: 0;
    margin-left: 60px; /* Both contents align to the right of the vertical line */
  }

  .virar-o-jogo-timeline-item:not(:last-child) {
    margin-bottom: 60px; /* Add space between items */
  }
}

@media (max-width: 480px) {
  .virar-o-jogo-title {
    font-size: 1.4em;
  }

  .virar-o-jogo-timeline-circle {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  .virar-o-jogo-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}