
/* Events Container */
.events-section {
  --events-arrow-size: px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Header Row */
.events-section .events-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  margin-bottom: 0px;
}

.events-section .events-header-content {
  flex: 1;
}

.events-section .section-description {
  text-align: left;
}

/* Controllers */
.events-section .events-controllers-desktop {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.events-section .events-controllers-mobile {
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* Navigation Buttons */
.events-section .events-nav-btn {
/*   width: var(--events-arrow-size);
  height: var(--events-arrow-size); */
  
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0px !important;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.events-section .events-nav-btn .events-inner {
/*   width: calc(var(--events-arrow-size) - 8px);
  height: calc(var(--events-arrow-size) - 8px); */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.events-section .events-nav-btn.events-prev .events-inner {
  background: linear-gradient(135deg, #4CAF6D 0%, #111111 100%);
}

.events-section .events-nav-btn.events-next .events-inner {
  background: linear-gradient(135deg, #111111 0%, #4CAF6D 100%);
}

.events-section .events-nav-btn svg {
  width: 35px;
  height: 35px;
  fill: #fff;
  display: block;
}

.events-section button.events-nav-btn:focus,
.events-section button.events-nav-btn:focus-visible,
.events-section button.events-nav-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Events Container */
.events-section .events-container {
  position: relative;
}

.events-section .events-swiper {
  width: 100%;
  padding: 40px 0;
}

.events-section .events-swiper .swiper-wrapper {
  align-items: stretch;
}

.events-section .events-swiper .swiper-slide {
  width: 670px !important;
  height: auto;
}

/* Link wrapper for clickable cards */
.events-section .events-card-link {
  text-decoration: none;
  display: block;
}

.events-section .events-card-link:hover .events-card {
  cursor: pointer;
}

.events-section .events-card {
  width: 670px;
  height: 450px;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.events-section .events-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.events-section .events-content {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 20px;
  padding: 24px;
}

.events-section .events-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
  color: #111;
}

.events-section .events-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.events-section .events-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #111111;
  font-weight: 400;
}

.events-section .events-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Desktop heading width control */
@media (min-width: 426px) {
  .events-section .events-header-content {
    {% if module.events_heading_text_width_desktop %}
      max-width: %;
    {% endif %}
  }
}

/* Tablet */
@media (max-width: 768px) {
  .events-section .events-swiper .swiper-slide {
    width: 100% !important;
    max-width: 700px;
  }

  .events-section .events-card {
    width: 100%;
    height: 400px;
  }

  .events-section .events-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .events-section .events-meta {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .events-section .events-detail {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .events-section .events-card {
    height: 250px;
  }

  .events-section .events-content {
    padding: 20px;
  }

  .events-section .events-title {
    font-size: 16px;
  }

  .events-section .events-icon {
    width: 16px;
    height: 16px;
  }
}

/* Mobile layout adjustments */
@media (max-width: 425px) {
  .events-section {
    --events-arrow-size: px;
  }

  .events-section .events-header-row {
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px;
    gap: 15px;
  }

  .events-section .section-heading {
    text-align: center;
  }

  .events-section .section-description {
    text-align: center;
  }

  .events-section .events-controllers-desktop {
    display: none;
  }

  .events-section .events-controllers-mobile {
    display: flex;
  }

  h3.events-title {
    font-size: 16px !important;
  }

  .events-section .events-swiper {
    width: 100%;
    padding: 0px;
  }

  .events-section .events-controllers-mobile {
    margin-top: 30px;
  }
}