
/*     Menu Setup   */

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensures the menu stays above page content and images */
  background-color: #ffffff; /* Prevents page text from showing through behind the menu */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: adds separation when scrolling */
}

.menuTitlerGrid {
  display: grid;
  grid-template-columns: var(--logo-size, 40%) 1fr;
  align-items: center;
  justify-items: center;
  xmin-height: 100vh;
}

.menuTitlerLogoCol {
  max-width: var(--logo-size, 30%);
}

.menuTitlerLogoCol img {
  width: 100%;
  height: auto;
}

.menuTitlerContentCol {
  justify-self: start;   /* left-align the column */
  text-align: left;      /* left-align the text */
}







.menuTitlerGridC {
  display: grid;
  grid-template-columns: 1fr 1fr;
  xalign-items: center;      /* vertical centering */
  xjustify-items: center;    /* horizontal centering */
  xmin-height: 100vh;        /* full viewport height */
}

.menuTitlerLogoColC {
  xmax-width: 100%;
  text-align: left;
  height: auto;
}


.menuTitlerLogoColC img {
  max-width: 100%;
  height: auto;
}


.desktop-menu {
  display: none;
}
.mobile-menu {
  display: block;
}

/* Screens 768px and wider: Show Desktop Menu, Hide Mobile Menu */
@media (min-width: 768px) {
  .desktop-menu {
    display: block;
  }
  .mobile-menu {
    display: none;
  }
}


/*  Full Screen Menu */

.F4-menuGrid {
  display: grid;
  place-items: center; 
  grid-template-columns: repeat(2, 1fr);
  width: 100%;                          
  height: 100px;
  background: #1a1a2e;
  margin: 0 auto;
  color: white;
  gap: 0;
}


.F4-navbar {
  background-color: #1a1a2e;
  position: relative;
  z-index: 1000;
}

.F4-nav-menu {
  display: flex;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5px;
}

.F4-nav-item {
  position: relative;
}

.F4-nav-link {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 15px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative; /* Base for the underline effect */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.F4-nav-item:hover .F4-nav-link {
  background-color: #162447;
  color: #e43f5a;
}

.F4-nav-link.F4-active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: green; /* Color of the active underline */
}

.F4-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  list-style: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.F4-dropdown-link {
  display: block;
  color: #1a1a2e;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.F4-dropdown-link:last-child {
  border-bottom: none;
}

.F4-dropdown-link:hover {
  background-color: #f4f4f9;
  color: #e43f5a;
  padding-left: 25px; /* Subtle slide effect */
}

.F4-nav-item:hover .F4-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.F4-has-dropdown > .F4-nav-link::after {
  content: ' \25BC';
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
}


/*     Mobile Endless Carousel Menu 1   */  


.carousel-container {
  width: 100%;
  position: relative;
  background-color: darkbrown;
  padding: 15px 0;
  cursor: grab;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow-x: clip; 
  overflow-y: visible;
}

.carousel-container.grabbing {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  width: max-content;
  will-change: transform;
}

.carousel-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #f1f5f9;
  background: cream;
  color: #334155;
  color: white;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
  -webkit-user-drag: none;
  white-space: nowrap;
}

/*
.carousel-item-has-dropdown > .carousel-item::after {
  content: ' \25BC';
  font-size: 100px;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
}
*/

.carousel-item.active {
  background-color: #0284c7;
  background: lightblue;
  color: grey;
}

/*
.carousel-item hover {
  background-color: #0284c7;
  background: red;
  color: grey;
}

*/

.has-dropdown {
  position: relative;
  z-index: 10000;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 10001; /* Layered strictly on top of backgrounds and sliders */
  margin-top: 10px;
  padding: 8px 0;
  border: 1px solid #e2e8f0;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  color: #334155;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}
