/* Government listing pages (/sarkari-result, /latestjob, /results, /admitcard, /answerkey,
   /syllabus, /admission, /certificateverification, /important, /upcomming).
   Markup: Views/Shared/_GovListPage.cshtml. Colors are tokens on .glp so the dark theme
   (html[data-theme="dark"], toggled in _jobheader.cshtml) only has to swap the tokens. */

.glp {
    --glp-red: #d9232d;
    --glp-red-dark: #a8171f;
    --glp-red-soft: #fdecee;
    --glp-bg: #f6f7f9;
    --glp-card: #fff;
    --glp-text: #1f2328;
    --glp-muted: #5f6873;
    --glp-faint: #8a929b;
    --glp-line: #eceef1;
    --glp-hover: #fff5f5;
    --glp-visited: #6b5b95;
    --glp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --glp-radius: 14px;
    --glp-heading: 'Montserrat', 'Montserrat Fallback', sans-serif;
    background: var(--glp-bg);
    color: var(--glp-text);
    padding-bottom: 40px;
}

html[data-theme="dark"] .glp {
    --glp-red-soft: rgba(217, 35, 45, .18);
    --glp-bg: #0f172a;
    --glp-card: #1e293b;
    --glp-text: #f1f5f9;
    --glp-muted: #cbd5e1;
    --glp-faint: #94a3b8;
    --glp-line: #334155;
    --glp-hover: #243349;
    --glp-visited: #c4b5fd;
    --glp-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---------- Breadcrumb ---------- */
.glp-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--glp-faint);
    margin: 18px 0 12px;
}

    .glp .glp-crumbs a {
        color: var(--glp-muted);
    }

        .glp .glp-crumbs a:hover {
            color: var(--glp-red);
            text-decoration: none;
        }

    .glp-crumbs span {
        color: var(--glp-text);
        font-weight: 600;
    }

/* ---------- Hero ---------- */
.glp-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 26px 28px;
    border-radius: var(--glp-radius);
    background: linear-gradient(135deg, #e0313a 0%, #c41e27 45%, #9c141c 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(168, 23, 31, .25);
}

    /* Two soft rings for depth; purely decorative. */
    .glp-hero::before,
    .glp-hero::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        border: 34px solid rgba(255, 255, 255, .06);
        pointer-events: none;
    }

    .glp-hero::before {
        width: 260px;
        height: 260px;
        right: -70px;
        top: -110px;
    }

    .glp-hero::after {
        width: 180px;
        height: 180px;
        right: 120px;
        bottom: -120px;
    }

.glp-hero-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 1.6rem;
}

.glp-hero-text {
    flex: 1 1 320px;
    min-width: 0;
    position: relative;
}

    .glp-hero-text h1 {
        font-family: var(--glp-heading);
        font-weight: 800;
        font-size: 1.75rem;
        line-height: 1.25;
        color: #fff;
        margin: 0 0 6px;
    }

    .glp-hero-text p {
        margin: 0;
        font-size: .95rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, .88);
    }

.glp-hero-meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.glp-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .8rem;
    white-space: nowrap;
}

    .glp-pill strong {
        font-size: .95rem;
    }

.glp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
    animation: glp-pulse 2s infinite;
}

@keyframes glp-pulse {
    70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .glp-dot { animation: none; }
}

/* ---------- Category strip ---------- */
.glp-tabs {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 2px 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .glp-tabs::-webkit-scrollbar {
        display: none;
    }

.glp-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--glp-card);
    border: 1px solid var(--glp-line);
    color: var(--glp-muted) !important;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

    .glp-tab i {
        color: var(--glp-red);
    }

    .glp-tab:hover {
        border-color: var(--glp-red);
        color: var(--glp-red) !important;
        text-decoration: none;
    }

    .glp-tab.is-active {
        background: var(--glp-red);
        border-color: var(--glp-red);
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(217, 35, 45, .3);
    }

        .glp-tab.is-active i {
            color: #fff;
        }

.glp-search {
    margin-top: 12px;
}

.glp-body {
    margin-top: 20px;
}

/* ---------- List card ---------- */
.glp-card {
    background: var(--glp-card);
    border: 1px solid var(--glp-line);
    border-radius: var(--glp-radius);
    box-shadow: var(--glp-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.glp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glp-line);
}

.glp-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--glp-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--glp-text);
}

    .glp-card-title i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: var(--glp-red-soft);
        color: var(--glp-red);
        font-size: .95rem;
    }

.glp-status {
    margin: 4px 0 0 42px;
    font-size: .78rem;
    color: var(--glp-faint);
}

.glp-filter {
    position: relative;
    flex: 0 1 280px;
    margin: 0;
}

    .glp-filter[hidden] {
        display: none;
    }

    .glp-filter i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--glp-faint);
        font-size: .85rem;
    }

    .glp-filter input {
        width: 100%;
        height: 40px;
        padding: 0 12px 0 34px;
        border-radius: 10px;
        border: 1px solid var(--glp-line);
        background: var(--glp-bg);
        color: var(--glp-text);
        font-size: .88rem;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }

        .glp-filter input:focus {
            border-color: var(--glp-red);
            background: var(--glp-card);
            box-shadow: 0 0 0 3px rgba(217, 35, 45, .15);
        }

.glp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

    .glp-list > li {
        border-bottom: 1px solid var(--glp-line);
    }

        .glp-list > li:last-child {
            border-bottom: none;
        }

        .glp-list > li[hidden] {
            display: none;
        }

    .glp-list a {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 12px 20px;
        color: var(--glp-text);
        transition: background .12s ease;
    }

        .glp-list a:hover,
        .glp-list a:focus-visible {
            background: var(--glp-hover);
            text-decoration: none;
        }

.glp-num {
    flex: 0 0 auto;
    min-width: 2.4em;
    padding-top: 1px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--glp-faint);
    font-variant-numeric: tabular-nums;
}

.glp-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .93rem;
    line-height: 1.5;
    color: var(--glp-text);
    overflow-wrap: anywhere;
}

.glp-list a:hover .glp-title {
    color: var(--glp-red);
}

/* Lets people see which notices they have already opened. */
.glp-list a:visited .glp-title {
    color: var(--glp-visited);
}

/* The row's arrow (fa-chevron-right), drawn here instead of an <i> in each of 500+ rows. */
.glp-list a::after {
    content: "\f054";
    font-family: FontAwesome;
    flex: 0 0 auto;
    padding-top: 4px;
    font-size: .7rem;
    line-height: 1.5;
    color: var(--glp-faint);
    transition: transform .15s ease, color .15s ease;
}

.glp-list a:hover::after {
    color: var(--glp-red);
    transform: translateX(3px);
}

.glp-empty {
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    color: var(--glp-muted);
    font-size: .92rem;
}

    .glp-empty[hidden] {
        display: none;
    }

.glp-more-wrap {
    padding: 0 20px;
}

.glp-more {
    display: block;
    width: 100%;
    margin: 4px 0 16px;
    padding: 11px;
    border-radius: 10px;
    border: 1px dashed var(--glp-red);
    background: var(--glp-red-soft);
    color: var(--glp-red);
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .glp-more:hover {
        background: var(--glp-red);
        color: #fff;
    }

    .glp-more[hidden] {
        display: none;
    }

/* ---------- About + FAQ ---------- */
.glp-info {
    background: var(--glp-card);
    border: 1px solid var(--glp-line);
    border-radius: var(--glp-radius);
    box-shadow: var(--glp-shadow);
    padding: 22px 24px;
    margin-bottom: 20px;
}

    .glp-info h2 {
        font-family: var(--glp-heading);
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--glp-text);
        margin: 0 0 12px;
    }

    .glp-info p {
        font-size: .93rem;
        line-height: 1.75;
        color: var(--glp-muted);
        margin: 0 0 14px;
    }

.glp-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

    .glp-points li {
        display: flex;
        gap: 10px;
        font-size: .92rem;
        line-height: 1.6;
        color: var(--glp-muted);
    }

    .glp-points i {
        flex: 0 0 auto;
        margin-top: 4px;
        color: var(--glp-red);
    }

.glp-faq details {
    border-top: 1px solid var(--glp-line);
}

.glp-faq summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 14px 32px 14px 0;
    font-weight: 700;
    font-size: .93rem;
    color: var(--glp-text);
}

    .glp-faq summary::-webkit-details-marker {
        display: none;
    }

    .glp-faq summary::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        line-height: 22px;
        text-align: center;
        border-radius: 50%;
        background: var(--glp-red-soft);
        color: var(--glp-red);
        font-size: 1rem;
        font-weight: 700;
    }

.glp-faq details[open] summary::after {
    content: "\2212";
}

.glp-faq details p {
    margin: 0 0 14px;
}

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
    .glp-hero {
        padding: 20px 18px;
        gap: 14px;
    }

    .glp-hero-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
        font-size: 1.3rem;
    }

    .glp-hero-text h1 {
        font-size: 1.35rem;
    }

    .glp-card-head {
        padding: 14px 16px;
    }

    .glp-filter {
        flex: 1 1 100%;
    }

    .glp-list a {
        padding: 12px 16px;
        gap: 10px;
    }

    .glp-info {
        padding: 18px 16px;
    }
}
