:root {
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

/* ==============================
   Video Showcase Container
   ============================== */
.video-showcase {
  width: min(100%, var(--max-width));
  padding: 32px 16px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.video-showcase h1 {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 2vw, 2rem);
  color: #ffffff;
}

.video-showcase p.lead {
  margin: 0 0 24px;
  opacity: 0.8;
}

.video-showcase .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.video-showcase .grid-note {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ==============================
   Video Cards
   ============================== */
.video-showcase .card {
  background: #11141a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.video-showcase .card:hover {
  border-color: #334155;
}

.video-showcase .card .meta {
  padding: 12px 14px;
}

.video-showcase .card h2 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: #ffffff;
}

.video-showcase .card .desc {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
  color: #f0f0f0;
}

/* ==============================
   Responsive Video Embeds
   ============================== */
.video-showcase .video {
  aspect-ratio: 16 / 9;
  background: #000;
  width: 100%;
  position: relative;
}

.video-showcase .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

@supports not (aspect-ratio: 16/9) {
  .video-showcase .video {
    height: 0;
    padding-bottom: 56.25%;
  }
}

/* ==============================
   Navbar Styles (Desktop)
   ============================== */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 0.5rem 1rem;
  font-family: "Cinzel", serif;
  position: relative;
  z-index: 10000;
}

nav .nav-links {
  list-style: none;
  display: flex;
  margin: 0;
}

nav .nav-links li {
  margin: 0 1rem;
}

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;
}

nav .nav-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ==============================
   Mobile Styles
   ============================== */
@media screen and (max-width: 768px) {
  nav {
    justify-content: space-between;
  }

  nav .nav-toggle {
    display: block;
    position: relative;
    margin: 10px 0;
    z-index: 10001;
    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: 10001;
  }

  nav .nav-links.active {
    display: flex;
  }

  nav .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }
}
