/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f8;
  color: #333;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  background-color: #004a99;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1002;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header .logo {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header .logo img{
  width: 20%;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcc00;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.hamburger.left {
  margin-right: auto;
}

.hamburger.right {
  margin-left: auto;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  height: calc(100% - 60px);
  width: 20%;
  background-color: #ffffff;
  border-right: 1px solid #ddd;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.sidebar h2 {
  color: #004a99;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li a {
  color: #004a99;
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.sidebar ul li a:hover {
  background-color: #e6f0ff;
}

/* CONTENT */
.content {
  margin-left: 20%;
  margin-top: 60px;
  padding: 30px;
  transition: margin-left 0.3s ease;
}

.content h1 {
  color: #004a99;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* HEADER DROPDOWN (mobile) */
.header-dropdown {
  position: fixed;
  top: 60px;
  right: 0;
  background-color: #004a99;
  width: 200px;
  display: none;
  flex-direction: column;
  z-index: 1001;
}

.header-dropdown a {
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-dropdown a:hover {
  background-color: #003366;
}

.header-dropdown.active {
  display: flex;
}
.header-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.header-dropdown.active {
  max-height: 300px; /* adjust to fit content */
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 200px;
    top: 60px;
    height: calc(100% - 60px);
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }
}


