.oa-archive-event .event-section {
  z-index: 1;
}

.oa-archive-event h1 {
  text-align: left;
  font-size: 50px;
  color: #2a2a2a;
  position: relative;
}
.oa-archive-event h2 {
  text-align: left;
  font-size: 24px;
  color: #2a2a2a;
  position: relative;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  padding-top: 0px !important;
  padding-bottom: 80px !important;
}

.event-item {
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 18px 0px rgba(0, 0, 0, 0.3);
  border-radius: 1.5rem;
  transition: transform 300ms ease 0ms;
  overflow: hidden;
  position: relative;
}
.event-item:hover {
  box-shadow: 0 2px 18px 0px rgba(0, 0, 0, 0.5);
}

.date-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #eb9929;
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 0 0 1rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  text-align: right;
  line-height: 1.2;
}
.date-badge .day {
  display: block;
  font-size: 1.3em;
}
.date-badge .month {
  display: block;
  font-size: 0.9em;
}

.event-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 12px;
}

.event-title a {
  color: #2a2a2a;
  font-size: 20px !important;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}
.event-title a:hover {
  color: #eb9929 !important;
}

.event-date,
.event-time {
  font-size: 16px;
  color: #2a2a2a;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
}

.event-date i,
.event-time i {
  color: #eb9929;
  font-size: 16px;
  margin-right: 8px;
  text-align: baseline;
}

.event-excerpt {
  margin-bottom: 16px;
  color: rgb(127, 127, 127);
  font-size: 16px;
  line-height: 1.4;
}

.event-reverse-button {
  border: 1px solid #0a4861;
  border-radius: 1rem;
  font-size: 16px;
  font-weight: 400;
  background-color: #fff;
  padding: 8px 20px;
}
.event-reverse-button a {
  color: #2a2a2a;
}
.event-reverse-button:hover {
  border: 1px solid #eb9929;
  background-image: initial;
  color: #eb9929 !important;
  padding: 8px 20px;
}
.event-reverse-button a:hover {
  color: #eb9929;
}
.event-reverse-button:hover:after {
  display: none;
}

/* Responsive Design */
@media (max-width: 980px) {
  .oa-archive-event h1 {
    font-size: 35px;
  }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
  }

  .event-item {
    padding: 20px;
  }

  .event-date,
  .event-time {
    font-size: 1em;
  }

  .date-badge {
    padding: 8px 12px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .oa-archive-event h1 {
    font-size: 24px;
  }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-item {
    padding: 15px;
  }

  .event-date,
  .event-time {
    font-size: 0.9em;
  }
}
