/* =====================================================
   SARKARI KAAM
   ADMIT CARD
   PREMIUM GOVERNMENT PORTAL UI
===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {

    --primary: #173f73;
    --primary-dark: #0d2c52;

    --accent: #e87516;

    --success: #168653;
    --danger: #c62828;

    --text: #172033;
    --muted: #657083;

    --bg: #f4f7fb;
    --card: #ffffff;

    --border: #e1e7ef;

    --shadow:
        0 10px 35px rgba(25, 55, 90, 0.08);

    --radius: 18px;
}


/* BODY */

body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        linear-gradient(
            180deg,
            #eef4fa 0%,
            #f8fafc 45%,
            #f4f7fb 100%
        );

    line-height: 1.6;

    min-height: 100vh;
}


/* LINKS */

a {
    text-decoration: none;
    color: inherit;
}


/* =====================================================
   TOPBAR
===================================================== */

.topbar {

    position: sticky;
    top: 0;

    z-index: 100;

    background:
        rgba(255,255,255,0.94);

    backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid var(--border);
}


.topbar-inner {

    max-width: 1200px;

    margin: auto;

    min-height: 70px;

    padding:
        0 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 20px;

    font-weight: 800;

    color: var(--primary);
}


.logo-symbol {

    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    background:
        #edf4fb;

    border-radius: 12px;

    font-size: 21px;
}


.home-btn {

    padding:
        9px 15px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    font-weight: 700;

    color: var(--primary);

    background: white;

    transition: 0.2s;
}


.home-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.08);
}


/* =====================================================
   CONTAINER
===================================================== */

.page-container {

    width: min(
        1200px,
        calc(100% - 32px)
    );

    margin:
        30px auto 60px;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    display: flex;

    gap: 28px;

    align-items: center;

    padding: 42px;

    color: white;

    border-radius:
        24px;

    background:
        linear-gradient(
            135deg,
            #103761,
            #1b548f
        );

    box-shadow:
        0 18px 45px
        rgba(16,55,97,0.20);

    overflow: hidden;

    position: relative;
}


.hero::after {

    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    border-radius: 50%;

    right: -100px;

    top: -130px;

    background:
        rgba(255,255,255,0.06);
}


.hero-icon {

    width: 82px;

    height: 82px;

    min-width: 82px;

    display: grid;

    place-items: center;

    border-radius: 22px;

    background:
        rgba(255,255,255,0.13);

    font-size: 40px;
}


.hero-content {

    position: relative;

    z-index: 1;
}


.hero-badge {

    display: inline-flex;

    padding:
        5px 11px;

    border-radius: 999px;

    background:
        rgba(255,255,255,0.12);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 9px;
}


.hero h1 {

    font-size:
        clamp(30px, 5vw, 48px);

    line-height: 1.1;

    margin-bottom: 12px;
}


.hero p {

    max-width: 760px;

    color:
        rgba(255,255,255,0.86);

    font-size: 16px;
}


.hero-points {

    display: flex;

    flex-wrap: wrap;

    gap: 10px 18px;

    margin-top: 18px;

    font-size: 13px;

    font-weight: 700;
}


/* =====================================================
   FILTER
===================================================== */

.filter-panel {

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        190px
        190px
        auto;

    gap: 12px;

    margin-top: 22px;

    padding: 16px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);
}


.search-wrapper {

    display: flex;

    align-items: center;

    gap: 10px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    padding:
        0 14px;

    background:
        #fafbfd;
}


.search-icon {
    font-size: 18px;
}


.search-wrapper input {

    width: 100%;

    border: 0;

    outline: 0;

    background: transparent;

    min-height: 46px;

    font-size: 14px;

    color: var(--text);
}


.filter-panel select {

    min-height: 46px;

    padding:
        0 12px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: white;

    color: var(--text);

    font-weight: 600;

    outline: none;
}


.reset-btn {

    border: 0;

    padding:
        0 18px;

    border-radius: 12px;

    background:
        var(--primary);

    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}


.reset-btn:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-1px);
}


/* =====================================================
   STATS
===================================================== */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-top: 20px;
}


.stat-card {

    display: flex;

    align-items: center;

    gap: 13px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        16px;

    padding:
        18px;

    box-shadow:
        var(--shadow);
}


.stat-icon {

    width: 45px;

    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        #eef4fb;

    font-size: 21px;
}


.stat-card strong {

    display: block;

    font-size: 23px;

    color:
        var(--primary);
}


.stat-card span {

    display: block;

    color:
        var(--muted);

    font-size: 12px;

    font-weight: 600;
}


/* =====================================================
   RESULT HEADER
===================================================== */

.result-header {

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 15px;

    margin:
        30px 0 16px;
}


.result-header h2 {

    font-size: 25px;

    color:
        var(--primary);
}


.result-header p {

    color:
        var(--muted);

    font-size: 13px;
}


.result-header select {

    border:
        1px solid var(--border);

    border-radius: 10px;

    padding:
        10px 13px;

    background: white;

    font-weight: 600;

    outline: none;
}


/* =====================================================
   CARDS
===================================================== */

.admit-cards-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


.admit-card {

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    padding:
        20px;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s,
        box-shadow 0.2s;

    display: flex;

    flex-direction: column;
}


.admit-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 18px 42px
        rgba(20,50,80,0.13);
}


.card-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 8px;

    margin-bottom: 14px;
}


.category-badge {

    padding:
        5px 9px;

    border-radius:
        999px;

    background:
        #edf4fb;

    color:
        var(--primary);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;
}


.status-badge {

    padding:
        5px 9px;

    border-radius:
        999px;

    font-size: 11px;

    font-weight: 800;
}


.status-released {

    color:
        var(--success);

    background:
        #eaf8f1;
}


.status-upcoming {

    color:
        #9a6200;

    background:
        #fff5dc;
}


.status-closed {

    color:
        var(--danger);

    background:
        #fdecec;
}


.admit-card h3 {

    color:
        var(--primary);

    font-size: 18px;

    line-height: 1.35;

    margin-bottom: 9px;
}


.card-description {

    color:
        var(--muted);

    font-size: 13px;

    margin-bottom: 16px;
}


.info-list {

    display: grid;

    gap: 9px;

    padding:
        14px 0;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    margin-bottom: 15px;
}


.info-row {

    display: flex;

    justify-content: space-between;

    gap: 10px;

    font-size: 12px;
}


.info-row span:first-child {

    color:
        var(--muted);
}


.info-row strong {

    text-align: right;
}


.card-actions {

    display: flex;

    gap: 9px;

    margin-top: auto;
}


.download-btn {

    flex: 1;

    text-align: center;

    padding:
        11px;

    border-radius:
        11px;

    background:
        var(--primary);

    color: white;

    font-size: 13px;

    font-weight: 800;

    transition: 0.2s;
}


.download-btn:hover {

    background:
        var(--primary-dark);
}


.notification-btn {

    padding:
        11px 13px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    background: white;

    font-size: 14px;
}


/* =====================================================
   LOADING
===================================================== */

.loading-state {

    padding:
        70px 20px;

    text-align: center;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        18px;
}


.loader {

    width: 42px;

    height: 42px;

    margin:
        0 auto 15px;

    border:
        4px solid #e4eaf1;

    border-top-color:
        var(--primary);

    border-radius:
        50%;

    animation:
        spin 0.8s linear infinite;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }
}


.loading-state h3 {

    color:
        var(--primary);
}


.loading-state p {

    color:
        var(--muted);

    font-size: 13px;
}


/* =====================================================
   ERROR
===================================================== */

.error-state {

    text-align: center;

    padding:
        55px 20px;

    background:
        white;

    border:
        1px solid #f0d4d4;

    border-radius:
        18px;
}


.error-icon {

    font-size: 38px;

    margin-bottom: 10px;
}


.error-state h2 {

    color:
        var(--danger);
}


.error-state p {

    color:
        var(--muted);

    margin:
        8px auto 18px;

    max-width: 550px;
}


.error-state button {

    border: 0;

    background:
        var(--primary);

    color: white;

    padding:
        11px 20px;

    border-radius:
        10px;

    font-weight: 700;

    cursor: pointer;
}


/* =====================================================
   NO RESULTS
===================================================== */

.no-results {

    text-align: center;

    padding:
        65px 20px;

    background:
        white;

    border:
        1px solid var(--border);

    border-radius:
        18px;
}


.no-results > div {

    font-size: 40px;

    margin-bottom: 10px;
}


.no-results h2 {

    color:
        var(--primary);
}


.no-results p {

    color:
        var(--muted);

    margin: 7px 0 17px;
}


.no-results button {

    border: 0;

    background:
        var(--primary);

    color: white;

    padding:
        10px 18px;

    border-radius:
        10px;

    font-weight: 700;

    cursor: pointer;
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 24px;
}


.pagination button {

    min-width: 38px;

    min-height: 38px;

    padding:
        0 10px;

    border:
        1px solid var(--border);

    background:
        white;

    color:
        var(--primary);

    border-radius:
        9px;

    cursor: pointer;

    font-weight: 700;
}


.pagination button.active {

    background:
        var(--primary);

    color: white;

    border-color:
        var(--primary);
}


/* =====================================================
   INFORMATION
===================================================== */

.information-box {

    display: flex;

    gap: 18px;

    margin-top: 35px;

    padding:
        25px;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    background:
        white;

    box-shadow:
        var(--shadow);
}


.information-icon {

    font-size: 28px;
}


.information-box h2 {

    color:
        var(--primary);

    font-size: 21px;

    margin-bottom: 7px;
}


.information-box p,
.information-box li {

    color:
        var(--muted);

    font-size: 13px;
}


.information-box ul {

    margin-top: 10px;

    padding-left: 18px;
}


/* =====================================================
   DISCLAIMER
===================================================== */

.disclaimer {

    margin-top: 18px;

    padding:
        20px;

    border-radius:
        15px;

    background:
        #fff8e8;

    border:
        1px solid #f2dfad;
}


.disclaimer h3 {

    color:
        #875800;

    margin-bottom: 6px;
}


.disclaimer p {

    color:
        #725d35;

    font-size: 13px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background:
        #0e2948;

    color:
        white;

    margin-top: 50px;
}


.footer-inner {

    width: min(
        1200px,
        calc(100% - 32px)
    );

    margin: auto;

    padding:
        35px 0;

    display: flex;

    justify-content: space-between;

    gap: 30px;
}


.footer strong {

    font-size: 18px;
}


.footer p {

    color:
        rgba(255,255,255,0.65);

    font-size: 12px;

    margin-top: 5px;
}


.footer-links {

    display: flex;

    flex-wrap: wrap;

    gap: 10px 18px;

    align-content: center;
}


.footer-links a {

    color:
        rgba(255,255,255,0.8);

    font-size: 13px;
}


.footer-links a:hover {

    color: white;
}


.copyright {

    border-top:
        1px solid
        rgba(255,255,255,0.1);

    padding:
        15px;

    text-align: center;

    color:
        rgba(255,255,255,0.55);

    font-size: 11px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .admit-cards-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .filter-panel {

        grid-template-columns:
            1fr 1fr;
    }

    .search-wrapper {

        grid-column:
            1 / -1;
    }

    .reset-btn {

        min-height: 46px;
    }

    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .page-container {

        width:
            min(
                100% - 20px,
                1200px
            );

        margin-top: 15px;
    }

    .topbar-inner {

        min-height: 62px;

        padding:
            0 12px;
    }

    .logo {

        font-size: 17px;
    }

    .logo-symbol {

        width: 35px;

        height: 35px;
    }

    .hero {

        padding:
            27px 20px;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        border-radius:
            18px;
    }

    .hero-icon {

        width: 60px;

        height: 60px;

        min-width: 60px;

        font-size: 28px;

        border-radius:
            16px;
    }

    .hero h1 {

        font-size:
            30px;
    }

    .hero p {

        font-size:
            14px;
    }

    .hero-points {

        display:
            grid;

        gap: 5px;
    }

    .filter-panel {

        grid-template-columns:
            1fr;

        padding:
            12px;
    }

    .search-wrapper {

        grid-column:
            auto;
    }

    .stats-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 9px;
    }

    .stat-card {

        padding:
            13px;

        gap: 9px;
    }

    .stat-icon {

        width: 38px;

        height: 38px;

        font-size: 17px;
    }

    .stat-card strong {

        font-size:
            19px;
    }

    .stat-card span {

        font-size:
            10px;
    }

    .result-header {

        align-items:
            stretch;

        flex-direction:
            column;
    }

    .result-header select {

        width: 100%;
    }

    .admit-cards-grid {

        grid-template-columns:
            1fr;
    }

    .information-box {

        flex-direction:
            column;

        padding:
            19px;
    }

    .footer-inner {

        flex-direction:
            column;

        padding:
            28px 0;
    }

    .footer-links {

        gap:
            9px 15px;
    }
}


@media (max-width: 380px) {

    .stats-grid {

        grid-template-columns:
            1fr;
    }

    .card-actions {

        flex-direction:
            column;
    }

    .notification-btn {

        text-align:
            center;
    }
}