/* ============================================
   EVENTS PAGE
   ============================================ */

.events-page {
  background: #040923;
  min-height: 100vh;
}

.sh_1 {
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 0;
}

.sh_2 {
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 0;
}

.sh_3 {
  position: absolute;
  pointer-events: none;
  right: 0;
  bottom: 0;
}

/* --- Hero --- */
.events-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
  z-index: 3;
}

.events-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.events-hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.events-hero container {
  position: relative;
  z-index: 1;
}

.events-hero__title {
  font-size: 46px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
  text-align: left;
}

.events-hero__subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: left;
}

/* --- Events List --- */
.events-list {
  padding: 0 0 80px;
}

.events-grid {
  display: flex;
  flex-direction: column;
}

/* --- Event Card --- */
.event-card {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 99px;
}

@media (max-width: 1500px) {
  .event-card {
    margin-bottom: 36px;
  }
}

.event-card__decor {
  position: absolute;
  left: 0;
  pointer-events: none;
  height: 482px;
  width: 813px;
  top: 50%;
  transform: translateY(-50%);
}

.event-card:nth-child(even) .event-card__decor {
  left: unset;
  right: 0;
}

@media (max-width: 1780px) {
  .event-card__decor {
    left: -105px;
  }

  .event-card:nth-child(even) .event-card__decor {
    left: unset;
    right: -105px;
  }
}

.event-card__decor {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.event-card:hover .event-card__decor {
  opacity: 0.9;
  transform: translateY(-50%) scale(1.05);
}

/* Even side — decor mirrored, keep scale direction */
.event-card:nth-child(even) .event-card__decor {
  transform: translateY(-50%) scaleX(-1);
}

.event-card:nth-child(even):hover .event-card__decor {
  transform: translateY(-50%) scaleX(-1) scale(1.05);
}

.event-card__container {
  max-width: 1536px;
  min-height: 291px;
  overflow: hidden;
  position: relative;
  width: 100%;
  border: 1px solid #3633D0;

}

@media (max-width: 1780px) {
  .event-card__container {
    max-width: 1136px;
  }
}

@media (max-width: 1200px) {
  .event-card__container {
    max-width: 980px;
  }
}

.event-card:last-child {

}

/* Background photo */
.event-card__bg {
  position: absolute;
  inset: 0;
  background-image: var(--event-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.4s ease;
}

/* Odd: gradient from left, Even: gradient from right */
.event-card:nth-child(odd) .event-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
  #040923 0%, rgba(6, 16, 65, 0.5) 100%);;
}

.event-card:nth-child(even) .event-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 16, 65, 0.5) 0%, #040923 100%);

}

.event-card:hover .event-card__bg {
  transform: scale(1.03);
}

/* Grid decor lines */
.event-card__grid {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 280px;
  z-index: 1;
  pointer-events: none;
  background-image: var(--event-grid-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.event-card:nth-child(odd) .event-card__grid {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, transparent 100%);
}

.event-card:nth-child(even) .event-card__grid {
  right: 0;
  left: auto;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, transparent 100%);
}

/* Corner decorators */
.event-card__corner {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.event-card__corner--tr {
  top: 0;
  width: 180px;
  height: 186px;
}

.event-card__corner--br {
  bottom: 0;
  width: 54px;
  height: 56px;
}

/* Odd: corners right side */
.event-card:nth-child(odd) .event-card__corner--tr {
  right: 0;
}

.event-card:nth-child(odd) .event-card__corner--br {
  right: 0;
}

/* Even: corners left side, mirrored */
.event-card:nth-child(even) .event-card__corner--tr {
  left: 0;
  transform: scaleX(-1);
}

.event-card:nth-child(even) .event-card__corner--br {
  left: 0;
  transform: scaleX(-1);
}

.event-card__corner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card inner */
.event-card__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 50px 60px;
  display: flex;
  align-items: center;
}

.event-card__top {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
}

/* Odd: text left, logo right */
.event-card:nth-child(odd) .event-card__top {
  flex-direction: row;
  justify-content: space-between;
}

/* Even: logo left, text right */
.event-card:nth-child(even) .event-card__top {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.event-card__info {
  flex: 1;
  max-width: 993px;
}

@media (max-width: 1500px) {

  .event-card__info {

    max-width: 693px;
  }
}

@media (max-width: 1200px) {

  .event-card__info {

    max-width: 437px;
  }
}

.event-card:nth-child(even) .event-card__info {
  text-align: right;
}

.event-card:nth-child(even) .event-card__meta {
  justify-content: flex-end;
}

.event-card__title {
  font-size: 50px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.02px;
}

.event-card__text {
  font-size: 18px;
  color: #fff;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 20px;
  @media (max-width: 1200px) {
    font-size: 16px;
    font-weight: 500;
  }
  @media (max-width: 650px) {
    font-size: 14px;
    font-weight: 500;
  }
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.event-card__link {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  color: #42DFE3;
  text-decoration: none;
  padding-bottom: 2px;
  letter-spacing: -0.02px;
  transition: 0.3s ease;
}

.event-card__link:hover {
  transform: scale(1.05);
}

.event-card__logo {
  flex-shrink: 0;
  width: 363px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__logo img {
  max-width: 100%;
  object-fit: contain;
}

.events-empty {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 60px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1025px) {
  .event-card__inner {
    padding: 40px;
  }

  .events-hero__title {
    margin-bottom: 20px;
  }

  .event-card__logo {

  }
}

@media (max-width: 700px) {
  .event-card__container {
    max-width: 600px;
  }

  .events-hero__subtitle {
    font-size: 14px;

  }

  .event-card__logo {
    height: 100px;
    width: 230px;
  }

  .event-card__title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .event-card__corner--tr {
    width: 135px;
    height: 136px;
  }

  .event-card__corner--br {
    width: 40px;
    height: 42px;
  }

  .event-card__link {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .events-hero__title {
    font-size: 28px;
  }

  .event-card__inner {
    padding: 30px 24px;
  }

  .event-card:nth-child(odd) .event-card__top,
  .event-card:nth-child(even) .event-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .event-card:nth-child(even) .event-card__info {
    text-align: left;
  }

  .event-card:nth-child(even) .event-card__meta {
    justify-content: flex-start;
  }

  .event-card__info {
    order: 2;
  }

  .event-card__logo {
    width: 200px;
    align-self: center;
    order: 1;
  }

  .event-card__title {
  }

  .event-card__grid {
    display: none;
  }

  .event-card__meta-item {
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  .event-card__container {
    max-width: 370px;
  }
}

@media (max-width: 500px) {
  .event-card__container {
    max-width: 370px;
  }
}

@media (max-width: 400px) {
  .event-card__container {
    max-width: 360px;
  }
}

@media (max-width: 361px) {
  .event-card__container {
    max-width: 340px;
  }
}

@media (max-width: 341px) {
  .event-card__container {

    max-width: 320px;
  }
}

@media (max-width: 321px) {
  .event-card__container {
    max-width: 300px;
  }
}

/* Events Pagination
   Matches Figma: circular buttons, filled active state, arrow prev/next */

.events-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 64px;
}

.events-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3633D0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.events-pagination__btn--arrow {
  width: 60px;
  height: 60px;
  margin: 0 40px;
}

.events-pagination__btn:hover:not(.events-pagination__btn--current):not(.events-pagination__btn--disabled) {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.events-pagination__btn--current {
  background: #3633D0;
  border-color: #3633D0;
  color: #fff;
  cursor: default;
}

.events-pagination__btn--arrow {
  border-color: rgba(255, 255, 255, 0.3);
}

.events-pagination__btn--arrow svg {
  flex-shrink: 0;
}

.events-pagination__btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  border: 3px solid #3633D0;
}

.events-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  letter-spacing: 2px;
  user-select: none;
}

@media (max-width: 520px) {
  .events-pagination__btn--arrow {

    margin: 0;
  }

}

/* ================================
   Upcoming Events Block
   ================================ */

.upcoming-events {
  padding: 60px 0;
}

.upcoming-events__title {
  margin-bottom: 32px;
}

/* Slider wrap: column — swiper on top, nav below */
.upcoming-events__slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.upcoming-events__swiper {
  width: 100%;
  min-width: 0;
  position: static;
}

.upcoming-events__footer {
  display: flex !important;
  justify-content: center;
}

/* ---- Nav row: arrow · dots · arrow ---- */
.upcoming-events__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 12px;
  gap: 25px;
}


/* ---- Arrow base ---- */
.upcoming-events__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

/* Prev — outline only */
.upcoming-events__arrow.swiper-btn-prev {
  border: 2px solid #3633D0;
  background: transparent;
  color: #fff;
}

.upcoming-events__arrow.swiper-btn-prev:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

/* Next — filled purple */
.upcoming-events__arrow.swiper-btn-next {
  border: 2px solid #3633D0;
  background: #3633D0;
  color: #fff;
}

.upcoming-events__arrow.swiper-btn-next:hover {
  background: #4a47e0;
  border-color: #4a47e0;
}

/* Disabled state */
.upcoming-events__arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Pagination dots ---- */
.upcoming-events__pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  position: static !important;
  width: auto !important;
  bottom: auto !important;
}

.upcoming-events__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background: #ffffff;
  border-radius: 50%;
  opacity: 1;
  transition: background 0.2s, transform 0.2s;
}

.upcoming-events__pagination .swiper-pagination-bullet-active {
  background: #3633D0;
}

/* ---- Card ---- */
.upcoming-events__card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(180deg, #061041 -21.6%, #04267D 99.98%);


  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  height: 100%;
}

.upcoming-events__card-logo {
  flex-shrink: 0;
  width: 138px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upcoming-events__card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.upcoming-events__card-initials {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.upcoming-events__card-info {
  flex: 1;
  min-width: 0;
}

.upcoming-events__card-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

.upcoming-events__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upcoming-events__card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ffffff;
}

.upcoming-events__card-meta-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ---- Footer ---- */
.upcoming-events__footer {
  margin-top: 36px;
  text-align: center;
}

@media (max-width: 1025px) {
  .upcoming-events__nav {
    margin-top: 30px;
  }
}

@media (max-width: 900px) {
  .upcoming-events__card {
    min-height: 170px;
  }

  .upcoming-events__swiper {
    height: 350px; /* 2 cards + gap — tweak to match your card height */
  }
}

@media (min-width: 900px) {
  .upcoming-events__swiper {
    height: auto;
  }
}

@media (max-width: 500px) {
  .upcoming-events__card-logo {

    width: 97px;

  }
}
