.events__overlay {
  background: linear-gradient(135deg,
      rgb(255 215 57 / 85%) 0%,
      rgb(255 239 96 / 95%) 100%) center center / cover no-repeat;
  margin: 0 auto;
  padding: 2rem 0;
}

.events__year-nav {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  height: 56px;
}

.events__year-btn {
  width: 40px;
  background: none;
  border: none;
  color: rgba(44, 62, 80, 0.7);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 1.1s cubic-bezier(0, 1.32, 1, 1);
  position: relative;
  padding: 0;
  padding-top: 8px;
}

.events__year-btn:hover,
.events__year-btn--active {
  color: #2c3e50;
  border-bottom-color: #2c3e50;
}

.events__year-content {
  display: none;
}

.events__year-content--active {
  display: block;
}

.events__content {
  padding: 2rem 0;
}

.events__event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(455px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.events__event-card {
  display: flex;
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  min-height: fit-content;
  height: 100%;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
  align-items: center;
  column-gap: 1rem;
}

.events__event-image {
  width: 40%;
  align-content: center;
  flex-shrink: 0;
  text-align: center;
}

.events__event-img {
  width: 100%;
  object-fit: contain;
}

.events__event-content {
  padding-bottom: 1rem;
}

.events__event-title {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.events__event-location {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  font-style: italic;
}

.events__event-description {
  color: #34495e;
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 10;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.events__event-description p {
  margin-bottom: 0.5rem;
}

.events__event-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .events {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .events__content {
    padding: 0.5rem 0 2rem 0;
  }

  .events__event-grid {
    display: block;
  }

  .events__event-card {
    background: transparent;
    border-radius: 50%;
    width: fit-content;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
    padding: 0;
    column-gap: 0;
    min-height: auto;
  }

  .events__event-image {
    width: 160px;
    height: 160px;
    margin-bottom: 10px;
    border-radius: 50%;
    padding: 10px;
    overflow: hidden;
    background: white;
  }

  .events__event-img {
    width: 100%;
    height: 100%;
  }

  .events__event-content {
    padding-bottom: 0;
    text-align: center;
  }

  .events__event-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .events__event-location {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .events__event-description {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }

  .sevensun-about-us .sevensun-section__title {
    margin-top: 2rem !important;
    padding: 0 10px;
    line-height: 1.35em;
  }

  .events .owl-carousel .events__event-card {
    margin: 0 auto;
  }

  .events .owl-stage .owl-item {
    margin-bottom: 0;
  }

  .events .owl-dots {
    text-align: center;
    margin-top: 20px;
  }

  .events .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(96, 96, 96, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: none;
  }

  .events .owl-dot.active {
    background: white;
    transform: scale(1.2);
  }

  .events .owl-dot span {
    display: none;
  }

  .sevensun-about-us .events .owl-theme .owl-dots .owl-dot span {
    background: #504d4d00 !important;
  }

  .sevensun-about-us .events .owl-theme .owl-dots .owl-dot.active span {
    background: black !important;
  }


  .events__event-title,
  .events__event-description {
    display: none;
  }

}

@media (min-width: 768px) and (max-width: 1023px) {
  .events__event-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  .events__event-card {
    max-width: none;
    margin: 0 auto;
    width: 100%;
    max-width: 655px;
  }

  .events__event-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}
