/* ===========================
   HERO SECTION
=========================== */
.mep-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background: url('https://ngo.fhmconsultants.com/wp-content/uploads/2025/08/afrireach-banner.png') center center/cover no-repeat;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.mep-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.mep-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mep-hero-title {
  font-size: 2.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.mep-hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* ===========================
   SEARCH FORM
=========================== */
.mep-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.mep-input, 
.mep-select {
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  flex: 1 1 200px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Text input */
.mep-input:focus {
  border-color: #FC631E;
  box-shadow: 0 0 0 3px rgba(252, 99, 30, 0.2);
}

/* Dropdown select */
.mep-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23FC631E' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  color: #333;
}

.mep-select:focus {
  border-color: #FC631E;
  box-shadow: 0 0 0 3px rgba(252, 99, 30, 0.2);
}

/* Button */
.mep-btn {
  background-color: #FC631E;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mep-btn:hover {
  background-color: #e6530d;
}

/* ===========================
   RESULTS GRID
=========================== */
.mep-grid {
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 300px)); /* ✅ fixed-width compact cards */
  gap: 1.5rem;
  justify-content: flex-start; /* ✅ align cards to the left */
  max-width: 1200px;
  margin: 0 auto;
}

/* Event card */
.mep-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mep-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Thumbnail */
.mep-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Card body */
.mep-body {
  padding: 1rem;
}

/* Event title */
.mep-title a {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.mep-title a:hover {
  color: #FC631E;
  border-bottom: 2px solid #FC631E;
}

/* ===========================
   META INFO WITH ICONS
=========================== */
.mep-meta {
  font-size: 0.9rem;
  color: #555;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mep-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Icons */
.mep-meta .mep-date::before {
  content: "📅";
}

.mep-meta .mep-venue::before {
  content: "📍";
}

.mep-meta .mep-time::before {
  content: "⏰";
}

/* Price */
.mep-price {
  font-weight: bold;
  color: #FC631E;
  margin-bottom: 0.75rem;
}

/* Buy Tickets button */
.mep-card .mep-btn.mep-primary {
  display: inline-block;
  background-color: #FC631E;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

.mep-card .mep-btn.mep-primary:hover {
  background-color: #e6530d;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .mep-hero-title {
    font-size: 2rem;
  }

  .mep-hero-subtitle {
    font-size: 1rem;
  }

  .mep-bar {
    flex-direction: column;
    max-width: 100%;
  }

  .mep-input,
  .mep-select,
  .mep-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}
