/**
 * Unified Header CSS for HTML Content Pages
 * Matches the main site header style with optimized mobile menu
 */

/* Header Styles */
header.content-header {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid;
  border-image: linear-gradient(135deg, #4a6baf 0%, #5cb85c 50%, #f5a623 100%) 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

header.content-header h1 {
  color: #2c6bed;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

header.content-header a {
  text-decoration: none;
  color: inherit;
}

/* Menu Icon Styles */
.menu-icon {
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
}

.menu-icon .bar {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.menu-icon .bar:nth-child(1) {
  background: linear-gradient(to right, #3498db, #2ecc71);
}

.menu-icon .bar:nth-child(2) {
  background: linear-gradient(to right, #e67e22, #f1c40f);
}

.menu-icon .bar:nth-child(3) {
  background: linear-gradient(to right, #9b59b6, #3498db);
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .menu-icon.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-icon.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-icon.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .mobile-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 45%; /* Reduced width for mobile menu */
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 1rem 0;
    border-radius: 0 12px 12px 0;
  }
  
  .mobile-nav.active {
    left: 0;
  }
  
  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-nav li {
    width: 100%;
    margin: 0;
  }
  
  .mobile-nav a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #212529;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .mobile-nav a:hover {
    background-color: #e8f0fe;
    color: #2c6bed;
  }
}
