/* ==========================================================
   Simple Jobs Today - Core Stylesheet
   Mobile-first, brand: blue (#185FA5) / near-black (#1A1A2E) / white
   ========================================================== */

:root {
    --brand-red: #185FA5;
    --brand-red-dark: #0C447C;
    --brand-red-tint: #E6F1FB;
    --ink: #1A1A2E;
    --ink-light: #55586B;
    --border: #E7E7EC;
    --bg: #FFFFFF;
    --bg-soft: #FAFAFC;
    --success: #1E8E3E;
    --warning: #B7791F;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow: 0 4px 20px rgba(20,20,40,0.06);
    --max-width: 1200px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand-red); color: var(--brand-red); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Header / Nav ---------- */
.site-header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}
.logo .accent { color: var(--brand-red); }
.logo-icon {
    width: 34px; height: 34px;
    background: var(--brand-red);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
}
.main-nav {
    display: none;
    gap: 28px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}
.main-nav a:hover { color: var(--brand-red); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .divider {
    width: 1px; height: 24px; background: var(--border);
    display: none;
}
.notif-bell {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}
.notif-badge {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--brand-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.mobile-menu-btn {
    display: block;
    background: none; border: none; font-size: 24px; cursor: pointer;
}
.mobile-nav-panel {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding: 10px 20px 16px;
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a { padding: 10px 0; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav-panel a:last-child { border-bottom: none; }

@media (min-width: 900px) {
    .main-nav { display: flex; }
    .header-actions .divider { display: block; }
    .mobile-menu-btn { display: none; }
    .mobile-nav-panel { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 60px 16px 40px;
}
.hero h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
}
.hero h1 .accent { color: var(--brand-red); }
.hero p.subtitle {
    color: var(--ink-light);
    font-size: 16px;
    margin: 0 0 28px;
}
@media (min-width: 700px) {
    .hero h1 { font-size: 52px; }
    .hero p.subtitle { font-size: 19px; }
}

/* ---------- Search Bar ---------- */
.search-card {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: 14px;
    max-width: 950px;
    margin: 0 auto;
}
.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex: 1;
}
.search-field input, .search-field select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
}
.search-field .icon { color: var(--brand-red); flex-shrink: 0; }
@media (min-width: 800px) {
    .search-form { flex-direction: row; align-items: center; }
    .search-form .btn { flex-shrink: 0; }
}

.popular-searches {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.popular-searches strong { color: var(--ink); }
.chip {
    background: var(--brand-red-tint);
    color: var(--ink);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
.chip:hover { background: var(--brand-red); color: #fff; }

/* ---------- Feature cards ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 44px;
}
@media (min-width: 800px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-card {
    background: var(--brand-red-tint);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}
.feature-card .left { display: flex; align-items: center; gap: 18px; }
.feature-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-red);
    font-size: 22px;
    flex-shrink: 0;
}
.feature-card h3 { margin: 0 0 4px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--ink-light); font-size: 14px; }
.feature-arrow { color: var(--brand-red); font-size: 20px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
    color: var(--ink-light);
    margin-bottom: 18px;
}
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.footer-copy { font-size: 13px; color: var(--ink-light); }

/* ---------- Forms (auth pages) ---------- */
.auth-wrap {
    max-width: 440px;
    margin: 50px auto;
    padding: 0 16px;
}
.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px 24px;
}
.auth-card h1 { font-size: 24px; margin: 0 0 6px; }
.auth-card p.subtitle { color: var(--ink-light); margin: 0 0 24px; font-size: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--brand-red); }
.form-hint { font-size: 12px; color: var(--ink-light); margin-top: 4px; }
.role-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    background: var(--bg-soft);
    padding: 5px;
    border-radius: var(--radius-sm);
}
.role-toggle a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-light);
}
.role-toggle a.active { background: #fff; color: var(--brand-red); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-error { background: #FDECEC; color: #A5222A; }
.alert-success { background: #E8F6EC; color: #1E7A38; }
.alert-info { background: #EAF2FB; color: #1D5FA8; }

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}
.otp-inputs input {
    width: 52px; height: 58px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
}
.otp-inputs input:focus { outline: none; border-color: var(--brand-red); }

.text-center { text-align: center; }
.muted { color: var(--ink-light); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ===== Global footer (used site-wide) ===== */
:root { --accent-today: #D22B2B; }
.accent-today { color: var(--accent-today); }
/* ---------- Footer ---------- */
.hp-footer { background: #0B1B36; color: #C7D0DE; margin-top: 60px; padding: 46px 0 24px; }
.hp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 30px; }
.hp-footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.logo-icon-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent-today); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.hp-footer-tag { font-size: 13.5px; color: #8A97AB; line-height: 1.6; margin: 16px 0; max-width: 260px; }
.hp-footer-social { display: flex; gap: 10px; }
.hp-footer-social a, .hp-footer-social span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #C7D0DE; font-size: 13px; font-weight: 700; }
.hp-footer-social a:hover { background: var(--brand-red); color: #fff; }
.hp-footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 700; }
.hp-footer-col a { display: block; color: #8A97AB; font-size: 14px; margin-bottom: 11px; }
.hp-footer-col a:hover { color: #fff; }
.hp-footer-news p { font-size: 13.5px; color: #8A97AB; line-height: 1.6; margin-bottom: 14px; }
.hp-news-form { display: flex; gap: 8px; }
.hp-news-form input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 11px 14px; color: #fff; font-size: 13px; }
.hp-news-form input::placeholder { color: #6B7688; }
.hp-news-form button { background: var(--brand-red); color: #fff; border: none; border-radius: 8px; width: 44px; cursor: pointer; font-size: 16px; }
@media (max-width: 900px) { .hp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hp-footer-grid { grid-template-columns: 1fr; } }
