/* 1. The Main Bar Container */
.horizontal-scroll-wrapper {
  display: flex;
  align-items: stretch;
  background-color: #0c2e8a; /* Your Navy Blue */
  color: #fff;
  position: relative;
  height: 55px;
  border-radius: 30px; /* Adjust this for more or less roundness */
  overflow: hidden;    /* Ensures children don't pop out of the radius */
  padding: 0 10px;     /* Slight internal padding for the arrows */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 2. The Menu List */
.horizontal-nav {
  flex-grow: 1;
  overflow: hidden;
}

.horizontal-nav ul {
  display: flex;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
align-items: center;
}


.horizontal-nav .submenu01::before{ content: ""; }

/* 1. Base Link Style */
.horizontal-nav ul li a {
  display: flex;           /* Crucial: treats icon and text as one row */
  align-items: center;     /* Centers them perfectly vertically */
  justify-content: center; /* Centers them horizontally within the li */
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  padding: 0 20px;
  height: 100%;            /* Fills the bar height */
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* 2. Active State: Bigger & Bolder */
.horizontal-nav ul li a.is-active {
  font-size: 18px !important; 
  font-weight: 800;
  gap: 12px;               /* Space between the white circle and text */
}


/* 5. Arrows (Styled for dark background) */

/*
.scroll-arrow {
  width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #fff; /* White arrows */
  z-index: 5;
  transition: transform 0.2s ease;
}

.scroll-arrow:hover {
  transform: scale(1.2); /* Slight grow on hover */
}
*/


/* 1. Positioning the Arrows */
.scroll-arrow {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1); /* Subtle glass effect */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  margin: 0 5px;
}

/* 2. Hover State for Arrows */
.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* 3. Using SVG Icons instead of text */
.scroll-arrow::before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Left Arrow SVG */
#left-arrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}

/* Right Arrow SVG */
#right-arrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E");
}


.scroll-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes arrowPulse {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* Only pulse if the arrow is visible and the user hasn't scrolled yet */
#right-arrow:not(.is-hidden) {
  animation: arrowPulse 2s infinite ease-in-out;
}

/* Stop animation on hover */
#right-arrow:hover {
  animation: none;
}