/* =====================================================
   SARKARI KAAM - JOBS PAGE
   PROFESSIONAL GOVERNMENT PORTAL UI
===================================================== */

:root {

    --primary: #0b3d91;
    --primary-dark: #06265f;
    --primary-light: #eaf2ff;

    --secondary: #f59e0b;
    --success: #15803d;
    --danger: #dc2626;

    --text: #172033;
    --muted: #64748b;

    --white: #ffffff;
    --light: #f6f8fc;
    --border: #e2e8f0;

    --shadow:
        0 10px 30px rgba(15, 23, 42, .08);

    --radius: 14px;

    --max-width: 1240px;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--light);

    color: var(--text);

    line-height: 1.6;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   LOADER
===================================================== */

.loader {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #061b42,
            #0b3d91
        );

    transition:
        opacity .4s ease,
        visibility .4s ease;
}

.loader.hide {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}

.loader-card {

    width: min(90%, 360px);

    padding: 42px 30px;

    text-align: center;

    color: white;
}

.loader-logo {

    width: 70px;
    height: 70px;

    margin: auto auto 18px;

    display: grid;

    place-items: center;

    border-radius: 20px;

    background: rgba(255,255,255,.12);

    border:
        1px solid rgba(255,255,255,.2);

    font-size: 30px;
}

.loader-card h2 {
    font-size: 26px;
}

.loader-card p {

    margin-top: 5px;

    color: rgba(255,255,255,.75);
}

.loader-progress {

    height: 4px;

    margin-top: 25px;

    overflow: hidden;

    border-radius: 20px;

    background: rgba(255,255,255,.15);
}

.loader-progress span {

    display: block;

    width: 40%;

    height: 100%;

    border-radius: inherit;

    background: white;

    animation:
        loading 1.2s infinite ease-in-out;
}

@keyframes loading {

    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(350%);
    }
}


/* =====================================================
   TOP BAR
===================================================== */

.top-bar {

    background: #061b42;

    color: white;

    font-size: 13px;
}

.top-inner {

    width: min(94%, var(--max-width));

    min-height: 38px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.top-left,
.top-right {

    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.top-left span,
.top-right span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: rgba(255,255,255,.85);
}

.top-left i {
    color: #60a5fa;
}

.separator {
    opacity: .3;
}

.language-btn {

    border: 1px solid rgba(255,255,255,.25);

    background: rgba(255,255,255,.08);

    color: white;

    border-radius: 6px;

    padding: 3px 10px;

    cursor: pointer;
}

.language-btn:hover {
    background: rgba(255,255,255,.18);
}


/* =====================================================
   HEADER
===================================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: white;

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 4px 18px rgba(15,23,42,.05);
}

.header-inner {

    width: min(94%, var(--max-width));

    min-height: 74px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: max-content;
}

.brand-icon {

    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #165dcc
        );

    color: white;

    font-size: 21px;

    box-shadow:
        0 6px 14px rgba(11,61,145,.25);
}

.brand-text {

    display: flex;

    flex-direction: column;
}

.brand-text strong {
    font-size: 20px;
}

.brand-text small {

    font-size: 11px;

    color: var(--muted);
}

.navigation {

    display: flex;

    align-items: center;

    gap: 4px;
}

.navigation a {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 10px 12px;

    border-radius: 8px;

    color: #475569;

    font-size: 14px;

    font-weight: 600;

    transition: .2s;
}

.navigation a:hover {

    color: var(--primary);

    background: var(--primary-light);
}

.navigation a.active {

    color: var(--primary);

    background: var(--primary-light);
}

.menu-btn {

    display: none;

    width: 44px;
    height: 44px;

    border: 0;

    border-radius: 9px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 20px;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #06265f 0%,
            #0b3d91 55%,
            #1255bb 100%
        );

    color: white;
}

.hero-bg {

    position: absolute;

    inset: 0;

    opacity: .13;

    background-image:
        radial-gradient(
            circle at 20% 20%,
            white 0,
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 70%,
            white 0,
            transparent 25%
        );
}

.hero-inner {

    position: relative;

    width: min(94%, var(--max-width));

    margin: auto;

    padding: 70px 0 55px;
}

.hero-content {

    max-width: 850px;

    text-align: center;

    margin: auto;
}

.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 13px;

    border-radius: 50px;

    background: rgba(255,255,255,.11);

    border:
        1px solid rgba(255,255,255,.2);

    font-size: 13px;

    margin-bottom: 17px;
}

.hero-badge i {
    color: #86efac;
}

.hero h1 {

    font-size:
        clamp(32px, 5vw, 56px);

    line-height: 1.1;

    letter-spacing: -.8px;
}

.hero p {

    max-width: 700px;

    margin: 16px auto 0;

    color: rgba(255,255,255,.82);

    font-size: 17px;
}

.hero-search {

    display: flex;

    align-items: center;

    max-width: 800px;

    margin: 28px auto 0;

    padding: 6px;

    border-radius: 12px;

    background: white;

    box-shadow:
        0 15px 35px rgba(0,0,0,.18);
}

.hero-search > i {

    margin-left: 14px;

    color: var(--muted);
}

.hero-search input {

    flex: 1;

    min-width: 0;

    border: 0;

    outline: 0;

    padding: 13px 14px;

    color: var(--text);

    background: transparent;
}

.hero-search button {

    border: 0;

    border-radius: 8px;

    padding: 12px 22px;

    background: var(--primary);

    color: white;

    font-weight: 700;
}

.hero-search button:hover {
    background: var(--primary-dark);
}

.search-hint {

    font-size: 12px !important;

    opacity: .7;

    margin-top: 9px !important;
}


/* =====================================================
   HERO STATS
===================================================== */

.hero-stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-top: 40px;
}

.stat-card {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 17px;

    border-radius: 12px;

    background: rgba(255,255,255,.09);

    border:
        1px solid rgba(255,255,255,.13);
}

.stat-icon {

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: rgba(255,255,255,.1);
}

.stat-card strong {

    display: block;

    font-size: 20px;
}

.stat-card span {

    display: block;

    font-size: 12px;

    color: rgba(255,255,255,.68);
}


/* =====================================================
   API STATUS
===================================================== */

.api-status-section {

    width: min(94%, var(--max-width));

    margin: 18px auto 0;
}

.api-status {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 12px;

    border-radius: 50px;

    background: white;

    border: 1px solid var(--border);

    color: var(--muted);

    font-size: 12px;
}

.status-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #f59e0b;

    animation: pulse 1.3s infinite;
}

.api-status.online .status-dot {
    background: #16a34a;
}

.api-status.error .status-dot {
    background: #dc2626;
}

@keyframes pulse {

    50% {
        opacity: .35;
    }
}


/* =====================================================
   COMMON
===================================================== */

.section {

    width: min(94%, var(--max-width));

    margin-left: auto;
    margin-right: auto;
}

.section-head {

    margin-bottom: 30px;
}

.section-head span,
.jobs-heading span,
.filter-heading span {

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.section-head h2,
.jobs-heading h2,
.filter-heading h2 {

    margin-top: 5px;

    font-size:
        clamp(25px, 3vw, 34px);
}

.section-head p,
.jobs-heading p,
.filter-heading p {

    color: var(--muted);

    margin-top: 5px;
}

.center {
    text-align: center;
}


/* =====================================================
   FILTER
===================================================== */

.filter-section {

    margin-top: 25px;

    background: white;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.filter-container {

    width: min(94%, var(--max-width));

    margin: auto;

    padding: 30px 0;
}

.filter-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.reset-btn {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    border: 1px solid var(--border);

    background: white;

    color: var(--muted);

    border-radius: 8px;

    padding: 10px 15px;

    font-weight: 600;
}

.reset-btn:hover {

    color: var(--primary);

    border-color: #b7c9eb;

    background: var(--primary-light);
}

.filters {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.filter-item label {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 700;
}

.filter-item label i {
    color: var(--primary);
}

.filter-item select {

    width: 100%;

    padding: 12px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: white;

    color: var(--text);

    outline: none;
}

.filter-item select:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(11,61,145,.08);
}


/* =====================================================
   CATEGORIES
===================================================== */

.categories {

    padding-top: 55px;

    padding-bottom: 25px;
}

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.category-grid button {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: white;

    color: var(--text);

    text-align: left;

    transition: .2s;
}

.category-grid button i {

    color: var(--primary);

    font-size: 22px;

    margin-bottom: 5px;
}

.category-grid button strong {
    font-size: 16px;
}

.category-grid button small {
    color: var(--muted);
}

.category-grid button:hover {

    transform: translateY(-3px);

    border-color: #b8cbed;

    box-shadow: var(--shadow);
}


/* =====================================================
   JOBS
===================================================== */

.jobs-section {

    padding-top: 45px;

    padding-bottom: 60px;
}

.jobs-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.jobs-found {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 11px 15px;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);

    white-space: nowrap;
}

.jobs-found strong {
    font-size: 18px;
}


/* =====================================================
   JOB LOADING
===================================================== */

.job-loading {

    padding: 70px 20px;

    text-align: center;

    background: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.spinner {

    width: 42px;
    height: 42px;

    margin: auto auto 16px;

    border:
        4px solid #dbe7fb;

    border-top-color: var(--primary);

    border-radius: 50%;

    animation:
        spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.job-loading p {
    color: var(--muted);
}


/* =====================================================
   JOB CARDS
===================================================== */

.job-list {

    display: grid;

    gap: 14px;
}

.job-card {

    display: grid;

    grid-template-columns:
        55px 1fr auto;

    gap: 17px;

    align-items: center;

    padding: 20px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    transition: .2s;
}

.job-card:hover {

    transform: translateY(-2px);

    border-color: #b9cae8;

    box-shadow: var(--shadow);
}

.job-icon {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 21px;
}

.job-info h3 {

    font-size: 17px;

    line-height: 1.35;
}

.job-info > p {

    margin-top: 4px;

    color: var(--muted);

    font-size: 13px;
}

.job-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 11px;
}

.job-meta span {

    padding: 4px 8px;

    border-radius: 5px;

    background: #f1f5f9;

    color: #475569;

    font-size: 11px;

    font-weight: 600;
}

.job-meta .vacancy {

    color: var(--success);

    background: #ecfdf5;
}

.job-meta .deadline {

    color: #b45309;

    background: #fff7ed;
}

.job-actions {

    display: flex;

    flex-direction: column;

    gap: 7px;

    min-width: 135px;
}

.apply-btn,
.details-btn {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    padding: 9px 12px;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 700;

    text-align: center;
}

.apply-btn {

    color: white;

    background: var(--primary);
}

.apply-btn:hover {
    background: var(--primary-dark);
}

.details-btn {

    color: var(--primary);

    border:
        1px solid #bfd0ec;

    background: white;
}

.details-btn:hover {
    background: var(--primary-light);
}


/* =====================================================
   EMPTY / ERROR
===================================================== */

.empty-state,
.api-error {

    padding: 60px 20px;

    text-align: center;

    background: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius);
}

.empty-state > i {

    font-size: 45px;

    color: #94a3b8;
}

.empty-state h3,
.api-error h3 {
    margin-top: 10px;
}

.empty-state p,
.api-error p {

    margin-top: 5px;

    color: var(--muted);
}

.empty-state button,
.api-error button {

    margin-top: 18px;

    border: 0;

    padding: 10px 18px;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    font-weight: 700;
}

.error-icon {

    width: 60px;
    height: 60px;

    margin: auto;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #fef2f2;

    color: var(--danger);

    font-size: 25px;
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 25px;
}

.pagination button {

    min-width: 38px;
    height: 38px;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background: white;

    color: var(--text);
}

.pagination button:hover,
.pagination button.active {

    color: white;

    border-color: var(--primary);

    background: var(--primary);
}

.pagination button:disabled {

    opacity: .45;

    cursor: not-allowed;
}


/* =====================================================
   STATE
===================================================== */

.state-section {

    padding-top: 55px;

    padding-bottom: 60px;
}

.state-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 10px;
}

.state-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    min-height: 75px;

    padding: 13px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: white;

    color: var(--text);

    text-align: left;

    transition: .2s;
}

.state-card:hover {

    color: var(--primary);

    border-color: #b7c9eb;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(15,23,42,.06);
}

.state-card strong {

    display: block;

    font-size: 13px;
}

.state-card small {

    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;
}

.state-card > i {
    color: #94a3b8;
}


/* =====================================================
   PORTALS
===================================================== */

.portal-section {

    padding-top: 55px;

    padding-bottom: 60px;

    max-width: none;

    width: 100%;

    padding-left: max(3%, calc((100% - var(--max-width)) / 2));

    padding-right: max(3%, calc((100% - var(--max-width)) / 2));

    background: white;
}

.portal-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.portal-card {

    display: grid;

    grid-template-columns:
        48px 1fr 18px;

    gap: 12px;

    align-items: center;

    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    transition: .2s;
}

.portal-card:hover {

    border-color: #b7c9eb;

    box-shadow: var(--shadow);

    transform: translateY(-2px);
}

.portal-icon {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);
}

.portal-card h3 {
    font-size: 14px;
}

.portal-card p {

    color: var(--muted);

    font-size: 11px;
}

.portal-card > i {

    color: #94a3b8;

    font-size: 12px;
}


/* =====================================================
   INFORMATION
===================================================== */

.info-section {

    padding-top: 25px;

    padding-bottom: 55px;
}

.info-card {

    display: flex;

    gap: 15px;

    padding: 20px;

    border:
        1px solid #cbdcf5;

    border-radius: 12px;

    background: #eef5ff;
}

.info-icon {

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 9px;

    background: white;

    color: var(--primary);
}

.info-card h3 {
    font-size: 16px;
}

.info-card p {

    margin-top: 5px;

    color: #475569;

    font-size: 13px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: #071a38;

    color: white;
}

.footer-main {

    width: min(94%, var(--max-width));

    margin: auto;

    padding: 55px 0 40px;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 40px;
}

.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 20px;
}

.footer-brand i {
    color: #60a5fa;
}

.footer-about p {

    max-width: 330px;

    margin-top: 13px;

    color: #94a3b8;

    font-size: 13px;
}

.footer-column {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.footer-column h3 {

    margin-bottom: 8px;

    font-size: 15px;
}

.footer-column a {

    color: #94a3b8;

    font-size: 13px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {

    width: min(94%, var(--max-width));

    margin: auto;

    padding: 18px 0;

    border-top:
        1px solid rgba(255,255,255,.08);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.footer-bottom p {

    color: #94a3b8;

    font-size: 12px;
}

.social {

    display: flex;

    gap: 7px;
}

.social a {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 7px;

    background: rgba(255,255,255,.07);

    color: #cbd5e1;

    font-size: 13px;
}

.social a:hover {

    color: white;

    background: var(--primary);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1050px) {

    .navigation a span {
        display: none;
    }

    .navigation a {
        padding: 10px;
    }

    .filters {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .state-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .portal-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 760px) {

    .top-left {
        display: none;
    }

    .top-inner {
        justify-content: flex-end;
    }

    .header-inner {
        min-height: 66px;
    }

    .menu-btn {
        display: grid;
        place-items: center;
    }

    .navigation {

        position: absolute;

        top: 100%;

        left: 3%;

        right: 3%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding: 10px;

        background: white;

        border:
            1px solid var(--border);

        border-radius: 10px;

        box-shadow: var(--shadow);
    }

    .navigation.show {
        display: flex;
    }

    .navigation a span {
        display: inline;
    }

    .navigation a {
        padding: 12px;
    }

    .hero-inner {
        padding-top: 50px;
    }

    .hero-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .filter-heading {
        flex-direction: column;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .job-card {

        grid-template-columns:
            45px 1fr;

    }

    .job-actions {

        grid-column: 1 / -1;

        display: grid;

        grid-template-columns: 1fr 1fr;

    }

    .state-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 520px) {

    .top-right {
        width: 100%;

        justify-content: center;

        font-size: 11px;
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-search {
        flex-wrap: wrap;

        padding: 8px;
    }

    .hero-search input {
        width: calc(100% - 45px);
    }

    .hero-search button {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .state-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .jobs-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .job-card {
        grid-template-columns: 1fr;
    }

    .job-icon {
        width: 45px;
        height: 45px;
    }

    .job-actions {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }

    .info-card {
        flex-direction: column;
    }

}