/* ==========================================================================
   Taraqqi Foundation - page styles
   --------------------------------------------------------------------------
   CSS that used to sit in <style> blocks inside the individual page templates,
   collected here so it is cached once and lives in one place. Every rule is
   namespaced to its own page, exactly as it was before.
   Loaded after style.css / responsive.css, so page level overrides still win.
   Generated 2026-10-18
   ========================================================================== */

/* ------------------------------------------------------------------
   api_lib_data.php
   ------------------------------------------------------------------ */
.lib-detail-empty {
    padding: 30px 20px; 
    font-size: 15px;
    color: #a94442;
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

    /* Scoped to the document panel so the rest of the page is untouched.
       The font is restated here because style.css sets "Cormorant Garamond"
       directly on div/td/label, which would otherwise win over inheritance. */
    .lib-doc,
    .lib-doc * {
        font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
        font-optical-sizing: auto;
    }

    .lib-doc .fa {
        font-family: FontAwesome;
    }

    .lib-doc {
        padding: 26px 30px 30px;
        color: #222;
        background: #fff;
    }

    /* ---- Document header ------------------------------------------------ */
    .lib-doc-head {
        text-align: center;
        padding-bottom: 18px;
    }

    .lib-doc-logo {
        display: block;
        width: 92px;
        height: 92px;
        margin: 0 auto 14px;
        object-fit: contain;
    }

    .lib-doc-title {
        margin: 0 0 4px;
        font-size: 23px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: -0.01em;
        color: #1f3864;
    }

    .lib-doc-sub {
        margin: 0;
        font-size: 14px;
        font-style: italic;
        color: #666;
        text-align: center;
    }

    /* Start date and monthly fee, the two facts kept outside the sections */
    .lib-doc-meta {
        margin-top: 12px;
    }

    .lib-doc-meta span {
        display: inline-block;
        margin: 4px 5px 0;
        padding: 6px 13px;
        font-size: 13.5px;
        color: #444;
        background: #f7f9fb;
        border: 1px solid #e5e9ee;
        border-radius: 20px;
    }

    .lib-doc-meta i {
        color: #1f3864;
        margin-right: 5px;
    }

    .lib-doc-meta strong {
        font-weight: 600;
        color: #1f3864;
    }

    /* ---- Sections ------------------------------------------------------- */
    .lib-doc-sec {
        margin-top: 26px;
    }

    .lib-doc-sec h4 {
        margin: 0 0 4px;
        padding-bottom: 7px;
        font-size: 19px;
        font-weight: 600;
        line-height: 1.3;
        color: #1f3864;
        border-bottom: 2px solid #1f3864;
    }

    /* Hindi section label, matching the printed document */
    .lib-doc-hi {
        margin: 0 0 12px;
        font-size: 14px;
        font-style: italic;
        font-weight: 500;
        color: #7f6000;
        text-align: left;
    }

    /* Admin written HTML. Only spacing and size are normalised so the editor's
       own bullets, headings and links keep working. */
    .lib-doc-body {
        font-size: 14.5px;
        line-height: 1.7;
        color: #222;
    }

    .lib-doc-body p {
        font-size: 14.5px !important;
        line-height: 1.7 !important;
        margin: 0 0 10px !important;
        text-align: left !important;
        color: #222;
    }

    .lib-doc-body p:last-child {
        margin-bottom: 0 !important;
    }

    .lib-doc-body ul,
    .lib-doc-body ol {
        margin: 0 0 10px;
        padding-left: 22px;
    }

    .lib-doc-body ul {
        list-style: disc;
    }

    .lib-doc-body ol {
        list-style: decimal;
    }

    .lib-doc-body li {
        margin-bottom: 8px;
        font-size: 14.5px;
        line-height: 1.65;
    }

    .lib-doc-body strong,
    .lib-doc-body b {
        font-weight: 600;
        color: #111;
    }

    .lib-doc-body h1,
    .lib-doc-body h2,
    .lib-doc-body h3,
    .lib-doc-body h4,
    .lib-doc-body h5 {
        margin: 14px 0 8px;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
        color: #1f3864;
    }

    .lib-doc-body a {
        color: #0563c1;
        text-decoration: underline;
        word-break: break-word;
    }

    .lib-doc-body img {
        max-width: 100%;
        height: auto;
    }

    .lib-doc-body table {
        width: 100%;
        margin-bottom: 10px;
    }

    .lib-doc-body table td,
    .lib-doc-body table th {
        padding: 6px 8px;
        border: 1px solid #e0e0e0;
        font-size: 14px;
    }

    .lib-doc-note {
        margin: 10px 0 0;
        font-size: 13.5px;
        font-style: italic;
        line-height: 1.7;
        color: #666;
        text-align: left;
    }

    .lib-doc-figure {
        margin: 14px 0 0;
    }

    .lib-doc-figure img {
        display: block;
        width: 100%;
        max-height: 340px;
        object-fit: cover;
        border: 1px solid #d8d8d8;
        border-radius: 4px;
    }

    @media (max-width: 600px) {
        .lib-doc {
            padding: 20px 18px 24px;
        }

        .lib-doc-logo {
            width: 74px;
            height: 74px;
        }

        .lib-doc-title {
            font-size: 19px;
        }

        .lib-doc-sec h4 {
            font-size: 17px;
        }

        .lib-doc-body ul,
        .lib-doc-body ol {
            padding-left: 20px;
        }

        .lib-doc-body,
        .lib-doc-body p,
        .lib-doc-body li {
            font-size: 14px !important;
        }
    }

/* ------------------------------------------------------------------
   web_aboutus.php
   ------------------------------------------------------------------ */

    /* ---- Team ----------------------------------------------------------
       The cards used to flip on hover, which hid the profile behind the
       photo and did nothing on a touch screen. Photo and text now sit side
       by side, and one switch changes every profile's language at once. */
    .team-section {
        font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
        padding: 10px 0 20px;
    }

    .team-section * { font-family: inherit; }
    .team-section .fa { font-family: FontAwesome; }
    .team-section [hidden] { display: none !important; }

    .team-section .tq-team-head {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 28px;
    }

    .team-section .tq-team-intro { flex: 1 1 420px; }

    .team-section .tq-team-intro h2 {
        margin: 0 0 10px;
        font-size: 26px;
        font-weight: 600;
        color: #0a3f38;
        text-align: left;
    }

    .team-section .tq-team-intro p {
        margin: 0;
        max-width: 860px;
        font-size: 16px;
        line-height: 1.7;
        color: #5a5f6b;
        text-align: left;
    }

    /* Sits to the right of the heading on a wide screen, and drops under it
       on a narrow one because the head is a wrapping flex row. */
    .team-section .tq-team-langs {
        display: inline-flex;
        flex: 0 0 auto;
        padding: 4px;
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 999px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .team-section .tq-team-lang {
        border: 0;
        background: transparent;
        padding: 7px 20px;
        border-radius: 999px;
        font-size: 14.5px;
        line-height: 1.2;
        color: #555;
        cursor: pointer;
        transition: background .25s ease, color .25s ease;
    }

    .team-section .tq-team-lang:hover { color: #0c5047; }

    .team-section .tq-team-lang.is-active {
        background: #0c5047;
        color: #fff;
        box-shadow: 0 2px 8px rgba(12, 80, 71, .28);
    }

    .team-section .tq-team-lang:focus-visible { outline: 2px solid #0c5047; outline-offset: 2px; }

    .team-section .tq-team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .team-section .tq-team-card {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e6e8ec;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
        transition: box-shadow .25s ease, border-color .25s ease;
    }

    .team-section .tq-team-card:hover {
        box-shadow: 0 14px 28px rgba(16, 24, 40, .10);
        border-color: #cfe0dc;
    }

    /* ---- Card header: photo + name -------------------------------------- */
    .team-section .tq-team-top {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px 20px;
        background: linear-gradient(180deg, #f3f8f6 0%, #fbfdfc 100%);
        border-bottom: 1px solid #e9edeb;
    }

    .team-section .tq-team-photo {
        flex: 0 0 96px;
        width: 96px;
        height: 96px;
        border-radius: 12px;
        overflow: hidden;
        background: #eef2f1;
        box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
    }

    .team-section .tq-team-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

    .team-section .tq-team-name {
        margin: 0;
        font-size: 18.5px;
        font-weight: 600;
        line-height: 1.35;
        color: #0a3f38;
        text-align: left;
    }

    /* ---- Profile body ---------------------------------------------------
       The text is free HTML from the database, so headings, paragraphs and
       lists all need a style of their own rather than inheriting the theme's. */
    .team-section .tq-team-body { padding: 18px 20px 20px; }

    .team-section .tq-team-bio,
    .team-section .tq-team-bio p,
    .team-section .tq-team-bio li {
        font-size: 15px;
        line-height: 1.75;
        color: #4a5160;
        text-align: left;
    }

    .team-section .tq-team-bio > :first-child { margin-top: 0; }
    .team-section .tq-team-bio > :last-child { margin-bottom: 0; }
    .team-section .tq-team-bio p { margin: 0 0 12px; }

    .team-section .tq-team-bio h2,
    .team-section .tq-team-bio h3,
    .team-section .tq-team-bio h4,
    .team-section .tq-team-bio h5,
    .team-section .tq-team-bio h6 {
        margin: 18px 0 8px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: #0c5047;
        text-align: left;
    }

    /* A short line that introduces a list - "Education:", "Expertise:" -
       is written as a plain paragraph, so give it the heading treatment too. */
    .team-section .tq-team-bio p:has(+ ul),
    .team-section .tq-team-bio p:has(+ ol) {
        margin: 16px 0 8px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: #0c5047;
    }

    .team-section .tq-team-bio ul,
    .team-section .tq-team-bio ol {
        margin: 0 0 12px;
        padding-left: 0;
        list-style: none;
    }

    .team-section .tq-team-bio ol { counter-reset: tq-li; }

    .team-section .tq-team-bio li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 6px;
    }

    .team-section .tq-team-bio ul > li::before {
        content: '';
        position: absolute;
        left: 4px;
        top: .68em;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #f0a81e;
    }

    .team-section .tq-team-bio ol > li::before {
        counter-increment: tq-li;
        content: counter(tq-li) '.';
        position: absolute;
        left: 0;
        top: 0;
        font-weight: 600;
        color: #0c5047;
    }

    .team-section .tq-team-bio strong,
    .team-section .tq-team-bio b { color: #16322d; font-weight: 600; }

    .team-section .tq-team-bio a { color: #0c5047; text-decoration: underline; }

    .team-section .tq-team-bio blockquote {
        margin: 14px 0;
        padding: 10px 0 10px 16px;
        border-left: 3px solid #f0a81e;
        border-radius: 0;
        background: none;
        font-size: 15px;
        font-style: italic;
        color: #3f4652;
    }

    .team-section .tq-team-bio blockquote p { margin: 0; font-style: italic; }

    .team-section .tq-team-bio em,
    .team-section .tq-team-bio i:not(.fa) { color: #5c6273; }

    /* Devanagari needs a little more room between lines than Latin */
    .team-section .tq-team-bio[data-lang="hi"],
    .team-section .tq-team-bio[data-lang="hi"] p,
    .team-section .tq-team-bio[data-lang="hi"] li { font-size: 15.5px; line-height: 1.9; }

    .team-section .tq-team-empty {
        grid-column: 1 / -1;
        margin: 0;
        padding: 24px;
        background: #f7f8fc;
        border-radius: 10px;
        text-align: center;
        color: #5c6273;
    }

    @media (max-width: 991px) {
        .team-section .tq-team-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 600px) {
        .team-section .tq-team-top { padding: 14px 16px; gap: 13px; }
        .team-section .tq-team-photo { flex-basis: 76px; width: 76px; height: 76px; }
        .team-section .tq-team-name { font-size: 17px; }
        .team-section .tq-team-body { padding: 15px 16px 17px; }
        .team-section .tq-team-bio,
        .team-section .tq-team-bio p,
        .team-section .tq-team-bio li { font-size: 14.5px; }
        .team-section .tq-team-intro h2 { font-size: 22px; }
        .team-section .tq-team-intro p { font-size: 15px; }
    }

    @media (prefers-reduced-motion: reduce) {
        .team-section .tq-team-card, .team-section .tq-team-lang { transition: none !important; }
    }

    .person-img {
        width: 300px;
        height: 200px;
        margin-bottom: 10px;
        object-fit: cover;
        cursor: pointer;
    }

    .bx_shadow {
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }

    .bx_shadow1 {
        box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    }

    .coordinator-list {
        margin-top: 20px;
    }

    .coordinator-list>div {
        margin-bottom: 20px;
    }

    .coordinator-card {
        display: flex;
        align-items: flex-start;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        padding: 18px;
        transition: .3s;
        height: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
        height: 105px;
    }

    .coordinator-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
        border-color: #337ab7;
    }

    .coordinator-card .serial {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: #337ab7;
        color: #fff;
        font-weight: 700;
        text-align: center;
        line-height: 45px;
        font-size: 16px;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .coordinator-info {
        flex: 1;
    }

    .coordinator-info h4 {
        margin: 0 0 10px;
        font-size: 18px;
        color: #337ab7;
        font-weight: 600;
    }

    .coordinator-info p {
        margin: 2px 0;
        color: #666;
        font-size: 16px;
        font-family: auto;
    }

    .coordinator-info .glyphicon {
        width: 20px;
        color: #5cb85c;
    }

    .coordinator-info a {
        color: #666;
        text-decoration: none;
        font-family: auto;
    }

    .coordinator-info a:hover {
        color: #337ab7;
    }

    @media (max-width:767px) {
        .coordinator-list>div {
            margin-bottom: 15px;
        }

        .coordinator-card {
            padding: 15px;
        }

        .coordinator-info h4 {
            font-size: 16px;
        }
    }

/* ------------------------------------------------------------------
   web_activity.php
   ------------------------------------------------------------------ */

    .moretext {
        display: none;
    }

/* ------------------------------------------------------------------
   web_contact.php
   ------------------------------------------------------------------ */


    .social-section {
        /* */
    }

    .social-icons a {
        font-size: 28px;
        border: 1px solid #444;
        margin: 0 15px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        padding: 5px 10px 1px 10px;
        border-radius: 5px;
    }

    .fb {
        color: #1877F2;
    }

    .inst {
        color: #E1306C;
    }

    .social-icons a:hover {
        transform: scale(1.2);
        opacity: 0.8;
    }

/* ------------------------------------------------------------------
   web_donate.php
   ------------------------------------------------------------------ */

    /* Everything is scoped to .donate-page so no other section is affected.
       style.css sets "Cormorant Garamond" directly on div/button/label/td, so a
       plain font-family would be overridden on children; the scoped universal
       selector outranks those element selectors. */
    .donate-page,
    .donate-page * {
        font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
        font-optical-sizing: auto;
    }

    .donate-page .fa { font-family: FontAwesome; }
    .donate-page [hidden] { display: none !important; }

    .donate-page .page-heading h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
    /* The theme renders these inline, which runs the English and Hindi
       introductions together into one paragraph. */
    .donate-page .page-heading span { display: block; font-size: 16px; line-height: 1.7; color: #555; }
    .donate-page .page-heading span + span { margin-top: 10px; }

    .donate-page .page-content p { font-size: 16px; line-height: 1.75; color: #3f3f3f; text-align: left; margin-bottom: 14px; }
    .donate-page .page-content li { font-size: 15.5px; line-height: 1.7; color: #3f3f3f; margin-bottom: 8px; }
    .donate-page .p_hindi { font-size: 15.5px !important; line-height: 1.85; color: #555; }

    .donate-page .dn-h2 {
        margin: 42px 0 2px;
        padding-bottom: 8px;
        font-size: 23px;
        font-weight: 600;
        color: #1f3864;
        border-bottom: 2px solid #1f3864;
        letter-spacing: -0.01em;
    }

    .donate-page .dn-hi-label {
        margin: 0 0 16px !important;
        font-size: 14px !important;
        font-style: italic;
        font-weight: 500;
        color: #7f6000;
    }

    .donate-page .dn-small { font-size: 13.5px !important; color: #777 !important; }
    .donate-page .dn-mono { font-family: "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .04em; }
    .donate-page .dn-mt { margin-top: 26px; }

    /* Key numbers */
    .donate-page .dn-stats { display: flex; flex-wrap: wrap; margin: 18px -8px 0; }
    .donate-page .dn-stat {
        flex: 1 1 190px;
        margin: 0 8px 16px;
        padding: 16px 18px;
        background: #f7f9fb;
        border: 1px solid #e5e9ee;
        border-left: 3px solid #337ab7;
        border-radius: 8px;
    }
    .donate-page .dn-stat strong { display: block; font-size: 21px; font-weight: 700; color: #1f3864; line-height: 1.3; }
    .donate-page .dn-stat span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: #666; }

    /* Where the money goes */
    .donate-page .dn-grid { display: flex; flex-wrap: wrap; margin: 4px -10px 0; }
    .donate-page .dn-card {
        --accent: #337ab7;
        flex: 1 1 280px;
        margin: 0 10px 20px;
        padding: 24px 22px;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 12px;
        box-shadow: 0 3px 14px rgba(0,0,0,.06);
        transition: transform .3s ease, box-shadow .3s ease;
    }
    .donate-page .dn-c1 { --accent: #337ab7; }
    .donate-page .dn-c2 { --accent: #fd6100; }
    .donate-page .dn-c3 { --accent: #5f9130; }
    .donate-page .dn-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
    .donate-page .dn-card-icon {
        display: flex; align-items: center; justify-content: center;
        width: 48px; height: 48px; margin-bottom: 14px;
        border-radius: 12px; font-size: 20px;
        color: #fff; background: var(--accent);
    }
    .donate-page .dn-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #1b1b1b; }
    .donate-page .dn-card p { margin: 0 !important; font-size: 15px !important; }

    /* Impact tiers */
    .donate-page .dn-impact { display: flex; flex-wrap: wrap; margin: 4px -8px 0; }
    .donate-page .dn-imp {
        flex: 1 1 210px;
        margin: 0 8px 16px;
        padding: 20px 18px;
        text-align: center;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 12px;
        transition: border-color .3s ease, box-shadow .3s ease;
    }
    .donate-page .dn-imp:hover { border-color: #337ab7; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
    .donate-page .dn-imp i { font-size: 22px; color: #337ab7; }
    .donate-page .dn-imp-amt { display: block; margin: 8px 0 6px; font-size: 24px; font-weight: 700; color: #1f3864; }
    .donate-page .dn-imp-for { display: block; font-size: 15px; font-weight: 600; color: #333; line-height: 1.45; }
    .donate-page .dn-imp-note { display: block; margin-top: 6px; font-size: 13px; color: #777; line-height: 1.5; }

    /* Placeholder warning */
    .donate-page .dn-placeholder-warn {
        margin: 4px 0 18px;
        padding: 14px 18px;
        background: #fff8e5;
        border: 1px solid #f0d9a0;
        border-left: 4px solid #e0a800;
        border-radius: 8px;
        font-size: 15px;
        line-height: 1.65;
        color: #6b5200;
    }
    .donate-page .dn-placeholder-warn i { margin-right: 6px; }

    /* Payment details */
    .donate-page .dn-pay { display: flex; flex-wrap: wrap; margin: 0 -10px; }
    .donate-page .dn-pay-box {
        flex: 1 1 320px;
        margin: 0 10px 20px;
        padding: 22px 24px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 3px 14px rgba(0,0,0,.05);
    }
    .donate-page .dn-pay-box h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: #1f3864; }
    .donate-page .dn-pay-box h3 i { margin-right: 8px; color: #337ab7; }

    /* ---- UPI QR code ---------------------------------------------------- */
    .donate-page .dn-qr {
        margin: 0;
        text-align: center;
    }

    /* .dn-pay-box h3 sets the margin shorthand, which zeroes the top margin
       .dn-mt is trying to add, so the following heading needs equal weight. */
    .donate-page .dn-pay-box h3.dn-mt { margin-top: 22px; }

    /* Separates the payment routes stacked inside one box */
    .donate-page .dn-sep {
        margin: 22px 0 0;
        border: 0;
        border-top: 1px solid #e2e8f0;
    }

    /* The QR fills its box: a bigger code is easier to scan across a room */
    .donate-page .dn-qr img {
        display: block;
        width: 100%;
        max-width: 420px;
        height: auto;
        margin: 0 auto 14px;
        padding: 6px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        /* A QR needs crisp edges; smoothing the source makes it harder to read */
        image-rendering: -webkit-optimize-contrast;
    }

    .donate-page .dn-qr figcaption {
        font-size: 13.5px;
        line-height: 1.6;
        color: #667;
        text-align: center;
    }

    .donate-page .dn-qr figcaption strong { color: #1f3864; }

    .donate-page .dn-pay-qr {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .donate-page .dn-bank { display: flex; flex-wrap: wrap; margin: 0; }
    .donate-page .dn-bank dt {
        flex: 0 0 40%; max-width: 40%;
        padding: 10px 12px 10px 0;
        font-size: 13.5px; font-weight: 600; color: #667;
        border-bottom: 1px solid #f1f1f1;
    }
    .donate-page .dn-bank dd {
        flex: 0 0 60%; max-width: 60%;
        margin: 0; padding: 10px 0;
        font-size: 15px; color: #1b1b1b; word-break: break-word;
        border-bottom: 1px solid #f1f1f1;
    }
    .donate-page .dn-val { font-weight: 600; }

    .donate-page .dn-copy {
        margin-left: 8px;
        padding: 3px 10px;
        font-size: 12px;
        color: #337ab7;
        background: #eef4fb;
        border: 1px solid #cfe0f2;
        border-radius: 5px;
        cursor: pointer;
        transition: background .2s ease, color .2s ease;
    }
    .donate-page .dn-copy:hover { background: #337ab7; color: #fff; }
    .donate-page .dn-copy.is-done { background: #2e7d32; border-color: #2e7d32; color: #fff; }

    /* After you pay */
    .donate-page .dn-after {
        margin-top: 24px;
        padding: 22px 24px;
        background: #f4f9f4;
        border: 1px solid #d8e8d8;
        border-radius: 12px;
    }
    .donate-page .dn-after h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: #2e5c2e; }
    .donate-page .dn-after h3 i { margin-right: 7px; }
    .donate-page .dn-after ol { margin: 0; padding-left: 20px; }

    /* Short "good to know" points */
    .donate-page .dn-notes {
        list-style: none;
        margin: 4px 0 0;
        padding: 16px 20px;
        background: #f7f9fb;
        border: 1px solid #e5e9ee;
        border-radius: 10px;
    }

    .donate-page .dn-notes li {
        display: flex;
        margin-bottom: 10px;
        font-size: 15px !important;
        line-height: 1.65;
        color: #3f3f3f;
    }

    .donate-page .dn-notes li:last-child { margin-bottom: 0; }

    .donate-page .dn-notes li i {
        flex-shrink: 0;
        width: 22px;
        margin-top: 4px;
        color: #337ab7;
    }

    .donate-page .dn-receipt {
        margin-top: 12px !important;
        color: #2e5c2e !important;
        font-style: italic;
    }

    .donate-page .dn-receipt i { margin-right: 6px; }

    .donate-page .dn-reg { list-style: none; padding: 0; margin: 14px 0 0; }
    .donate-page .dn-reg li {
        display: inline-block;
        margin: 0 10px 10px 0;
        padding: 9px 15px;
        background: #f7f9fb;
        border: 1px solid #e5e9ee;
        border-radius: 8px;
        font-size: 14px;
    }

    /* Do / do not */
    .donate-page .dn-two { display: flex; flex-wrap: wrap; margin: 0 -10px; }
    .donate-page .dn-do,
    .donate-page .dn-dont {
        flex: 1 1 320px;
        margin: 0 10px 20px;
        padding: 20px 22px;
        border-radius: 12px;
        border: 1px solid #e6e6e6;
    }
    .donate-page .dn-do { background: #f6fbf6; border-color: #d8e8d8; }
    .donate-page .dn-dont { background: #fdf6f6; border-color: #eedada; }
    .donate-page .dn-do h3, .donate-page .dn-dont h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
    .donate-page .dn-do h3 { color: #2e5c2e; }
    .donate-page .dn-dont h3 { color: #8a3b3b; }
    .donate-page .dn-do h3 i, .donate-page .dn-dont h3 i { margin-right: 7px; }
    .donate-page .dn-do ul, .donate-page .dn-dont ul { margin: 0; padding-left: 20px; }

    /* FAQ */
    .donate-page .dn-faq { border-top: 1px solid #eee; }
    .donate-page .dn-faq-item { border-bottom: 1px solid #eee; }
    .donate-page .dn-faq-q {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; padding: 16px 4px;
        background: none; border: 0; text-align: left;
        font-size: 16px; font-weight: 600; color: #1f3864;
        cursor: pointer; transition: color .2s ease;
    }
    .donate-page .dn-faq-q:hover { color: #337ab7; }
    .donate-page .dn-faq-q i { flex-shrink: 0; margin-left: 14px; font-size: 14px; color: #9bb0c7; transition: transform .3s ease; }
    .donate-page .dn-faq-q[aria-expanded="true"] i { transform: rotate(45deg); color: #337ab7; }
    .donate-page .dn-faq-a { padding: 0 4px 16px; }
    .donate-page .dn-faq-a p { margin: 0 !important; font-size: 15px !important; color: #4a4a4a !important; }

    /* Closing contact block */
    .donate-page .dn-contact {
        margin-top: 34px;
        padding: 26px 24px;
        text-align: center;
        background: #1f3864;
        border-radius: 12px;
    }
    .donate-page .dn-contact h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: #fff; }
    .donate-page .dn-contact p { color: #cdd7e6 !important; text-align: center !important; }
    .donate-page .dn-contact-links { margin-top: 14px !important; }
    .donate-page .dn-contact-links a {
        display: inline-block;
        margin: 6px 6px 0;
        padding: 9px 18px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.25);
        border-radius: 999px;
        color: #fff;
        font-size: 14.5px;
        text-decoration: none;
        transition: background .25s ease;
    }
    .donate-page .dn-contact-links a:hover { background: rgba(255,255,255,.24); }
    .donate-page .dn-contact-links a i { margin-right: 6px; }

    @media (max-width: 600px) {
        .donate-page .dn-h2 { font-size: 20px; }
        .donate-page .dn-bank dt, .donate-page .dn-bank dd { flex: 0 0 100%; max-width: 100%; }
        .donate-page .dn-bank dt { padding-bottom: 2px; border-bottom: 0; }
        .donate-page .dn-bank dd { padding-top: 0; }
        .donate-page .dn-pay-box, .donate-page .dn-do, .donate-page .dn-dont { padding: 18px; }
    }

    @media (prefers-reduced-motion: reduce) {
        .donate-page .dn-card, .donate-page .dn-imp, .donate-page .dn-faq-q i { transition: none !important; }
    }

/* ------------------------------------------------------------------
   web_f_lib.php
   ------------------------------------------------------------------ */

    /* ---- Typography ----------------------------------------------------
       style.css sets "Cormorant Garamond" directly on div/button/label/td,
       not only on html, so an inherited font-family would be overridden on
       every child div. The scoped universal selector outranks those element
       selectors. Only this page and its modal are affected. */
    .lib-page,
    .lib-page *,
    .lib-modal,
    .lib-modal * {
        font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
        font-optical-sizing: auto;
    }

    /* Font Awesome needs its own family back; the higher specificity here
       beats the rule above, so the icons keep rendering as icons. */
    .lib-page .fa,
    .lib-modal .fa {
        font-family: FontAwesome;
    }

    /* Poppins has a taller x-height than the serif, so the inherited theme
       sizes are toned down slightly to keep the same visual weight. */
    .lib-page .page-heading h1 {
        font-size: 27px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    .lib-page .page-heading span {
        font-size: 16px;
        line-height: 1.65;
        color: #5a5a5a;
    }

    /* ---- Listing -------------------------------------------------------- */
    #finishedLibs .lib-count {
        font-size: 15px;
        color: #555;
        margin: 0 0 18px;
        text-align: left;
    }

    #finishedLibs .lib-count i {
        color: #337ab7;
        margin-right: 6px;
    }

    /* Flex row keeps every card in a row the same height (Bootstrap 3 has no flex grid) */
    #finishedLibs .lib-grid {
        display: flex;
        flex-wrap: wrap;
        margin-left: -10px;
        margin-right: -10px;
    }

    #finishedLibs .lib-col {
        display: flex;
        float: none;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 22px;
    }

    #finishedLibs .lib-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
        transition: .3s;
        cursor: pointer;
    }

    #finishedLibs .lib-card:hover,
    #finishedLibs .lib-card:focus-within {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
        border-color: #337ab7;
    }

    #finishedLibs .lib-card-media {
        position: relative;
        background: #f4f4f4;
    }

    /* Fixed aspect box keeps photos of very different sizes tidy */
    #finishedLibs .lib-card-media img,
    #finishedLibs .lib-card-noimg {
        display: block;
        width: 100%;
        height: 190px;
        object-fit: cover;
        margin: 0;
    }

    #finishedLibs .lib-card-noimg {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #eef2f7 0%, #dde5ef 100%);
        color: #9bb0c7;
        font-size: 44px;
    }

    #finishedLibs .lib-card-num {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
        line-height: 38px;
        text-align: center;
        border-radius: 50%;
        background: #337ab7;
        color: #fff;
        font-weight: 700;
        font-size: 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    }

    #finishedLibs .lib-card-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        padding: 16px 18px 18px;
    }

    #finishedLibs .lib-card-title {
        margin: 0 0 8px;
        font-size: 17px;
        line-height: 1.4;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: #337ab7;
    }

    #finishedLibs .lib-card-sum {
        margin: 0 0 12px;
        font-size: 14px;
        line-height: 1.6;
        color: #666;
        text-align: left;
    }

    #finishedLibs .lib-card-facts {
        list-style: none;
        padding: 12px 0 0;
        margin: 0 0 16px;
        border-top: 1px solid #f0f0f0;
    }

    #finishedLibs .lib-card-facts li {
        display: flex;
        font-size: 14px;
        line-height: 1.55;
        color: #555;
        padding: 3px 0;
    }

    #finishedLibs .lib-card-facts i {
        color: #337ab7;
        width: 20px;
        flex-shrink: 0;
        margin-top: 3px;
    }

    #finishedLibs .lib-card-facts strong {
        color: #333;
    }

    /* Button stays at the bottom whatever the text length above it */
    #finishedLibs .lib-card-btn {
        margin-top: auto;
        align-self: flex-start;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        padding: 9px 17px;
    }

    #finishedLibs .lib-card-btn i {
        margin-left: 4px;
    }

    #finishedLibs .lib-empty {
        font-size: 15px;
        color: #666;
        background: #f7f9fb;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 18px;
    }

    /* Long literacy notes scroll inside the modal instead of running off screen */
    .lib-modal .modal-body {
        max-height: 72vh;
        overflow-y: auto;
        padding: 0;
    }

    .lib-modal .modal-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: -0.01em;
        padding-right: 20px;
    }

    .lib-modal .lib-loading {
        padding: 30px 20px;
        text-align: center;
        color: #777;
        font-size: 15px;
    }

    @media (max-width: 767px) {
        #finishedLibs .lib-card-media img,
        #finishedLibs .lib-card-noimg {
            height: 210px;
        }

        .lib-modal .modal-body {
            max-height: 68vh;
        }
    }

/* ------------------------------------------------------------------
   web_gallery.php
   ------------------------------------------------------------------ */

    .gallery-page .nav-link {
        font-size: 18px;
    }

    /* scoped so it cannot change the modal width on other pages */
    .tq-modal-md {
        width: 90%;
        max-width: 800px;
        margin: 30px auto;
    }

/* ------------------------------------------------------------------
   web_library_contract.php
   ------------------------------------------------------------------ */

    .font_b_u {
        font-weight: bold;
        text-decoration: underline;
    }

    .hindi_ul li {
        font-size: 16px !important;
    }

/* ------------------------------------------------------------------
   web_library_info.php
   ------------------------------------------------------------------ */

.hindi_ul li{
    font-size:16px !important;
}

/* ------------------------------------------------------------------
   web_links.php
   ------------------------------------------------------------------ */

    /* Scoped to .links-page. The previous "table th / table td" rules had no
       scope, so they restyled every table on the site. */
    .links-page,
    .links-page * {
        font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
        font-optical-sizing: auto;
    }

    /* Icon fonts must keep their own families, or the icons turn into letters */
    .links-page .fa { font-family: FontAwesome; }
    .links-page .glyphicon { font-family: 'Glyphicons Halflings'; }

    .links-page .page-heading h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
    .links-page .page-heading span { display: block; font-size: 16px; line-height: 1.7; color: #555; }

    .links-page h2 {
        margin: 34px 0 6px;
        font-size: 22px;
        font-weight: 600;
        color: #1f3864;
    }

    .links-page h2 .glyphicon { margin-right: 8px; color: #337ab7; font-size: 19px; }

    /* Resource list */
    .links-page .table {
        margin-bottom: 0;
        background: #fff;
    }

    .links-page .table > thead > tr > th {
        padding: 12px 14px;
        font-size: 14px;
        font-weight: 600;
        color: #1f3864;
        background: #f4f7fa;
        border-bottom: 2px solid #dde4ec;
        vertical-align: middle;
    }

    .links-page .table > tbody > tr > td {
        padding: 11px 14px;
        font-size: 15px;
        line-height: 1.55;
        color: #333;
        vertical-align: middle;
    }

    .links-page .table > tbody > tr:hover > td { background: #eef4fb; }

    .links-page .lnk-cat > td {
        padding: 10px 14px !important;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .02em;
        color: #1f3864;
        background: #e8eef6 !important;
        border-top: 2px solid #c9d7e8;
    }

    .links-page .lnk-cat .glyphicon { margin-right: 7px; color: #337ab7; }
    .links-page .lnk-cat small { font-weight: 400; color: #6b7c92; margin-left: 4px; }

    .links-page .lnk-num {
        color: #8a94a0;
        font-weight: 600;
        white-space: nowrap;
    }

    .links-page .btn-xs { font-size: 13px; padding: 4px 11px; }

    .external-card {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 10px;
        padding: 24px 20px;
        margin-bottom: 25px;
        min-height: 170px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
        transition: all 0.3s ease;
        text-align: center;
    }

    .external-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

    .external-card i {
        font-size: 30px;
        color: #337ab7;
        margin-bottom: 10px;
    }

    .external-card h4 {
        margin-top: 10px;
        font-size: 17px;
        font-weight: 600;
        color: #1f3864;
    }

    .external-card p {
        min-height: 40px;
        text-align: center;
        font-size: 15px !important;
        line-height: 1.6;
        color: #555;
    }

    .external-card a.btn {
        margin-top: 10px;
    }

/* ------------------------------------------------------------------
   web_logo.php
   ------------------------------------------------------------------ */

    .ul_eng {
        /* */
    }

    .ul_eng li {
        font-size: 20px;
        color: #424242;
        line-height: 30px;
        text-align: justify;
    }

    .ul_hin li {
        font-size: 16px;
        color: #424242;
        line-height: 30px;
        text-align: justify;
    }

    .line-center {
        width: 100% !important;
    }

/* ------------------------------------------------------------------
   web_objective.php
   ------------------------------------------------------------------ */

    .objectivUL li {
        font-size: 20px;
        color: #424242;
        line-height: 30px;
        text-align: justify;
    }

/* ------------------------------------------------------------------
   web_session.php
   ------------------------------------------------------------------ */

    .tq-modal-lg {
        width: 90%;
        max-width: 1000px;
        margin: 30px auto;
    }

    /* ---- Typography ----------------------------------------------------
       style.css sets "Cormorant Garamond" directly on div/button/label/td,
       not only on html, so an inherited font-family would be overridden on
       every child div. The scoped universal selector outranks those element
       selectors. Only this page and its modal are affected. */
    .evt-page,
    .evt-page *,
    .evt-modal,
    .evt-modal * {
        font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
        font-optical-sizing: auto;
    }

    /* Font Awesome needs its own family back; the higher specificity here
       beats the rule above, so the icons keep rendering as icons. */
    .evt-page .fa,
    .evt-modal .fa {
        font-family: FontAwesome;
    }

    .evt-page .page-heading h1 {
        font-size: 27px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    .evt-page .page-heading span {
        font-size: 16px;
        line-height: 1.65;
        color: #5a5a5a;
        text-align: left;
    }

    /* ---- Section head --------------------------------------------------- */
    .evt-page .evt-head {
        margin: 34px 0 20px;
        padding-top: 26px;
        border-top: 1px solid #e8e8e8;
    }

    .evt-page .evt-head h2 {
        margin: 0 0 6px;
        font-size: 23px;
        font-weight: 600;
        color: #0a3f38;
        text-align: left;
    }

    .evt-page .evt-count {
        margin: 0;
        font-size: 15px;
        color: #5c6273;
        text-align: left;
    }

    .evt-page .evt-count i { color: #0c5047; margin-right: 6px; }
    .evt-page .evt-count strong { color: #0a3f38; }

    /* ---- Card grid ------------------------------------------------------
       A grid keeps every card in a row the same height; the old float layout
       left tall cards hanging because Bootstrap 3 has no flex grid. */
    .evt-page .evt-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin: 0 0 10px;
    }

    .evt-page .evt-card {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e6e8ec;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        cursor: pointer;
    }

    .evt-page .evt-card:hover,
    .evt-page .evt-card:focus {
        transform: translateY(-4px);
        box-shadow: 0 16px 32px rgba(16, 24, 40, .12);
        border-color: #cfe0dc;
        outline: none;
    }

    .evt-page .evt-card:focus-visible {
        outline: 3px solid #f0a81e;
        outline-offset: 2px;
    }

    /* ---- Card media ----------------------------------------------------- */
    .evt-page .evt-media {
        position: relative;
        height: 210px;
        background: #eef2f1;
        overflow: hidden;
    }

    .evt-page .evt-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
    }

    .evt-page .evt-card:hover .evt-media img { transform: scale(1.04); }

    /* Shown when the event has no cover photo, or the file is missing */
    .evt-page .evt-noimg {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #9aa7a3;
        background: repeating-linear-gradient(45deg, #eef2f1, #eef2f1 10px, #e7eceb 10px, #e7eceb 20px);
    }

    .evt-page .evt-noimg i { font-size: 38px; margin-bottom: 8px; opacity: .75; }
    .evt-page .evt-noimg span { font-size: 13px; letter-spacing: .02em; }

    .evt-page .evt-badge {
        position: absolute;
        right: 10px;
        bottom: 10px;
        background: rgba(10, 63, 56, .88);
        color: #fff;
        font-size: 12.5px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 20px;
    }

    .evt-page .evt-badge i { margin-right: 4px; }

    /* ---- Card body ------------------------------------------------------ */
    .evt-page .evt-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        padding: 16px 18px 18px;
    }

    .evt-page .evt-date {
        margin: 0 0 7px;
        font-size: 12.5px;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
        color: #0c5047;
        text-align: left;
    }

    .evt-page .evt-date i { margin-right: 5px; }

    /* The old rule justified these headings, which spread two-word lines
       right across the card. Left aligned keeps the words together. */
    .evt-page .evt-title {
        margin: 0 0 10px;
        font-size: 17.5px;
        font-weight: 600;
        line-height: 1.4;
        color: #16322d;
        text-align: left;
        /* Two lines' worth, so the location and chief guest below line up
           across a row whether the name wraps once or not */
        min-height: 49px;
    }

    .evt-page .evt-place {
        margin: 0 0 10px;
        font-size: 14px;
        color: #5c6273;
        text-align: left;
    }

    .evt-page .evt-place i { margin-right: 6px; color: #c0392b; }

    .evt-page .evt-guest {
        margin: 0 0 14px;
        font-size: 14.5px;
        line-height: 1.55;
        color: #3f4652;
        text-align: left;
        padding: 9px 12px;
        background: #f5f8f7;
        border-left: 3px solid #f0a81e;
        border-radius: 0 6px 6px 0;
    }

    .evt-page .evt-guest span {
        display: block;
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: #8b9299;
        margin-bottom: 2px;
    }

    /* margin-top:auto pins the link to the bottom, so the links line up
       across cards whose text runs to different lengths */
    .evt-page .evt-link {
        margin-top: auto;
        font-size: 14.5px;
        font-weight: 600;
        color: #0c5047;
    }

    .evt-page .evt-link i { margin-left: 5px; transition: transform .25s ease; }
    .evt-page .evt-card:hover .evt-link i { transform: translateX(4px); }

    .evt-page .evt-empty {
        margin: 10px 0 0;
        padding: 24px;
        background: #f7f8fc;
        border-radius: 10px;
        font-size: 15.5px;
        color: #5c6273;
        text-align: center;
    }

    .evt-page .evt-empty i { margin-right: 7px; color: #0c5047; }

    /* ---- Gallery modal -------------------------------------------------- */
    .evt-modal .modal-header { border-bottom: 1px solid #e8e8e8; padding: 15px 20px; }

    .evt-modal .modal-title {
        font-size: 18px;
        font-weight: 600;
        color: #16322d;
        padding-right: 20px;
    }

    .evt-modal .modal-body { padding: 18px; background: #f7f8fc; }

    /* Fixed stage height stops the dialog jumping as photos of different
       proportions load one after another */
    .evt-modal .evt-stage {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 360px;
    }

    .evt-modal .evt-stage img {
        max-height: 68vh;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(16, 24, 40, .14);
    }

    .evt-modal .evt-msg { margin: 0; font-size: 15.5px; color: #70767f; }
    .evt-modal .evt-msg i { margin-right: 7px; }

    .evt-modal .modal-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        border-top: 1px solid #e8e8e8;
    }

    .evt-modal .modal-footer .btn { float: none; margin: 0; min-width: 96px; }

    .evt-modal .evt-counter {
        font-size: 14px;
        font-weight: 600;
        color: #5c6273;
        min-width: 62px;
    }

    @media (max-width: 991px) {
        .evt-page .evt-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    }

    @media (max-width: 767px) {
        .evt-page .evt-grid { grid-template-columns: 1fr; gap: 18px; }
        .evt-page .evt-media { height: 200px; }
        .evt-page .evt-head { margin-top: 26px; }
        .evt-page .evt-head h2 { font-size: 20px; }
        .evt-modal .evt-stage { min-height: 220px; }
        .evt-modal .modal-footer .btn { min-width: 0; flex: 1 1 auto; }
    }

    @media (prefers-reduced-motion: reduce) {
        .evt-page .evt-card,
        .evt-page .evt-media img,
        .evt-page .evt-link i { transition: none !important; }
        .evt-page .evt-card:hover { transform: none; }
        .evt-page .evt-card:hover .evt-media img { transform: none; }
    }

/* ------------------------------------------------------------------
   home.php
   ------------------------------------------------------------------ */

    /* Scoped to this section only, so no other part of the site is affected */
    .wwd { padding: 2em 0 3.5em; }
    .wwd [hidden] { display: none !important; }

    .wwd .wwd-head { position: relative; }

    .wwd .wwd-lead {
        font-size: 18px;
        line-height: 1.7;
        color: #424242;
        text-align: left;
        margin: 0 0 4px;
        max-width: 1000px;
    }

    .wwd .wwd-lead[data-lang="hi"] { font-size: 17px; line-height: 1.8; }

    /* Language switch */
    .wwd .wwd-langs {
        display: inline-flex;
        margin: 18px 0 0 30px;
        padding: 4px;
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 999px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }

    .wwd .wwd-lang {
        border: 0;
        background: transparent;
        padding: 7px 22px;
        border-radius: 999px;
        font-size: 15px;
        line-height: 1.2;
        color: #555;
        cursor: pointer;
        transition: background .25s ease, color .25s ease;
    }

    .wwd .wwd-lang:hover { color: #2d3092; }

    .wwd .wwd-lang.is-active {
        background: #2d3092;
        color: #fff;
        box-shadow: 0 2px 8px rgba(45, 48, 146, .28);
    }

    .wwd .wwd-lang:focus-visible { outline: 2px solid #2d3092; outline-offset: 2px; }

    /* Card grid: flex so every card in a row is the same height */
    .wwd .wwd-grid {
        display: flex;
        flex-wrap: wrap;
        margin: 26px -12px 0;
    }

    .wwd .wwd-col {
        display: flex;
        float: none;
        padding: 0 12px;
        margin-bottom: 24px;
    }

    .wwd .wwd-card {
        --accent: #337ab7;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
        transition: transform .35s ease, box-shadow .35s ease;
    }

    .wwd .wwd-c1 { --accent: #337ab7; }
    .wwd .wwd-c2 { --accent: #fd6100; }
    .wwd .wwd-c3 { --accent: #2d3092; }
    .wwd .wwd-c4 { --accent: #5f9130; }

    /* Accent rule that draws itself in on hover */
    .wwd .wwd-card::before {
        content: "";
        position: absolute;
        left: 0; right: 0; top: 0;
        height: 4px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .45s ease;
        z-index: 3;
    }

    .wwd .wwd-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, .13); }
    .wwd .wwd-card:hover::before { transform: scaleX(1); }

    .wwd .wwd-media {
        position: relative;
        height: 180px;
        overflow: hidden;
        background: #eef1f5;
    }

    .wwd .wwd-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

    .wwd .wwd-card:hover .wwd-media img { transform: scale(1.08); }

    .wwd .wwd-media::after {
        content: "";
        position: absolute;
        left: 0; right: 0; top: 0; bottom: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .32));
    }

    .wwd .wwd-icon {
        /* Sits in the body, pulled up over the image. Keeping it inside
           .wwd-media would clip it against that element's overflow:hidden. */
        position: relative;
        align-self: flex-start;
        margin: -27px 0 14px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #fff;
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
        transition: background .35s ease, color .35s ease, transform .35s ease;
        z-index: 2;
    }

    .wwd .wwd-card:hover .wwd-icon { background: var(--accent); color: #fff; transform: translateY(-4px); }

    .wwd .wwd-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        padding: 0 22px 26px;
    }

    .wwd .wwd-body h3 {
        margin: 0 0 12px;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
        color: #1b1b1b;
        transition: color .3s ease;
    }

    .wwd .wwd-card:hover .wwd-body h3 { color: var(--accent); }

    /* Left aligned, not justified: the old justified text left large gaps
       between words inside these narrow columns. */
    .wwd .wwd-text {
        margin: 0;
        font-size: 16px;
        line-height: 1.7;
        color: #4a4a4a;
        text-align: left;
    }

    .wwd .wwd-text[data-lang="hi"] { font-size: 15.5px; line-height: 1.8; }

    /* Cards fade up as they scroll into view. Only applied once the script
       runs, so with JavaScript off everything is visible from the start. */
    .wwd.wwd-anim .wwd-card { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease, box-shadow .35s ease; }
    .wwd.wwd-anim .wwd-card.is-in { opacity: 1; transform: translateY(0); }
    .wwd.wwd-anim .wwd-col:nth-child(2) .wwd-card { transition-delay: .09s; }
    .wwd.wwd-anim .wwd-col:nth-child(3) .wwd-card { transition-delay: .18s; }
    .wwd.wwd-anim .wwd-col:nth-child(4) .wwd-card { transition-delay: .27s; }

    @media (max-width: 991px) {
        .wwd .wwd-media { height: 200px; }
    }

    @media (max-width: 767px) {
        .wwd .wwd-langs { margin-left: 0; }
        .wwd .wwd-lead { font-size: 17px; }
        .wwd .wwd-body { padding: 0 20px 24px; }
    }

    @media (prefers-reduced-motion: reduce) {
        .wwd .wwd-card,
        .wwd .wwd-media img,
        .wwd .wwd-icon,
        .wwd .wwd-card::before { transition: none !important; }
        .wwd.wwd-anim .wwd-card { opacity: 1 !important; transform: none !important; }
    }

/* ------------------------------------------------------------------
   home.php - landing page sections (impact, libraries, programs,
   gallery strip, donate band)
   ------------------------------------------------------------------ */
.tq-impact, .tq-libs, .tq-programs, .tq-shots, .tq-cta { font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif; }
.tq-impact *, .tq-libs *, .tq-programs *, .tq-shots *, .tq-cta * { font-family: inherit; }
.tq-impact .fa, .tq-libs .fa, .tq-programs .fa, .tq-shots .fa, .tq-cta .fa { font-family: FontAwesome; }

/* shared section heading */
.tq-sec-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.tq-eyebrow {
    display: inline-block; margin-bottom: 10px; padding: 5px 14px;
    font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: #0c5047; background: #e3f0ec; border-radius: 999px;
}
.tq-sec-head h2 { margin: 0 0 10px; font-size: 30px; font-weight: 700; color: #0a3f38; letter-spacing: -0.02em; line-height: 1.25; }
.tq-sec-head p { margin: 0; font-size: 16.5px; line-height: 1.7; color: #5c6273; text-align: center; }

.tq-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 999px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tq-btn:hover, .tq-btn:focus { text-decoration: none; transform: translateY(-2px); }
.tq-btn-primary { background: #0c5047; color: #fff; box-shadow: 0 5px 16px rgba(12,80,71,.3); }
.tq-btn-primary:hover { background: #083b34; color: #fff; }
.tq-btn-ghost { background: transparent; color: #0c5047; border: 1px solid #b9d5ce; }
.tq-btn-ghost:hover { background: #e3f0ec; color: #0c5047; }
.tq-btn-donate { background: #f0a81e; color: #11322c; box-shadow: 0 5px 16px rgba(240,168,30,.32); }
.tq-btn-donate:hover { background: #d4900f; color: #11322c; }
.tq-btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.tq-btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.tq-sec-actions { margin-top: 32px; text-align: center; }
.tq-sec-actions .tq-btn { margin: 0 6px 10px; }

/* impact numbers */
.tq-impact { padding: 56px 0; background: #f7f8fc; }
.tq-impact-head { text-align: center; margin-bottom: 30px; }
.tq-impact-head h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; color: #16183a; letter-spacing: -0.02em; }
.tq-impact-head p { margin: 0; font-size: 16px; color: #5c6273; text-align: center; }
.tq-stats { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.tq-stat {
    flex: 1 1 200px; margin: 0 10px 20px; padding: 26px 20px; text-align: center;
    background: #fff; border: 1px solid #e8eaf2; border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0,0,0,.05); transition: transform .25s ease, box-shadow .25s ease;
}
.tq-stat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.09); }
.tq-stat i { font-size: 22px; color: #2d3092; }
.tq-stat strong { display: block; margin: 10px 0 4px; font-size: 36px; font-weight: 700; color: #16183a; line-height: 1; }
.tq-stat span { font-size: 14.5px; color: #6b7280; }

/* libraries */
.tq-libs { padding: 60px 0; }
.tq-lib-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.tq-lib-card {
    flex: 1 1 300px; display: flex; flex-direction: column; margin: 0 12px 24px;
    background: #fff; border: 1px solid #e9e9ef; border-radius: 14px; overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease;
}
.tq-lib-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,.12); }
.tq-lib-media { height: 180px; overflow: hidden; background: #eef1f5; }
.tq-lib-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tq-lib-card:hover .tq-lib-media img { transform: scale(1.07); }
.tq-lib-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; color: #9bb0c7; background: linear-gradient(135deg,#eef2f7,#dde5ef); }
.tq-lib-body { padding: 18px 20px 22px; }
.tq-lib-body h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 600; line-height: 1.4; color: #0c5047; }
.tq-lib-date { display: inline-block; margin-bottom: 8px; font-size: 13px; color: #8a90a2; }
.tq-lib-date i { margin-right: 5px; color: #0c5047; }
.tq-lib-body p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #5c6273; text-align: left; }

/* programs */
.tq-programs { padding: 60px 0; background: #f7f8fc; }
.tq-prog-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.tq-prog {
    flex: 1 1 300px; margin: 0 12px 24px; padding: 26px 24px;
    background: #fff; border: 1px solid #e9e9ef; border-radius: 14px; text-decoration: none;
    box-shadow: 0 3px 14px rgba(0,0,0,.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tq-prog:hover, .tq-prog:focus { text-decoration: none; transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,.11); border-color: #d6d8ee; }
.tq-prog > i {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; margin-bottom: 15px; border-radius: 13px;
    font-size: 20px; color: #fff; background: #0c5047;
}
.tq-prog:nth-child(2) > i { background: #25D366; }
.tq-prog:nth-child(3) > i { background: #fd6100; }
.tq-prog:nth-child(4) > i { background: #337ab7; }
.tq-prog:nth-child(5) > i { background: #5f9130; }
.tq-prog:nth-child(6) > i { background: #8e44ad; }
.tq-prog h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 600; color: #0a3f38; }
.tq-prog p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: #5c6273; text-align: left; }
.tq-prog span { font-size: 14px; font-weight: 600; color: #0c5047; }
.tq-prog span i { margin-left: 5px; transition: transform .25s ease; }
.tq-prog:hover span i { transform: translateX(4px); }

/* gallery strip */
.tq-shots { padding: 60px 0 0; }
.tq-shot-row { display: flex; flex-wrap: wrap; margin-top: 8px; }
.tq-shot { flex: 1 1 16.66%; min-width: 160px; height: 200px; overflow: hidden; display: block; }
.tq-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s ease; filter: saturate(.9); }
.tq-shot:hover img { transform: scale(1.08); filter: saturate(1.1); }

/* donate band */
.tq-cta { padding: 56px 0; margin-top: 60px; background: linear-gradient(135deg, #083b34 0%, #0c5047 100%); }
.tq-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.tq-cta h2 { margin: 0 0 8px; font-size: 27px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.tq-cta p { margin: 0; max-width: 620px; font-size: 15.5px; line-height: 1.7; color: #bdd2cd; text-align: left; }
.tq-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 991px) {
    .tq-sec-head h2 { font-size: 25px; }
    .tq-shot { flex: 1 1 33.33%; height: 170px; }
}

@media (max-width: 600px) {
    .tq-impact, .tq-libs, .tq-programs { padding: 42px 0; }
    .tq-stat strong { font-size: 30px; }
    .tq-sec-head h2, .tq-impact-head h2, .tq-cta h2 { font-size: 22px; }
    .tq-shot { flex: 1 1 50%; height: 150px; }
    .tq-cta-inner { display: block; }
    .tq-cta-actions { margin-top: 18px; }
    .tq-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .tq-stat, .tq-lib-card, .tq-lib-media img, .tq-prog, .tq-shot img, .tq-btn, .tq-prog span i { transition: none !important; }
}

/* ------------------------------------------------------------------
   Breadcrumb for internal pages (functions.php -> tq_breadcrumb)
   Left padding matches .page-heading so the trail lines up with the
   page title instead of sitting adrift near the viewport edge.
   ------------------------------------------------------------------ */
.tq-crumbs {
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
    /* same navy as the footer, so the page is bookended by one colour.
       .page-section already draws the yellow brand rule directly above
       this band, so no second accent line is needed here. */
    background: #0a443c;

    /* Full width band. The trail is rendered inside .container, so the
       negative margins stretch it to the viewport edges and the matching
       left padding puts the text back in line with the page title.
       html already has overflow-x:hidden, so 100vw adds no scrollbar. */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 14px calc(50vw - 50%) 14px calc(50vw - 50% + 30px);
}

.tq-crumbs .fa { font-family: FontAwesome; }

.tq-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tq-crumbs li {
    display: flex;
    align-items: center;
    font-size: 15.5px;
    line-height: 1.5;
    color: #d5d8e8;
}

/* chevron between the items */
.tq-crumbs li + li::before {
    content: "\f105";                  /* fa-angle-right */
    font-family: FontAwesome;
    margin: 0 9px;
    font-size: 14px;
    color: #747aa3;
}

.tq-crumbs a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.tq-crumbs a:hover,
.tq-crumbs a:focus { color: #f0a81e; text-decoration: none; }

.tq-crumbs a .fa { margin-right: 5px; color: #f0a81e; }

/* current page: plain text, not a link */
.tq-crumbs span[aria-current="page"] {
    color: #d5d8e8;
    font-weight: 500;
}

@media (max-width: 600px) {
    .tq-crumbs { padding: 11px calc(50vw - 50%) 11px calc(50vw - 50% + 30px); }
    .tq-crumbs li { font-size: 14.5px; }
    .tq-crumbs li + li::before { margin: 0 6px; }
}

/* ==================================================================
   home.php - colour rhythm
   The page ran white / grey / white / grey, which reads flat. These
   rules give it an alternating sequence instead:
     hero -> white -> NAVY -> cream -> white -> indigo tint -> white
     -> photos -> indigo
   ================================================================== */

/* (the old banner caption rules were dropped with the new hero) */

/* ---- 2. impact: dark anchor instead of pale grey ----------------- */
.tq-impact { background: #0c5047; padding: 64px 0; }
.tq-impact-head h2 { color: #fff; }
.tq-impact-head p { color: #bdd2cd; }

.tq-impact .tq-stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow: none;
}

.tq-impact .tq-stat:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(240, 168, 30, .55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.tq-impact .tq-stat i { color: #f0a81e; }
.tq-impact .tq-stat strong { color: #fff; }
.tq-impact .tq-stat span { color: #bdd2cd; }

/* ---- 3. vision band: the one warm surface on the page ------------ */
.tq-vision {
    padding: 64px 0;
    background: #fff9e3;
    border-top: 1px solid #f3e6b8;
    border-bottom: 1px solid #f3e6b8;
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.tq-vision * { font-family: inherit; }
.tq-vision .fa { font-family: FontAwesome; }

.tq-vision-inner { max-width: 880px; margin: 0 auto; text-align: center; }

.tq-vision-inner > .fa {
    font-size: 30px;
    color: #e3b600;
    margin-bottom: 18px;
    display: block;
}

.tq-vision blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: #0a3f38;
}

.tq-vision-hi {
    margin: 16px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.8;
    color: #6b6243 !important;
    text-align: center !important;
}

.tq-vision cite {
    display: block;
    margin-top: 20px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a1802a;
}

/* ---- 4. programs: soft indigo rather than the same grey ---------- */
.tq-programs { background: #eef5f3; }

/* ---- 5. news block: match the new section headings -------------- */
.tq-news { padding: 60px 0; }
.tq-news .tq-sec-head { margin-bottom: 30px; }

@media (max-width: 767px) {
    .tq-vision { padding: 42px 0; }
    .tq-vision blockquote { font-size: 19px; }
    .tq-vision-hi { font-size: 15px !important; }
    .bnrcustm { padding: 18px 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .tq-impact .tq-stat { transition: none !important; }
}

/* ==================================================================
   home.php - teal hero (replaces the old caption-on-carousel banner)
   ================================================================== */
.tq-hero {
    position: relative;
    overflow: hidden;
    background: #0c5047;
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.tq-hero * { font-family: inherit; }
.tq-hero .fa { font-family: FontAwesome; }

/* Banner slideshow sits behind everything. style.css carries
   ".owl-carousel.home-slider { position: relative; height: 600px }", which
   outranks a single class, so these are scoped under .tq-hero to win. */
.tq-hero .tq-hero-bg,
.tq-hero .tq-hero-bg.owl-carousel {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: auto;
    z-index: 0;
}

.tq-hero .tq-hero-bg .slider-item,
.tq-hero .owl-carousel.home-slider .slider-item {
    height: 100%;
    background-size: cover;
    background-position: center center;
}

.tq-hero .tq-hero-bg .owl-stage-outer,
.tq-hero .tq-hero-bg .owl-stage,
.tq-hero .tq-hero-bg .owl-item { height: 100%; }

/* teal wash so the type stays readable over any photograph */
.tq-hero-scrim {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(8, 59, 52, .95) 0%, rgba(12, 80, 71, .88) 55%, rgba(16, 89, 78, .82) 100%);
}

.tq-hero-content {
    position: relative;
    z-index: 2;
    padding: 72px 15px 78px;
    text-align: center;
}

.tq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 9px 20px 9px 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffe9b8;
    background: rgba(240, 168, 30, .14);
    border: 1px solid rgba(240, 168, 30, .45);
    border-radius: 999px;
}

.tq-hero-badge i {
    width: 24px; height: 24px; line-height: 24px;
    text-align: center; font-size: 11px;
    color: #11322c; background: #f0a81e; border-radius: 50%;
}

/* Opens the award certificate. Its own rules undo the gold disc that
   .tq-hero-badge i puts on the star, so the two icons read differently. */
.tq-hero-badge .tq-badge-cert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    margin: -4px -12px -4px 2px;
    border-radius: 50%;
    color: #ffe9b8;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(240, 168, 30, .5);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.tq-hero-badge .tq-badge-cert:hover,
.tq-hero-badge .tq-badge-cert:focus {
    background: #f0a81e;
    color: #11322c;
    text-decoration: none;
    transform: scale(1.08);
}

.tq-hero-badge .tq-badge-cert:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.tq-hero-badge .tq-badge-cert i {
    width: auto; height: auto; line-height: 1;
    font-size: 12px;
    color: inherit;
    background: none;
    border-radius: 0;
}

/* ---- Certificate modal ---------------------------------------------- */
.tq-cert-modal,
.tq-cert-modal * {
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.tq-cert-modal .fa { font-family: FontAwesome; }

.tq-cert-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #16322d;
}

.tq-cert-modal .modal-body { padding: 18px; background: #f7f8fc; }

.tq-cert-modal .modal-body img {
    max-height: 72vh;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .14);
}

@media (max-width: 767px) {
    .tq-cert-modal .modal-body img { max-height: 60vh; }
}

.tq-hero h1 {
    margin: 0 0 10px;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
}

.tq-hero-hi {
    margin: 0 0 18px !important;
    font-size: 22px !important;
    font-weight: 500;
    line-height: 1.5;
    color: #cfe3de !important;
    text-align: center !important;
}

.tq-hero-lead {
    max-width: 660px;
    margin: 0 auto 34px !important;
    font-size: 17px !important;
    line-height: 1.75;
    color: #b9d2cc !important;
    text-align: center !important;
}

/* stat strip inside the hero */
.tq-hero-stats {
    display: flex;
    flex-wrap: wrap;
    max-width: 820px;
    margin: 0 auto 34px;
    background: rgba(16, 89, 78, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    overflow: hidden;
}

.tq-hero-stats > div {
    flex: 1 1 180px;
    padding: 22px 14px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.tq-hero-stats > div:last-child { border-right: 0; }

.tq-hero-stats strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #f0a81e;
}

.tq-hero-stats span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #c2d6d1;
}

.tq-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.tq-btn-gold {
    background: #f0a81e;
    color: #11322c;
    box-shadow: 0 6px 18px rgba(240, 168, 30, .32);
}

.tq-btn-gold:hover, .tq-btn-gold:focus { background: #d4900f; color: #11322c; }

.tq-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
}

.tq-btn-outline:hover, .tq-btn-outline:focus { background: rgba(255, 255, 255, .12); color: #fff; }

@media (max-width: 991px) {
    .tq-hero h1 { font-size: 40px; }
    .tq-hero-hi { font-size: 19px !important; }
    .tq-hero-content { padding: 56px 15px 60px; }
}

@media (max-width: 767px) {
    .tq-hero h1 { font-size: 30px; }
    .tq-hero-hi { font-size: 17px !important; }
    .tq-hero-lead { font-size: 15.5px !important; }
    .tq-hero-content { padding: 42px 15px 46px; }
    .tq-hero-badge { font-size: 12px; padding: 7px 15px 7px 8px; }
    .tq-hero-stats > div { flex: 1 1 50%; padding: 16px 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .tq-hero-stats > div:nth-child(2n) { border-right: 0; }
    .tq-hero-stats strong { font-size: 27px; }
    .tq-btn { width: 100%; justify-content: center; }
}

/* ---- the Educate / Employ / Empower strip no longer overlaps a photo ---- */
.tq-pillars { padding: 0 0 10px; }
/* style.css gives this strip border-radius:90px and padding:40px 5em, which
   turns it into a lozenge with the corners cutting into the hero and the three
   items crowded towards the middle. Rebuilt as an even three column card. */
.tq-pillars { position: relative; z-index: 3; }   /* paint above the hero scrim */

.tq-pillars .counter-ul {
    display: flex;
    align-items: stretch;
    margin: -52px 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e8efed;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(10, 63, 56, .13);
    overflow: hidden;
}

.tq-pillars .counter-ul li {
    flex: 1 1 0;
    width: auto;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 26px 26px 28px;
    border-right: 1px solid #edf3f1;
}

.tq-pillars .counter-ul li:last-child { border-right: 0; }

.tq-pillars .counter-ul li img {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tq-pillars .counter-ul li h4 { padding-left: 0; }

@media (max-width: 991px) {
    .tq-pillars .counter-ul { margin-top: -34px; }
    .tq-pillars .counter-ul li { padding: 20px 18px 22px; gap: 12px; }
    .tq-pillars .counter-ul li img { width: 40px; height: 40px; }
}

@media (max-width: 767px) {
    .tq-pillars .counter-ul {
        display: block;
        margin-top: 26px;
        border-radius: 14px;
    }
    .tq-pillars .counter-ul li {
        width: 100%;
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid #edf3f1;
    }
    .tq-pillars .counter-ul li:last-child { border-bottom: 0; }
}

/* ==================================================================
   home.php - bring the older sections in line with the new ones
   (typeface, heading treatment and teal accents)
   ================================================================== */
.tq-pillars, .tq-pillars *,
.wwd, .wwd *,
.tq-news, .tq-news * {
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.tq-pillars .fa, .wwd .fa, .tq-news .fa { font-family: FontAwesome; }
.tq-pillars .glyphicon, .wwd .glyphicon, .tq-news .glyphicon { font-family: 'Glyphicons Halflings'; }

/* Educate / Employ / Empower strip */
.tq-pillars .counter-ul li h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0a3f38;
    line-height: 1.35;
}

.tq-pillars .counter-ul li h4 span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #5f6b68;
}

/* "What does the Foundation do" heading, centred like the other sections */
.wwd .wwd-head {
    background: none;
    padding: 0;
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.wwd .wwd-head h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0a3f38;
}

.wwd .wwd-lead {
    max-width: 720px;
    margin: 0 auto 4px !important;
    font-size: 16.5px;
    line-height: 1.7;
    color: #5c6273;
    text-align: center;
}

.wwd .wwd-langs { margin-left: 0; }
.wwd .wwd-lang:hover { color: #0c5047; }

.wwd .wwd-lang.is-active {
    background: #0c5047;
    box-shadow: 0 2px 8px rgba(12, 80, 71, .3);
}

/* card accents follow the teal palette */
.wwd .wwd-c1 { --accent: #0c5047; }
.wwd .wwd-c2 { --accent: #d4900f; }
.wwd .wwd-c3 { --accent: #137a68; }
.wwd .wwd-c4 { --accent: #5f9130; }

.wwd .wwd-body h3 { font-size: 18px; color: #0a3f38; }
.wwd .wwd-text { font-size: 14.5px; }

/* news cards */
.tq-news .g-caption2 p,
.tq-news .mission_section_p { font-size: 14.5px !important; line-height: 1.7; text-align: left !important; }
.tq-news .g-caption1 h4, .tq-news .g-caption2 h4 { font-size: 17px; font-weight: 600; }

@media (max-width: 767px) {
    .wwd .wwd-head h2 { font-size: 22px; }
    .wwd .wwd-lead { font-size: 15.5px; }
    .tq-pillars .counter-ul li h4 { font-size: 17px; }
}

/* ------------------------------------------------------------------
   functions.php -> tq_library_links()
   Cross links shown at the foot of the library pages. The cards reuse
   the .tq-prog pattern from the home page.
   ------------------------------------------------------------------ */
.tq-related {
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid #e4ebe9;
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.tq-related * { font-family: inherit; }
.tq-related .fa { font-family: FontAwesome; }

.tq-related h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0a3f38;
}

.tq-related-lead {
    margin: 0 0 24px !important;
    font-size: 15.5px !important;
    line-height: 1.7;
    color: #5f6b68 !important;
    text-align: left !important;
}

.tq-related .tq-prog-grid { margin: 0 -10px; }
.tq-related .tq-prog { flex: 1 1 260px; margin: 0 10px 20px; padding: 22px 20px; }
.tq-related .tq-prog > i { width: 44px; height: 44px; font-size: 18px; margin-bottom: 13px; }
.tq-related .tq-prog h3 { font-size: 16.5px; }
.tq-related .tq-prog p { font-size: 14px; margin-bottom: 10px; }

@media (max-width: 600px) {
    .tq-related h2 { font-size: 20px; }
}
