/* ── Custom overrides on top of Tailwind ── */

:root {
  --green:   #00a650;
  --green-d: #007d3c;
  --green-l: #e8f7ef;
  --navy:    #0b1f3a;
  --navy-m:  #0e2748;
}

/* ── Topbar ── */
.topbar-link { border-left: 1px solid #e2e2e2; }
.topbar-link:hover { color: var(--green); }

/* ── Segment tab active ── */
.seg-tab { border-bottom: 3px solid transparent; transition: all .18s; }
.seg-tab.active,
.seg-tab:hover { color: var(--green); border-bottom-color: var(--green); }

/* ── Nav item + mega menu ── */
.nav-item { position: relative; height: 100%; }

.nav-btn {
  height: 100%;
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 3px;
  padding: 0 9px;
  font-size: 12.5px; font-weight: 500; color: #444;
  white-space: nowrap;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.nav-item:hover > .nav-btn {
  color: var(--green);
  border-bottom-color: var(--green);
}
.nav-btn .chev { width: 11px; height: 11px; transition: transform .2s; flex-shrink: 0; }
.nav-item:hover > .nav-btn .chev { transform: rotate(180deg); }

/* Mega base */
.mega {
  display: none;
  position: absolute;
  top: calc(100% + 0px);   /* flush below header bottom border */
  background: #fff;
  border-top: 3px solid var(--green);
  border: 1px solid #e4e4e4;
  border-top-width: 3px;
  border-top-color: var(--green);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,.13);
  padding: 26px;
  gap: 24px;
  z-index: 9999;
  min-width: 580px;
}

/* Default: open to the right of the nav item */
.mega { left: 0; right: auto; }

/* Last 2 nav items: open to the LEFT so they don't overflow right edge */
.nav-item.align-right > .mega { left: auto; right: 0; }

.nav-item:hover > .mega { display: flex; }

/* Mega column title */
.mega-col-ttl {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.1px; color: #ccc;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid #eaeaea;
}

/* Mega link */
.mlink {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px; border-radius: 7px;
  cursor: pointer; transition: background .15s;
  text-decoration: none; color: inherit;
}
.mlink:hover { background: var(--green-l); }
.mlink-ico {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--green-l);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mlink-ico svg { color: var(--green); width: 17px; height: 17px; }
.mlink-ttl { font-size: 13px; font-weight: 700; color: #111; line-height: 1.3; }
.mlink-sub { font-size: 11px; color: #888; margin-top: 2px; line-height: 1.5; }

/* Mega promo card */
.mega-promo {
  min-width: 175px; max-width: 185px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--navy) 0%, #122f55 100%);
  border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.mp-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.45); }
.mp-title { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.35; margin: 5px 0 3px; }
.mp-desc { font-size: 11.5px; color: rgba(255,255,255,.6); line-height: 1.6; }
.mp-btn {
  margin-top: 4px; background: var(--green); color: #fff;
  border-radius: 6px; padding: 8px 12px;
  font-size: 12px; font-weight: 700; text-align: center; cursor: pointer;
  transition: background .18s;
}
.mp-btn:hover { background: var(--green-d); }

/* Badge ok (green dot) */
.badge-ok {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,166,80,.15); color: var(--green);
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.badge-ok::before {
  content: ''; width: 5px; height: 5px;
  background: var(--green); border-radius: 50%;
}

/* Quick strip scroll */
.quick-strip-inner { scrollbar-width: none; }
.quick-strip-inner::-webkit-scrollbar { display: none; }
.qs-item:first-child { border-left: none; }

/* Hero grid */
.hero-bg {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-m) 55%, #0d2a4a 100%);
}

/* Table right-align */
thead th:not(:first-child),
tbody td:not(:first-child) { text-align: right; }

/* Mobile mob-open chevron */
.mob-nav-btn.mob-open svg { transform: rotate(180deg); }
.mob-nav-btn svg { transition: transform .2s; }

/* Tailwind green button active override */
.btn-green { background: var(--green) !important; }
.btn-green:hover { background: var(--green-d) !important; }

/* Outline button: green border + green text, hover = dark green bg + white text */
.btn-outline-green {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  transition: background .18s, color .18s;
}
.btn-outline-green:hover {
  background: var(--green-d);
  color: #fff;
}
