:root {
    --navy: #0f1b3c;
    --navy-light: #1a2b5c;
    --red: #e11d2e;
    --red-dark: #c01522;
    --bg: #f7f8fb;
    --border: #e4e7ef;
    --text: #1a1f2e;
    --text-muted: #6b7280;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(15, 27, 60, 0.06);
    --shadow-hover: 0 10px 30px rgba(15, 27, 60, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo { font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.logo-l { color: var(--navy); }
.logo-i { color: var(--red); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); transition: color .15s; }
.main-nav a:hover { color: var(--red); }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; margin-left: 20px; }
.lang-switch a { color: var(--text-muted); padding: 4px 2px; }
.lang-switch a.active { color: var(--red); }
.lang-switch span { color: var(--border); }

.header-auth { display: flex; align-items: center; gap: 14px; margin-left: 18px; font-size: 0.9rem; font-weight: 600; }
.header-auth a { color: var(--text-muted); }
.header-auth-register { background: var(--navy); color: #fff !important; padding: 8px 16px; border-radius: 7px; }
.header-auth-user { color: var(--navy) !important; font-weight: 700; }

.auth-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 420px;
    width: 100%;
}
.auth-box h1 { font-size: 1.4rem; color: var(--navy); margin-bottom: 4px; }
.auth-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.auth-box label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text); margin-top: 14px; }
.auth-box input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 0.92rem;
}
.btn-auth {
    width: 100%; background: var(--red); color: #fff; border: none; padding: 13px;
    border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-top: 22px;
}
.btn-auth:hover { background: var(--red-dark); }
.auth-error { background: #fee2e2; color: #991b1b; padding: 12px 14px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 6px; }
.auth-success { background: #dcfce7; color: #166534; padding: 12px 14px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 6px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.auth-switch a { color: var(--red); font-weight: 700; }

.account-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; max-width: 700px; }
.account-profile-card {
    grid-column: 1 / -1;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; display: flex; align-items: center; gap: 16px;
}
.account-avatar {
    width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0;
}
.account-name { font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.account-email { color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }
.account-menu {
    grid-column: 1 / -1;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.account-menu-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600;
}
.account-menu-item:last-child { border-bottom: none; }
.account-menu-item:hover { background: #fafbfc; }
.account-menu-icon { font-size: 1.2rem; }
.account-menu-count { margin-left: auto; background: #f2f3f7; color: var(--text-muted); padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.account-menu-logout { color: #dc2626; }

.account-form-box {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; margin-bottom: 20px;
}
.account-form-box h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 16px; }
.account-form-box label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; margin-top: 14px; }
.account-form-box input {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.9rem;
}

@media (max-width: 860px) {
    .header-auth span:not(.lang-switch span) { display: none; }
    .account-layout { grid-template-columns: 1fr; }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 70px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
}

.search-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    gap: 8px;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow-hover);
    flex-wrap: wrap;
}

.search-box input, .search-box select {
    flex: 1;
    min-width: 160px;
    border: none;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border-radius: 8px;
    background: #f2f3f7;
    color: var(--text);
}

.search-box input:focus, .search-box select:focus { outline: 2px solid var(--red); }

.btn-search {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.btn-search:hover { background: var(--red-dark); }

.hero-tag {
    margin-top: 20px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin: -38px auto 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.stat-item { padding: 24px 10px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.section-head p { color: var(--text-muted); margin-top: 4px; }
.link-more { color: var(--red); font-weight: 700; font-size: 0.92rem; }

/* ---------- Job Cards ---------- */
.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow .15s, transform .15s;
    position: relative;
}
.job-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.job-card-top { display: flex; gap: 12px; align-items: flex-start; }

.job-logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}
.job-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.job-title { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.job-company { color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }

.badge-new {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--red);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 14px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.job-meta span { display: flex; align-items: center; gap: 4px; }

.job-salary { font-weight: 700; color: var(--navy); font-size: 0.92rem; }

.job-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.job-time { font-size: 0.8rem; color: var(--text-muted); }

.btn-detail {
    color: var(--red);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ---------- City Cards ---------- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.city-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: box-shadow .15s, transform .15s;
}
.city-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.city-name { font-weight: 800; font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.city-count { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2px; }
.city-link { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 700; font-size: 0.85rem; }

/* ---------- Category Grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    transition: box-shadow .15s, border-color .15s;
}
.category-card:hover { border-color: var(--red); box-shadow: var(--shadow); }

/* ---------- Filter Bar (jobs.php) ---------- */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 26px;
}
.filter-bar input, .filter-bar select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}
.filter-bar button {
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 20px;
}

.result-count { color: var(--text-muted); margin-bottom: 18px; font-size: 0.92rem; }

/* ---------- Job Detail Page ---------- */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 26px;
    align-items: start;
}

.detail-main, .detail-side {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.detail-header { display: flex; gap: 16px; margin-bottom: 20px; }
.detail-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.detail-company { color: var(--text-muted); margin-top: 4px; }

.detail-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.detail-badge {
    background: #f2f3f7;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
}

.detail-block { margin-top: 26px; }
.detail-block h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.detail-block p, .detail-block li { color: var(--text); font-size: 0.95rem; }
.detail-block ul { padding-left: 20px; list-style: disc; }
.detail-block ul li { margin-bottom: 6px; }

.apply-box { text-align: center; }
.apply-box .job-salary { font-size: 1.15rem; display: block; margin-bottom: 18px; }
.btn-apply {
    display: block;
    background: var(--red);
    color: var(--white);
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-save {
    display: block;
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--navy);
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    cursor: pointer;
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
    padding: 9px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
}
.pagination .active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); margin-top: 60px; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 50px 0 30px;
}
.footer-brand p { margin-top: 12px; font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 10px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .lang-switch { position: absolute; top: 20px; right: 58px; margin-left: 0; }
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px;
        gap: 16px;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }

    .hero h1 { font-size: 1.9rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .job-grid { grid-template-columns: 1fr; }
    .city-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- About / Contact pages ---------- */
.about-content p { color: var(--text); font-size: 0.98rem; line-height: 1.8; margin-bottom: 16px; }
.about-content h3 { color: var(--navy); font-size: 1.15rem; margin: 28px 0 12px; }
.about-content ul { padding-left: 22px; list-style: disc; margin-bottom: 16px; }
.about-content ul li { color: var(--text); margin-bottom: 8px; line-height: 1.6; }
.about-cta {
    margin-top: 36px; padding: 28px; background: var(--navy); border-radius: var(--radius);
    text-align: center;
}
.about-cta p { color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.btn-about-cta {
    display: inline-block; background: var(--red); color: #fff; padding: 12px 26px;
    border-radius: 8px; font-weight: 700; font-size: 0.92rem; text-decoration: none;
}
.btn-about-cta:hover { background: var(--red-dark); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
    display: flex; align-items: center; gap: 16px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
    text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.contact-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.contact-icon { font-size: 1.8rem; }
.contact-card-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.contact-card-value { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

/* ---------- Pricing page ---------- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
    max-width: 1180px; margin: 0 auto;
}
.pricing-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; position: relative; display: flex; flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.pricing-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pricing-featured { border: 2px solid var(--red); box-shadow: var(--shadow-hover); }

.pricing-header { padding: 22px 20px; text-align: center; color: #fff; }
.pricing-header .pricing-name { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pricing-header .pricing-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.9); }

.pricing-color-gold { background: linear-gradient(135deg, #e0a323 0%, #c9820f 100%); }
.pricing-color-silver { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }
.pricing-color-bronze { background: linear-gradient(135deg, #9c6b46 0%, #7c5230 100%); }
.pricing-color-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.pricing-color-navy { background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%); }
.pricing-color-red { background: linear-gradient(135deg, #f14355 0%, var(--red-dark) 100%); }

.pricing-body { padding: 24px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 800;
    padding: 4px 14px; border-radius: 20px; letter-spacing: 0.3px; white-space: nowrap; z-index: 2;
}
.pricing-price { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 4px; text-align: center; }
.pricing-price span { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: 0.83rem; margin-bottom: 18px; text-align: center; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 22px; flex-grow: 1; }
.pricing-features li { color: var(--text); font-size: 0.87rem; margin-bottom: 10px; line-height: 1.5; }
.btn-pricing {
    display: block; text-align: center; background: var(--white); color: var(--navy);
    border: 1.5px solid var(--navy); padding: 12px; border-radius: 8px; font-weight: 700;
    font-size: 0.9rem; text-decoration: none;
}
.btn-pricing:hover { background: var(--navy); color: #fff; }
.btn-pricing-featured { background: var(--red); color: #fff; border-color: var(--red); }
.btn-pricing-featured:hover { background: var(--red-dark); }

/* Add-on packages */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 700px; margin: 0 auto; }
.addon-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.addon-card h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.addon-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 14px; }
.addon-price { font-weight: 800; color: var(--red); font-size: 1.1rem; }

/* Terms section */
.terms-box { max-width: 760px; margin: 50px auto 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
.terms-box h3 { color: var(--navy); margin-bottom: 14px; }
.terms-box ol { padding-left: 20px; }
.terms-box ol li { color: var(--text); font-size: 0.9rem; margin-bottom: 10px; line-height: 1.6; }

/* ---------- Social media icons (footer) ---------- */
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    text-decoration: none; transition: background .15s;
}
.footer-social a:hover { background: var(--red); }

/* ---------- Pinned job badge ---------- */
.badge-pinned {
    position: absolute; top: 16px; left: 16px;
    background: var(--navy); color: #fff; font-size: 0.68rem; font-weight: 800;
    padding: 3px 9px; border-radius: 20px; letter-spacing: 0.5px;
}

@media (max-width: 860px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
