.custom-event-cards {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
}

.custom-event-cards .fl-left {
  float: left;
}

.custom-event-cards .fl-right {
  float: right;
}

.custom-event-cards h1 {
  text-transform: uppercase;
  font-weight: 900;
  border-left: 10px solid #fec500;
  padding-left: 10px;
  margin-bottom: 30px;
}

.custom-event-cards .event-row {
  overflow: hidden;
}

/* CARD */
.custom-event-cards .event-card {
  float: left;
  width: 32%;
  margin-right: 2%;
  margin-bottom: 20px;
  background-color: #fff;
  color: #989898;
  border-radius: 4px;
  position: relative;
  display: table;
}

.custom-event-cards .event-card:nth-child(3n) {
  margin-right: 0;
}

.custom-event-cards .date {
  display: table-cell;
  width: 25%;
  position: relative;
  text-align: center;
  border-right: 2px dashed #dadde6;
  background: #f5f5f5;
  border-radius: 4px;
}

.custom-event-cards .date:before,
.custom-event-cards .date:after {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background-color: #000;
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 1;
  border-radius: 50%;
}

.custom-event-cards .date:after {
  top: auto;
  bottom: -15px;
}

.custom-event-cards .date time {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.custom-event-cards .date time span {
  display: block;
}

.custom-event-cards .date time span:first-child {
  color: #2b2b2b;
  font-weight: 600;
  font-size: 150%;
}

.custom-event-cards .date time span:last-child {
  text-transform: uppercase;
  margin-top: -10px;
  font-size: 80%;
}

.custom-event-cards .card-cont {
  display: table-cell;
  width: 75%;
  font-size: 85%;
  padding: 10px 10px 30px 50px;
}

.custom-event-cards .card-cont h3 {
  color: #3c3c3c;
  font-size: 100%;
}

.custom-event-cards .card-cont > div {
  display: table-row;
}

.custom-event-cards .card-cont .even-date i,
.custom-event-cards .card-cont .even-info i,
.custom-event-cards .card-cont .even-date time,
.custom-event-cards .card-cont .even-info p {
  display: table-cell;
}

.custom-event-cards .card-cont .even-date i,
.custom-event-cards .card-cont .even-info i {
  padding: 5% 5% 0 0;
}

.custom-event-cards .card-cont .even-info p {
  padding: 30px 50px 0 0;
}

.custom-event-cards .card-cont .even-date time span {
  display: block;
}

.custom-event-cards .card-cont a {
  display: block;
  text-decoration: none;
  width: 80px;
  height: 30px;
  background-color: #d8dde0;
  color: #fff;
  text-align: center;
  line-height: 30px;
  border-radius: 4px;
  position: absolute;
  right: 10px;
  bottom: 10px;
}

/* Cores dos botões para último row */
.custom-event-cards .event-row:last-child .event-card:first-child .card-cont a {
  background-color: #037fdd;
}

.custom-event-cards .event-row:last-child .event-card:last-child .card-cont a {
  background-color: #f8504c;
}

/* RESPONSIVO */

/* Tablet */
@media screen and (max-width: 992px) {
  .custom-event-cards .event-card {
    width: 48%;
    margin-right: 4%;
  }

  .custom-event-cards .event-card:nth-child(2n) {
    margin-right: 0;
  }
}

/* Mobile */
@media screen and (max-width: 576px) {
  .custom-event-cards .event-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* Espaçamento entre cards */
  }

  .custom-event-cards .event-card {
    float: none;
    width: 90%;
    max-width: 400px;
    margin: 0;
    display: block;
  }

  .custom-event-cards .date::before,
  .custom-event-cards .date::after {
    width: 30px;
    height: 30px;
    top: 100%;
    left: -15px;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
  }

  .custom-event-cards .date::after {
    left: auto;
    right: -15px;
  }

  .custom-event-cards .date {
    display: block;
    width: 100%;
    border-right: none;
    border-bottom: 2px dashed #dadde6;
    padding: 20px 0;
    position: relative;
    background: #f5f5f5;
  }

  .custom-event-cards .date time {
    position: static;
    transform: none;
    text-align: center;
  }

  .custom-event-cards .card-cont {
    display: block;
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .custom-event-cards .card-cont h3 {
    font-size: 1.4rem;
  }

  .custom-event-cards .card-cont .even-date,
  .custom-event-cards .card-cont .even-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
  }

  .custom-event-cards .card-cont a {
    position: static;
    width: 100%;
    height: 40px;
    line-height: 40px;
    margin-top: 20px;
  }
}

/* Fundo escuro padrão */
.bg-dark {
  background-color: #343a40 !important; /* Cor padrão Bootstrap */
  color: #fff;
}

/* Overlay escuro semi-transparente */
.overlay-dark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8); /* 50% de opacidade preta */
  z-index: 1;
}

/* Certifique-se de que o conteúdo fique acima do overlay */
.overlay-dark > * {
  position: relative;
  z-index: 2;
}
