/* =========================================
   NKTPe - Header & Topbar CSS
   ========================================= */

/* ===== TOPBAR ===== */
.topbar {
    background: #0F4C75;
    padding: 0.45rem 0;
    font-size: 0.8rem;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1000;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
    padding: 2px 6px;
    border-radius: 4px;
}
.topbar-item:hover { color: #00B4D8; background: rgba(255,255,255,0.07); }
.topbar-item i { color: #00B4D8; font-size: 0.78rem; }
.topbar-social .social-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.72rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.topbar-social .social-icon:hover {
    background: #00B4D8;
    color: white;
    transform: translateY(-2px);
    border-color: #00B4D8;
}

/* ===== MAIN HEADER ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    box-shadow: 0 2px 30px rgba(15,76,117,0.12);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.main-header.scrolled {
    box-shadow: 0 4px 40px rgba(15,76,117,0.18);
}
#mainNav { padding: 0.5rem 0; }

/* LOGO */
.navbar-brand { text-decoration: none; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0F4C75, #00B4D8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(15,76,117,0.3);
    transition: all 0.3s;
}
.logo-wrap:hover .logo-icon { transform: rotate(-10deg) scale(1.05); }
.logo-text { font-size: 1.7rem; font-weight: 900; color: #0F4C75; line-height: 1; letter-spacing: -1px; }
.logo-text span { color: #00B4D8; }

/* NAV LINKS */
.navbar-nav .nav-item .nav-link {
    color: #212529;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.7rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
}
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
    color: #0F4C75;
    background: rgba(15,76,117,0.06);
}
.navbar-nav .nav-item .nav-link .arrow-icon {
    font-size: 0.6rem;
    transition: transform 0.3s;
}
.mega-menu-parent:hover .arrow-icon { transform: rotate(180deg); }

/* ===== MEGA MENU ===== */
.mega-menu-parent { position: relative; }
.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    width: 820px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15,76,117,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 9999;
    border: 1px solid rgba(15,76,117,0.08);
}
.mega-menu-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.mega-menu-inner { padding: 1.5rem; }
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    color: #212529;
    transition: all 0.3s;
}
.mega-item:hover { background: rgba(15,76,117,0.06); }
.mega-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(15,76,117,0.1), rgba(0,180,216,0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #0F4C75;
    flex-shrink: 0;
    transition: all 0.3s;
}
.mega-item:hover .mega-item-icon { background: linear-gradient(135deg, #0F4C75, #00B4D8); color: white; }
.mega-item strong { display: block; font-size: 0.82rem; font-weight: 700; color: #212529; }
.mega-item small { display: block; font-size: 0.72rem; color: #6c757d; margin-top: 1px; }

/* Mega Promo Side */
.mega-promo {
    background: linear-gradient(135deg, #0F4C75, #1a6fa3);
    border-radius: 14px;
    padding: 1.8rem;
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.mega-promo::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0,180,216,0.15);
    border-radius: 50%;
    bottom: -70px;
    right: -70px;
}
.mega-promo-badge {
    display: inline-block;
    background: rgba(0,180,216,0.2);
    color: #00B4D8;
    border: 1px solid rgba(0,180,216,0.3);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.mega-promo h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.mega-promo p { font-size: 0.78rem; opacity: 0.8; margin-bottom: 1rem; line-height: 1.5; }
.mega-promo ul { list-style: none; padding: 0; margin-bottom: 1.2rem; }
.mega-promo ul li { font-size: 0.78rem; opacity: 0.85; display: flex; align-items: center; gap: 7px; margin-bottom: 0.4rem; }
.mega-promo ul li i { color: #00B4D8; font-size: 0.75rem; }
.mega-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #00B4D8;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}
.mega-cta-btn:hover { background: white; color: #0F4C75; }

/* ===== NAV CTA BUTTONS ===== */
.btn-nav-secondary {
    background: transparent;
    border: 1.5px solid #0F4C75;
    color: #0F4C75;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-nav-secondary:hover { background: #0F4C75; color: white; }
.btn-nav-primary {
    background: linear-gradient(135deg, #0F4C75, #00B4D8);
    border: none;
    color: white;
    padding: 9px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(15,76,117,0.25);
}
.btn-nav-primary:hover { transform: translateY(-2px); color: white; box-shadow: 0 8px 25px rgba(15,76,117,0.4); }

/* ===== CUSTOM TOGGLER ===== */
.custom-toggler {
    border: none;
    background: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 36px;
}
.toggler-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #0F4C75;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    transform-origin: left;
}
.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(1) { transform: rotate(45deg); }
.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(3) { transform: rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 991px) {
    .mega-menu {
        position: static;
        transform: none !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border-radius: 12px;
        display: none;
        margin-top: 0.5rem;
    }
    .mega-menu.mobile-open { display: block; }
    .mega-menu-grid { grid-template-columns: 1fr 1fr; gap: 0.3rem; }
    .mega-promo { display: none; }
    .nav-cta { padding: 1rem 0; }
    .navbar-collapse { padding: 1rem 0; }
    .topbar-inner { flex-wrap: wrap; gap: 0.5rem; }
}
