/* ===================== SECTION ===================== */
* {
  margin: 0;
  padding: 0;
}
.two-row-carousel {
  padding: 60px 70px;
  background: #f9f9f9;
  overflow: hidden;
  background: url("../images/Rectangle\ 319\ \(1\).png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ===================== FILTER BUTTONS ===================== */
.two-row-carousel-buuton {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.two-row-carousel-buuton button {
  padding: 10px 22px;
  border-radius: 15px;
  border: 2px solid #1c3f94;
  color: #1c3f94;
  background: transparent;
  cursor: pointer;
  font-family: Poppins;
  font-size: 14px;
  transition: 0.3s;
}

.two-row-carousel-buuton button:hover {
  background: #1c3f94;
  color: #fff;
}

/* ===================== WRAPPER ===================== */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ===================== ROWS ===================== */
.carousel-row {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: slide-left 22s linear infinite;
}

/* ===================== CARDS ===================== */
.event-card {
  width: 340px;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.85)
  );
}

/* ===================== CONTENT ===================== */
.event-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-family: Poppins;
}

.event-info h3 {
  margin-bottom: 5px;
  font-family: Poppins;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
  padding-bottom: 5px;
}
.event-info p {
  font-size: 14px;
  margin-bottom: 10px;
  font-family: Poppins;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 26px;
  letter-spacing: 1%;
    padding-bottom: 5px;
}
.event-info button {
  background: #1c3f94;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
}

/* ===================== ANIMATION ===================== */
@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================== RESPONSIVE ===================== */

/* ------ TABLET (max 1024px) ------ */
@media (max-width: 1024px) {
  .two-row-carousel {
    padding: 40px 30px;
  }
  .event-card {
    width: 300px;
    height: 360px;
  }
  .carousel-row {
    gap: 18px;
  }
}

/* ------ MOBILE LARGE (max 768px) ------ */
@media (max-width: 768px) {
  .two-row-carousel {
    padding: 35px 20px;
  }
  .event-card {
    width: 250px;
    height: 330px;
  }
  .carousel-row {
    gap: 16px;
  }
  .two-row-carousel-buuton button {
    font-size: 13px;
    padding: 8px 18px;
  }
}

/* ------ MOBILE SMALL (max 480px) ------ */
@media (max-width: 480px) {
  .event-card {
    width: 210px;
    height: 300px;
  }
  .carousel-row {
    gap: 14px;
  }
  .two-row-carousel-buuton {
    gap: 8px;
  }
  .two-row-carousel-buuton button {
    padding: 7px 14px;
    font-size: 12px;
  }
}
