/* SECTION */
.events-section {
  background: #fafafa;
  padding: 60px 70px;
  overflow: hidden;
  background: url("../images/Rectangle\ 319\ \(1\).png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* HEADING */
.events-heading h2 {
  font-family: Merriweather;

  font-weight: 700;
  color: #1c3f94;
  font-family: Merriweather;
font-weight: 700;
font-style: Bold;
font-size: 36px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;

}
.events-heading span { color: #ee1b22; }
.events-heading p {
  margin-top: 0px;
  font-family: Poppins;
font-weight: 400;
font-style: Regular;
font-size: 16px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;
  color: #1c3f94;

}

/* CAROUSEL WRAPPER */
.events-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

/* TRACK */
.events-track {
  display: flex;
  gap: 30px;
  animation: scroll-left 28s linear infinite;
}

/* CARD */
.event-card {
  min-width: 320px;
  height: 430px;
  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.8)
  );
}

/* CONTENT */
.event-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  font-family: Poppins;
}
.event-content h3 { font-family: Poppins;
font-weight: 600;
font-style: SemiBold;
font-size: 18px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;
padding-bottom: 5px;
 }
.event-content p { font-family: Poppins;
font-weight: 400;
font-style: Regular;
font-size: 16px;
leading-trim: NONE;
line-height: 100%;
letter-spacing: 1%;
padding-bottom: 5px;
 }
.event-content button {
  background: #1c3f94;
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* KEYFRAMES */
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================== RESPONSIVE CSS ===================== */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .events-section {
    padding: 50px 40px;
  }
  .event-card {
    min-width: 280px;
    height: 380px;
  }
  .events-track {
    gap: 20px;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .events-heading h2 {
    font-size: 30px;
    text-align: center;
  }
  .events-heading p {
    text-align: center;
  }
  .events-section {
    padding: 40px 20px;
  }
  .event-card {
    min-width: 240px;
    height: 340px;
  }
  .events-track {
    gap: 18px;
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .event-card {
    min-width: 200px;
    height: 300px;
  }
  .events-track {
    gap: 14px;
  }
  .event-content h3 {
    font-size: 18px;
  }
  .event-content p {
    font-size: 12px;
  }
  .event-content button {
    padding: 8px 16px;
    font-size: 12px;
  }
}