/* General body styling */
:root {
  --secondary-color: #c50000;
  --primary-color: #2e3192;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Hamburger Icon */
.hamburger {
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  display: none;
}

/* Sidebar styling */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  color: black;
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 1000; /* Ensure it's above the overlay */
}
.sidebar .close-btn {
  top: 20%;
  right: 0;
  margin: 0;
  padding: 1rem;
}
.sidebar-header {
  background-color: var(--primary-color); /* Red background */
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 2.5rem 0.5rem;
  gap: 0.5rem;
  font-size: 18px;
  color: white;
}
.sidebar-header img {
  border-radius: 50%;
}
.sidebar ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
.sidebar ul div {
  background-color: #f3f3f3;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
}

.sidebar ul li {
  padding: 8px 16px;
  text-align: left;
}

.sidebar ul li a {
  text-decoration: none;
  color: black;
  display: block;
  transition: 0.3s;
  display: flex;
  gap: 0.5rem;
}

.sidebar ul li a:hover {
  background-color: #d1d1d1;
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem 10px;
  text-align: center;
  border-top: 1px dotted black;
}

.sidebar-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Close button styling */
.close-btn {
  font-size: 30px;
  cursor: pointer;
  color: white;
}

/* For when the sidebar is active */
.sidebar.active {
  width: 300px;
}

/* Overlay styling */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 500; /* Below the sidebar */
}

/* When the overlay is active */
.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1050px) {
  .hamburger {
    display: flex;
  }
}
