/* ================================
   HEADER / NAV (Sticky + Scroll FX)
================================ */

header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(51,51,51,0.92);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: box-shadow 0.25s ease, backdrop-filter 0.25s ease, background 0.25s ease;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

header.scrolled {
  background: rgba(51,51,51,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.30);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}


/* ================================
   NAV LINKS
================================ */

.nav-left { gap: 0; }

.nav-left > li {
  position: relative;
}

.nav-left > li:not(:first-child) {
  padding-left: 18px;
  margin-left: 18px;
}

.nav-left > li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%);
}

.nav-left a {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  padding: 10px 6px;
  border-radius: 10px;
  transition: 0.25s;
}

.nav-left a:hover {
  color: #999999;
}

.nav-left > li > a:hover,
.has-dropdown.open > a.dropdown-trigger {
  background: rgba(255,255,255,0.08);
}

.nav-left > li > a.active {
  color: #999999;
  font-weight: 700;
  background: rgba(153,153,153,0.18);
}


/* ================================
   DROPDOWN
================================ */

.dropdown {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  background: rgba(45,45,45,0.98);
  min-width: 220px;
  padding: 12px;
  z-index: 50;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
}

.dropdown::before {
  content: "";
  display: block;
  height: 1px;
  margin: 2px 6px 10px 6px;
  background: rgba(255,255,255,0.10);
}

.has-dropdown.open > .dropdown {
  display: block;
}

.dropdown a {
  font-size: 14px;
  color: #fff;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown a:hover {
  background: rgba(153,153,153,0.18);
}


/* ================================
   CARET
================================ */

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.75);
  border-bottom: 2px solid rgba(255,255,255,0.75);
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.has-dropdown.open .caret {
  transform: rotate(-135deg);
  margin-top: 2px;
}


/* ================================
   MEGA MENU
================================ */

.has-mega {
  position: static;
}

.has-mega .dropdown {
  left: 50vw;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 40px));
}

header .nav-wrapper {
  position: relative;
}

@media (max-width: 1100px) {
  .has-mega .dropdown {
    width: min(860px, calc(100vw - 40px));
  }
}

@media (max-width: 860px) {
  .has-mega .dropdown {
    width: calc(100vw - 40px);
  }
}

@media (max-width: 560px) {
  .has-mega .dropdown {
    width: calc(100vw - 24px);
  }
}


/* ================================
   MEGA LAYOUT
================================ */

.mega {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
}

@media (max-width: 860px) {
  .mega {
    grid-template-columns: 1fr;
  }
}

.mega-left {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) {
  .mega-left {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .mega-left {
    grid-template-columns: 1fr;
  }
}

.mega-col {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.mega-heading {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

.mega-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.mega-links a:hover {
  background: rgba(153,153,153,0.18);
}


/* ================================
   FEATURED PANEL
================================ */

.mega-featured {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}

.mega-featured-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.08);
}

.mega-featured-body {
  padding: 12px;
}

.mega-featured-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.mega-featured-desc {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.mega-cta {
  margin-top: 10px;
  display: inline-flex;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(153,153,153,0.20);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.mega-cta:hover {
  background: rgba(153,153,153,0.28);
}