﻿/* ==========================================================
   accessibility.css  -  Accessibility Tools panel (card style)
   Load AFTER layout.css so these rules override the old ones.
   ========================================================== */

:root {
    --acc-primary: #2b1a6e; /* icon + text accent (deep purple) */
    --acc-border: #c9c9d1;
    --acc-hover-bg: #f3f0fb;
    --acc-active-check: #0a8a1f; /* green tick */
    --acc-radius: 8px;
}

.b-acc-wrap {
    position: relative;
}

    /* ---- Toggle button (person icon) ---- */
    .b-acc-wrap .b-acc-toggle:hover,
    .b-acc-wrap .b-acc-toggle:focus-visible,
    .b-acc-wrap .b-acc-toggle[aria-expanded="true"] {
        background: #e6e2f5;
        color: var(--acc-primary);
    }

    /* ---- Panel ---- */
    .b-acc-wrap .b-acc-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        width: 440px;
        max-width: 92vw;
        max-height: 80vh;
        overflow-y: auto;
        padding: 14px 16px 18px;
        background: #fff;
        color: #222;
        border: 1px solid #e3e3e8;
        border-radius: 10px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
        z-index: 2000;
        text-align: left;
        font-family: "Inter", Arial, sans-serif;
    }

        .b-acc-wrap .b-acc-dropdown.b-panel-hidden {
            display: none;
        }

/* ---- Header ---- */
.b-acc-panel-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

.b-acc-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #555;
    cursor: pointer;
}

    .b-acc-close:hover,
    .b-acc-close:focus-visible {
        background: #eee;
    }

/* ---- Section headings ---- */
.b-acc-heading {
    margin: 14px 0 6px 2px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
}

/* ---- 3-column grid ---- */
.b-acc-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* ---- Option button (card) ---- */
.b-acc-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 82px;
    padding: 10px 6px;
    background: #fff;
    color: #222;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

    .b-acc-btn:hover {
        background: var(--acc-hover-bg);
        border-color: var(--acc-primary);
    }

    .b-acc-btn:focus-visible {
        outline: 2px solid var(--acc-primary);
        outline-offset: 2px;
    }

/* icon area */
.b-acc-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-size: 22px;
    color: var(--acc-primary);
    line-height: 1;
}

    .b-acc-ico.b-acc-txt { /* A+  A-  A */
        font-size: 24px;
        font-weight: 400;
        letter-spacing: -1px;
    }

.b-acc-lbl {
    display: block;
}

/* ---- Active state: green tick badge (top-right) ---- */
.b-acc-btn.active {
    border-color: var(--acc-border);
    box-shadow: none;
}

    .b-acc-btn.active::after {
        content: "\2713";
        position: absolute;
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--acc-active-check);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
        box-shadow: 0 0 0 2px #fff;
    }
/* keep badge from being clipped */
.b-acc-row {
    overflow: visible;
}

/* ---- Reset button: full width under "Others" ---- */
.b-acc-btn.b-acc-reset {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 40px;
    gap: 8px;
    color: var(--acc-primary);
    font-weight: 500;
}

    .b-acc-btn.b-acc-reset .b-acc-ico {
        height: auto;
        font-size: 15px;
    }

    .b-acc-btn.b-acc-reset.active::after {
        display: none;
    }

/* ---- Mobile ---- */
@media (max-width: 575.98px) {
    .b-acc-wrap {
        position: static;
    }

        .b-acc-wrap .b-acc-dropdown {
            position: fixed;
            top: 60px;
            left: 4vw;
            right: 4vw;
            width: auto;
            max-width: none;
        }

    .b-acc-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   GIGW 3.0 / WCAG 1.4.3 - Text contrast fixes (>= 4.5:1)
   ========================================================== */
:root {
    --gigw-text: #150202;      /* Deep Earthy Brown */
    --gigw-link: #1f3fb0;      /* 7.4:1 on #e9ecef, 8.3:1 on #f8f9fe */
    --gigw-link-hover: #12286e;
    --gigw-primary: #0b5cad;   /* white on this = 6.67:1 */
    --gigw-primary-hover: #084a8c;
    --gigw-muted: #495057;     /* 6.9:1 on #e9ecef, 7.8:1 on #f8f9fe */
}

/* Links (default argon link colour #5e72e4 was 3.5:1 on grey/linen) */
a { color: var(--gigw-link); }
a:hover, a:focus { color: var(--gigw-link-hover); }
.breadcrumb-item a { color: var(--gigw-link); }

/* Muted / lead / primary text */
.text-muted, .lead.text-muted, p.text-muted.lead { color: var(--gigw-muted) !important; }
.text-primary { color: var(--gigw-link) !important; }
a.text-primary:hover, a.text-primary:focus { color: var(--gigw-link-hover) !important; }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: var(--gigw-muted); }
h4.text-primary, h3.text-primary, h5.text-primary { color: var(--gigw-link) !important; }

/* Primary buttons: white text on #007bff was 3.98:1 */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    color: #fff;
    background-color: var(--gigw-primary);
    border-color: var(--gigw-primary);
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: var(--gigw-primary-hover);
    border-color: var(--gigw-primary-hover);
}
.btn-outline-primary { color: var(--gigw-link); border-color: var(--gigw-link); }
.btn-outline-primary:hover, .btn-outline-primary:focus { color: #fff; background-color: var(--gigw-link); border-color: var(--gigw-link); }


/* ==========================================================
   GIGW 5.2.15 / 5.2.17 - Resize 200% and Reflow at 320px
   ========================================================== */
.btn { white-space: normal; }               /* argon sets nowrap -> long FAQ buttons forced 628px width */
img, svg, video, canvas, iframe { max-width: 100%; }
img { height: auto; }
body { overflow-wrap: break-word; }
main, .container, .container-fluid, .row > [class*="col"] { min-width: 0; }
.table-responsive, .dataTables_wrapper { max-width: 100%; overflow-x: auto; }
pre, code { white-space: pre-wrap; word-break: break-word; }

@media (max-width: 575.98px) {
    #b-accessibility { flex-wrap: wrap; row-gap: .25rem; }
    #b-accessibility .b-ministryname { min-width: 0; flex: 1 1 100%; }
    #b-accessibility .b-acc-icons { margin-left: 0 !important; flex-wrap: wrap; }
    #b-header { flex-wrap: wrap; gap: .75rem; }
    #b-header .b-header-brand { flex: 1 1 100%; flex-wrap: wrap; row-gap: .5rem; }
    #b-header .b-header-text { margin-left: 0; flex: 1 1 100%; }
    #b-header .b-header-search { flex: 1 1 100%; min-width: 0; margin-left: 0; }
    #b-header .b-header-logo { flex: 1 1 100%; }
    .navbar .dropdown-menu { min-width: 0; width: 100%; }
    .footer-bs .row { margin-left: 0; margin-right: 0; }
    .captcha { max-width: 100%; }
}

/* ==========================================================
   DBIM v3 - Noto Sans typeface (4.1, 4.2) and type scale (4.3)
   ========================================================== */
:root {
    --b-font: "Noto Sans", "Noto Sans Devanagari", sans-serif;
}
html, body,
body :is(h1, h2, h3, h4, h5, h6, p, a, span, div, li, ul, ol, td, th, label, small, strong, em, b,
         button, input, select, textarea, legend, nav, footer, header, main, section, article, blockquote, dt, dd):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="fa-"]):not([class*=" fa-"]):not([class*="ni-"]):not(.glyphicon) {
    font-family: "Noto Sans", "Noto Sans Devanagari", sans-serif;
}
code, pre, kbd, samp { font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* Type scale: desktop 36/24/20/16(14), small 12  |  mobile 24/20/16/14, small 12 */
#main h1, h1 { font-size: var(--fs-h1, 2.25rem); }
#main h2, h2 { font-size: var(--fs-h2, 1.5rem); }
#main h3, h3 { font-size: var(--fs-h3, 1.25rem); }
.footer-bs h2, .footer-bs .b-footer-title { font-size: var(--fs-h2, 1.5rem); }
small, .small { font-size: .75rem !important; }   /* 12px */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Language selector (अ | A) */
.b-lang-switch { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .4rem; font-weight: 700; }
.b-lang-switch a { color: inherit; text-decoration: none; padding: .1rem .3rem; border-radius: 4px; }
.b-lang-switch a:hover, .b-lang-switch a:focus { text-decoration: underline; outline: 2px solid currentColor; outline-offset: 1px; }
.b-lang-wrap { display: flex; align-items: center; }



