/* ── schemes.css ── */

body {
    font-family: 'Poppins', sans-serif;
    background: var(--pg);
    margin: 0; padding-top: 0;
    color: var(--t1); font-size: 14px; line-height: 1.6;
}

/* header overrides — subpage: always solid white, always dark text */
.ireda-header { background: var(--white) !important; box-shadow: 0 2px 20px rgba(30,58,138,.08) !important; }
.header-bg-overlay { background: var(--white) !important; backdrop-filter: none !important; opacity: 1 !important; }
.ireda-header .nav-link,
.ireda-header .glass-btn { color: var(--blue) !important; text-shadow: none !important; }
.ireda-header .utility-link,
.ireda-header .utility-lang-btn,
.ireda-header .utility-font-btn { color: var(--t3) !important; }
.ireda-header .utility-divider { color: var(--border) !important; }
.ireda-header .col-lg-2 img { filter: none !important; opacity: 1 !important; }

/* ── CARD ── */
.schemes-card {
    background: var(--white);
    border-radius: var(--r1);
    box-shadow: var(--s2);
    border: 1px solid rgba(37,99,235,.05);
    overflow: hidden;
}
.schemes-card::before {
    content: ''; display: block; height: 4px; background: var(--G);
}

/* card header */
.schemes-card-header {
    display: flex; align-items: center; gap: .9rem;
    padding: 1.2rem 1.6rem;
    background: var(--G);
}
.schemes-header-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--white); flex-shrink: 0;
}
.schemes-header-title {
    font-size: .92rem; font-weight: 800; color: var(--white); line-height: 1.2;
}
.schemes-header-sub {
    font-size: .72rem; color: rgba(255,255,255,.65); margin-top: .1rem;
}
.schemes-count-pill {
    margin-left: auto;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--white); border-radius: 20px;
    font-size: .68rem; font-weight: 700;
    padding: .22rem .9rem; letter-spacing: .4px;
    white-space: nowrap; flex-shrink: 0;
}

/* ── TABLE ── */
.schemes-table-wrap { overflow-x: auto; }

.schemes-table {
    width: 100%; border-collapse: collapse; font-size: .88rem;
}
.schemes-table thead th {
    background: var(--xpale); color: var(--t1);
    padding: .7rem 1.2rem; font-size: .68rem; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    text-align: left; border-bottom: 2px solid var(--pale);
}
.sch-sno { width: 70px; text-align: center; }
.sch-dl  { width: 200px; }

.sch-row { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.sch-row:last-child { border-bottom: none; }
.sch-row:hover { background: var(--xpale); }

.sch-row td { padding: .85rem 1.2rem; vertical-align: middle; }
.sch-sno { color: var(--t3); font-weight: 600; font-size: .82rem; text-align: center; }
.sch-name { color: var(--t2); line-height: 1.55; font-size: .88rem; }
.sch-dl   { vertical-align: middle; }

/* single download button */
.sch-dl-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--G); color: var(--white);
    border-radius: 7px; padding: .38rem .9rem;
    font-size: .72rem; font-weight: 700;
    text-decoration: none; transition: var(--t);
    box-shadow: 0 2px 8px rgba(30,58,138,.18);
    white-space: nowrap;
}
.sch-dl-btn:hover { opacity: .88; transform: translateY(-1px); color: var(--white); }
.sch-dl-btn:focus-visible { outline: 3px solid var(--mid); outline-offset: 2px; }
.sch-dl-btn i { font-size: .72rem; }

/* multiple download buttons (schemes 2 & 3) */
.sch-multi-dl {
    display: flex; flex-direction: column; gap: .45rem;
}
.sch-dl-btn--sm {
    font-size: .68rem; padding: .3rem .75rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .schemes-card-header { flex-wrap: wrap; }
    .schemes-count-pill  { margin-left: 0; }
    .schemes-table th, .schemes-table td { padding: .65rem .85rem; }
    .sch-dl  { width: 150px; }
}
@media (max-width: 576px) {
    .schemes-table { font-size: .8rem; }
    .sch-dl-btn { font-size: .68rem; padding: .32rem .7rem; }
}
@media print {
    .schemes-card { box-shadow: none; border: 1px solid #ccc; }
    .sch-dl-btn { background: none; color: var(--blue); box-shadow: none; border: 1px solid var(--blue); }
}