.events-section {
  width: 100%;
  padding: 128px 32px;
  background: #FAF9F2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 64px;
}

.events-section__container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 64px;
}

.events-section__header {
  width: 100%;
  max-width: 960px;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
}

.events-section__title {
  width: 100%;
  text-align: center;
  color: var(--Color-Marine-Dark, #002542);
  font-size: 41px;
  font-family: 'Rufina', serif;
  font-weight: 400;
  line-height: 41px;
  word-wrap: break-word;
  margin: 0;
}

.events-section__description {
  width: 100%;
  color: var(--Color-Marine-Dark, #002542);
  font-size: 16px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  line-height: 24px;
  word-wrap: break-word;
  margin: 0;
}

.events-section__controls {
  display: none;
}


.events-section .view-all-link {
  height: auto;
  padding: 8px 0;
  padding-top: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  color: var(--Color-Marine-Dark, #002542);
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  line-height: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-top: 1.5px solid var(--Color-Marine-Dark, #002542);
  width: fit-content;
}

.events-section .view-all-link:hover {
  opacity: 0.7;
}

.events-section .view-all-link svg {
  width: 20px;
  height: 20px;
}

.events-carousel-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.events-carousel-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.events-carousel-arrows {
  display: flex;
  gap: 16px;
  align-items: center;
}

.events-carousel-arrow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--Color-Marine-Dark, #002542);
  padding: 0;
  transition: opacity 0.3s ease;
}

.events-carousel-arrow-button:hover:not(:disabled) {
  opacity: 0.7;
}

.events-carousel-arrow-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.events-carousel-arrow-button svg {
  width: 24px;
  height: 24px;
}

.events-carousel-view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--Color-Marine-Dark, #002542);
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-bottom: 1.5px solid var(--Color-Marine-Dark, #002542);
  padding-bottom: 8px;
}

.events-carousel-view-all:hover {
  opacity: 0.7;
}

.events-carousel-view-all svg {
  width: 20px;
  height: 20px;
}

.events-carousel-progress {
  width: 100%;
  height: 2px;
  background: rgba(0, 37, 66, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.events-carousel-progress__bar {
  height: 100%;
  background: var(--Color-Primary, #003764);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.events-carousel__message {
  text-align: center;
  padding: 40px;
  color: #999;
  margin: 0;
}

.events-carousel {
  width: 100%;
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  overflow-y: hidden;
}

.events-carousel::-webkit-scrollbar {
  height: 4px;
}

.events-carousel::-webkit-scrollbar-track {
  background: rgba(0, 37, 66, 0.1);
  border-radius: 2px;
}

.events-carousel::-webkit-scrollbar-thumb {
  background: var(--Color-Primary, #003764);
  border-radius: 2px;
}

.event-card {
  flex: 0 0 calc(33.333% - 22px);
  min-width: 300px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
}

.event-card__image {
  width: 100%;
  height: 251.12px;
  background: black;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.event-card__meta {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.event-card__date {
  color: var(--Color-Marine-Dark, #002542);
  font-size: 12px;
  font-family: 'Cronos Pro', serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 18px;
  letter-spacing: 0.96px;
  word-wrap: break-word;
  white-space: nowrap;
}


.event-card__divider {
  flex: 1 1 0;
  height: 1px;
  background: var(--Color-Marine-Dark, #002542);
}

.event-card__title {
  width: 100%;
  color: var(--Color-Marine-Dark, #002542);
  font-size: 24px;
  font-family: 'Cronos Pro', serif;
  font-weight: 400;
  line-height: 26.4px;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.event-card__link {
  height: 36px;
  padding: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--Color-Marine-Dark, #002542);
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  line-height: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.event-card__link:hover {
  opacity: 0.7;
}

.event-card__link svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .events-section {
    padding: 96px 24px;
  }

  .events-section__container {
    gap: 48px;
  }

  .event-card {
    flex: 0 0 calc(50% - 16px);
    min-width: 280px;
    max-width: 100%;
  }

  .events-section__title {
    font-size: 41px;
    line-height: 41px;
  }
}

@media (max-width: 768px) {
  .events-section {
    padding: 64px 16px;
  }

  .events-section__title {
    font-size: 36px;
    line-height: 36px;
    text-align: left;
  }

  .event-card {
    flex: 0 0 320px;
  }

  .events-carousel-controls {
    display: none;
  }

  .events-carousel-progress {
    display: none;
  }
}

@media (max-width: 480px) {
  .events-section {
    padding: 48px 16px;
    gap: 40px;
  }

  .events-section__container {
    gap: 32px;
  }

  .events-section__header {
    gap: 32px;
  }

  .events-section__title {
    font-size: 36px;
    line-height: 32.4px;
    text-align: left;
  }

  .events-section__description {
    font-size: 14px;
    line-height: 20px;
  }

  .event-card {
    flex: 0 0 100%;
  }

  .events-carousel {
    gap: 16px;
  }

  .carousel-controls {
    display: none !important;
  }

  .events-carousel-controls {
    display: none !important;
  }

  .events-carousel-progress {
    display: none !important;
  }

  .events-section .view-all-link {
    justify-content: flex-start;
    border-top: 1.5px solid var(--Color-Marine-Dark, #002542);
    padding-top: 12px;
    padding-bottom: 0;
  }

  .events-section .view-all-link__text {
    display: flex;
    justify-content: flex-start;
  }
}
