/* =========================================================
   GNJOY Navbar + Gravity Footer  (standalone)
   - no dependency on Bootstrap or any page stylesheet
   - every class is prefixed "gg-" so it will not clash
   ========================================================= */
.gg-nav,
.gg-nav *,
.gg-footer,
.gg-footer * { box-sizing: border-box; }

.gg-nav,
.gg-footer {
  --gg-accent: #4f6bff;          /* login / register blue */
  --gg-accent-dark: #3b55e6;
  --gg-active: #e60012;          /* GNJOY red - active underline */
  --gg-text: #1f2329;
  --gg-muted: #7a828e;
  font-family: "Kanit", Tahoma, sans-serif;
  line-height: 1.5;
}

/* ---------------- NAVBAR ---------------- */
.gg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: box-shadow .3s;
}
.gg-nav.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }

/* put right after the nav so page content is not hidden under it */
.gg-nav-spacer { height: 56px; }

.gg-nav__inner {
  display: flex;
  align-items: center;
  height: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.gg-nav__brand { display: block; margin-right: 28px; flex-shrink: 0; line-height: 0; }
.gg-nav__brand img { display: block; height: 17px; width: auto; }

.gg-nav__menu { display: flex; align-items: center; flex: 1; height: 100%; }

.gg-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gg-nav__list li { height: 100%; }
.gg-nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 14.5px;
  color: var(--gg-muted);
  text-decoration: none;
  transition: color .2s;
}
/* animated underline */
.gg-nav__list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--gg-active);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.gg-nav__list a:hover,
.gg-nav__list a:focus-visible { color: var(--gg-text); outline: none; }
.gg-nav__list a:hover::after,
.gg-nav__list a:focus-visible::after { transform: scaleX(.6); }
.gg-nav__list a.is-active { color: var(--gg-text); font-weight: 600; }
.gg-nav__list a.is-active::after { transform: scaleX(1); }

/* login / register */
.gg-nav__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.gg-nav__btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.gg-nav__btn--ghost {
  color: var(--gg-accent);
  border: 1px solid rgba(79, 107, 255, .35);
}
.gg-nav__btn--ghost:hover { background: rgba(79, 107, 255, .08); border-color: var(--gg-accent); }
.gg-nav__btn--solid {
  color: #fff;
  background: var(--gg-accent);
  border: 1px solid var(--gg-accent);
  box-shadow: 0 3px 10px rgba(79, 107, 255, .3);
}
.gg-nav__btn--solid:hover { background: var(--gg-accent-dark); border-color: var(--gg-accent-dark); }

/* hamburger */
.gg-nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 11px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background .2s;
}
.gg-nav__toggle:hover { background: rgba(0, 0, 0, .05); }
.gg-nav__toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--gg-text);
  transition: transform .3s, opacity .3s;
}
.gg-nav.is-open .gg-nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.gg-nav.is-open .gg-nav__toggle span:nth-child(2) { opacity: 0; }
.gg-nav.is-open .gg-nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 991px) {
  .gg-nav__toggle { display: block; }
  .gg-nav__menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .gg-nav.is-open .gg-nav__menu { max-height: 460px; padding: 8px 16px 16px; }
  .gg-nav__list { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
  .gg-nav__list li { height: auto; }
  .gg-nav__list a {
    height: auto;
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
  }
  .gg-nav__list a::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; transform: scaleY(0); }
  .gg-nav__list a.is-active::after { transform: scaleY(1); }
  .gg-nav__list a:hover::after { transform: scaleY(.6); }
  .gg-nav__list a.is-active { padding-left: 14px; }
  .gg-nav__auth { margin: 14px 0 0; justify-content: center; }
  .gg-nav__btn { flex: 1; justify-content: center; height: 38px; }
}

/* ---------------- FOOTER ---------------- */
.gg-footer {
  position: relative;
  background: #1c1f24;
  color: #fff;
}
.gg-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}
.gg-footer__logo { display: block; width: 130px; height: auto; flex-shrink: 0; opacity: .95; }
.gg-footer__divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, .15);
  flex-shrink: 0;
}
.gg-footer__text p { margin: 0; }
.gg-footer__links { font-size: 13px; font-weight: 600; }
.gg-footer__links a {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.gg-footer__links a:hover { color: #9fb0ff; }
.gg-footer__links span { margin: 0 8px; color: rgba(255, 255, 255, .3); }
.gg-footer__copy {
  margin-top: 3px !important;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 767px) {
  .gg-footer__inner { flex-direction: column; gap: 14px; padding: 22px 16px; text-align: center; }
  .gg-footer__logo { width: 110px; }
  .gg-footer__divider { width: 40px; height: 1px; }
  .gg-footer__copy { font-size: 11.5px; line-height: 1.6; }
}
