/* ==============================
   Navbar Styles (Desktop & Mobile)
   ============================== */

/* Main nav container */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 0.5rem 1rem;
  font-family: "Cinzel", serif;
  position: relative;           /* base stacking context */
  z-index: 10;                  /* low z-index so overlays can appear above */
}

/* Navbar links container */
nav .nav-links {
  list-style: none;
  display: flex;
  margin: 0;
}

/* Individual navbar link items */
nav .nav-links li {
  margin: 0 1rem;
}

/* Links styling */
nav .nav-links a {
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  color: #1D3557;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav .nav-links a:hover {
  background-color: #e0f2f1; /* soft teal highlight */
}

/* Hamburger toggle button (desktop hidden) */
nav .nav-toggle {
  display: none;    /* hidden on desktop */
  font-size: 2rem;
  cursor: pointer;
}

/* ==============================
   Mobile Styles (max-width: 768px)
   ============================== */
@media screen and (max-width: 768px) {
  nav {
    justify-content: space-between; /* hamburger left, links hidden initially */
  }

  nav .nav-toggle {
    display: block;
    position: relative;   /* below header naturally */
    margin: 10px 0;
    z-index: 100;         /* must be below overlay */
    background-color: white;
    border-radius: 5px;
    padding: 0.5rem 0.6rem;
  }

  nav .nav-links {
    flex-direction: column;
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-top: 1px solid #ccc;
    z-index: 50;           /* above nav but below overlay */
  }

  nav .nav-links.active {
    display: flex;
  }

  nav .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }

  /* Dropdown menu aligns below button */
  nav .nav-toggle ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50; /* below overlay */
    background-color: white;
  }
}

/* ==============================
   Video Grid Stacking
   ============================== */
.video-showcase {
  position: relative;
  z-index: 1;   /* below menu and overlay */
}

.video-showcase .card {
  position: relative;
  z-index: 1;
}
