:root {
    --primary: #0D1F2D;
    --accent: #F4A742;
    --accent-soft: #FDECC8;
    --teal: #1AAFA6;
    --teal-soft: #D0F4F2;
    --surface: #f7f5f0d9;
    --card-bg: #FFFFFF;
    --text: #1A1A2E;
    --muted: #6C7589;
    --border: #E4E0D8;
}

* { box-sizing: border-box; }

html {
    background: url('/img/3.png') no-repeat center center;
    background-size: contain;
    background-attachment: fixed;
    height: 100%;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--surface);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Push the footer to the bottom of the viewport on short pages, while
   letting it flow naturally below content on tall pages. */
main {
    flex: 1 0 auto;
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: .4;
}

.navbar {
    background: rgb(13 31 45 / 64%);
    backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 100;
}
.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent) !important;
    letter-spacing: -0.5px;
}
.navbar-brand span { color: #fff; }
.nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color .2s;
    padding: 0.4rem 0.9rem !important;
}
.nav-link:hover { color: var(--accent) !important; }
.btn-post {
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-post:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,167,66,.35); }

.hero {
    background: var(--primary);
    position: relative;
    overflow: hidden;
    padding: 7rem 0 5rem;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
}
.blob-1 { width: 500px; height: 500px; background: var(--teal);   top: -150px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: -150px; left: -80px; }

.hero-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(244,167,66,.15);
    border: 1px solid rgba(244,167,66,.3);
    color: var(--accent);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    animation: fadeUp .6s ease both;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    animation: fadeUp .7s .1s ease both;
}
.hero h1 .highlight {
    color: var(--accent);
    position: relative;
}
.hero p {
    color: rgba(255,255,255,.65);
    font-size: 1.05rem;
    max-width: 520px;
    animation: fadeUp .7s .2s ease both;
}
.hero-stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-top: 2.5rem;
    animation: fadeUp .7s .35s ease both;
}
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 900; color: #fff; }
.hero-stat span   { font-size: .8rem; color: rgba(255,255,255,.5); }

.search-wrap {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 1.8rem;
    animation: fadeUp .7s .25s ease both;
    backdrop-filter: blur(8px);
}
.search-label { color: rgba(255,255,255,.6); font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.search-input {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 12px;
    padding: .75rem 1rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .95rem;
    transition: border-color .2s, background .2s;
}
.search-input::placeholder { color: rgba(255,255,255,.35); }
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 3px rgba(244,167,66,.15);
    color: #fff;
}
.search-input option { background: var(--primary); color: #fff; }
.btn-search {
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    border: none;
    border-radius: 12px;
    padding: .8rem 2rem;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: transform .2s, box-shadow .2s;
    margin-top: .5rem;
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,167,66,.4); }

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
}
.section-sub { color: var(--muted); font-size: .95rem; }

.cat-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(244,167,66,.15);
}
.cat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.cat-name  { font-weight: 700; font-size: .95rem; color: var(--text); }
.cat-count { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

.job-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 1.4rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}
.job-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 4px; height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.job-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,.08); border-color: rgba(244,167,66,.3); }
.job-card:hover::before { opacity: 1; }

.company-logo {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem;
    flex-shrink: 0;
}
.job-title { font-weight: 700; font-size: 1.1rem; color: var(--text); margin-bottom: .2rem; }
.job-company { font-size: .85rem; color: var(--teal); font-weight: 600; }
.job-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 50px;
    display: inline-flex; align-items: center; gap: .3rem;
}
.badge-remote  { background: var(--teal-soft); color: #0A7A75; }
.badge-onsite  { background: #E8EDFF; color: #3654C6; }
.badge-hybrid  { background: #F3E8FF; color: #7C3AED; }
.badge-full    { background: var(--accent-soft); color: #B56B00; }
.badge-part    { background: #FEE2E2; color: #C02020; }
.badge-urgent  { background: #FEE2E2; color: #C02020; }
.badge-new     { background: #DCFCE7; color: #166534; }

.job-salary { font-weight: 800; font-size: 1.05rem; color: var(--accent); }
.job-info   { font-size: .8rem; color: var(--muted); }
.btn-apply {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    border-radius: 10px;
    padding: .4rem 1.2rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .85rem;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.btn-apply:hover { background: var(--accent); color: var(--primary); }
.bookmark-btn {
    background: none; border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color .2s;
    padding: .2rem;
}
.bookmark-btn:hover { color: var(--accent); }

.cta-section {
    background: var(--primary);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.cta-section::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .08;
    bottom: -120px; left: -80px;
    filter: blur(60px);
    pointer-events: none;
}
.cta-section h2 { font-weight: 900; font-size: 2rem; color: #fff; }
.cta-section p  { color: rgba(255,255,255,.65); font-size: .95rem; }
.btn-cta-white {
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    border-radius: 12px;
    padding: .75rem 2rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .95rem;
    border: none;
    transition: transform .2s, box-shadow .2s;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.2); }
.btn-cta-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: .75rem 2rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .95rem;
    border: 1.5px solid rgba(255,255,255,.35);
    transition: border-color .2s;
}
.btn-cta-outline:hover { border-color: #fff; color: #fff; }

footer {
    background: var(--primary);
    color: rgba(255,255,255,.6);
    padding: 3.5rem 0 2rem;
    flex-shrink: 0;
}

.pagination .page-link {
    color: var(--primary);
    border-color: var(--border);
}
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .page-link:hover {
    color: var(--accent);
}
.pagination .page-item.disabled .page-link {
    color: #b7bcc2;
}
footer h5 { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
footer a  { color: rgba(255,255,255,.55); text-decoration: none; font-size: .88rem; line-height: 2; transition: color .2s; }
footer a:hover { color: var(--accent); }
.footer-brand { font-weight: 900; font-size: 1.4rem; color: var(--accent); }
.footer-brand span { color: #fff; }
.footer-desc { font-size: .85rem; line-height: 1.8; max-width: 240px; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.social-btn:hover { background: var(--accent); color: var(--primary); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.5rem; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.divider-dot { color: var(--border); }
.section-pad { padding: 5rem 0; }
.tab-pills .nav-link {
    color: var(--muted) !important;
    background: whitesmoke;
    border: 1.5px solid var(--border) !important;
    border-radius: 50px !important;
    font-size: .85rem;
    font-weight: 600;
    padding: .4rem 1.2rem !important;
    transition: all .2s;
}
.tab-pills .nav-link.active, .tab-pills .nav-link:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.load-more {
    border: 1.5px solid var(--border);
    color: var(--text);
    font-weight: 700;
    border-radius: 12px;
    padding: .75rem 2.5rem;
    background: transparent;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .95rem;
    transition: border-color .2s, color .2s;
}
.load-more:hover { border-color: var(--accent); color: var(--accent); }

/* ── Global validation-error styling (field highlight only, no message text) ── */
.input-validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px #dc3545;
}
.field-validation-error,
.validation-summary-errors {
    display: none !important;
}

/* ── Auth pages ── */
.auth-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}
.auth-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 2.2rem;
    backdrop-filter: blur(8px);
    animation: fadeUp .6s ease both;
}
.auth-title {
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: .4rem;
}
.auth-subtitle {
    color: rgba(255,255,255,.55);
    font-size: .9rem;
    margin-bottom: 1.6rem;
}
.auth-card .form-label {
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .4rem;
}
.auth-card .form-control,
.auth-card .form-check-input {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 12px;
    padding: .7rem 1rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: .95rem;
}
.auth-card .form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 3px rgba(244,167,66,.15);
    color: #fff;
}
.auth-card .form-control::placeholder { color: rgba(255,255,255,.35); }
.auth-card .form-check-label { color: rgba(255,255,255,.7); font-size: .88rem; }
.auth-card .input-validation-error {
    border-color: #e25555 !important;
    box-shadow: 0 0 0 1px #e25555;
}
.btn-auth {
    background: var(--accent);
    color: var(--primary);
    font-weight: 800;
    border: none;
    border-radius: 12px;
    padding: .8rem 2rem;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,167,66,.4); color: var(--primary); }
.auth-footer-link {
    color: rgba(255,255,255,.55);
    font-size: .88rem;
    text-align: center;
    margin-top: 1.4rem;
}
.auth-footer-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }

