/* =========================
   Base
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  color: #111;
}

/* =========================
   Hero Section
========================= */
/* =========================
   Hero Section (Blue Gradient)
========================= */
.events-hero {
  background: linear-gradient(
    120deg,
    #0504AA,
    #1a4fd8,
    #20B2AA
  );
  padding: 64px 6%;
  color: #ffffff;
}


.events-hero-inner {
  max-width: 980px;
}

.events-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.events-hero p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* =========================
   Page Layout
========================= */
.events-page {
  padding: 48px 6%;
}

/* =========================
   Section Headers
========================= */
.events-section {
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0a46c2;
  margin-bottom: 6px;
}

.section-head p {
  color: #555;
  line-height: 1.6;
  max-width: 720px;
}

/* =========================
   Grid Layout
========================= */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* =========================
   Event Cards
========================= */
.event-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

/* Image */
.event-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.event1-card {
  width: 100%;
  height: 180px;
  
}
/* Date above title */
.event-date-top {
  font-size: 0.86rem;
  font-weight: 700;
  color: #20B2AA;
  margin: 14px 16px 6px;
}

/* Title */
.event-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 16px 10px;
  color: #1a1a1a;
}

/* Description */
.event-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 16px 16px;
  flex-grow: 1;
}

/* Explore Button */
.event-btn {
  margin: 0 16px 16px;
  padding: 10px 14px;
  background: #0a46c2;
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.event-btn:hover {
  background: #021a79;
  transform: translateY(-1px);
}

/* Past Events Styling */
.event-card.past {
  opacity: 0.78;
}

/* =========================
   Footer
========================= */
.footer {
  padding: 28px 6%;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #ffffff;
  text-align: center;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .events-hero h1 {
    font-size: 2rem;
  }

  .events-page {
    padding: 40px 6%;
  }
}
.event-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.event-row .event-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.scroll-hint {
  font-size: 0.85rem;
  color: #777;
  margin-top: 8px;
}
