/* ================================================================
   ICS Career GPS — Navigation Styles
   ================================================================ */

/* Box-sizing reset scoped to nav elements */
.ics-nav *,
.ics-nav *::before,
.ics-nav *::after,
.ics-mob-overlay *,
.ics-mob-overlay *::before,
.ics-mob-overlay *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Push page content below the fixed nav bar */
.page-top-padding {
  padding-top: 150px;
}
@media (max-width: 991px) {
  .page-top-padding {
    padding-top: 80px;
  }
}

/* ================================================================
   Main Nav Bar
   ================================================================ */
.ics-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease;
  --nav-fg: #1a1a1a;
  --nav-hover: rgba(0, 0, 0, 0.06);
  --nav-font: 'Montserrat', 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* White text mode — transparent nav on dark hero pages */
.ics-nav.ics-white-mode {
  --nav-fg: #ffffff;
  --nav-hover: rgba(255, 255, 255, 0.14);
}

/* Solid nav — for light-background pages and scrolled state */
.ics-nav.ics-solid-bg,
.ics-nav.ics-scrolled {
  background-color: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  --nav-fg: #1a1a1a;
  --nav-hover: rgba(0, 0, 0, 0.06);
}

.ics-nav-inner {
  display: flex;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100px;
}

/* ----------------------------------------------------------------
   Brand Logo
   ---------------------------------------------------------------- */
.ics-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}

.ics-brand img {
  height: 140px;
  width: auto;
  display: block;
}

/* ================================================================
   Desktop Navigation Links
   ================================================================ */
.ics-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.ics-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* ----------------------------------------------------------------
   Trigger buttons and plain links
   ---------------------------------------------------------------- */
.ics-trigger,
.ics-plain-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--nav-fg) !important;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
  text-decoration: none !important;
  font-family: var(--nav-font);
  line-height: 1;
  position: relative;
}

.ics-trigger:hover,
.ics-plain-link:hover {
  background-color: var(--nav-hover);
  text-decoration: none !important;
  color: var(--nav-fg) !important;
}

/* ----------------------------------------------------------------
   Chevron icon
   ---------------------------------------------------------------- */
.ics-chev {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.22s ease;
}

.ics-item.ics-dd-open .ics-chev,
.ics-item:hover .ics-chev {
  transform: rotate(180deg);
}

/* ----------------------------------------------------------------
   Active page indicator (underline)
   ---------------------------------------------------------------- */
.ics-trigger.ics-active::after,
.ics-plain-link.ics-active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
}

/* ================================================================
   Login Button
   ================================================================ */
.ics-login-btn {
  background: #1a56db !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  margin-left: 10px;
}

.ics-login-btn .ics-chev {
  opacity: 0.85;
}

.ics-login-btn:hover {
  background: #1648c5 !important;
  color: #ffffff !important;
}

/* Login button outline style when on transparent (white-mode) pages */
.ics-nav.ics-white-mode:not(.ics-scrolled):not(.ics-solid-bg) .ics-login-btn {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.ics-nav.ics-white-mode:not(.ics-scrolled):not(.ics-solid-bg) .ics-login-btn:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

/* ================================================================
   Dropdown Panel
   ================================================================ */
.ics-dd {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 360px;
  padding-top: 60px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow:
    0 0 0 1.5px rgba(0, 0, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.13),
    0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px 10px;
  z-index: 9010;
  color: #1a1a1a;
  /* Reveal animation */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s 0.18s;
}

/* Show on hover or keyboard open */
.ics-item:hover .ics-dd,
.ics-item.ics-dd-open .ics-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s 0s;
}

/* ----------------------------------------------------------------
   Dropdown items
   ---------------------------------------------------------------- */
.ics-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #111827 !important;
  transition: background-color 0.15s ease;
}

.ics-dd-item:hover {
  background-color: #f5f7fe;
  text-decoration: none !important;
}

.ics-dd-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  margin-right: 5px;
}

.ics-dd-icon i {
  font-size: 24px;
  color: #0274e1;
}

.ics-dd-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 2px;
  font-family: var(--nav-font);
}

.ics-dd-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  font-family: var(--nav-font);
}

.ics-dd-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 4px;
}

/* ================================================================
   Mobile Hamburger Button (hidden on desktop)
   ================================================================ */
.ics-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 9px;
  transition: background-color 0.2s;
  margin-left: 12px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.ics-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-fg);
  border-radius: 2px;
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.ics-hamburger:hover {
  background-color: var(--nav-hover);
}

.ics-hamburger.ics-hbg-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ics-hamburger.ics-hbg-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.ics-hamburger.ics-hbg-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   Mobile Menu Overlay
   ================================================================ */
.ics-mob-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ics-mob-overlay.ics-mob-open {
  transform: translateX(0);
}

/* ---- Mobile menu header ---- */
.ics-mob-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.ics-mob-hdr img {
  height: 48px;
  width: auto;
}

.ics-mob-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: #1a1a1a;
  line-height: 1;
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.ics-mob-close:hover {
  background: #e8e8e8;
}

.ics-mob-body {
  padding: 4px 16px;
}

/* ---- Mobile accordion sections ---- */
.ics-mob-section {
  border-bottom: 1px solid #f3f4f6;
}

.ics-mob-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 8px 11px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
  font-family: 'Montserrat', 'PT Sans', sans-serif;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.ics-mob-acc-chevron {
  font-size: 16px;
  color: #9ca3af;
  transition: transform 0.22s ease;
  line-height: 1;
}

.ics-mob-acc-btn.ics-acc-open .ics-mob-acc-chevron {
  transform: rotate(90deg);
}

.ics-mob-acc-body {
  display: none;
  padding-bottom: 8px;
}

.ics-mob-acc-body.ics-acc-visible {
  display: block;
}

/* ---- Mobile nav links ---- */
.ics-mob-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #111827 !important;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s;
  font-family: 'Montserrat', 'PT Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.ics-mob-link:hover {
  background-color: #f5f7fe;
  text-decoration: none !important;
  color: #111827 !important;
}

.ics-mob-icon {
  font-size: 17px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0ff;
  border-radius: 8px;
  flex-shrink: 0;
}

.ics-mob-icon i {
  font-size: 15px;
  color: #4f46e5;
}

.ics-mob-link-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.ics-mob-link-desc {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.3;
}

/* ---- Pricing standalone link ---- */
.ics-mob-pricing {
  display: block;
  padding: 16px 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827 !important;
  text-decoration: none !important;
  font-family: 'Montserrat', 'PT Sans', sans-serif;
  border-bottom: 1px solid #f3f4f6;
  -webkit-tap-highlight-color: transparent;
}

.ics-mob-pricing:hover {
  color: #1a56db !important;
}

/* ---- Mobile footer login buttons ---- */
.ics-mob-login {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ics-mob-login-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 2px;
}

.ics-mob-login-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.2s;
  font-family: 'Montserrat', 'PT Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.ics-mob-btn-primary {
  background: #1a56db;
  color: #ffffff !important;
}

.ics-mob-btn-primary:hover {
  background: #1648c5;
  text-decoration: none !important;
  color: #ffffff !important;
}

.ics-mob-btn-secondary {
  background: #eff6ff;
  color: #1a56db !important;
  border: 1.5px solid #bfdbfe;
}

.ics-mob-btn-secondary:hover {
  background: #dbeafe;
  text-decoration: none !important;
  color: #1a56db !important;
}

/* ================================================================
   Responsive breakpoints
   ================================================================ */

/* Tablet & below: hide desktop links, show hamburger */
@media (max-width: 991px) {
  .ics-links {
    display: none;
  }

  .ics-hamburger {
    display: flex;
  }

  .ics-nav-inner {
    padding: 0 16px;
    height: 64px;
  }

  /* Force solid white nav on ALL theme variants on mobile.
     Both selectors needed — ics-white-mode has higher specificity (0,2,0)
     than plain ics-nav (0,1,0), so we must match it explicitly to win. */
  .ics-nav,
  .ics-nav.ics-white-mode,
  .ics-nav.ics-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.06),
      0 2px 12px rgba(0, 0, 0, 0.07);
    --nav-fg: #1a1a1a;
    --nav-hover: rgba(0, 0, 0, 0.06);
  }

  /* Hard-code hamburger bar color so it is never invisible */
  .ics-hamburger span {
    background: #1a1a1a !important;
  }
}

/* Phone: slightly more compact */
@media (max-width: 575px) {
  .ics-brand img {
    height: 88px;
  }
}

/* Hide overlay on desktop */
@media (min-width: 992px) {
  .ics-mob-overlay {
    display: none !important;
  }
}
