body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #d2b48c; /* Dark nude background */

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #e3d5ca; /* Lighter nude for header */
  padding: 10px 30px;
  border-bottom: 1px solid #c8b2a0;
}

header h1 {
  font-size: 28px;
  margin: 0;
}

/* NAVIGATION */
nav {
  background: #50c878; /* Emerald green for tabs */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  padding: 0 30px;
}

.nav-item {
  position: relative;
}

nav a {
  display: block;
  padding: 12px 18px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  background: #3da362; /* Darker emerald on hover */
}

/* First dropdown */
.dropdown {
  display: none;
  position: absolute;
  background: #50c878;
  min-width: 220px;
  top: 100%;
  left: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.nav-item:hover .dropdown {
  display: block;
}

/* Second dropdown */
.nav-sub-item {
  position: relative;
}

.sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #50c878;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.nav-sub-item:hover .sub-dropdown {
  display: block;
}

main {
  padding: 40px;
  flex: 1;
}

footer {
  background: #046307; /* Deep emerald for footer */
  color: white;
  text-align: center;
  padding: 20px;
}

.logo {
  height: 150px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Sponsors Section */
.sponsors-wrap {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #c8b2a0;
  text-align: center;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.sponsor-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s;
}

.sponsor-logo:hover {
  transform: scale(1.05);
}

/* Hero Section for Index */
.hero {
  background-color: #e3d5ca;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #c8b2a0;
  border-radius: 8px;
}

.hero h1 {
  color: #102a43;
  font-size: 2.2em;
  margin-bottom: 15px;
}

.event-meta {
  font-size: 1.2em;
  color: #334e68;
  margin-bottom: 25px;
}

.button {
  display: inline-block;
  background: #046307;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  margin: 0 10px;
  font-weight: bold;
  transition: background 0.3s;
}

.button:hover {
  background: #243b53;
}

/* Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.member-card {
  background: #faf3ee; /* Very light nude for cards */
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.member-card h3 {
  margin-top: 0;
  color: #102a43;
  margin-bottom: 5px;
}

.member-role {
  color: #334e68;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.member-photo {
  width: 100px; /* Adjust as needed */
  height: 100px; /* Adjust as needed */
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image covers the area without distortion */
  margin-bottom: 15px;
}

/* Resources and Gallery Styles */
.resources-list {
  list-style: none;
  padding: 0;
}

.resources-list li {
  margin-bottom: 12px;
}

.resources-list a {
  color: #046307;
  text-decoration: none;
  font-weight: bold;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}

@media (max-width: 768px) {
  /* Stack navigation vertically */
  .nav-wrap {
    flex-direction: column;
    padding: 0;
  }

  .nav-item {
    width: 100%;
  }

  nav a {
    padding: 12px 20px;
    border-top: 1px solid #1f3b57;
  }

  /* Make dropdowns flow normally on mobile */
  .dropdown, .sub-dropdown {
    position: static;
    display: none;
    min-width: 100%;
  }

  /* Indent sub-menus to differentiate them on mobile */
  .dropdown a {
    padding-left: 40px;
  }
  .sub-dropdown a {
    padding-left: 60px;
  }

  /* Show dropdowns when tapped (acts as hover on most mobile browsers) */
  .nav-item:hover .dropdown, .nav-sub-item:hover .sub-dropdown {
    display: block;
  }

  /* Reduce main padding */
  main {
    padding: 20px;
  }

  /* Center header content */
  header {
    text-align: center;
    padding: 15px;
  }

  /* Resize logo for mobile */
  .logo {
    height: 90px;
    margin: 0 auto;
  }
}