/* Global shared styles for Skilled Nepali. Keep brand colors and shared components here. */
/* ── global base ── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: #f9fafb; color: #374151; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; color: #0f172a; }
a { text-decoration: none; }
img { max-width: 100%; }

:root {
    --primary:   #9E0027;
    --primary-d: #7c001d;
    --secondary: #FF9800;
    --dark:      #0f172a;
    --text:      #374151;
    --muted:     #6b7280;
    --border:    #e5e7eb;
    --bg:        #f9fafb;
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.sn-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    font-family: 'Inter', sans-serif;
    margin-top: 0;
}

.sn-header-spacer {
    height: 80px;
    flex: 0 0 80px;
}

.sn-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ── Logo ── */
.sn-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.sn-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform .2s, opacity .2s;
}
.sn-logo:hover img { opacity: .9; transform: scale(1.03); }

/* ── Right side wrapper (nav + actions together) ── */
.sn-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Nav links ── */
.sn-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sn-nav a {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: #4b5563;
    transition: background .2s, color .2s, transform .2s;
    white-space: nowrap;
}
.sn-nav a:hover        { background: rgba(255,218,217,.45); color: #9E0027; transform: translateY(-1px); }
.sn-nav a.active       { background: #9E0027; color: #fff !important; font-weight: 700; box-shadow: inset 0 -2px 0 #7c001d; border-radius: 8px 8px 0 0; }

/* ── Divider between nav and buttons ── */
.sn-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
    margin: 0 16px;
    flex-shrink: 0;
}

/* ── Auth buttons ── */
.sn-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-signin {
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #9E0027, #C41E3A);
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-signin:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(158,0,39,.3); color: #fff !important; }

.btn-signup {
    padding: 9px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border: none;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(217,119,6,.24);
}
.btn-signup:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(217,119,6,.34); color: #fff !important; }

/* ── Logged-in user pill ── */
.sn-user { position: relative; }

.sn-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border: 1.5px solid var(--border);
    border-radius: 40px;
    background: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.sn-user-btn:hover { border-color: #9E0027; background: rgba(255,218,217,.45); color: #9E0027; }

.sn-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sn-uname  { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-chev   { font-size: .62rem; color: #9ca3af; transition: transform .2s; }
.sn-user.open .sn-chev { transform: rotate(180deg); }

/* dropdown */
.sn-drop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s cubic-bezier(.4,0,.2,1);
}
.sn-user.open .sn-drop { opacity: 1; visibility: visible; transform: translateY(0); }

.sn-drop-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}
.sn-drop-av {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .9rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sn-drop-name { font-weight: 600; font-size: .875rem; color: #0f172a; }
.sn-drop-role { font-size: .72rem; color: var(--primary); font-weight: 500; }

.sn-drop-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .12s, padding-left .12s;
}
.sn-drop-link i    { width: 15px; color: var(--primary); font-size: .82rem; }
.sn-drop-link:hover { background: #f9fafb; padding-left: 20px; }
.sn-divline        { height: 1px; background: #f3f4f6; }
.sn-drop-out       { color: #ef4444; }
.sn-drop-out i     { color: #ef4444; }
.sn-drop-out:hover { background: #fff5f5; }

/* ── Hamburger ── */
.sn-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 8px 9px;
    cursor: pointer;
    margin-left: 6px;
    transition: border-color .15s;
}
.sn-burger:hover { border-color: #9E0027; }
.sn-burger span   { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.sn-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.sn-burger.open span:nth-child(2) { opacity: 0; }
.sn-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Mobile slide-down ── */
.sn-mobile {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s;
}
.sn-mobile.open { opacity: 1; visibility: visible; transform: translateY(0); }

.sn-m-link {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px;
    color: var(--text);
    font-size: .95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: color .15s, background .15s;
    border-radius: 8px;
    margin-bottom: 4px;
}
.sn-m-link i   { color: #9E0027; width: 18px; font-size: .9rem; text-align: center; }
.sn-m-link:hover { color: #9E0027; background: rgba(255,218,217,.32); }
.sn-m-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding: 0 10px; }
.sn-m-btns .btn-signin  { justify-content: center; }
.sn-m-btns .btn-signup  { justify-content: center; }
.sn-center-btn { justify-content: center; }
.sn-danger-btn { background:#ef4444 !important; border-color:#ef4444 !important; }
.legacy-main-navbar {
    background-color:#9E0027;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .sn-nav, .sn-divider, .sn-actions { display: none; }
    .sn-burger { display: flex; }
}

/* Page color override loaded after page-level inline styles */
.jobs-hero,
.page-hero,
.details-hero,
.jd-hero,
.course-hero,
.cc-hero,
.js-hero,
.about-hero,
.cta-section,
.contact-dark {
    background:
        radial-gradient(circle at 18% 20%, rgba(253,188,19,.18) 0, transparent 26%),
        linear-gradient(135deg, #6F1630 0%, #9E3A4E 52%, #B7803C 100%) !important;
}
.hero-badge,
.filter-chip,
.jc-badge,
.badge-free,
.job-new,
.cc-tag,
.candidate-tag,
.role-badge {
    background: rgba(255,218,217,.62) !important;
    color: #9E0027 !important;
    border-color: rgba(158,0,39,.22) !important;
}
.badge-course,
.jc-tag.course {
    background: rgba(255,222,163,.62) !important;
    color: #6B4D00 !important;
    border-color: #FFDEA3 !important;
}
.hero-badge-dot {
    background: #FDBC13 !important;
    box-shadow: 0 0 6px #FDBC13 !important;
}
.jobs-hero h1 span,
.page-hero h1 span,
.cc-hero h1 span,
.js-hero h1 span,
.about-hero h1 span {
    color: #FFD26A !important;
}
.jc,
.job-card,
.company-card,
.candidate-card,
.content-card,
.detail-card,
.side-card,
.filter-card,
.value-card,
.team-card {
    border-color: rgba(227,190,189,.55) !important;
}
.jc:hover,
.job-card:hover,
.company-card:hover,
.candidate-card:hover,
.content-card:hover,
.detail-card:hover,
.value-card:hover,
.team-card:hover {
    border-color: rgba(158,0,39,.3) !important;
    box-shadow: 0 16px 35px rgba(158,0,39,.12) !important;
}
.jc-link,
.job-link,
.cc-link,
.candidate-link,
.link-arrow,
.filter-clear,
.empty-state a,
.detail-link {
    color: #9E0027 !important;
}
.filter-btn,
.btn-apply-main,
.btn-cta-white:hover,
.btn-submit,
.btn-primary-sn {
    background: #9E0027 !important;
    border-color: #9E0027 !important;
    color: #fff !important;
}
.filter-btn:hover,
.btn-apply-main:hover,
.btn-submit:hover,
.btn-primary-sn:hover {
    background: #7c001d !important;
    border-color: #7c001d !important;
}
.filter-select:focus,
.filter-input:focus,
.fg input:focus,
.fg textarea:focus {
    border-color: #9E0027 !important;
    box-shadow: 0 0 0 3px rgba(158,0,39,.09) !important;
}
/* ════════════════════════════════════════
   FOOTER  — shared across all pages
════════════════════════════════════════ */
    .site-footer {
        background: #1A1C1E;
        color: #ffffff;
        font-family: 'Inter', sans-serif;
        font-size: .875rem;
    }

    .site-footer,
    .site-footer p,
    .site-footer a,
    .site-footer li,
    .site-footer span,
    .site-footer div,
    .site-footer i {
        color: #fff !important;
    }

    .footer-top {
        padding: 60px 0 44px;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    /* brand column */
    .footer-brand img {
        height: 48px;
        object-fit: contain;
        display: block;
        margin-bottom: 14px;
    }

    .footer-brand p {
        line-height: 1.75;
        max-width: 280px;
        color: #fff;
        font-size: .84rem;
        margin: 0 0 18px;
    }

    .footer-social {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .09);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: .82rem;
        text-decoration: none;
        transition: background .15s, color .15s, border-color .15s;
    }

    .footer-social a:hover {
        background: rgba(158, 0, 39, .92);
        border-color: rgba(158, 0, 39, .92);
        color: #fff;
    }

    /* column headings */
    .footer-col-title {
        font-family: 'Outfit', sans-serif;
        font-size: .78rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 16px;
    }

    /* link lists */
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #fff;
        font-size: .84rem;
        text-decoration: none;
        transition: color .15s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .footer-links a i {
        font-size: .75rem;
        color: #fff;
    }

    .footer-links a:hover {
        color: #fff;
    }

    .footer-links a:hover i {
        color: #fff;
    }

    /* contact list */
    .footer-contact {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
        font-size: .84rem;
        color: #fff;
        line-height: 1.5;
    }

    .footer-contact li:last-child {
        margin-bottom: 0;
    }

    .footer-contact i {
        color: #fff;
        font-size: .82rem;
        margin-top: 2px;
        flex-shrink: 0;
        width: 14px;
    }

    /* bottom bar */
    .footer-bottom {
        padding: 18px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer-bottom p {
        margin: 0;
        font-size: .78rem;
        color: #fff;
    }

    .footer-bottom a {
        color: #fff;
        text-decoration: none;
    }

    .footer-bottom a:hover {
        color: #fff;
        text-decoration: underline;
    }

    /* WhatsApp Floating Button */
    .whatsapp-float {
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
        background-color: #25d366;
        color: #FFF;
        border-radius: 50px;
        text-align: center;
        font-size: 35px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: transform 0.3s, background-color 0.3s;
    }

    .whatsapp-float:hover {
        background-color: #1ebe57;
        color: #fff;
        transform: translateY(-4px);
    }

/* Legacy header styles */
/* Prevent overflow */
  body, html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  /* Remove any default navbar margins */
  .container-fluid.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    margin: 0 !important;
    padding: 0 !important;
  }

  .legacy-header-spacer {
    height: 80px;
    flex: 0 0 80px;
  }

  .navbar {
    margin: 0 !important;
  }

  .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
  }

  .navbar-nav .nav-link:hover {
    color: white !important;
  }

  .custom-dropdown {
    min-width: 200px;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
  }

  .custom-dropdown .dropdown-item {
    font-size: 16px;
    padding: 10px 20px;
    color: #333;
    transition: all 0.2s ease-in-out;
  }

  .custom-dropdown .dropdown-item:hover {
    background-color: #9E0027;
    color: white;
  }

  .custom-dropdown .dropdown-header {
    font-size: 14px;
    color: #666;
    padding: 8px 20px;
  }

  .fa-user-circle {
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .fa-user-circle:hover {
    transform: scale(1.1);
  }

  .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
  }

  /* Mobile-specific styles */
  @media (max-width: 991.98px) {
    .navbar .d-flex {
      width: 100%;
    }
    
    .navbar-brand {
      flex: 1;
    }
    
    .navbar-toggler {
      order: 2;
      margin-left: 10px;
    }
    
    .d-lg-none .nav-link {
      padding: 0;
    }
    
    /* Ensure mobile dropdown stays on top */
    .d-lg-none .dropdown-menu {
      z-index: 1060;
    }
  }
  
  @media (min-width: 992px) {
    .d-lg-none {
      display: none !important;
    }
    
    .d-none.d-lg-block {
      display: block !important;
    }
  }
