/* =========================================================
   SARKARI KAAM
   GOVERNMENT DOCUMENTS
   PREMIUM GOVERNMENT PORTAL UI
========================================================= */

:root {

    --primary: #0b3d91;
    --primary-dark: #082d6b;
    --primary-light: #eaf2ff;

    --accent: #f59e0b;
    --success: #15803d;
    --danger: #dc2626;

    --text: #172033;
    --muted: #667085;

    --bg: #f5f7fb;
    --white: #ffffff;

    --border: #e3e8f0;

    --shadow:
        0 10px 30px rgba(15, 23, 42, .07);

    --shadow-hover:
        0 18px 45px rgba(15, 23, 42, .13);

    --radius: 18px;

    --container: 1180px;

}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        var(--bg);

    color:
        var(--text);

    line-height: 1.6;

}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


.container {

    width:
        min(
            calc(100% - 32px),
            var(--container)
        );

    margin-inline: auto;

}


/* =========================================================
   GOVERNMENT STRIP
========================================================= */

.gov-strip {

    background:
        #071f4d;

    color:
        #dbeafe;

    font-size:
        12px;

}


.gov-strip-inner {

    width:
        min(
            calc(100% - 32px),
            var(--container)
        );

    min-height:
        34px;

    margin:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    background:
        rgba(255,255,255,.96);

    border-bottom:
        1px solid var(--border);

    position:
        sticky;

    top:
        0;

    z-index:
        100;

    backdrop-filter:
        blur(14px);

}


.header-inner {

    width:
        min(
            calc(100% - 32px),
            var(--container)
        );

    min-height:
        76px;

    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;

    border-radius:
        13px;

    background:
        var(--primary-light);

    display:
        grid;

    place-items:
        center;

    font-size:
        23px;

}


.brand strong {

    display:
        block;

    font-size:
        19px;

    color:
        var(--primary);

}


.brand small {

    display:
        block;

    color:
        var(--muted);

    font-size:
        11px;

}


.main-nav {

    display:
        flex;

    align-items:
        center;

    gap:
        5px;

}


.main-nav a {

    padding:
        9px 13px;

    border-radius:
        9px;

    color:
        #475467;

    font-size:
        14px;

    font-weight:
        600;

    transition:
        .2s ease;

}


.main-nav a:hover,
.main-nav a.active {

    color:
        var(--primary);

    background:
        var(--primary-light);

}


.menu-btn {

    display:
        none;

    border:
        0;

    background:
        var(--primary-light);

    color:
        var(--primary);

    width:
        42px;

    height:
        42px;

    border-radius:
        10px;

    font-size:
        20px;

}


/* =========================================================
   HERO
========================================================= */

.hero {

    background:
        linear-gradient(
            135deg,
            #071f4d,
            #0b3d91
        );

    color:
        white;

    overflow:
        hidden;

}


.hero-inner {

    min-height:
        500px;

    display:
        grid;

    grid-template-columns:
        1.2fr .8fr;

    align-items:
        center;

    gap:
        50px;

    padding:
        70px 0;

}


.eyebrow {

    display:
        inline-flex;

    padding:
        7px 12px;

    border:
        1px solid rgba(255,255,255,.2);

    background:
        rgba(255,255,255,.08);

    border-radius:
        50px;

    font-size:
        12px;

    font-weight:
        700;

    letter-spacing:
        .7px;

}


.hero h1 {

    margin-top:
        18px;

    font-size:
        clamp(38px, 5vw, 60px);

    line-height:
        1.05;

    max-width:
        720px;

}


.hero h1 span {

    color:
        #fbbf24;

}


.hero-content > p {

    margin-top:
        22px;

    max-width:
        680px;

    color:
        #dbeafe;

    font-size:
        17px;

}


.hero-secondary {

    margin-top:
        8px !important;

    font-size:
        14px !important;

}


.hero-actions {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        12px;

    margin-top:
        30px;

}


.primary-btn,
.secondary-btn {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        9px;

    padding:
        12px 18px;

    border-radius:
        10px;

    font-size:
        14px;

    font-weight:
        700;

}


.primary-btn {

    background:
        white;

    color:
        var(--primary);

}


.secondary-btn {

    border:
        1px solid rgba(255,255,255,.25);

    color:
        white;

    background:
        rgba(255,255,255,.07);

}


.trust-row {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        16px;

    margin-top:
        25px;

    font-size:
        12px;

    color:
        #dbeafe;

}


.hero-visual {

    display:
        grid;

    place-items:
        center;

}


.document-preview {

    width:
        min(330px, 100%);

    aspect-ratio:
        1 / 1.18;

    background:
        white;

    border-radius:
        20px;

    padding:
        28px;

    color:
        var(--text);

    box-shadow:
        0 25px 70px rgba(0,0,0,.25);

    transform:
        rotate(2deg);

}


.preview-top {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    font-size:
        12px;

    font-weight:
        700;

    border-bottom:
        1px solid var(--border);

    padding-bottom:
        15px;

}


.preview-line {

    height:
        9px;

    background:
        #e8edf5;

    border-radius:
        10px;

    margin-top:
        17px;

}


.preview-line.large {
    width:
        90%;
}


.preview-line.short {
    width:
        45%;
}


.preview-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:
        10px;

    margin-top:
        25px;

}


.preview-grid div {

    height:
        55px;

    background:
        #eef3fa;

    border-radius:
        8px;

}


.preview-seal {

    width:
        55px;

    height:
        55px;

    border-radius:
        50%;

    background:
        #e8f7ed;

    color:
        var(--success);

    display:
        grid;

    place-items:
        center;

    font-weight:
        900;

    margin:
        25px auto 0;

}


/* =========================================================
   STATS
========================================================= */

.stats-section {

    margin-top:
        -35px;

    position:
        relative;

    z-index:
        2;

}


.stats-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        14px;

}


.stat-card {

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        15px;

    padding:
        20px;

    box-shadow:
        var(--shadow);

}


.stat-icon {

    display:
        block;

    font-size:
        22px;

    margin-bottom:
        6px;

}


.stat-card strong {

    display:
        block;

    font-size:
        25px;

    color:
        var(--primary);

}


.stat-card > span:last-child {

    color:
        var(--muted);

    font-size:
        13px;

}


/* =========================================================
   DOCUMENT SECTION
========================================================= */

.documents-section {

    padding:
        85px 0;

}


.section-label {

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        1.2px;

}


.section-heading h2 {

    margin-top:
        7px;

    font-size:
        clamp(28px,4vw,40px);

}


.section-heading p {

    margin-top:
        7px;

    color:
        var(--muted);

}


/* =========================================================
   SEARCH
========================================================= */

.search-box {

    margin-top:
        35px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    padding:
        20px;

    box-shadow:
        var(--shadow);

}


.search-input-wrap {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    border:
        1px solid var(--border);

    border-radius:
        12px;

    padding:
        5px 6px 5px 14px;

}


.search-input-wrap > span {

    font-size:
        18px;

}


.search-input-wrap input {

    flex:
        1;

    min-width:
        0;

    border:
        0;

    outline:
        0;

    font-size:
        15px;

    color:
        var(--text);

}


.search-input-wrap button {

    border:
        0;

    background:
        var(--primary);

    color:
        white;

    padding:
        10px 18px;

    border-radius:
        8px;

    font-weight:
        700;

}


.filter-row {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr) auto;

    gap:
        12px;

    margin-top:
        16px;

}


.filter-group label {

    display:
        block;

    margin-bottom:
        5px;

    color:
        var(--muted);

    font-size:
        11px;

    font-weight:
        700;

}


.filter-group select {

    width:
        100%;

    border:
        1px solid var(--border);

    background:
        white;

    border-radius:
        9px;

    padding:
        10px;

    outline:
        0;

    color:
        var(--text);

}


.reset-btn {

    align-self:
        end;

    border:
        1px solid var(--border);

    background:
        white;

    padding:
        10px 15px;

    border-radius:
        9px;

    font-weight:
        700;

    color:
        var(--primary);

}


/* =========================================================
   RESULT BAR
========================================================= */

.result-bar {

    margin:
        25px 0 18px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

}


.result-bar strong {

    font-size:
        14px;

}


.result-bar span#resultInfo {

    color:
        var(--muted);

    font-size:
        12px;

    margin-left:
        8px;

}


.api-status {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    font-size:
        12px;

    color:
        var(--muted);

}


.status-dot {

    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        var(--accent);

}


.api-status.online .status-dot {

    background:
        var(--success);

}


.api-status.error .status-dot {

    background:
        var(--danger);

}


/* =========================================================
   DOCUMENT GRID
========================================================= */

.documents-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        18px;

}


.document-card {

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding:
        22px;

    box-shadow:
        var(--shadow);

    transition:
        .25s ease;

    display:
        flex;

    flex-direction:
        column;

}


.document-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow-hover);

    border-color:
        #cbd8ee;

}


.card-top {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

}


.card-icon {

    width:
        48px;

    height:
        48px;

    border-radius:
        13px;

    display:
        grid;

    place-items:
        center;

    background:
        var(--primary-light);

    font-size:
        22px;

}


.card-badge {

    padding:
        5px 8px;

    border-radius:
        50px;

    background:
        #eef7f0;

    color:
        var(--success);

    font-size:
        9px;

    font-weight:
        800;

}


.document-card h3 {

    margin-top:
        18px;

    font-size:
        18px;

    line-height:
        1.3;

}


.document-card p {

    margin-top:
        8px;

    color:
        var(--muted);

    font-size:
        13px;

    display:
        -webkit-box;

    -webkit-line-clamp:
        3;

    -webkit-box-orient:
        vertical;

    overflow:
        hidden;

}


.card-meta {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-top:
        16px;

}


.card-meta span {

    padding:
        5px 8px;

    background:
        #f5f7fa;

    border-radius:
        7px;

    color:
        #526070;

    font-size:
        10px;

    font-weight:
        700;

}


.card-tags {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        5px;

    margin-top:
        10px;

}


.card-tags span {

    color:
        var(--primary);

    font-size:
        10px;

}


.card-actions {

    margin-top:
        20px;

    padding-top:
        15px;

    border-top:
        1px solid var(--border);

    display:
        flex;

    gap:
        8px;

}


.card-actions a,
.card-actions button {

    flex:
        1;

    text-align:
        center;

    padding:
        9px;

    border-radius:
        8px;

    font-size:
        12px;

    font-weight:
        700;

}


.card-actions a {

    background:
        var(--primary);

    color:
        white;

}


.card-actions button {

    border:
        1px solid var(--border);

    background:
        white;

    color:
        var(--primary);

}


/* =========================================================
   LOADING
========================================================= */

.loading-state {

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding:
        70px 20px;

    text-align:
        center;

}


.loading-spinner {

    width:
        42px;

    height:
        42px;

    margin:
        0 auto 15px;

    border:
        4px solid #e7edf6;

    border-top-color:
        var(--primary);

    border-radius:
        50%;

    animation:
        spin .8s linear infinite;

}


@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }

}


.loading-state h3 {

    font-size:
        17px;

}


.loading-state p {

    color:
        var(--muted);

    font-size:
        13px;

}


/* =========================================================
   ERROR / EMPTY
========================================================= */

.error-state,
.empty-state {

    text-align:
        center;

    padding:
        65px 20px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

}


.error-icon,
.empty-state > div {

    font-size:
        38px;

}


.error-state h3,
.empty-state h3 {

    margin-top:
        10px;

}


.error-state p,
.empty-state p {

    color:
        var(--muted);

    margin:
        5px auto 18px;

    font-size:
        13px;

}


.error-state button,
.empty-state button {

    border:
        0;

    background:
        var(--primary);

    color:
        white;

    padding:
        10px 18px;

    border-radius:
        8px;

    font-weight:
        700;

}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {

    display:
        flex;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        6px;

    margin-top:
        30px;

}


.pagination button {

    min-width:
        38px;

    height:
        38px;

    border:
        1px solid var(--border);

    background:
        white;

    color:
        var(--text);

    border-radius:
        8px;

    font-weight:
        700;

}


.pagination button.active {

    background:
        var(--primary);

    color:
        white;

    border-color:
        var(--primary);

}


.pagination button:disabled {

    opacity:
        .4;

    cursor:
        not-allowed;

}


/* =========================================================
   HOW SECTION
========================================================= */

.how-section {

    background:
        white;

    padding:
        80px 0;

}


.centered {

    text-align:
        center;

}


.steps-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        18px;

    margin-top:
        35px;

}


.step-card {

    position:
        relative;

    padding:
        28px;

    border:
        1px solid var(--border);

    border-radius:
        16px;

    background:
        #fafcff;

}


.step-number {

    position:
        absolute;

    top:
        16px;

    right:
        18px;

    color:
        #d7e0ef;

    font-size:
        25px;

    font-weight:
        900;

}


.step-icon {

    font-size:
        28px;

}


.step-card h3 {

    margin-top:
        12px;

}


.step-card p {

    color:
        var(--muted);

    font-size:
        13px;

    margin-top:
        5px;

}


/* =========================================================
   NOTICE
========================================================= */

.notice-section {

    padding:
        45px 0;

}


.notice-box {

    display:
        flex;

    gap:
        18px;

    padding:
        22px;

    border:
        1px solid #f3dfae;

    background:
        #fffaf0;

    border-radius:
        15px;

}


.notice-icon {

    font-size:
        27px;

}


.notice-box h3 {

    font-size:
        16px;

}


.notice-box p {

    color:
        #6b5b35;

    font-size:
        13px;

    margin-top:
        5px;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    background:
        #071f4d;

    color:
        #dbeafe;

    margin-top:
        20px;

}


.footer-grid {

    padding:
        55px 0;

    display:
        grid;

    grid-template-columns:
        1.5fr repeat(3,1fr);

    gap:
        35px;

}


.footer-brand {

    font-size:
        20px;

    font-weight:
        800;

}


.footer-grid p {

    margin-top:
        10px;

    color:
        #9fb5d7;

    font-size:
        13px;

    max-width:
        330px;

}


.footer-grid h4 {

    color:
        white;

    margin-bottom:
        12px;

}


.footer-grid a {

    display:
        block;

    color:
        #a9bddc;

    font-size:
        13px;

    margin-top:
        7px;

}


.footer-grid a:hover {

    color:
        white;

}


.footer-bottom {

    border-top:
        1px solid rgba(255,255,255,.1);

}


.footer-bottom .container {

    min-height:
        58px;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        15px;

    color:
        #9fb5d7;

    font-size:
        11px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .documents-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .filter-row {
        grid-template-columns:
            repeat(2,1fr);
    }

    .reset-btn {
        align-self:
            stretch;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

}


@media (max-width: 720px) {

    .gov-strip-inner {
        justify-content:
            center;
    }

    .gov-strip-inner span:last-child {
        display:
            none;
    }

    .header-inner {
        min-height:
            65px;
    }

    .main-nav {
        display:
            none;

        position:
            absolute;

        left:
            16px;

        right:
            16px;

        top:
            70px;

        padding:
            10px;

        background:
            white;

        border:
            1px solid var(--border);

        border-radius:
            13px;

        box-shadow:
            var(--shadow);

        flex-direction:
            column;

        align-items:
            stretch;

    }

    .main-nav.open {
        display:
            flex;
    }

    .main-nav a {
        padding:
            11px;
    }

    .menu-btn {
        display:
            grid;

        place-items:
            center;
    }

    .hero-inner {
        padding:
            55px 0;
    }

    .hero h1 {
        font-size:
            40px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .documents-grid {
        grid-template-columns:
            1fr;
    }

    .filter-row {
        grid-template-columns:
            1fr;
    }

    .search-input-wrap {
        flex-wrap:
            wrap;
    }

    .search-input-wrap input {
        min-width:
            180px;
    }

    .search-input-wrap button {
        width:
            100%;
    }

    .result-bar {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .steps-grid {
        grid-template-columns:
            1fr;
    }

    .footer-grid {
        grid-template-columns:
            1fr;
    }

    .footer-bottom .container {
        flex-direction:
            column;

        justify-content:
            center;

        padding:
            15px 0;

        text-align:
            center;
    }

}


@media (max-width: 420px) {

    .container {
        width:
            min(
                calc(100% - 22px),
                var(--container)
            );
    }

    .brand small {
        display:
            none;
    }

    .hero h1 {
        font-size:
            34px;
    }

    .hero-content > p {
        font-size:
            15px;
    }

    .stats-grid {
        gap:
            8px;
    }

    .stat-card {
        padding:
            14px;
    }

    .stat-card strong {
        font-size:
            20px;
    }

}