/* ════════════════════════════════════════════════════════════
   GOVT SCHEMES PAGE — Add to bottom of portal.css
════════════════════════════════════════════════════════════ */

/* Banner */
.banner-schemes {
    background: linear-gradient(155deg, #1A3A2A 0%, #2B5340 45%, #1E4A6A 100%);
}

/* Disclaimer strip */
.schemes-disclaimer {
    background: var(--gold-l);
    border-bottom: 1px solid #E8D8A0;
    padding: 14px 6%;
}

.sd-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sd-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px
}

.sd-inner p {
    font-size: 13px;
    color: var(--mid);
    line-height: 1.6;
}

.sd-inner p strong {
    color: var(--dark)
}

/* Search */
.schemes-search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.schemes-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-s);
    transition: border-color .2s, box-shadow .2s;
}

.schemes-search-box:focus-within {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(43, 83, 64, .10);
}

.schemes-search-box svg {
    color: var(--faint);
    flex-shrink: 0
}

.schemes-search-box input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14.5px;
    color: var(--dark);
    outline: none;
    padding: 0;
    box-shadow: none;
}

.schemes-search-box input::placeholder {
    color: var(--faint)
}

.schemes-search-clear {
    background: transparent;
    border: none;
    color: var(--faint);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.schemes-search-clear:hover {
    color: var(--terra)
}

/* Filter tabs */
.schemes-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.sft-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 8px 18px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--mid);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}

.sft-btn:hover {
    border-color: var(--forest);
    color: var(--forest);
    background: var(--forest-xl)
}

.sft-btn.active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest)
}

/* Result count */
.schemes-count {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    text-align: center;
}

.schemes-count strong {
    color: var(--forest)
}

/* Schemes list */
.schemes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scheme card */
.scheme-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-s);
    transition: box-shadow .22s;
}

.scheme-card:hover {
    box-shadow: var(--shadow-m)
}

/* Scheme header */
.scheme-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: background .18s;
    user-select: none;
}

.scheme-header:hover {
    background: var(--cream)
}

.scheme-header.active {
    background: var(--forest-xl)
}

.scheme-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 12px;
}

.scheme-header.active .scheme-icon {
    background: var(--white)
}

.scheme-header-text {
    flex: 1;
    min-width: 0
}

/* Category label colours */
.scheme-cat-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
}

.scheme-cat-health {
    background: #E8F5E9;
    color: #2E7D32
}

.scheme-cat-women {
    background: #FCE4EC;
    color: #C62828
}

.scheme-cat-education {
    background: #E3F2FD;
    color: #1565C0
}

.scheme-cat-social {
    background: #FFF3E0;
    color: #E65100
}

.scheme-cat-tribal {
    background: #E0F2F1;
    color: #00695C
}

.scheme-cat-employment {
    background: #F3E5F5;
    color: #6A1B9A
}

.scheme-cat-housing {
    background: #E8EAF6;
    color: #283593
}

.scheme-cat-agriculture {
    background: #F1F8E9;
    color: #33691E
}

.scheme-cat-startup {
    background: #FFF8E1;
    color: #F57F17
}

.scheme-title {
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 3px;
}

.scheme-tagline {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.scheme-toggle {
    flex-shrink: 0;
    color: var(--forest);
    transition: transform .3s;
    display: flex;
    align-items: center;
}

.scheme-toggle.open {
    transform: rotate(180deg)
}

/* Scheme body */
.scheme-body {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
}

.scheme-body.open {
    display: block
}

/* Benefit highlight */
.scheme-benefit {
    background: linear-gradient(135deg, var(--forest), var(--forest-m));
    color: var(--white);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0 18px;
    line-height: 1.5;
}

/* Scheme grid */
.scheme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.scheme-block {
    background: var(--cream);
    border-radius: 10px;
    padding: 14px 16px;
}

.scheme-block-title {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--forest);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scheme-block ul,
.scheme-block ol {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scheme-block li {
    font-size: 13.5px;
    color: var(--mid);
    line-height: 1.55;
}

.scheme-block ol li {
    color: var(--dark)
}

/* Source */
.scheme-source {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.scheme-source span {
    font-weight: 700;
    color: var(--mid)
}

.scheme-source a {
    color: var(--forest);
    font-weight: 700;
    text-decoration: underline
}

.scheme-source a:hover {
    color: var(--forest-m)
}

/* Need help strip */
.scheme-help-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--forest-xl);
    border: 1px solid #C0DECE;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--forest);
}

.scheme-help-btn {
    background: var(--forest);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s;
}

.scheme-help-btn:hover {
    background: var(--forest-m)
}

/* No results */
.schemes-no-results {
    text-align: center;
    padding: 56px 24px;
    background: var(--white);
    border: 1.5px dashed var(--border);
    border-radius: 16px;
}

.snr-icon {
    font-size: 48px;
    margin-bottom: 16px
}

.schemes-no-results h3 {
    font-family: 'Lora', serif;
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.schemes-no-results p {
    font-size: 14px;
    color: var(--muted)
}

/* Offices grid */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.office-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-s);
    transition: transform .2s, box-shadow .2s;
}

.office-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-m)
}

.oc-icon {
    font-size: 28px;
    margin-bottom: 10px
}

.office-card h3 {
    font-family: 'Lora', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.office-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px
}

.oc-link {
    display: inline-flex;
    align-items: center;
    background: var(--forest-xl);
    color: var(--forest);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: background .18s;
}

.oc-link:hover {
    background: var(--forest-l)
}

/* Responsive */
@media(max-width:960px) {
    .scheme-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .scheme-header {
        padding: 16px 16px;
        gap: 12px
    }

    .scheme-title {
        font-size: 14.5px
    }

    .scheme-body {
        padding: 0 16px 20px
    }

    .scheme-icon {
        width: 38px;
        height: 38px;
        font-size: 22px
    }

    .schemes-filter-tabs {
        gap: 6px
    }

    .sft-btn {
        font-size: 12px;
        padding: 6px 13px
    }

    .scheme-help-strip {
        flex-direction: column;
        align-items: flex-start
    }

    .scheme-help-btn {
        width: 100%;
        text-align: center
    }

    .offices-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:440px) {
    .offices-grid {
        grid-template-columns: 1fr
    }
}


.schemes-toolbar {
    margin-bottom: 20px;
}

.scheme-select {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--mid);
    min-width: 180px;
    outline: none;
}

.scheme-select:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(43, 83, 64, .10);
}

.schemes-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 24px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--mid);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s;
}

.page-btn:hover {
    border-color: var(--forest);
    color: var(--forest);
    background: var(--forest-xl);
}

.page-btn.active {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
}
.schemes-toolbar {
    margin-bottom: 22px;
}

.schemes-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.filter-control {
    position: relative;
    flex: 0 0 auto;
}

/* .filter-control-sort {
    min-width: 190px;
} */

.scheme-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 10px 42px 10px 16px;
    height: 42px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--mid);
    min-width: 170px;
    width: auto;
    max-width: 220px;
    outline: none;
    box-shadow: var(--shadow-s);
    cursor: pointer;
    line-height: 1.2;
}

.scheme-select:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(43, 83, 64, .10);
}

.filter-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--forest);
    border-bottom: 2px solid var(--forest);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    opacity: 0.85;
}

.sft-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 0 18px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--mid);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    text-decoration: none;
}

.sft-btn:hover {
    border-color: var(--forest);
    color: var(--forest);
    background: var(--forest-xl);
}

.sft-btn.active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

/* Hide ugly default arrow in IE/old Edge */
.scheme-select::-ms-expand {
    display: none;
}

@media (max-width: 900px) {
    .schemes-filter-tabs {
        justify-content: flex-start;
    }

    .scheme-select {
        min-width: 155px;
        max-width: 200px;
    }
}

@media (max-width: 640px) {
    .schemes-filter-tabs {
        gap: 8px;
        justify-content: center;
    }

    .filter-control {
        width: calc(50% - 4px);
        min-width: 0;
    }

    .filter-control-sort {
        width: 100%;
    }

    .scheme-select {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .sft-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }
}

@media (max-width: 420px) {

    .filter-control,
    .filter-control-sort,
    .sft-btn {
        width: 100%;
        flex: 1 1 100%;
    }
}