body { 
  font-family: Arial, sans-serif; 
  margin: 0; 
  padding: 0;
}

.nav-wrapper {
   display: flex;
   justify-content: space-between;
   align-items: center;
   background: #003366;
   padding: 0.5rem 1rem;
}

.nav-wrapper .logo img {
  height: 50px;
}

.nav-wrapper nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-wrapper nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-wrapper nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}

.footer-wrapper {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
} 

.hero {
  /* background: url('/img/cover.png') no-repeat center center; */
  background-size: cover; 
  color: white;
  text-align: center;
  padding: 0rem 0rem;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
}

.hero p {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

/* === HOMEPAGE LAYOUT === */

/* Shared box styling */
.welcome, .event-info, .registration, .teams, .sponsors, .contact {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Hero */
.hero img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Section headings */
section h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

/* Links inside sections */
section a {
  font-weight: bold;
  color: #003366;
  text-decoration: none;
}

section a:hover {
  text-decoration: underline;
}

/* News section tweaks */
.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news li {
  margin-bottom: 0.75rem;
}

.news .date {
  font-style: italic;
  color: #555;
}

.latest-updates {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.latest-updates h2 {
  color: #003366;
}

.latest-updates ul {
  list-style: none;
  padding: 0;
}

.latest-updates li {
  margin-bottom: 0.5rem;
}

.latest-updates .date {
  color: #555;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  background: #003366;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
}

.btn:hover {
  background: #0055aa;
}

.sponsors-preview .sponsor-logos {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.sponsors-preview img {
  max-height: 80px;
  width: auto;
}

/* Layout grid: sidebar left, content right */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (navigation) */
.sidebar {
  width: 220px;
  background: #003366;
  color: white;
  padding: 1rem;
  flex-shrink: 0;

  /* Sticky positioning */
  position: sticky;
  top: 0;
  height: 100vh;   /* full viewport height */
  overflow-y: auto; /* scroll inside if nav gets long */
}

.sidebar .logo img {
  max-width: 180px;
  margin-bottom: 2rem;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar nav li {
  margin-bottom: 1rem;
}

.sidebar nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.sidebar nav a:hover {
  text-decoration: underline;
}

/* Content area */
.content {
  flex: 1;
  padding: 2rem;
  background: #f9f9f9;
}