/* GFGC Navbar v2.0.1 */

#gfgc-nav *, #gfgc-nav *::before, #gfgc-nav *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
#gfgc-nav input[type="checkbox"] { display: none; }

#gfgc-nav {
  --navy: #20519a; --blue: #1a89c8; --gray: #5b5b5b;
  --light: #f4f6f9; --white: #ffffff;
  --border: rgba(32,81,154,0.12);
  --shadow: 0 8px 40px rgba(32,81,154,0.13), 0 2px 8px rgba(0,0,0,0.07);
  --nav-h: 68px;
  font-family: "DM Sans", sans-serif;
  position: relative;
  z-index: 9999;
}

/* NAV BAR */
#gfgc-nav nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  width: 100%;
}
#gfgc-nav .gn-logo img { height: 44px; width: auto; display: block; }

/* DESKTOP LINKS */
#gfgc-nav .gn-links { display: flex; align-items: center; gap: 2px; list-style: none; }
#gfgc-nav .gn-item { position: relative; }
#gfgc-nav .gn-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--gray);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color 0.18s, background 0.18s;
  background: transparent; border: none;
  font-family: "DM Sans", sans-serif; line-height: 1;
}
#gfgc-nav .gn-link:hover,
#gfgc-nav .gn-item:hover > .gn-link { color: var(--navy); background: rgba(32,81,154,0.06); }
#gfgc-nav .gn-link .gn-chev {
  width: 10px; height: 10px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.22s; flex-shrink: 0;
}
#gfgc-nav .gn-item:hover > .gn-link .gn-chev { transform: rotate(180deg); }

/* CTA */
#gfgc-nav .gn-cta {
  padding: 9px 22px; border-radius: 6px; background: var(--navy);
  color: #fff !important; font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer; font-family: "DM Sans", sans-serif;
  white-space: nowrap; transition: background 0.18s, transform 0.15s;
  text-decoration: none; flex-shrink: 0;
}
#gfgc-nav .gn-cta:hover { background: #1a4080; transform: translateY(-1px); }

/* DROPDOWN */
#gfgc-nav .gn-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--blue); border-radius: 0 0 14px 14px;
  min-width: 800px; min-height: 320px;
  display: flex; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow); overflow: hidden;
}
#gfgc-nav .gn-dropdown::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
#gfgc-nav .gn-item:hover .gn-dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}

/* SIDEBAR */
#gfgc-nav .gn-sidebar {
  width: 240px; flex-shrink: 0; background: var(--light);
  border-right: 1px solid var(--border); padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
#gfgc-nav .gn-sitem {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border-radius: 8px; cursor: pointer;
  text-decoration: none; color: var(--gray);
  transition: background 0.16s, border-left-color 0.16s;
  border-left: 3px solid transparent;
}
#gfgc-nav .gn-sitem:hover,
#gfgc-nav .gn-sitem.active { background: rgba(32,81,154,0.07); border-left-color: var(--blue); }
#gfgc-nav .gn-sitem:hover .gn-sitem-title,
#gfgc-nav .gn-sitem.active .gn-sitem-title { color: var(--navy); font-weight: 600; }
#gfgc-nav .gn-sitem-icon {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; border-radius: 6px; background: rgba(26,137,200,0.1);
  flex-shrink: 0; margin-top: 1px; pointer-events: none;
}
#gfgc-nav .gn-sitem-icon svg {
  width: 15px; height: 15px; stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
#gfgc-nav .gn-sitem-title {
  font-size: 13px; font-weight: 500; color: var(--navy);
  margin-bottom: 2px; transition: color 0.16s; line-height: 1.3; pointer-events: none;
}
#gfgc-nav .gn-sitem-desc {
  font-size: 11px; color: var(--gray); line-height: 1.4;
  font-style: italic; pointer-events: none;
}

/* PANELS */
#gfgc-nav .gn-panel {
  flex: 1; padding: 16px 12px; display: none;
  grid-template-columns: 1fr 1fr; gap: 6px; align-content: start;
  position: absolute; top: 0; right: 0; bottom: 0; width: calc(100% - 240px);
}
#gfgc-nav .gn-panel.active { display: grid; }

/* CARDS */
#gfgc-nav .gn-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; color: inherit;
  transition: background 0.16s, border-color 0.16s;
}
#gfgc-nav .gn-card:hover { background: rgba(32,81,154,0.05); border-color: rgba(26,137,200,0.25); }
#gfgc-nav .gn-card.featured { background: rgba(26,137,200,0.06); border-color: rgba(26,137,200,0.2); }
#gfgc-nav .gn-card-icon {
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 8px; background: rgba(32,81,154,0.08);
  flex-shrink: 0; margin-top: 1px;
}
#gfgc-nav .gn-card-icon svg {
  width: 17px; height: 17px; stroke: var(--navy); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
#gfgc-nav .gn-card-title { font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 3px; line-height: 1.3; }
#gfgc-nav .gn-card-desc { font-size: 11.5px; color: var(--gray); line-height: 1.45; }

/* HAMBURGER — hidden on desktop */
#gfgc-nav .gn-hamburger-label {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border-radius: 6px; transition: background 0.18s;
}
#gfgc-nav .gn-hamburger-label:hover { background: rgba(32,81,154,0.06); }
#gfgc-nav .gn-hamburger-label span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}

/* MOBILE DRAWER — completely hidden on desktop */
#gfgc-nav .gn-mobile {
  display: none;
}

/* MOBILE TOP LINKS */
#gfgc-nav .gn-mob-link {
  display: block; padding: 16px 22px; font-size: 15px; font-weight: 500;
  color: #1a1a2e; text-decoration: none;
  border-bottom: 1px solid rgba(32,81,154,0.08);
  transition: background 0.16s, color 0.16s;
}
#gfgc-nav .gn-mob-link:hover { background: rgba(32,81,154,0.04); color: var(--navy); }

/* LEVEL-1 ACCORDION */
#gfgc-nav .gn-acc-l1 { border-bottom: 1px solid rgba(32,81,154,0.08); width: 100%; }
#gfgc-nav .gn-acc-l1-label {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 15px 22px; cursor: pointer; background: none; border: none;
  text-align: left; font-family: "DM Sans", sans-serif; transition: background 0.16s;
}
#gfgc-nav .gn-acc-l1-label:hover { background: rgba(32,81,154,0.04); }
#gfgc-nav .gn-acc-l1-icon {
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 8px; background: rgba(32,81,154,0.08); flex-shrink: 0;
}
#gfgc-nav .gn-acc-l1-icon svg {
  width: 18px; height: 18px; stroke: var(--navy); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
#gfgc-nav .gn-acc-l1-title { flex: 1; font-size: 15px; font-weight: 600; color: #1a1a2e; line-height: 1.3; }
#gfgc-nav .gn-acc-l1-chev { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s; }
#gfgc-nav .gn-acc-l1-chev path { stroke: rgba(32,81,154,0.45); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#gfgc-nav .gn-acc-l1.open .gn-acc-l1-chev    { transform: rotate(180deg); }
#gfgc-nav .gn-acc-l1.open > .gn-acc-l1-label { background: rgba(32,81,154,0.05); }
#gfgc-nav .gn-acc-l1.open .gn-acc-l1-title   { color: var(--navy); }
#gfgc-nav .gn-acc-l1-body {
  display: none; flex-direction: column;
  background: #f4f7fc; border-top: 1px solid rgba(32,81,154,0.07); width: 100%;
}
#gfgc-nav .gn-acc-l1.open .gn-acc-l1-body { display: flex; }

/* LEVEL-2 ACCORDION */
#gfgc-nav .gn-acc { border-bottom: 1px solid rgba(32,81,154,0.07); width: 100%; }
#gfgc-nav .gn-acc:last-child { border-bottom: none; }
#gfgc-nav .gn-acc-label {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 14px 20px; cursor: pointer; background: none; border: none;
  text-align: left; font-family: "DM Sans", sans-serif; transition: background 0.16s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  position: relative; z-index: 1; pointer-events: auto;
}
#gfgc-nav .gn-acc-label:hover,
#gfgc-nav .gn-acc-label:active { background: rgba(32,81,154,0.05); }
#gfgc-nav .gn-acc-icon {
  width: 30px; height: 30px; display: flex; align-items: center;
  justify-content: center; border-radius: 7px; background: rgba(26,137,200,0.1);
  flex-shrink: 0; pointer-events: none;
}
#gfgc-nav .gn-acc-icon svg {
  width: 15px; height: 15px; stroke: var(--blue); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
#gfgc-nav .gn-acc-title { flex: 1; font-size: 13.5px; font-weight: 600; color: #2a2a4a; line-height: 1.3; pointer-events: none; }
#gfgc-nav .gn-acc-chev { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.22s; pointer-events: none; }
#gfgc-nav .gn-acc-chev path { stroke: rgba(32,81,154,0.35); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#gfgc-nav .gn-acc.open .gn-acc-chev     { transform: rotate(180deg); }
#gfgc-nav .gn-acc.open > .gn-acc-label  { background: rgba(32,81,154,0.06); }
#gfgc-nav .gn-acc.open .gn-acc-title    { color: var(--navy); }
#gfgc-nav .gn-acc-body {
  display: none; flex-direction: column;
  background: #eef2f9; border-top: 1px solid rgba(32,81,154,0.06); width: 100%;
}
#gfgc-nav .gn-acc.open .gn-acc-body { display: flex; }

/* MOBILE SUB LINKS */
#gfgc-nav .gn-mob-sub {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 20px; text-decoration: none;
  border-bottom: 1px solid rgba(32,81,154,0.05); transition: background 0.14s;
  -webkit-tap-highlight-color: transparent;
}
#gfgc-nav .gn-mob-sub:last-child { border-bottom: none; }
#gfgc-nav .gn-mob-sub:hover { background: rgba(32,81,154,0.06); }
#gfgc-nav .gn-mob-sub-icon {
  width: 26px; height: 26px; display: flex; align-items: center;
  justify-content: center; border-radius: 6px; background: rgba(26,137,200,0.1); flex-shrink: 0;
}
#gfgc-nav .gn-mob-sub-icon svg {
  width: 13px; height: 13px; stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
#gfgc-nav .gn-mob-sub-text { font-size: 13px; font-weight: 500; color: #3a3a5c; line-height: 1.3; }
#gfgc-nav .gn-mob-sub:hover .gn-mob-sub-text { color: var(--navy); }

/* MOBILE CTA */
#gfgc-nav .gn-mob-cta {
  display: block; text-align: center; margin: 20px 22px 28px; padding: 14px;
  border-radius: 8px; background: var(--navy); color: #fff !important;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
#gfgc-nav .gn-mob-cta:hover { background: #1a4080; transform: translateY(-1px); }

/* ══ MOBILE BREAKPOINT ══ */
@media (max-width: 960px) {
  #gfgc-nav nav { padding: 0 20px; }
  #gfgc-nav .gn-links { display: none !important; }
  #gfgc-nav .gn-cta  { display: none !important; }
  #gfgc-nav .gn-hamburger-label { display: flex; }

  /* Hamburger X animation */
  #gfgc-nav .gn-hamburger-label.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #gfgc-nav .gn-hamburger-label.is-open span:nth-child(2) { opacity: 0; }
  #gfgc-nav .gn-hamburger-label.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile drawer — right side slide */
  #gfgc-nav .gn-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: #ffffff;
    border-left: 1px solid rgba(32,81,154,0.12);
    box-shadow: -4px 0 32px rgba(32,81,154,0.15);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  #gfgc-nav .gn-mobile.gn-mobile--open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
  }
}

@media (max-width: 540px) {
  #gfgc-nav nav { padding: 0 16px; }
}
