/* Reset default margins */
body {
  margin: 0;
  padding-top: 120px; /* Prevent content overlap with fixed header */
  font-family: Arial, sans-serif;
}

/* Top bar styling */
.topbar {
  background-color: #002147;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Logo area */
.topbar .logo h1 {
  margin: 0;
  font-size: 28px;
}

.topbar .logo p {
  margin: 0;
  font-size: 14px;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 12px;
  color: white;
  font-weight: bold;
}

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

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Hidden submenu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Submenu links */
.dropdown-content a {
  display: block;
  padding: 10px;
  color: #000;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show submenu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Login button styling */
.login-btn {
  background-color: #004080;
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
}

.login-btn:hover {
  background-color: #e60000 !important;
  color: #fff;
}

/* ── Hamburger Button ── */
.hamburger {
  display: none !important;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animate hamburger to X when active */
.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Responsive container for about page */
.responsive-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
}

.responsive-image {
  width: 100%;
  height: auto;
}

/* ── Mobile Styles ── */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  .topbar {
    flex-direction: row;          /* Keep logo & hamburger side by side */
    flex-wrap: wrap;
    height: auto;
    padding: 15px 20px;
    align-items: center;
  }

  .topbar .logo h1 {
    font-size: 18px;
  }

  .topbar .logo p {
    font-size: 11px;
  }

  /* Show hamburger button */
  .hamburger {
    display: flex !important;
  }

  /* Hide nav links by default on mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
    gap: 0;
    background-color: #002147;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 10px 0;
  }

  /* Show nav links when .open class is added */
  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .login-btn {
    margin-top: 5px;
    border-radius: 4px;
    text-align: center;
  }

  /* Dropdown on mobile */
  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #003366;
    margin-top: 5px;
  }

  .dropdown-content a {
    color: white;
    padding: 8px;
    font-size: 13px;
  }

  .dropdown-content a:hover {
    background-color: #004080;
  }
}

/* ── PC/Tablet Layout ── */
@media (min-width: 769px) {
  .responsive-container {
    flex-direction: row;
    align-items: center;
  }

  .responsive-image {
    width: 50%;
  }

  .text-content {
    width: 50%;
  }
}
