.hero {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
}

.event-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* replaces background-size: cover */
  object-position: center; /* replaces background-position */
  z-index: 0;
}

.stat-box {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-size: 20px;
  font-weight: 600;
}

.participant {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.participant img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.map-box {
  height: 300px;
  background: #ddd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
  overflow: hidden;
}

.leaflet-control-fullscreen a {
  background-color: rgba(255,255,255,0.9);
  border-radius: 6px;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .hero {
      height: 260px;
      border-radius: 0;
  }
  .hero-overlay {
      padding: 20px;
  }
  .hero-overlay h2 {
      font-size: 22px;
  }
  .event-card {
      padding: 18px;
  }
  .stat-number {
      font-size: 18px;
  }
  .stat-box {
      flex: 0 0 100%;
      max-width: 100%;
      margin-bottom: 15px;
  }
  .gallery .col-md-4 {
      flex: 0 0 50%;
      max-width: 50%;
  }
  .join-btn {
      width: 100%;
      margin-top: 10px;
  }
  .map-box {
      height: 220px;
  }
}
