/* === Global Styles === */
:root {
  --color-bg: #fafafa;
  --color-text: #222;
  --color-accent: #4CAF50;
  --color-accent-light: #c1edbb;
  --color-card-bg: #fff;
  --color-muted: #666;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-accent-light);
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 1rem 1rem;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}


/* === Map Section === */
.map-section {
  padding: 2rem 1rem;
  background: #eef6f5;
  text-align: center;
}

.static-map {
  display: block;
  width: 100%;
  height: 250px;
  border: 0; /* remove iframe border if any */
  object-fit: cover;  /* Cover the container, crop if needed */
  object-position: center; /* Center the image */
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 109, 119, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 600;
  cursor: pointer;
}

.map-link:hover .map-overlay {
  opacity: 1;
}

/* === Featured Events === */
.featured-section {
  padding: 3rem 1rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.event-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.event-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}
.event-card p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn:hover {
  background: var(--color-accent-light);
}

/* === Leaderboard === */
.leaderboard-section {
  background: #f3f3f3;
  padding: 3rem 1rem;
}
.leaderboard {
  margin-top: 1rem;
  list-style: decimal inside;
  line-height: 1.8;
}

/* === About Section === */
.about-section {
  padding: 3rem 1rem;
  text-align: center;
}
.about-section p {
  max-width: 700px;
  margin: 0.5rem auto;
}



/* === Responsive === */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-sub {
        font-size: 1.1rem;
    }
}
@media (max-width: 600px) {
    .static-map {
        height: 150px;
    }
}