/* ==========================================================================
   Template 2 — Header & Navigation Styles
   ========================================================================== */

.site-header {
    background: var(--navy-darkest, #03142a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.brand-text h2 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin: 0;
}

.brand-text .sub-1 {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.3;
}

.brand-text .sub-2 {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.3;
}

/* Nav links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: #cbd5e1;
    position: relative;
    padding: 8px 8px;
    transition: color 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--teal-bright, #00d2d3);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--teal-glow, rgba(0, 210, 211, 0.4));
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #0f1f36;
    min-width: 200px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    overflow: hidden;
    animation: fadeDropdown 0.18s ease;
}

@keyframes fadeDropdown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #ffffff;
}

/* Mobile Hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-nav-drawer {
    display: none;
    flex-direction: column;
    background: var(--navy-darker, #041a38);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px 24px;
    gap: 0;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer .nav-link {
    font-size: 14.5px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-drawer .nav-link.active::after {
    display: none;
}

.mobile-nav-drawer .nav-link.active {
    color: var(--teal-bright, #00d2d3);
}

/* Mobile Dropdown accordion */
.mobile-nav-group details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-group details summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 0;
    font-size: 14.5px;
    font-weight: 500;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-group details summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-group details summary::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.mobile-nav-group details[open] summary::after {
    transform: rotate(180deg);
}

.mobile-nav-group details[open] summary {
    color: #ffffff;
}

.mobile-nav-group .mobile-sub-links {
    display: flex;
    flex-direction: column;
    padding: 0 0 8px 12px;
    gap: 2px;
}

.mobile-nav-group .mobile-sub-links a {
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-group .mobile-sub-links a:last-child {
    border-bottom: none;
}

.mobile-nav-group .mobile-sub-links a:hover {
    color: var(--teal-bright, #00d2d3);
}

@media (max-width: 991px) {
    .main-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
}
