body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: white;

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

header {
  background: #e9f1fb;
  padding: 10px 30px;
  border-bottom: 1px solid #d0e0f5;
}

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

/* NAVIGATION */
nav {
  background: #102a43;
  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: #0b3d91;
}

/* First dropdown */
.dropdown {
  display: none;
  position: absolute;
  background: #0f2233;
  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: #0f2233;
  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: #102a43;
  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 #d0e0f5;
  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: #f0f4f8;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #d0e0f5;
  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: #102a43;
  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: #f9f9f9;
  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;
}

@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;
  }
}