/* =============================
   Sage Titans Navigation – FINAL (LOCKED)
   ============================= */
:root {
  --nav-link-height: 40px;
  --nav-menu-gap: 32px;
  --nav-dropdown-gap: 12px;
  --brand-primary: #207DE9;
  --brand-primary-soft: #eef4ff;
}

/* =============================
   HEADER
   ============================= */

/* =================================================
   HEADER / NAV WRAPPER
   ================================================= */

.st-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.st-nav--solid {
  background: #141f8c;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.st-nav-inner {
  max-width: 1360px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* PRIMARY NAV */

.st-nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.st-nav-item {
  position: relative;
}

.st-nav-link {
  display: inline-flex;
  position: relative;
  align-items: center;
  height: var(--nav-link-height);
  padding: 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
}

/* Hover / focus */

.st-nav-link:hover,
.st-nav-link:focus-visible {
  color: #c6f000;
}

.st-nav-link:focus-visible,
.st-acc-toggle:focus-visible,
.st-mobile-close:focus-visible {
  outline: 2px solid #c6f000;
  outline-offset: 3px;
}

/* CTA */

.st-nav-cta {
  background: #c6f000;
  color: #0b0f2a;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* MEGA MENU */

.st-mega {
  display: none;
  position: fixed;
  top: calc(var(--nav-link-height) + var(--nav-menu-gap));
  left: 50vw;
  transform: translateX(-50%);
  width: min(1200px, calc(100vw - 48px));
  z-index: 1001;
}

.st-mega-inner {
  padding: 36px 40px;
  background: linear-gradient(180deg, #141f8c 0%, #121b75 100%);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 40px;
}

.st-mega-col h4 {
  color: #c6f000;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  white-space: nowrap;
}

.st-mega-col a {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  text-decoration: none;
}

.st-mega-col a:hover {
  color: #c6f000;
}

/* DESKTOP HOVER */

@media (hover: hover) {
  .st-nav-item.has-mega:hover .st-mega {
    display: block;
  }

  .st-nav-item.has-mega::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -240px;
    width: 720px;
    height: 40px;
  }
}

/* TOUCH SUPPORT */

.st-nav-item.has-mega.is-open .st-mega {
  display: block;
}

/* DROPDOWN */

.st-dropdown {
  display: none;
  position: absolute;
  top: calc(var(--nav-link-height) + var(--nav-dropdown-gap));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  min-width: 220px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #141f8c 0%, #121b75 100%);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.st-dropdown a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  padding: 6px 0;
  color: #ffffff;
  text-decoration: none;
}

.st-dropdown a:hover {
  color: #c6f000;
}

@media (hover: hover) {
  .st-nav-item.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -40px;
    width: calc(100% + 80px);
    height: 32px;
  }

  .st-nav-item.has-dropdown:hover .st-dropdown {
    display: block;
  }
}

.st-nav-item.has-dropdown.is-open .st-dropdown {
  display: block;
}

/* TABLET */

@media (max-width: 1200px) and (min-width: 1024px) {
  .st-mega {
    left: 24px;
    right: 24px;
    transform: none;
    width: auto;
    max-width: none;
  }

  .st-mega-inner {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 24px;
    padding: 28px;
  }

  .st-mega-col h4 {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .st-mega-col a {
    font-size: 13px;
    margin-bottom: 6px;
  }
}

/* MOBILE */

@media (max-width: 1023px) {

  .st-nav-menu,
  .st-nav-cta {
    display: none;
  }

  .st-nav-toggle {
    background: none;
    border: none;
    font-size: 26px;
    color: #ffffff;
    margin-left: 12px;
    cursor: pointer;
  }

  .st-mobile {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #141f8c 0%, #121b75 100%);
    z-index: 1100;
    overflow-y: auto;
  }

  .st-mobile[hidden] {
    display: none;
  }

  .st-mobile-nav {
    padding: 24px;
  }

  .st-mobile-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    float: right;
  }

  .st-mobile-accordion {
    list-style: none;
    padding: 0;
    margin: 48px 0 0;
  }

  .st-acc-item {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .st-acc-toggle {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    padding: 14px 0;
    cursor: pointer;
    position: relative;
  }

  .st-acc-toggle::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
  }

  .st-acc-item.active .st-acc-toggle::after {
    content: "–";
  }

  .st-acc-panel {
    display: none;
    padding: 8px 0 0;
  }

  .st-acc-item.active .st-acc-panel {
    display: block;
  }

  .st-acc-panel a {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    padding: 6px 0;
    margin: 6px 0;
  }

  .st-acc-panel a:hover {
    color: #c6f000;
  }

  .st-acc-group {
    margin-bottom: 16px;
  }

  .st-acc-group h4 {
    color: #c6f000;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .st-acc-link a {
    display: block;
    color: #ffffff;
    font-size: 16px;
    padding: 12px 0;
    text-decoration: none;
  }

  .st-acc-link a:hover {
    color: #c6f000;
  }

  .st-mobile-cta a {
    display: block;
    margin-top: 32px;
    background: #c6f000;
    color: #0b0f2a;
    padding: 14px;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
  }

  .st-mega,
  .st-dropdown {
    display: none !important;
  }
}

/* =============================
   NAV TOGGLE VISIBILITY CONTROL
   ============================= */

@media (min-width: 1024px) {
  .st-nav-toggle {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .st-nav-toggle {
    display: block !important;
  }
}


/* ======================================
   FOOTER ADDRESS BOXES – TABLET FIX
   iPad Pro / iPad Air / Tablets
   ====================================== */

@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {

  .footer-add-sec {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .f-add-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    box-sizing: border-box;
  }
}



/* ======================================
   FOOTER LINKS – TABLET BASE (ALL)
   ====================================== */

@media (min-width: 768px) and (max-width: 1366px) and (pointer: coarse) {

  .footer-link-sec {
    display: grid;
    gap: 32px 40px;
    align-items: start;
  }

  .f-link-box {
    width: 100%;
  }

  .f-link-box h3 {
    margin-bottom: 12px;
  }

  .f-link-box ul {
    margin: 0;
    padding: 0;
  }
}

/* ======================================
   FOOTER LINKS – iPad Mini / Air
   ====================================== */

@media (min-width: 768px) and (max-width: 1023px) and (pointer: coarse) {

  .footer-link-sec {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================
   FOOTER LINKS – iPad Pro
   ====================================== */

@media (min-width: 1024px) and (max-width: 1366px) and (pointer: coarse) {

  .footer-link-sec {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;   /* prevents left-heavy layout */
    margin: 0 auto;     /* centers the grid */
    padding-left: 10px;
  }
}


/* ======================================
   FOOTER LINKS – MOBILE
   ====================================== */

@media (max-width: 767px) {

  .footer-link-sec {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* OVERRIDE LEGACY FIXED WIDTH */
.cs-card-sec .cs-sec-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* OVERRIDE LEGACY RULE – SHOW ALL BULLETS ON MOBILE */
@media (max-width: 768px) {
    .cs-highlights li:nth-child(3) {
        display: list-item !important;
    }
}