

/* =======================================================
    HEADER – INNER PAGES (always in scrolled / light state)
========================================================== */

/* ══ NAV ══ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: stretch;
    padding: 0 99px;
    height: 80px;
    background: linear-gradient(108deg, rgb(233 255 244 / 97%) 0%, rgba(255, 255, 255, 0.98) 42%, rgb(255 246 232 / 97%) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    transition:
        background 0.45s ease,
        height 0.4s ease,
        box-shadow 0.4s ease;
}

/* bottom gradient accent line — always visible on inner pages */
.nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e6b36 0%, #0e87e2 50%, #fec129 100%);
    box-shadow:
        0 1px 8px rgba(14, 135, 226, 0.28),
        0 1px 4px rgba(254, 193, 41, 0.20),
        0 1px 4px rgba(30, 107, 54, 0.18);
    pointer-events: none;
}

.nav-inner {
    width: 100%;
    max-width: 1690px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.nav-logo-inner {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 24px 0 0;
    text-decoration: none;
    min-width: 160px;
}
.nav-logo-inner img {
    height: 68px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links > li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 12px;
}

.nav-links > li {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1a2537;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0 10px;
    border-radius: 4px;
    position: relative;
    transition:
        color 0.2s,
        background 0.2s;
    white-space: nowrap;
    font-family: var(--body-font);
}

/* green underline indicator */
.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #1e6b36;
    border-radius: 2px 2px 0 0;
    transition: transform 0.25s;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-links > li > a:hover {
    color: #1e6b36;
    background: rgba(30, 107, 54, 0.06);
}

.nav-links > li > a.active {
    color: #1e6b36;
}

/* nav-icon (SVG beside label) */
.nav-links > li > a .nav-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #1e6b36;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-links > li > a:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* chevron arrows only */
.nav-links > li > a svg:not(.nav-icon) {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #1a2537;
    opacity: 0.45;
    transition: transform 0.25s;
}

.nav-links > li:hover > a svg:not(.nav-icon) {
    transform: rotate(180deg);
}

/* ── DROPDOWN ── */
.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(14, 135, 226, 0.15);
    border-top: 2px solid #fec129;
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s,
        transform 0.22s,
        visibility 0.22s;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(14, 135, 226, 0.08);
    z-index: 500;
}

.nav-links > li:hover .dropdown,
.nav-links > li:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    position: relative;
}

.dropdown li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #0f1419;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-left: 2px solid transparent;
    font-family: var(--body-font);
    transition:
        background 0.18s,
        color 0.18s,
        border-color 0.18s,
        padding-left 0.18s;
    white-space: nowrap;
}

.dropdown li a i {
    width: 16px;
    font-size: 11.5px;
    color: #0e87e2;
    opacity: 0.75;
    flex-shrink: 0;
    transition: opacity 0.18s, transform 0.18s;
    text-align: center;
}

.dropdown li a:hover {
    background: rgba(14, 135, 226, 0.07);
    color: #0e87e2;
    border-left-color: #fec129;
    padding-left: 22px;
}

.dropdown li a:hover i {
    opacity: 1;
    color: #fec129;
    transform: scale(1.15);
}

/* ── NAV RIGHT ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 17px;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}

/* ── Login button (icon-only with tooltip) ── */
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1e6b36;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    border: 1.5px solid #1e6b36;
    position: relative;
    flex-shrink: 0;
    transition:
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.2s ease;
}

.btn-nav svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ffffff;
    transition: color 0.28s ease;
}

/* tooltip — matches the index/home page's .btn-nav tooltip styling */
.btn-nav::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #1a2537;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: calc(100% - 3px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    border: 4px solid transparent;
    border-bottom-color: #1a2537;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s all ease-in-out;
    z-index: 9999;
}

.btn-nav:hover::after,
.btn-nav:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-nav:hover {
    background: #fec129;
    color: #071b4d;
    border-color: #fec129;
    box-shadow:
        0 4px 20px rgba(254, 193, 41, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.btn-nav:hover svg {
    color: #071b4d;
}

/* ── 360° Globe button ── */
@keyframes globeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}
@keyframes globeArrow {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50%       { opacity: 1;   transform: translateX(4px); }
}
@keyframes globeShine {
    0%   { left: -80%; }
    100% { left: 160%; }
}
@keyframes globeRingA {
    from { transform: rotateX(72deg) rotateZ(0deg); }
    to   { transform: rotateX(72deg) rotateZ(360deg); }
}
@keyframes globeRingB {
    from { transform: rotateX(72deg) rotateZ(240deg); }
    to   { transform: rotateX(72deg) rotateZ(600deg); }
}

.globe-btn-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
}

.globe-scene {
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
}

#globeCanvas {
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(2, 136, 209, 0.7),
        0 4px 14px rgba(1, 87, 155, 0.5),
        0 0 12px rgba(79, 195, 247, 0.4);
    display: block;
    width: 40px;
    height: 40px;
}

.globe-orbit-wrap {
    position: absolute;
    inset: -6px;
    perspective: 120px;
    pointer-events: none;
}

.globe-ring-a {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 220, 80, 0.9);
    border-bottom-color: rgba(201, 151, 58, 0.15);
    animation: globeRingA 3s linear infinite;
}

.globe-ring-b {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.6);
    border-right-color: rgba(255, 255, 255, 0.1);
    animation: globeRingB 5s linear infinite;
}

.globe-dot-a {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    top: -3px;
    left: 50%;
    margin-left: -3px;
    box-shadow: 0 0 7px 3px rgba(255, 255, 255, 0.85);
}

.globe-text-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.globe-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(-180deg, #ffd966 0%, #fec129 55%, #9a6e1a 100%);
    border-radius: 100px;
    padding: 4px 10px 4px 8px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 3px 10px rgba(201, 151, 58, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: box-shadow 0.3s, transform 0.2s;
}

.globe-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: globeShine 2.5s ease-in-out infinite;
}

.globe-btn-wrap:hover .globe-badge {
    box-shadow:
        0 8px 22px rgba(201, 151, 58, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
}

.globe-deg {
    font-size: 0.72rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.globe-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.globe-hint {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.52rem;
    font-weight: 600;
    color: #4a5a70;
    letter-spacing: 0.3px;
    padding-left: 4px;
}

.globe-hint svg {
    width: 10px;
    height: 10px;
    stroke: #fec129;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: globeArrow 1.2s ease-in-out infinite;
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    background: rgba(30, 107, 54, 0.1);
    border: 1.5px solid #1e6b36;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background 0.25s, border-color 0.25s;
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(30, 107, 54, 0.18);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1e6b36;
    border-radius: 4px;
    transition:
        transform 0.3s,
        opacity 0.2s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    padding: 0 0 36px;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* header bar */
.mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 16px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #1e6b36 0%, #0e87e2 50%, #fec129 100%) 1;
    margin-bottom: 4px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.mob-brand {
    font-family: var(--body-font, sans-serif);
    font-size: 13px;
    font-weight: 800;
    color: #1a2537;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mob-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 107, 54, 0.08);
    border: 1.5px solid rgba(30, 107, 54, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.mob-close-btn:hover {
    background: #1e6b36;
    border-color: #1e6b36;
    transform: rotate(90deg);
}

.mob-close-btn svg {
    width: 15px;
    height: 15px;
    stroke: #1e6b36;
    transition: stroke 0.2s;
}

.mob-close-btn:hover svg {
    stroke: #ffffff;
}

/* nav items */
.mob-nav {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.mob-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1a2537;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s, background 0.2s;
    font-family: var(--body-font);
}

.mob-nav > li > a:hover {
    color: #1e6b36;
    background: rgba(30, 107, 54, 0.06);
}

.mob-item-left {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
}

.mob-item-left i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 107, 54, 0.09);
    border-radius: 7px;
    font-size: 12px;
    color: #1e6b36;
    flex-shrink: 0;
    transition: background 0.22s, color 0.22s;
}

.mob-nav > li > a:hover .mob-item-left i,
.mob-nav > li.open > a .mob-item-left i {
    background: #1e6b36;
    color: #ffffff;
}

.mob-nav > li > a > svg {
    width: 13px;
    height: 13px;
    color: #1a2537;
    opacity: 0.4;
    flex-shrink: 0;
    transition: transform 0.25s, opacity 0.2s, color 0.2s;
}

.mob-nav > li > a:hover > svg {
    color: #1e6b36;
    opacity: 0.8;
}

.mob-nav > li.open > a {
    color: #1e6b36;
    background: rgba(30, 107, 54, 0.06);
}

.mob-nav > li.open > a > svg {
    transform: rotate(180deg);
    color: #1e6b36;
    opacity: 0.8;
}

.mob-dropdown {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    background: #f4f7fb;
    transition: max-height 0.32s ease;
}

.mob-nav > li.open .mob-dropdown {
    max-height: 600px;
}

.mob-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 36px;
    color: #4a5a70;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 2px solid transparent;
    font-family: var(--body-font);
    transition: color 0.15s, background 0.15s, border-color 0.15s, padding-left 0.15s;
}

.mob-dropdown li a i {
    width: 16px;
    font-size: 11px;
    color: #0e87e2;
    opacity: 0.75;
    flex-shrink: 0;
    text-align: center;
    transition: color 0.15s, opacity 0.15s;
}

.mob-dropdown li a:hover {
    color: #0e87e2;
    background: rgba(14, 135, 226, 0.07);
    border-left-color: #fec129;
    padding-left: 40px;
}

.mob-dropdown li a:hover i {
    color: #fec129;
    opacity: 1;
}

/* backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 998;
}

.menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* login CTA in drawer */
.mob-login {
    margin: 20px 22px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mob-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: #1e6b36;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid #1e6b36;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-family: var(--body-font);
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.2s;
}

.mob-login-btn:hover {
    background: #fec129;
    border-color: #fec129;
    color: #071b4d;
    transform: translateY(-1px);
}

.mob-login-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: inherit;
}

/* ══ RESPONSIVE BREAKPOINTS ══ */

/* Bootstrap lg breakpoint — hide desktop nav, show hamburger */
@media (max-width: 1199.98px) {
    .nav { padding: 0 var(--section-pad-x); }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-logo-inner { min-width: auto; }
    .nav-logo-inner img { height: 42px; }
}

/* Bootstrap md */
@media (max-width: 991.98px) {
    .nav { padding: 0 20px; }
    .globe-btn-wrap .globe-text-side { display: none; }
}

/* Bootstrap sm */
@media (max-width: 767.98px) {
    .nav { padding: 0 16px; height: 56px; }
    .nav-logo-inner img { height: 38px; }
    /* .site-main-inner { padding-top: 56px; } */
}

/* Bootstrap xs */
@media (max-width: 575.98px) {
    .globe-btn-wrap { display: none; }
    .nav { padding: 0 14px; height: 52px; }
    .nav-logo-inner img { height: 34px; }
    .site-main-inner { padding-top: 52px; }
}

/* Mobile menu full-width on small screens */
@media (max-width: 575.98px) {
    .mobile-menu {
        width: 100% !important;
    }
}
