/* style.css - High-Performance, Mobile-First CSS for homejobalert.com (CLS = 0) */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

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

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.site-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.brand-title .alert-highlight {
    color: var(--accent);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: var(--accent);
}

.btn-nav-scam {
    padding: 6px 14px;
    background-color: var(--warning-bg);
    color: #92400e !important;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    padding: 48px 0 36px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--success-bg);
    color: var(--success);
    border: 1px solid #a7f3d0;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 28px;
}

/* Search Bar Box */
.search-box-wrap {
    max-width: 640px;
    margin: 0 auto 20px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 52px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.quick-stats-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.quick-stats-bar span strong {
    color: var(--primary);
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 36px 0;
}

.section-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

/* District / Job Cards Grid */
.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.job-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-district {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.tier-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tier-badge.tier-1 {
    background-color: #dbeafe;
    color: #1e40af;
}

.tier-badge.tier-2 {
    background-color: #e0e7ff;
    color: #3730a3;
}

.tier-badge.tier-3 {
    background-color: #f1f5f9;
    color: #475569;
}

.job-state {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-card-info {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}

.job-card-meta {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-card-apply {
    color: var(--accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Category Cards Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.cat-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.cat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.cat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cat-salary {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--success);
}

/* Verification Header & Anti-Scam Callout */
.verification-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 24px;
}

.badge-item {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge-item.verified {
    background-color: var(--success-bg);
    color: var(--success);
    font-weight: 600;
}

.badge-item.zero-fee {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.badge-item.location {
    background-color: #f1f5f9;
    color: #334155;
}

.anti-scam-box {
    background-color: var(--warning-bg);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
}

.scam-icon {
    font-size: 2rem;
    color: #d97706;
    line-height: 1;
}

.scam-content h4 {
    color: #92400e;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.scam-content p {
    color: #78350f;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Table of Contents (TOC) - SEO & User Experience */
.toc-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 22px 0 30px;
}

.toc-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-list li {
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.toc-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.toc-list a:hover {
    text-decoration: underline;
}

/* E-E-A-T Editorial Verification Box */
.eeat-author-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.eeat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #d1fae5;
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.eeat-info h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.eeat-info p {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Single Job Article Typography & Styling */
.job-article {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.job-article h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.job-article h2:first-of-type {
    margin-top: 10px;
}

.job-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 18px;
    margin-bottom: 8px;
}

.job-article p {
    margin-bottom: 16px;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.job-article ul, .job-article ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: #334155;
}

.job-article li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Roles Grid inside Article */
.roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px 0;
}

.role-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
}

.role-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.role-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.88rem;
    color: #475569;
    background-color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

/* Corporate Portals Table */
.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.corporate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.corporate-table th {
    background-color: #f1f5f9;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
}

.corporate-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.corporate-table tr:last-child td {
    border-bottom: none;
}

.corporate-table tr:hover {
    background-color: #f8fafc;
}

.btn-apply-table {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--accent);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.btn-apply-table:hover {
    background-color: var(--accent-hover);
}

/* Equipment Box */
.equipment-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.equipment-box h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 14px;
    margin-bottom: 6px;
}

.equipment-box h4:first-of-type {
    margin-top: 0;
}

/* FAQ Container */
.faq-container {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.faq-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 18px 20px;
}

.faq-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 8px;
}

.faq-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #475569;
}

/* Related Districts Box */
.related-districts-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 36px;
    text-align: center;
}

.btn-state-all {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    background-color: var(--accent);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

/* Site Footer */
.site-footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding: 50px 0 24px;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* Mobile Responsiveness & Zero Horizontal Overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin: 20px 0;
}

.corporate-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .header-inner {
        height: auto;
        padding: 12px 0;
        flex-direction: column;
        gap: 12px;
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    .site-nav a {
        font-size: 0.82rem;
        padding: 4px 6px;
    }
    .btn-nav-scam {
        font-size: 0.78rem !important;
        padding: 5px 10px;
    }
    .hero-title {
        font-size: 1.45rem;
        line-height: 1.25;
    }
    .hero-description {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }
    .hero-section {
        padding: 24px 0 20px;
    }
    .search-input {
        height: 46px;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    .job-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .job-card {
        padding: 16px;
    }
    .job-article {
        padding: 18px 14px;
    }
    .job-article h1 {
        font-size: 1.45rem;
        line-height: 1.3;
    }
    .job-article h2 {
        font-size: 1.2rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }
    .job-article h3 {
        font-size: 1rem;
    }
    .job-article p, .job-article li {
        font-size: 0.92rem;
        line-height: 1.6;
    }
    .verification-banner {
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }
    .badge-item {
        font-size: 0.78rem;
        width: 100%;
        justify-content: flex-start;
    }
    .anti-scam-box {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }
    .scam-icon {
        font-size: 1.5rem;
    }
    .scam-content h4 {
        font-size: 0.88rem;
    }
    .scam-content p {
        font-size: 0.82rem;
    }
    .role-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 0.82rem;
        padding: 8px 10px;
    }
    .equipment-box {
        padding: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
