/* 
   AnywhereJobs Brand Overrides 
   This file ensures the job board matches the main site's visual identity.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --aj-primary: #10B981 !important;
    /* Green */
    --aj-primary-dk: #059669 !important;
    /* Dark Green */
    --aj-primary-light: rgba(16, 185, 129, 0.1) !important;
    --aj-navy: #1E3A5F !important;
    /* Navy */
    --aj-bg: #FAFAF9 !important;
    /* Light Gray BG */
    --aj-surface: #FFFFFF !important;
    --aj-text: #1A1A2E !important;
    /* Dark Text */
    --aj-text-muted: #6B7280 !important;
    --aj-border: #F3F4F6 !important;
    --aj-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    --aj-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    --bs-primary: #10B981 !important;
    --bs-primary-rgb: 16, 185, 129 !important;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--aj-bg) !important;
    color: var(--aj-text) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: var(--aj-navy) !important;
    letter-spacing: -0.02em !important;
}

/* Gradient buttons matching main site CTA */
.btn-gradient {
    background: linear-gradient(135deg, #10B981 0%, #0EA5E9 50%, #8B5CF6 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-gradient:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
}

/* Primary buttons */
.btn-primary,
.bg-primary,
.badge-primary,
.bg-primary-light {
    background-color: var(--aj-primary) !important;
    border-color: var(--aj-primary) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--aj-primary-dk) !important;
    border-color: var(--aj-primary-dk) !important;
}

.text-primary,
a.text-primary {
    color: var(--aj-primary) !important;
}

a.text-primary:hover {
    color: var(--aj-primary-dk) !important;
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--aj-primary) !important;
    border-color: var(--aj-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff !important;
    background-color: var(--aj-primary) !important;
    border-color: var(--aj-primary) !important;
}

/* UI Accents (Sliders, Pagination, Progress) */
.ui-slider-range,
.progress-bar,
.pagination .active .page-link,
.nav-pills .nav-link.active {
    background-color: var(--aj-primary) !important;
    border-color: var(--aj-primary) !important;
}

.page-link {
    color: var(--aj-primary) !important;
}

/* Underline Accents / Theme specific decorators */
.section-title::after,
.title-wrapper::after,
.heading-title::after,
.section-heading::after {
    background-color: var(--aj-primary) !important;
}

/* Cards / Job Listings */
.card,
.job-card,
.job-listing,
.company-card {
    border-radius: 12px !important;
    border: 1px solid var(--aj-border) !important;
    box-shadow: var(--aj-shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover,
.job-card:hover,
.job-listing:hover,
.company-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--aj-shadow-lg) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Top Gradient Bar (Main site aesthetic) */
#gradient-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10B981, #0EA5E9, #8B5CF6, #10B981);
    background-size: 300% 100%;
    animation: aj-gradient-slide 3s linear infinite;
    z-index: 10000;
}

@keyframes aj-gradient-slide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.header-padding {
    display: block !important;
    height: 77px;
}

#header {
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 74px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#header .container {
    max-width: 1200px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 1.4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text-box {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--aj-navy);
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo-text-box .logo-accent {
    color: var(--aj-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-links a {
    color: var(--aj-text-muted) !important;
    font-size: .9rem;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    transition: color .2s ease;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aj-primary);
    border-radius: 2px;
    transition: width .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--aj-text) !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.aj-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--aj-text) !important;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid var(--aj-border);
    background: #fff;
    border-radius: 9999px;
    padding: 10px 14px;
}

.language-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 150px;
    list-style: none;
    margin: 0;
    padding: .5rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--aj-border);
    box-shadow: var(--aj-shadow);
    z-index: 10001;
}

.language-dropdown-menu.open {
    display: block;
}

.language-dropdown-menu li {
    margin-bottom: .25rem;
}

.language-dropdown-menu li:last-child {
    margin-bottom: 0;
}

.language-dropdown-menu .dropdown-item {
    color: var(--aj-text) !important;
    border-radius: 8px;
    font-size: .86rem;
    padding: .35rem .45rem;
    text-decoration: none;
}

.language-dropdown-menu .dropdown-item:hover,
.language-dropdown-menu .dropdown-item.active {
    background: rgba(16, 185, 129, 0.09);
}

.language-dropdown-menu .country-flag {
    width: 20px;
}

.btn {
    border-radius: 9999px !important;
    font-weight: 600 !important;
}

.btn-primary {
    background: var(--aj-primary) !important;
    border-color: var(--aj-primary) !important;
}

.btn-primary:hover {
    background: var(--aj-primary-dk) !important;
    border-color: var(--aj-primary-dk) !important;
}

.btn-secondary {
    background: transparent !important;
    color: var(--aj-text) !important;
    border: 1px solid var(--aj-border) !important;
}

.btn-secondary:hover {
    color: var(--aj-text) !important;
    border-color: #e5e7eb !important;
    background: #fff !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
    border: none;
    background: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--aj-text);
    border-radius: 2px;
    transition: .2s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 77px;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9998;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--aj-border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--aj-text) !important;
    text-decoration: none;
    font-size: 1.03rem;
    font-weight: 600;
    padding: .7rem 0;
    border-bottom: 1px solid var(--aj-border);
}

.mobile-menu .btn {
    width: 100%;
    justify-content: center;
    border-bottom: none;
}

/* Verification section — mobile first */
.aj-how-works {
    padding: 3.2rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
}

.aj-how-works .section-heading h2 {
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: .4rem;
}

.aj-step-card {
    border: 1px solid #e9eff4;
    border-radius: 16px;
    padding: 1.2rem;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}

.aj-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10B981 0%, #0EA5E9 55%, #8B5CF6 100%);
}

.aj-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

.aj-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(14, 165, 233, 0.14), rgba(139, 92, 246, 0.14));
    border: 1px solid rgba(16, 185, 129, 0.26);
    color: #0f766e;
    font-size: 1.7rem;
}

.aj-step-tag {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0f766e;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 9999px;
    padding: .33rem .68rem;
    white-space: nowrap;
}

.aj-step-card h4 {
    font-size: 1.08rem;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: .5rem;
}

.aj-step-card p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.65;
    color: #64748b;
}

.aj-step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

@media (min-width: 768px) {
    .aj-how-works {
        padding: 4.2rem 0;
    }

    .aj-how-works .section-heading h2 {
        font-size: 2rem;
    }

    .aj-step-card {
        padding: 1.35rem;
    }

    .aj-step-icon {
        width: 64px;
        height: 64px;
        font-size: 1.95rem;
    }

    .aj-step-card h4 {
        font-size: 1.18rem;
    }
}

@media (min-width: 1200px) {
    .aj-step-card {
        padding: 1.55rem;
    }
}

/* Popular categories — mobile first */
.aj-categories-section {
    padding-top: 3.1rem;
}

.aj-categories-section .section-heading h2 {
    font-size: 1.65rem;
    line-height: 1.15;
}

.aj-category-card {
    border: 1px solid #e9eff4 !important;
    border-radius: 16px !important;
    padding: 1.1rem !important;
    background: #fff !important;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06) !important;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

.aj-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10B981 0%, #0EA5E9 55%, #8B5CF6 100%);
}

.aj-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.32) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
}

.aj-category-icon-wrap {
    width: 82px;
    height: 82px;
    margin: .35rem auto 1rem !important;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(14, 165, 233, 0.14), rgba(139, 92, 246, 0.14));
    border: 1px solid rgba(16, 185, 129, 0.24);
}

.aj-category-icon-wrap img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.aj-category-card-body {
    padding: .25rem .35rem .15rem !important;
}

.aj-category-title-link {
    text-decoration: none !important;
}

.aj-category-card .card-title {
    font-size: 1.02rem !important;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e !important;
    margin-bottom: .55rem !important;
}

.aj-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: .28rem .68rem;
    font-size: .79rem !important;
    font-weight: 700;
    text-decoration: none !important;
    color: #0f766e !important;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.24);
}

@media (min-width: 768px) {
    .aj-categories-section {
        padding-top: 4.1rem;
    }

    .aj-categories-section .section-heading h2 {
        font-size: 2rem;
    }

    .aj-category-card {
        padding: 1.3rem !important;
    }

    .aj-category-icon-wrap {
        width: 92px;
        height: 92px;
    }

    .aj-category-icon-wrap img {
        width: 60px;
        height: 60px;
    }

    .aj-category-card .card-title {
        font-size: 1.08rem !important;
    }
}

/* Footer match with main site */
#aj-footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #1E3A5F 100%);
    color: rgba(255, 255, 255, 0.72);
    padding: 3rem 0 1.35rem;
    margin-top: 2rem;
}

#aj-footer .container {
    max-width: 1200px;
}

.aj-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.2rem;
}

.aj-footer-brand h5 {
    color: #fff !important;
    font-size: 1.15rem;
    text-transform: none;
    margin-bottom: 1rem;
}

.aj-footer-brand h5 span {
    color: var(--aj-primary);
}

.aj-footer-brand p {
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: .88rem;
    line-height: 1.65;
    margin-bottom: .9rem;
}

.aj-footer-brand .aj-footer-address {
    font-size: .8rem;
}

#aj-footer h6 {
    color: #fff !important;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

#aj-footer a {
    color: rgba(255, 255, 255, 0.62) !important;
    text-decoration: none;
    font-size: .88rem;
    display: block;
    margin-bottom: .45rem;
}

#aj-footer a:hover {
    color: var(--aj-primary) !important;
}

.aj-footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 1.1rem;
    text-align: center;
}

.aj-footer-bottom p {
    color: rgba(255, 255, 255, 0.42) !important;
    font-size: .82rem;
    margin: 0;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: .95rem;
    }

    .nav-links a {
        font-size: .84rem;
    }
}

@media (max-width: 991px) {
    .nav-links,
    .aj-auth-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-text-box {
        font-size: 1.32rem;
    }

    .aj-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .logo-img {
        height: 42px;
    }

    .logo-text-box {
        font-size: 1.2rem;
    }

    .aj-footer-grid {
        grid-template-columns: 1fr;
    }
}