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

html, body {
  height: 100%;
  font-family: 'Georgia', serif;
  color: #dcd8d0;
  background-image: url('mapbackground.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(183, 198, 139, 0.5);
  z-index: -1;
  pointer-events: none;
}

body {
  padding: 2rem 1rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* --------- PANEL --------- */
.panel {
  max-width: 1200px;
  width: 92%;
  background-color: #696969;
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 40px 40px 60px 40px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

/* --------- NAVBAR --------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: #e4fc94;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #c8e664;
  text-decoration: underline;
}

/* --------- HEADER --------- */
.header h1 {
  color: #e4fc94;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.header .description {
  color: #dcd8d0;
  font-size: 1.1rem;
}

.description a {
  color: #dcd8d0;
  text-decoration: underline;
}

/* --------- MAP (No text color changes needed here) --------- */
.map-wrapper {
  width: 100%;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.map {
  width: 100%;
  height: 100%;
  border: none;
}

/* --------- CARDS (Text color kept dark for contrast) --------- */
.cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card {
  flex: 1;
  min-width: 240px;
  background-color: #e4fc94;
  color: #696969; /* KEPT DARK FOR CONTRAST */
  text-decoration: none;
  padding: 2rem 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-weight: normal;
  line-height: 1.4;
  font-size: 1rem;
  margin: 0;
}

/* --------- FOOTER --------- */
footer {
  color: #dcd8d0;
  text-align: left;
  font-size: 0.95rem;
  padding-top: 5px;
  padding-bottom: 5px;
}

footer a {
  color: #dcd8d0;
  text-decoration: none;
}

footer a:hover {
  color: #c8c4bc;
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 15px;
  margin-bottom: 15px;
}

/* --------- LOGO (No text color changes needed here) --------- */
.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background-color: transparent;
  border-radius: 0;
  display: block;
}

/* --------- TEAM PAGE STYLING --------- */
.team-section {
  margin-top: 3rem;
  padding: 1rem 0;
}

.team-section h2 {
  color: #e4fc94;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* --- LEADERSHIP GRID: Makes cards wider --- */
.leadership-grid {
  grid-template-columns: 1fr 1fr;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-member {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  color: #dcd8d0;
  box-shadow: 0 44px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.team-member img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #dcd8d0; /* UPDATED: Image border color now matches body text color */
}

.team-member h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #e4fc94;
}

.team-member p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #dcd8d0;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 992px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
  .panel {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .cards {
    flex-direction: column;
    gap: 1rem;
  }

  .header {
    text-align: center;
  }

  .map-wrapper {
    height: 450px;
  }

  .team-section h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  /* On tablets/smaller screens, revert leadership grid to single column */
  .leadership-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (min-width: 577px) {
  .hamburger {
    display: none;
    width: 0;
    height: 0;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
  
  /* FIX: Ensure nav-links are always visible on desktop */
  .nav-links {
    display: flex !important; 
    flex-direction: row !important;
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 15px;
  }

  .panel {
    padding: 1rem;
    margin: 1rem auto;
  }

  .map-wrapper {
    height: 380px;
  }

  .navbar {
    position: relative;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 28px;
    background: rgba(121, 121, 121, 0.8);
    border-radius: 6px;
    border: 1px solid #dcd8d0;
    cursor: pointer;
    padding: 4px;
    z-index: 20;
    transition: background-color 0.3s ease;
  }

  .hamburger:hover {
    background: rgba(121, 121, 121, 1);
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background: #dcd8d0;
    border-radius: 2px;
    transition: all 0.3s linear;
    transform-origin: 1px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(121, 121, 121);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: max-content;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }

  .nav-links.active {
    display: flex;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }
}