/* ==========================================================================
   RCSF HEADER & NAVIGATION STYLES
   ========================================================================== */

/* Critical Baseline to Prevent FOUC / Layout Shift */
.rcsf-header-root {
    position: relative;
    z-index: 999;
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tricolor Top Line */
.rcsf-top-accent-line {
    height: 3px;
    background: linear-gradient(90deg, #ff6600 0%, #ff8c00 35%, #ffffff 50%, #138808 65%, #0d6e04 100%);
    width: 100%;
}

/* Executive Top Bar */
.rcsf-top-bar {
    background: linear-gradient(90deg, #061325 0%, #0d223d 50%, #061325 100%);
    padding: 7px 0;
    color: #e2e8f0;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rcsf-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rcsf-top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.rcsf-top-item a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rcsf-top-item a:hover {
    color: #ff8c00;
}

.rcsf-top-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
}

.rcsf-top-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #f8fafc;
    align-items: center;
}

.rcsf-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.rcsf-top-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rcsf-top-link {
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    font-size: 12.5px;
    transition: color 0.2s ease;
}

.rcsf-top-link:hover {
    color: #ff8c00;
}

.rcsf-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.rcsf-top-logins {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcsf-login-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.rcsf-login-commander:hover {
    background: #e65100;
    border-color: #ff6600;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.35);
}

.rcsf-login-psc:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.rcsf-login-career:hover {
    background: #059669;
    border-color: #34d399;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* Main Navigation Bar */
.rcsf-main-nav-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(7, 21, 39, 0.04);
}

.header--sticky.sticky .rcsf-main-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(7, 21, 39, 0.1);
    padding: 8px 0;
    animation: rcsfSlideDown 0.35s ease forwards;
}

@keyframes rcsfSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.rcsf-logo-link {
    display: inline-flex;
    align-items: center;
}

.rcsf-logo-img {
    height: 54px;
    width: auto;
    max-width: 100% !important;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.rcsf-logo-link:hover .rcsf-logo-img {
    transform: scale(1.02);
}

.rcsf-nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

/* Menu Items - Solid styles to eliminate layout shifts */
.rcsf-menu-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
}

.rcsf-menu-item {
    position: relative;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rcsf-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rcsf-menu-link:hover,
.rcsf-menu-item.active > .rcsf-menu-link {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.07);
}

.rcsf-dropdown-arrow {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
}

.rcsf-menu-item:hover .rcsf-dropdown-arrow {
    transform: rotate(180deg);
    color: #ff6600;
}

.rcsf-nav-chip {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: #10b981;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    margin-left: 2px;
}

/* Floating Dropdown Menu */
.rcsf-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    list-style: none;
    box-shadow: 0 20px 45px rgba(10, 25, 47, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin: 0;
}

.rcsf-menu-item:hover > .rcsf-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rcsf-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rcsf-dropdown-item:hover {
    background: #f8fafc;
    color: #ff6600;
    padding-left: 18px;
}

/* ============================================================
   Services Modern Mega Menu Styles
============================================================ */
.rcsf-menu-item.rcsf-has-megamenu {
    position: static;
}

.rcsf-main-nav-wrapper .container {
    position: relative;
}

.rcsf-megamenu-dropdown {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 25px 60px rgba(12, 35, 64, 0.16), 0 4px 16px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    overflow: hidden;
    margin-top: 4px;
}

.rcsf-menu-item.rcsf-has-megamenu:hover .rcsf-megamenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rcsf-megamenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: linear-gradient(90deg, #0c2340 0%, #162f52 100%);
    color: #ffffff;
}

.rcsf-mm-badge {
    background: rgba(234, 88, 12, 0.25);
    border: 1px solid rgba(234, 88, 12, 0.5);
    color: #ff8c00;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.rcsf-mm-subtitle {
    font-size: 12.5px;
    color: #cbd5e1;
    font-weight: 500;
}

.rcsf-mm-view-all {
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rcsf-mm-view-all:hover {
    color: #ff8c00;
}

.rcsf-megamenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
    max-height: 440px;
    overflow-y: auto;
    background: #ffffff;
}

.rcsf-megamenu-grid::-webkit-scrollbar {
    width: 6px;
}
.rcsf-megamenu-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.rcsf-megamenu-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.rcsf-megamenu-grid::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

.rcsf-mm-card {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 14px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.22s ease;
}

.rcsf-mm-card:hover {
    background: #ffffff;
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 6px 20px rgba(12, 35, 64, 0.06);
}

.rcsf-mm-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 800;
    color: #0c2340;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid #e2e8f0;
    transition: color 0.2s ease;
}

.rcsf-mm-card-title:hover {
    color: #ea580c;
}

.rcsf-mm-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fff5ed;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.rcsf-mm-card:hover .rcsf-mm-card-icon {
    background: #ea580c;
    color: #ffffff;
}

.rcsf-mm-title-text {
    flex: 1;
    line-height: 1.25;
}

.rcsf-mm-arrow {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.rcsf-mm-card-title:hover .rcsf-mm-arrow {
    transform: translateX(3px);
    color: #ea580c;
}

.rcsf-mm-sub-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rcsf-mm-sub-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
    transition: all 0.18s ease !important;
    background: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rcsf-mm-sub-item .rcsf-mm-dot {
    font-size: 9px !important;
    color: #ea580c !important;
    flex-shrink: 0 !important;
    transition: transform 0.18s ease !important;
}

.rcsf-mm-sub-item:hover {
    background: #fff5ed !important;
    color: #ea580c !important;
    padding-left: 14px !important;
}

.rcsf-mm-sub-item:hover .rcsf-mm-dot {
    color: #ea580c !important;
    transform: translateX(3px) !important;
}

.rcsf-megamenu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #475569;
}

.rcsf-mm-cta-btn {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.rcsf-mm-cta-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

/* Header Action Buttons */
.rcsf-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rcsf-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.rcsf-btn-employer {
    background: #091a2f;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(9, 26, 47, 0.18);
    border: 1.5px solid transparent;
}

.rcsf-btn-employer:hover {
    background: #ff6600;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 102, 0, 0.35);
}

.rcsf-btn-career {
    background: linear-gradient(135deg, #ff6600 0%, #e65100 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35);
    border: none;
}

.rcsf-btn-career:hover {
    background: linear-gradient(135deg, #ff7a1a 0%, #ff5500 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.45);
}

/* Mobile Toggle */
.rcsf-mobile-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #091a2f;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rcsf-mobile-toggle:hover {
    background: #091a2f;
    color: #ffffff;
    border-color: #091a2f;
}

/* Modern Drawer Styles */
.rcsf-sidebar-drawer {
    background: #ffffff;
    width: 340px;
    max-width: 85vw;
}

.rcsf-drawer-inner {
    padding: 24px 20px;
    height: 100%;
    overflow-y: auto;
}

.rcsf-drawer-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 14px 0 20px 0;
}

.rcsf-drawer-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.rcsf-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.rcsf-drawer-btn-employer {
    background: #091a2f;
    color: #ffffff;
}

.rcsf-drawer-btn-career {
    background: linear-gradient(135deg, #ff6600 0%, #e65100 100%);
    color: #ffffff;
}

.rcsf-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.rcsf-mobile-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.rcsf-mobile-menu a {
    display: flex;
    align-items: center;
    padding: 12px 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.rcsf-mobile-menu a:hover {
    color: #ff6600;
}

.rcsf-drawer-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.rcsf-drawer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 10px;
}

.rcsf-drawer-contact-item a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
}

.rcsf-drawer-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.rcsf-drawer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #091a2f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.rcsf-drawer-socials a:hover {
    background: #ff6600;
    color: #ffffff;
}

.text-orange {
    color: #ff6600 !important;
}

@media (max-width: 991px) {
    .rcsf-top-bar {
        padding: 6px 0;
    }
    .rcsf-top-right {
        justify-content: center;
    }
    .rcsf-top-logins {
        width: 100%;
        justify-content: space-between;
    }
    .rcsf-login-pill {
        padding: 4px 8px;
        font-size: 11px;
    }
    .rcsf-logo-img {
        height: 44px;
    }
}
