/* =============================================
   CIC NAVIGATION - Clean Government Style
   ============================================= */

/* --- Topbar --- */
.cic-topbar {
    background: #353366;
    color: #ccc;
    font-size: 14.5px;
    padding: 6px 0;
}

.cic-topbar-inner {
    max-width: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cic-topbar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cic-topbar-left a,
.cic-topbar-left span {
    color: #ccc;
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s;
}

.cic-topbar-left a:hover {
    color: #8D8A8A;
}

.cic-topbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cic-topbar-right a {
    color: #ccc;
    font-size: 15px;
    transition: color 0.2s;
}

.cic-topbar-right a:hover {
    color: #8D8A8A;
}

/* --- Navbar Wrapper (sticky) --- */
.cic-navbar-wrap {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* --- Navbar inner --- */
.cic-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    max-width: 100%;
    position: relative;
}

/* --- Logo --- */
.cic-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 8px 0;
}

.cic-logo img {
    height: 70px;
    width: auto;
}

/* --- Desktop Nav List --- */
.cic-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* --- Nav Item --- */
.cic-nav-item {
    position: static;
}

/* --- Nav Link --- */
.cic-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    height: 86px;
    color: #222;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.cic-nav-link i {
    font-size: 12px;
    transition: transform 0.2s;
}

.cic-nav-link:hover,
.cic-nav-link.active {
    color: #8D8A8A;
}

.cic-nav-item:hover .cic-nav-link {
    color: #8D8A8A;
}

.cic-nav-item:hover .cic-nav-link i {
    transform: rotate(180deg);
}

/* =============================================
   MEGA PANEL - Full Viewport Width
   ============================================= */
.cic-mega-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    width: 100vw;
    background: #fff;
    border-top: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 1039;
    padding: 30px 40px;
}

/* Show on hover */
.cic-nav-item.has-mega:hover .cic-mega-panel {
    display: block;
}

/* Position the panel just below the navbar */
.cic-navbar-wrap {
    position: sticky;
    top: 0;
}

.cic-mega-panel {
    top: auto;
    /* will be set by JS or inherits from flow */
}

/* Inner flex row */
.cic-mega-inner {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Column */
.cic-mega-col {
    flex: 1;
    min-width: 160px;
}

/* Heading */
.cic-mega-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #353366;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: none;
}

/* Links */
.cic-mega-link {
    display: block;
    padding: 6px 0;
    color: #444;
    font-size: 15.5px;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.cic-mega-link:hover {
    color: #8D8A8A;
    padding-left: 6px;
}

/* Featured column */
.cic-mega-featured {
    background: #f5f5f8;
    border-radius: 8px;
    padding: 20px;
    flex: 0 0 220px;
}

.cic-mega-featured .cic-mega-heading {
    color: #353366;
}

.btn-cic-primary {
    display: inline-block;
    background: #8D8A8A;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-cic-primary:hover {
    background: #6e6a6a;
    color: #fff;
}

/* =============================================
   SIMPLE DROPDOWN (Legal)
   ============================================= */
.cic-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-top: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 1039;
    padding: 8px 0;
}

.cic-nav-item.has-dropdown {
    position: relative;
}

.cic-nav-item.has-dropdown:hover .cic-dropdown {
    display: block;
}

.cic-dropdown-link {
    display: block;
    padding: 9px 20px;
    color: #444;
    font-size: 15.5px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cic-dropdown-link:hover {
    background: #f5f5f8;
    color: #8D8A8A;
}

/* =============================================
   MOBILE TOGGLE BUTTON
   ============================================= */
.cic-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #353366;
    cursor: pointer;
    padding: 8px;
}

/* =============================================
   MOBILE DRAWER
   ============================================= */
.cic-mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.cic-mobile-drawer.open {
    left: 0;
}

.cic-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.cic-drawer-header button {
    background: none;
    border: none;
    color: #353366;
    font-size: 22px;
    cursor: pointer;
}

.cic-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cic-mobile-nav>li>a,
.cic-mobile-trigger {
    display: block;
    width: 100%;
    padding: 13px 20px;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.cic-mobile-nav>li>a:hover,
.cic-mobile-trigger:hover {
    color: #8D8A8A;
}

.cic-mobile-sub {
    display: none;
    background: #f8f9fa;
    padding: 4px 0;
}

.cic-mobile-sub.open {
    display: block;
}

.cic-mobile-sub a {
    display: block;
    padding: 10px 30px;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.cic-mobile-sub a:hover {
    color: #8D8A8A;
}

.cic-mobile-sub-heading {
    display: block;
    padding: 10px 30px 4px;
    color: #353366;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.cic-mobile-trigger i {
    transition: transform 0.2s;
    font-size: 13px;
}

.cic-mobile-has-sub.open .cic-mobile-trigger i {
    transform: rotate(180deg);
}

/* Overlay */
.cic-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
}

.cic-overlay.show {
    display: block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .cic-nav-list {
        display: none;
    }

    .cic-mobile-toggle {
        display: block;
    }

    .cic-topbar {
        display: none !important;
    }
}

@media (min-width: 992px) {

    .cic-mobile-drawer,
    .cic-overlay,
    .cic-mobile-toggle {
        display: none !important;
    }
}

/* =============================================
   SEARCH BAR (Topbar)
   ============================================= */
.cic-topbar-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
    margin-right: 8px;
}

.cic-topbar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    padding: 4px 10px;
    width: 160px;
    font-family: inherit;
}

.cic-topbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cic-topbar-search button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.cic-topbar-search button:hover {
    color: #fff;
}