/* ===== Saarthi Header Styles ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: linear-gradient(90deg, #e100ff, #ff5ec6);
  color: #fff;
  border-radius: 0 0 12px 12px;
  position: relative;
  z-index: 9999; /* ensures header appears above content */
  height: 64px;
}

/* ===== Logo ===== */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

header img {
  width: 72px;
  height: 50px;
  background: #fff;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

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

.dropbtn {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  padding: 6px 8px;
  transition: 0.3s;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  top: 100%;
  left: 0;
  z-index: 10001; /* ensures dropdown above content */
}

.dropdown-content a {
  color: #333;
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

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

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== Sign-in Button ===== */
#signin-btn,
#signin-btn-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.3s ease;
}

#signin-btn:hover,
#signin-btn-mobile:hover {
  background: #fff;
  color: #e100ff;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: transparent;
  margin-left: auto;
}

.hamburger span {
  width: 22px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 1em;
  right: -280px;
  width: 260px;
  height: 100vh; /* ensure full coverage */
  background: #fff;
  box-shadow: -3px 0 18px rgba(0,0,0,0.25);
  padding: 24px;
  transition: right 0.35s ease;
  z-index: 100000; /* ensures sidebar above EVERYTHING */
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
  z-index:1
}

.sidebar h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #555;
  font-weight: 700;
}

.sidebar a {
  display: block;
  color: #333;
  text-decoration: none;
  margin: 10px 0;
  font-weight: 600;
  transition: color 0.2s;
}

.sidebar a:hover {
  color: #e100ff;
}

/* Mobile Sign-in button inside sidebar */
#signin-btn-mobile {
  width: 100%;
  justify-content: center;
  border-color: #e100ff;
  color: #e100ff;
}

#signin-btn-mobile:hover {
  background: #e100ff;
  color: #fff;
}

/* ===== Mobile Behavior ===== */
@media (max-width: 1068px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

