/* ==========================================================================
   Jobely.sbs Main Stylesheet (Target: Lahore Recruitment Portal)
   ========================================================================== */

/* Universal Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* 1. Header, Top Notice & Navigation */
.top-notice-bar {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
}

.site-header {
    background: #0f172a;
    color: #ffffff;
    border-bottom: 3px solid #2563eb;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

.site-logo span {
    color: #2563eb;
}

.city-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #60a5fa;
}

/* 2. Agency Hero Section & Live Search */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 50px 16px;
    border-bottom: 4px solid #2563eb;
    text-align: center;
}

.hero-inner {
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid #2563eb;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 16px 0 10px 0;
    line-height: 1.25;
}

.hero-title span {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: 14.5px;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.hero-search-box {
    display: flex;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 650px;
    margin: 0 auto;
}

.hero-search-box input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
    width: 100%;
}

.btn-search {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-search:hover {
    background: #1d4ed8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 22px;
    font-size: 12.5px;
    color: #cbd5e1;
    flex-wrap: wrap;
}

/* 3. Advanced High-Converting Tool Styling */
.tool-card-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #10b981;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.tool-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

.tool-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 6px 0;
}

.tool-header p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.tool-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.tool-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.tool-group select,
.tool-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
}

.tool-checkbox-grid {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.checkbox-title {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.checkbox-options label {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-results-panel {
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #60a5fa;
    margin: 0;
}

.calc-timestamp {
    font-size: 11px;
    color: #94a3b8;
}

.results-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.res-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
}

.res-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
    border-bottom: 1px solid #334155;
    padding-bottom: 6px;
}

.res-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
    gap: 10px;
}

.res-row strong {
    color: #ffffff;
    text-align: right;
}

.status-highlight {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #334155;
}

.status-pass {
    color: #10b981 !important;
    font-weight: 800;
}

.status-fail {
    color: #ef4444 !important;
    font-weight: 800;
}

.salary-pass {
    color: #60a5fa !important;
    font-weight: 800;
    font-size: 14.5px;
}

.tool-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-tool-action {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-tool-action:hover {
    background: #1d4ed8;
}

.btn-tool-action.btn-secondary {
    background: #334155;
    color: #f1f5f9;
}

.btn-tool-action.btn-secondary:hover {
    background: #475569;
}

/* 4. Full-Width Main Layout & Structured 3-Column Job Cards */
.main-layout {
    display: block !important;
    width: 100% !important;
    margin: 30px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.job-card,
.job-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover,
.job-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #93c5fd;
}

.card-img-wrap {
    height: 160px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.card-img-wrap img,
img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    width: 100%;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 8px;
    gap: 8px;
}

.card-org {
    color: #2563eb;
    font-weight: 700;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-title a {
    color: #0f172a;
    text-decoration: none !important;
}

.card-title a:hover {
    color: #2563eb;
}

/* Matrix Details Box */
.card-matrix {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.matrix-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.matrix-label {
    color: #64748b;
    font-weight: 600;
}

.matrix-val {
    color: #0f172a;
    font-weight: 700;
}

.matrix-val.deadline {
    color: #dc2626;
}

.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none !important;
    margin-top: auto;
    transition: background 0.2s ease;
}

.btn-card:hover {
    background: #1d4ed8;
}

/* Horizontal Categories Bar Styling */
.horizontal-categories-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    width: 100%;
}

.horizontal-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.horizontal-cat-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 11px 16px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.horizontal-cat-item:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Portal Info & Guide Section Styling */
.portal-info-section {
    margin-top: 40px;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    width: 100%;
}
.portal-notice-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.5;
}
.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}
.portal-stat-card {
    background: #f8fafc;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.portal-stat-card .stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #2563eb;
}
.portal-stat-card .stat-lbl {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}
.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    margin-bottom: 25px;
}
.portal-table th {
    background: #2563eb;
    color: #ffffff;
    padding: 12px 14px;
    border: 1px solid #2563eb;
}
.portal-table td {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.portal-table tr:nth-child(even) {
    background: #f8fafc;
}
.portal-faq-box {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}
.portal-faq-box strong {
    color: #0f172a;
    font-size: 14.5px;
}
.portal-faq-box p {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 0;
}

/* 5. AdSense Safe Footer */
.site-footer {
    background: #0b132b;
    color: #94a3b8;
    padding: 40px 0 20px 0;
    border-top: 3px solid #2563eb;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* 6. Comprehensive Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px !important;
    }
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .hero-section {
        padding: 35px 12px !important;
    }
    .hero-title {
        font-size: 24px !important;
    }
    .hero-subtitle {
        font-size: 13.5px !important;
    }
    .hero-search-box {
        flex-direction: column !important;
        gap: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .hero-search-box input {
        background: #ffffff !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .btn-search {
        width: 100% !important;
        padding: 12px !important;
    }
    .tool-form-grid,
    .results-main-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .res-row {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    .tool-actions {
        flex-direction: column !important;
    }
    .btn-tool-action {
        width: 100% !important;
        text-align: center !important;
    }
    .portal-info-section,
    .horizontal-categories-wrapper {
        padding: 20px !important;
    }
}

@media (max-width: 580px) {
    .header-inner {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
    .nav-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .hero-stats {
        gap: 12px !important;
        font-size: 12px !important;
    }
}