/* BASE HTML & BODY */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #FFFFFF;
  color: #212121;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0D47A1;
  padding: 4px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-shrink: 0;
  min-height: 50px;
  position: relative;
}

.wrapper {
  flex-wrap: wrap;
}

.logo {
  flex: 0 0 10%;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
}

.nav-links {
  flex: 0 0 90%;
  display: flex;
  gap: 20px; 
  justify-content: center;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: #212121;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0px 0;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007BFF;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0D47A1;
  min-width: 160px;
  z-index: 1;
  top: 100%;
  left: 0;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.dropdown-content a {
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  text-align: left;
  color: #212121;
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background-color: #1976D2;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 6px 15px;
  }

  .hamburger {
    display: block; /* show hamburger */
  }

  .nav-links {
    display: none; /* hide menu initially */
    flex-direction: column;
    width: 100%;
    background-color: #0D47A1;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    gap: 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex; /* show menu when hamburger clicked */
  }

  .nav-links a {
    width: 100%;
    padding: 10px 15px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #0D47A1;
    width: 100%;
  }

  .dropdown-content a {
    padding-left: 25px;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* disable hover on mobile */
  }

  .dropdown.active .dropdown-content {
    display: block; /* click to open */
  }
}

/* MAIN CONTENT */
main {
  flex: 1;
  padding: 20px;
}

/* FOOTER */
footer {
  background-color: #0D47A1;
  color: #FFFFFF;
  text-align: center;
  padding: 25px 20px;
  margin-top: auto;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.footer-content {
  max-width: 400px;
  margin: 0 auto;
}

.footer-image {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-content p {
  margin: 6px 0;
  font-size: 15px;
  letter-spacing: 0.5px;
}
