/* ===================================================== */
/*                GLOBAL RESET & TYPOGRAPHY            */
/* ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #FAF9F7; /* Soft neutral background */
  color: #333;
  line-height: 1.6;
}

/* ===================================================== */
/*          INDEX PAGE CONTAINER & TITLE               */
/* ===================================================== */
.index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2d2d2d;
}

/* ===================================================== */
/*         HORIZONTAL EVENT GRID LAYOUT                */
/* ===================================================== */
.events-grid {
  display: flex;
  flex-wrap: nowrap;             /* Force items in a single horizontal row */
  overflow-x: auto;              /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
  gap: 20px;                    /* Space between event cards */
  padding: 10px;
}

/* ===================================================== */
/*              EVENT CARD (BUBBLED STYLE)             */
/* ===================================================== */
.event-card {
  background-color: #fff;
  width: 272px;                   /* 15% smaller than 320px */
  border-radius: 20px;            /* Rounded corners for a "bubbled" look */
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 auto;              /* Fixed width, no shrinking */
  max-height: 300px;           /* Fixed height for consistency */
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ===================================================== */
/*         EVENT CARD CONTENT STYLING                 */
/* ===================================================== */
/* Event Image */
.event-image-link img {
  width: 100%;
  height: 120px;               /* Reduced image height */
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Container for event text content */
.event-info {
  padding: 10px 15px;
  text-align: center;
}

/* Event Title styling */
.event-title a {
  font-size: 0.9rem;            /* Smaller font size */
  font-weight: bold;
  color: #1877f2;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.event-title a:hover {
  text-decoration: underline;
}

/* Event Date and Price styling */
.event-date,
.event-price {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 5px;
}

/* Past event styling */
.past-event {
  opacity: 0.6;
}

/* No events message */
.no-events {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
}

/* ===================================================== */
/*               RESPONSIVE ADJUSTMENTS              */
/* ===================================================== */
@media (max-width: 768px) {
  .events-grid {
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
  }
  .event-card {
    width: 90%;
    max-height: none;
  }
  .page-title {
    font-size: 1.8rem;
  }
}
