/* Header with more semi-transparent yellow background and white text */
header {
  background-color: rgba(
    250,
    208,
    44,
    0.65
  ) !important; /* More semi-transparent yellow (#FAD02C) */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(
    8px
  ); /* Increased blur effect to enhance readability with more transparency */
  -webkit-backdrop-filter: blur(8px); /* For Safari support */
}

header.scrolled {
  background-color: rgba(
    250,
    208,
    44,
    0.8
  ) !important; /* More opaque when scrolled but still semi-transparent */
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px; /* Increased height to accommodate title */
  max-width: 1400px;
  padding: 0 20px;
}

/* Create left side container for logo and title */
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  padding: 5px 0; /* Reduced padding to accommodate larger logo */
}

.logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  content: url('../images/logoo.png'); /* Force the use of logo.png */
  max-height: 90px; /* Keep the increased size */
  padding: 5px 0;
  transition: all 0.3s ease;
  filter: none; /* Ensure original colors are preserved */
  object-fit: contain; /* Maintain aspect ratio */
}

/* Style the site title */
.site-title h1 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* Navigation menu with white text */
.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  list-style: none;
}

.nav-links li {
  margin: 0 5px;
}

.nav-links a {
  color: #ffffff !important; /* Force white text color */
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2) !important; /* Enhanced shadow for better readability */
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff !important; /* Keep white for hover/active state */
}

/* Update the active indicator line color to white */
.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ffffff !important; /* White underline */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 70%;
}

/* Update hamburger color to white */
.hamburger div {
  background-color: #ffffff !important; /* White hamburger lines */
}

/* Mobile menu styling */
@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 90px; /* Match header height */
    flex-direction: column;
    background-color: rgba(
      250,
      208,
      44,
      0.85
    ) !important; /* Slightly more opaque for mobile menu readability */
    width: 100%;
    text-align: center;
    transition: right 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger.active div {
    background-color: #ffffff !important; /* White lines for active hamburger */
  }

  .nav-links a {
    padding: 15px;
    display: block;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Set scrolled style specifically */
header.scrolled {
  background-color: rgba(
    250,
    208,
    44,
    0.95
  ) !important; /* More opaque when scrolled */
}

/* Override any conflicting styles */
header,
header.fixed-header,
header.transparent-header {
  background-color: rgba(250, 208, 44, 0.65) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .site-title h1 {
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .site-title h1 {
    font-size: 14px;
  }

  .logo img {
    max-height: 80px;
  }

  header .container {
    height: 100px;
  }

  .nav-links {
    top: 100px; /* Match updated header height */
    height: calc(100vh - 100px);
  }
}

@media (max-width: 767px) {
  .header-left {
    gap: 10px;
  }

  .site-title h1 {
    font-size: 12px;
    max-width: 160px;
    line-height: 1.3;
    white-space: normal;
  }

  .logo img {
    max-height: 70px;
  }

  header .container {
    height: 90px;
  }
}

@media (max-width: 576px) {
  .site-title h1 {
    font-size: 10px;
    max-width: 120px;
  }

  .logo img {
    max-height: 60px;
  }

  header .container {
    height: 80px;
  }

  .nav-links {
    top: 80px;
    height: calc(100vh - 80px);
  }
}
