/* Visual Timeline CSS for Rugby Norway Marketing Plan */

.visual-timeline-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  padding: 1rem;
  overflow-x: auto;
}

.visual-timeline {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.timeline-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.timeline-description {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.months-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.month-card {
  flex: 1;
  min-width: 150px;
  margin: 0 5px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.month-card:hover {
  transform: translateY(-5px);
}

.month-header {
  padding: 10px;
  text-align: center;
  color: white;
  font-weight: bold;
}

.month-content {
  background-color: white;
  padding: 15px;
  min-height: 180px;
}

.month-content ul {
  list-style-type: none;
  padding-left: 5px;
  margin-bottom: 0;
}

.month-content li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.month-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.month-icon {
  text-align: center;
  padding: 15px 0;
  font-size: 2rem;
}

/* Month colors */
.month-jan .month-header { background-color: #0077c2; }
.month-feb .month-header { background-color: #d32f2f; }
.month-mar .month-header { background-color: #ff8f00; }
.month-apr .month-header { background-color: #7cb342; }
.month-may .month-header { background-color: #455a64; }
.month-jun .month-header { background-color: #6a1b9a; }
.month-jul .month-header { background-color: #0288d1; }
.month-aug .month-header { background-color: #c62828; }
.month-sep .month-header { background-color: #ef6c00; }
.month-oct .month-header { background-color: #558b2f; }
.month-nov .month-header { background-color: #37474f; }
.month-dec .month-header { background-color: #4a148c; }

/* Timeline connector */
.timeline-connector {
  position: relative;
  height: 40px;
  margin: 0 auto;
  width: 90%;
}

.connector-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #ccc;
  z-index: 1;
}

.connector-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.connector-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: -6px;
}

/* Second row of months */
.months-row-2 {
  display: flex;
  justify-content: space-between;
}

/* KPI section */
.timeline-kpis {
  margin-top: 3rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-kpis h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.kpi-item {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--accent-color);
}

.kpi-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.kpi-item ul {
  padding-left: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .months-row, .months-row-2 {
    flex-wrap: wrap;
  }
  
  .month-card {
    flex: 0 0 calc(33.333% - 10px);
    margin-bottom: 15px;
  }
  
  .timeline-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .month-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .month-card {
    flex: 0 0 100%;
  }
}
