/* ═══════════════════════════════════════════════════
   TESS Group — Employers Mega Dropdown
   ═══════════════════════════════════════════════════ */

/* ─── Employers Nav Item ─── */
.employers-nav-item {
  position: relative;
  cursor: pointer;
  padding: 8px 0;
}
.employers-nav-item > span {
  color: #2d3436;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  cursor: pointer;
}
.employers-nav-item:hover > span,
.employers-nav-item.mega-open > span {
  color: #00bcd4;
}
.employers-nav-item > span svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

/* Dark nav overrides - homepage and modern dark pages */
.nav-links .employers-nav-item > span,
.site-nav-links .employers-nav-item > span,
.site-nav .employers-nav-item > span {
  color: #fff;
}
.nav-links .employers-nav-item:hover > span,
.site-nav-links .employers-nav-item:hover > span,
.site-nav .employers-nav-item:hover > span {
  color: #00bcd4;
}

.employers-nav-item.mega-open > span svg {
  transform: rotate(180deg);
}

/* ─── Mega Dropdown Panel ─── */
.tess-mega-dropdown {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 99999;
  background-color: #060e1e;
  background-image: linear-gradient(180deg, #0a1929 0%, #060e1e 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 2px solid #00bcd4;
  border-bottom: 1px solid rgba(0,188,212,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0,188,212,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  overflow: hidden;
  isolation: isolate;
}
.tess-mega-dropdown.mega-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tess-mega-dropdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #060e1e;
  background-image: linear-gradient(180deg, #0a1929 0%, #060e1e 100%);
  z-index: -1;
}
.tess-mega-dropdown .mega-inner {
  position: relative;
  z-index: 1;
}

/* Inner container */
.mega-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 40px 28px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 280px;
  gap: 0 32px;
}

/* Dividers */
.mega-divider {
  background: linear-gradient(180deg, rgba(0,188,212,0.3) 0%, rgba(0,188,212,0.05) 100%);
  width: 1px;
}

/* Section headers */
.mega-section-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00bcd4;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,188,212,0.15);
}

/* ─── Resource Links (Column 1) ─── */
.mega-resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-resource-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
}
.mega-resource-item a:hover {
  background: rgba(0,188,212,0.08);
}
.mega-resource-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.mega-resource-text h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.2;
}
.mega-resource-text p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #7b8ea0;
  margin: 0;
  line-height: 1.3;
}
.mega-resource-item a:hover .mega-resource-text h4 {
  color: #00bcd4;
}

/* ─── Sector Pills (Column 2) ─── */
.mega-sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mega-sector-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #c8d6e5;
}
.mega-sector-pill:hover {
  background: rgba(0,188,212,0.1);
  border-color: rgba(0,188,212,0.3);
  color: #fff;
  transform: translateY(-1px);
}
.mega-sector-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Featured Card (Column 3) ─── */
.mega-featured-card {
  background: linear-gradient(135deg, rgba(0,188,212,0.12) 0%, rgba(0,165,81,0.08) 100%);
  border: 1px solid rgba(0,188,212,0.2);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mega-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,188,212,0.15);
  border: 1px solid rgba(0,188,212,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00bcd4;
  margin-bottom: 14px;
  width: fit-content;
}
.mega-featured-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.mega-featured-card p {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #7b8ea0;
  margin: 0 0 16px;
  line-height: 1.5;
  flex: 1;
}
.mega-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  width: fit-content;
}
.mega-featured-cta:hover {
  background: linear-gradient(135deg, #0097a7, #00838f);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,188,212,0.3);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .tess-mega-dropdown { display: none !important; }
  .employers-nav-item > span svg { display: none; }
}

/* ─── Mobile Employers Links (shown inside mobile nav) ─── */
.mobile-employers-links {
  display: none;
  padding: 4px 0 8px 12px;
  flex-direction: column;
  gap: 2px;
}
.mobile-employers-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  border-left: 2px solid rgba(0,188,212,0.3);
  transition: all 0.2s;
}
.mobile-employers-links a:hover {
  color: #00bcd4;
  background: rgba(0,188,212,0.08);
}
@media (max-width: 1024px) {
  .mobile-employers-links { display: flex; }
}
@media (min-width: 1025px) {
  .mobile-employers-links { display: none !important; }
}
