.container-section {
  margin-top: 60px;
}

.container-section h2 {
  text-align: center;
  font-size: 2.4rem;
  color: #990000;
  margin-bottom: 30px;
}


.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 10px;
}


.event-card {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #990000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 115px;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}


.event-date-block {
  background-color: #990000;
  color: #fff;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 65px;
  position: relative;
  overflow: visible;
}

.event-date-month {
  font-size: 0.70rem;
  letter-spacing: 1px;
  font-weight: bold;
  text-transform: uppercase;
  opacity: .9;
}

.event-date-day {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 3px;
  line-height: 1;
}


.event-card-content {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  color: #990000;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-meta {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 6px;
}

.event-description {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.35;
  flex-grow: 1;
  margin-bottom: 10px;
}


.event-link {
  margin-top: auto;
}

.event-link a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  background-color: #990000;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.event-link a:hover {
  background-color: #7a0000;
}


@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
    min-height: auto;
  }

  .event-date-block {
    flex-direction: row;
    justify-content: space-evenly;
    padding: 8px;
    min-width: 100%;
    position: relative;
    overflow: visible;
  }

  .event-date-day {
    font-size: 1.2rem;
  }
}

.event-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ffb400;
  color: #000;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 3;
  box-shadow: 0 0 4px rgba(255, 170, 0, 0.6);
}


.event-card.event-current {
  border-color: #ffb400 !important;
  background: linear-gradient(135deg, #fff7d1, #ffe8a8);
}


.event-card.event-soon {
  border-color: #ff4747 !important;
  background: linear-gradient(135deg, #ffeaea, #ffd1d1);
}


.event-countdown {
  font-size: 0.78rem;
  font-weight: bold;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 5px;
  display: inline-block;
  background: #e7ffe7;
  color: #226e22;
  border: 1px solid #83cb83;
}

.event-countdown.event-expired {
  background: #ffe2e2;
  color: #a30000;
  border-color: #ff9c9c;
}


.event-urgency-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff4545, #ffb4b4);
  opacity: .85;
}