/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 20px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #2e7d32;
  left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #2e7d32;
}

/* Container */
.container {
  padding: 40px 60px;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.join-btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.join-btn:hover {
  background-color: #388e3c;
}

/* Missions */
.missions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex: 1;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 30px;
}

.testimonial {
  margin-bottom: 20px;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 5px;
}

/* Footer */
footer {
  margin-top: 50px;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #777;
}

.socials {
  margin-top: 10px;
}

.socials a {
  font-size: 1.2rem;
  margin: 0 10px;
  color: #333;
  transition: color 0.3s;
}

.socials a:hover {
  color: #2e7d32;
}
/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #2e7d32;
}

.modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.save-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px;
  margin-top: 15px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

.save-btn:hover {
  background-color: #388e3c;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #888;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card img.profile-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}
.leaderboard {
  padding: 20px;
  text-align: center;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.card {
  background: #e8f5e9;
  border-radius: 12px;
  padding: 15px;
  width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.highlighted-card {
  background-color: #d0f0c0;
  border: 2px solid #4caf50;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  width: 220px;
  margin: 0 auto 20px;
}
  .highlighted-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 10px;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  background-color: #eefaf0;
  padding: 20px;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: #222;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.nav-link:hover {
  background-color: #00995e;
  color: white;
}

.nav-link.active {
  background-color: #00995e;
  color: white;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #00995e;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 30px 60px;
}

.achievement-card {
  background-color: #eefaf0;
  border: 2px solid #00995e;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: scale(1.05);
}

.achievement-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}
/* Reuse your styles, but add: */

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.mission-card {
  background-color: #e5f5e0;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s;
}

.mission-card:hover {
  transform: scale(1.05);
  background-color: #c8e6c9;
}
