/* __________________________________________________
   __________ HEADER NAVIGATION __________
   __________________________________________________ */

/* --- Utilities --- */
.mobile-only { display: none;}

 body > header{
     position: sticky;
     top: 0;
     z-index: 3000;
     background: var(--brand-bg-elevated, #ffffff);
 }


/* --- General Navbar Layout --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
    height: 80px;
}

.nav-left, .nav-right { flex: 0 0 auto; }
.nav-center { 
    flex: 1 1 auto; 
    display: flex; 
    justify-content: center; 
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* --- Desktop Links (Visitor & General) --- */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: var(--brand-primary);
}

/* --- Logged In State Specifics --- */
.user-links {
    align-items: center;
}

.user-links > li > a{
    height: 38px;
}

.user-links > li{
    display:flex;
    align-items:center;
}

.user-avatar {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    display:flex;
    align-items:center;
}

/* Notifications bell */
.nav-notify{position:relative;display:flex;align-items:center;}
.nav-notify-btn{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid rgba(0,0,0,0.10);background:#fff;color:#003366;text-decoration:none;position:relative;}
.nav-notify-btn:hover{background:rgba(0,51,102,0.06);border-color:rgba(0,51,102,0.20);}
.nav-notify-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-weight:800;font-size:11px;line-height:18px;text-align:center;box-shadow:0 10px 20px rgba(0,0,0,0.18);}

@keyframes navBellShake{0%,100%{transform:rotate(0deg);}25%{transform:rotate(10deg);}50%{transform:rotate(0deg);}75%{transform:rotate(-10deg);}}
.nav-notify.has-unread .nav-notify-btn svg{animation:navBellShake 1s ease-in-out infinite;transform-origin:50% 0%;}

.user-menu-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #fff;
    color: #003366;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-menu-btn:hover {
    background: rgba(0,51,102,0.06);
    border-color: rgba(0,51,102,0.20);
}

.user-avatar.open .user-menu-btn {
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.user-menu-icon {
    display: block;
}

 .user-avatar > ul {
     display: none;
     position: absolute;
     top: calc(100% + 10px);
     right: 0;
     min-width: 180px;
     background: #fff;
     border: 1px solid rgba(0,0,0,0.08);
     border-radius: 10px;
     padding: 10px 0;
     margin: 0;
     list-style: none;
     box-shadow: 0 10px 30px rgba(0,0,0,0.12);
     z-index: 2000;
 }

 .user-avatar > ul li {
     padding: 0;
     white-space: nowrap;
 }

 .user-avatar > ul li a {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 10px 14px;
     color: #222;
     text-decoration: none;
     transition: background 0.15s ease, color 0.15s ease;
 }

 .user-avatar > ul li a:hover {
     background: rgba(0,51,102,0.06);
     color: #003366;
 }

 .user-avatar > ul li a .menu-ico {
     width: 18px;
     height: 18px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     color: #003366;
     flex: 0 0 auto;
 }

 .user-avatar > ul li a .menu-txt {
     font-size: 0.95rem;
     font-weight: 500;
 }

 .user-avatar:hover > ul,
 .user-avatar.open > ul {
     display: block;
 }

.active-sideNav-js {
    color: var(--brand-primary);
    font-weight: 700;
}

/* --- Mobile & Responsive --- */
/* Hamburger Icon */
.hamburger-icon {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    border: 0;
    background: transparent;
    padding: 0;
    outline: none;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px; /* Slightly thicker for visibility */
    background: #003366; /* Brand color for visibility */
    border-radius: 3px;
    right: 0; /* Align to right */
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Default State: 3 Bars (Increasing Widths) */
.hamburger-icon span:nth-child(1) {
    top: 0;
    width: 60%;
}

.hamburger-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    opacity: 1;
}

.hamburger-icon span:nth-child(3) {
    bottom: 0;
    width: 100%;
}

/* Animation State (Open) - Transform to X */
.hamburger-icon.open span:nth-child(1) {
    width: 100%;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: #fff;
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger-icon.open span:nth-child(3) {
    width: 100%;
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background-color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    width: 100%;
    max-height: 100vh;
    display: block;
    padding: calc(80px + 0.75rem) 0 2rem;
}

.mobile-panel{
    width: min(420px, 92vw);
    min-height: min(720px, 86vh);
    border-radius: 22px;
    overflow: hidden;
    color: rgba(255,255,255,0.92);
    background:
        radial-gradient(700px 420px at 10% 0%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 62%),
        radial-gradient(680px 380px at 95% 40%, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 65%),
        linear-gradient(135deg, #061838 0%, #071f46 45%, #0a2b5b 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
}

.mobile-panel-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 18px 18px 14px;
}

.mobile-brand{display:flex;align-items:center;gap:12px;}
.mobile-brand-logo{width:42px;height:42px;object-fit:contain;}
.mobile-brand-text{line-height:1.05;}
.mobile-brand-name{font-weight:900;font-size:1.35rem;letter-spacing:0.2px;}
.mobile-brand-sub{font-weight:800;font-size:1.15rem;opacity:0.9;}

.mobile-panel-close{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    font-size: 28px;
    line-height: 38px;
    padding: 0;
}
.mobile-panel-close:hover{background: rgba(255,255,255,0.10);}

.mobile-user{
    display:flex;
    align-items:center;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mobile-user-avatar{width:54px;height:54px;border-radius:999px;overflow:hidden;flex:0 0 54px;border: 1px solid rgba(255,255,255,0.18);background: rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;}
.mobile-user-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.mobile-user-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:900;}

.mobile-user-meta{min-width:0;}
.mobile-user-name{font-weight:900;font-size:1.15rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mobile-user-email{opacity:0.78;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.mobile-navlist{list-style:none;margin: 0;padding: 6px 18px;display:flex;flex-direction:column;}
.mobile-navlist li a{display:flex;align-items:center;gap:14px;padding:14px 6px;color:rgba(255,255,255,0.92);text-decoration:none;font-weight:800;font-size:1.15rem;border-bottom: 1px solid rgba(255,255,255,0.10);}
.mobile-navlist li:last-child a{border-bottom: 0;}
.mobile-navlist li a:hover{background: rgba(255,255,255,0.06);border-radius: 14px;}

.mobile-navlist .m-ico{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;opacity:0.9;flex:0 0 auto;}

.mobile-navlist a.has-badge{justify-content:space-between;}
.mobile-navlist a.has-badge span:nth-child(2){margin-right:auto;}
.m-badge{min-width:24px;height:24px;padding:0 8px;border-radius:999px;background:#dc2626;color:#fff;font-weight:900;font-size:0.9rem;display:inline-flex;align-items:center;justify-content:center;}

.mobile-panel-footer{margin-top:auto;padding: 18px 18px 16px;text-align:center;opacity:0.7;border-top: 1px solid rgba(255,255,255,0.10);}

.mobile-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.mobile-links a, .mobile-links li {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
}

.mobile-menu-overlay {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.10);
}

.mobile-menu-overlay::-webkit-scrollbar {
    width: 10px;
}

.mobile-menu-overlay::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.10);
}

.mobile-menu-overlay::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    border-radius: 10px;
}

.mobile-cta{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.mobile-cta .btn-primary {
    background: #ffffff;
    color: #003366 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Responsive Visibility Logic */
@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .navbar { padding: 0.5rem 0; }
}

/* __________________________________________________
   __________ FOOTER __________
   __________________________________________________ */
footer {
    color: #fff;
    padding: 1.25rem;
    padding-top: 5rem !important;
    font-size: 1rem;
    background:
        radial-gradient(900px 420px at 18% 5%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
        radial-gradient(700px 380px at 85% 20%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 60%),
        linear-gradient(135deg, #001a33 0%, var(--brand-primary) 55%, #004b8f 100%);
}

footer hr {
    border: none;
    height: 0.0625rem;
    background-color: rgba(255, 255, 255, 0.25); 
    margin: 2rem 0;
}

.footerMain_em { margin-top: 0; }
.f_copyright { text-align: center; }

.f_brand{gap: 18px;}
.f_block{margin-bottom: 2.5rem;}

.f_title{margin:0 0 0.625rem 0;font-size:1.25rem;font-weight:900;color:rgba(255,255,255,0.92);}
.f_title_sm{margin:0 0 0.625rem 0;font-size:1rem;font-weight:900;color:rgba(255,255,255,0.90);}
.f_text{margin:0;color:rgba(255,255,255,0.80);line-height:1.55;}

.f_list{padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
.f_list li{list-style:none;color:rgba(255,255,255,0.80);font-size:1rem;}

.f_newsletter{margin-top:1.25rem;display:flex;flex-direction:column;gap:10px;}
.f_inputwrap{display:flex;align-items:center;gap:10px;padding:0.6rem 0.85rem;border-radius:14px;border:1px solid rgba(255,255,255,0.22);background:rgba(255,255,255,0.08);backdrop-filter: blur(6px);}
.f_inputwrap i{color:rgba(255,255,255,0.90);display:inline-flex;align-items:center;justify-content:center;line-height:1;}
.f_input{width:100%;border:none;outline:none;background:transparent;color:#fff;font-weight:700;margin:0;padding:0;height:auto;line-height:1.2;}
.f_input::placeholder{color:rgba(255,255,255,0.65);}

.f_btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0.6rem 1rem;border-radius:14px;border:1px solid rgba(255,255,255,0.18);background:rgba(255,255,255,0.14);color:#fff;font-weight:900;cursor:pointer;}
.f_btn:hover{filter: brightness(1.06);}
.f_btn i{color:rgba(255,255,255,0.95);}

footer .f_btn.btn-secondary{
    background-color: var(--brand-secondary);
    color: var(--brand-primary) !important;
    border: 0;
}

footer .f_btn.btn-secondary:hover{
    background-color: var(--brand-primary) !important;
    color: var(--brand-secondary) !important;
}

.f_link{color:rgba(255,255,255,0.82);text-decoration:none;font-weight:800;}
.f_link:hover{text-decoration:underline;color:rgba(255,255,255,0.95);}
.f_copyright_2{color:rgba(255,255,255,0.82);}

.dash-loader{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.dash-loader.hide{
    opacity: 0;
    visibility: hidden;
} 

.dash-loader-inner{
    position: relative;
    width: 96px;
    height: 96px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.dash-loader-logo{
    width: 64px;
    height: 64px;
    object-fit: contain;
    animation: dashLogoPulse 1.2s ease-in-out infinite;
}

.dash-loader-ring{
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 3px solid rgba(0,0,0,0.12);
    border-top-color: var(--brand-primary);
    animation: dashSpin 1s linear infinite;
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.reveal-up{
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}

.reveal-up.is-revealed{
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-up.reveal-fast{
    transition-duration: 520ms;
}

.reveal-up.reveal-slow{
    transition-duration: 900ms;
}

@media (prefers-reduced-motion: reduce){
    .reveal-up{
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@keyframes dashSpin{
    to{ transform: rotate(360deg); }
}

@keyframes dashLogoPulse{
    0%,100%{ transform: scale(1); filter: saturate(1); }
    50%{ transform: scale(1.06); filter: saturate(1.2); }
}

/* Footer Responsive */
@media (min-width: 768px) {
    .f_brand2 { display: flex; }
    .f_brand2 > div { width: 50%; }
    .f_brand2_box2 { margin-left: 6.25rem; }
    .f_copyright { display: flex; }
    .f_tc_wrap { width: 40%; text-align: left; }
    .f_copyright_2 { width: 60%; text-align: right; }
}

@media (min-width: 1024px) {
    .f_brand { display: flex; }
    .f_brand2 { width: 60%; }
    .f_brand3 { width: 40%; }
}

.gate-modal{
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
}

.gate-modal.is-open{
    display: flex;
}

.gate-modal-panel{
    width: min(860px, 100%);
    max-height: min(78vh, 720px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(2,6,23,0.10);
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(2,6,23,0.25);
    padding: 1.25rem;
    position: relative;
    font-family: 'Nunito Sans', sans-serif;
}

.gate-modal-title{
    margin: 0.25rem 0 1rem;
    font-size: 1.9rem;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.gate-modal-body{
    background: rgba(2,6,23,0.04);
    border: 1px solid rgba(2,6,23,0.08);
    border-radius: 14px;
    padding: 1rem;
    max-height: none;
    overflow: visible;
}

.gate-modal-body p{
    margin: 0.7rem 0;
    color: #334155;
    line-height: 1.7;
    font-family: inherit;
}

.gate-modal-body ul{
    margin: 0.75rem 0;
    padding-left: 1.15rem;
}

.gate-modal-list{
    list-style: none;
    padding-left: 0;
}

.gate-modal-list li{
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.gate-modal-list li i{
    margin-top: 0.15rem;
    color: var(--brand-primary);
    flex: 0 0 auto;
}

.gate-modal-body li{
    margin: 0.5rem 0;
    color: #0f172a;
    line-height: 1.6;
    font-family: inherit;
}

.gate-modal-close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(2,6,23,0.10);
    background: rgba(255,255,255,0.9);
    color: #0f172a;
    cursor: pointer;
}

.gate-modal-close:hover{
    background: rgba(255,255,255,1);
}

.gate-modal-remember{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.9rem;
    color: #0f172a;
    font-weight: 700;
    font-family: inherit;
}

.gate-modal-actions{
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gate-btn{
    appearance: none;
    border: 1px solid rgba(2,6,23,0.10);
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
}

.gate-btn-primary{
    background: linear-gradient(135deg, #0b5cff, #1a3fff);
    color: #fff;
}

.gate-btn-primary:hover{
    filter: brightness(1.06);
}

.gate-btn-secondary{
    background: rgba(2,6,23,0.06);
    color: #0f172a;
}

.gate-btn-secondary:hover{
    background: rgba(2,6,23,0.09);
}

.gate-step[hidden]{
    display: none;
}
 
