/* ==========================================================================
   Donation — donation.php
   Same palette and type as the Faculty page (faculty.css).
   Everything is scoped under .don so it cannot leak into the shared header,
   footer or the Bootstrap 3 / style-v1.css rules used on the rest of the site.
   ========================================================================== */

.don {
    --don-navy: #243a73;
    --don-navy-deep: #1a2b57;
    --don-navy-soft: #eef1f8;
    --don-gold: #faa619;
    --don-gold-soft: #fbe3b3;
    --don-gold-wash: #fff6e6;
    --don-gold-text: #9a5b00;
    --don-green: #2f6b4f;
    --don-green-soft: #e8f3ed;
    --don-ink: #1c2541;
    --don-text: #3d4458;
    --don-muted: #586074;
    --don-line: #e6e3da;
    --don-cream: #faf8f3;
    --don-card: #ffffff;
    --don-radius: 14px;
    --don-shadow: 0 1px 2px rgba(28, 37, 65, .04), 0 2px 8px rgba(28, 37, 65, .04);
    --don-shadow-lift: 0 4px 10px rgba(28, 37, 65, .06), 0 14px 32px rgba(28, 37, 65, .08);
    --don-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --don-sans: "Open Sans", "Segoe UI", Arial, sans-serif;
    --don-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    display: block;
    padding-top: 8px;
    background: var(--don-cream);
    color: var(--don-text);
    font-family: var(--don-sans);
    font-size: 15px;
    font-weight: 400;
    /* style-v1.css sets body line-height in em, which would inherit as a fixed px value */
    line-height: 1.6;
}

/* style-v1.css paints #content white */
#content.don {
    background: var(--don-cream);
}

/* Let the cream background run straight up to the hero instead of leaving a white strip. */
.ph:has(+ .don) {
    margin-bottom: 0;
}

.ph:has(+ .don) + #content.don {
    padding-top: 48px;
}

.don *,
.don *::before,
.don *::after {
    box-sizing: border-box;
}

.don [hidden] {
    display: none !important;
}

.don h1,
.don h2,
.don h3,
.don h4 {
    margin: 0;
    font-family: var(--don-serif);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--don-ink);
}

.don p,
.don figure,
.don blockquote {
    margin: 0;
}

.don a {
    color: var(--don-navy);
}

.don :focus-visible {
    outline: 3px solid var(--don-gold);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout: reading column + sticky bank card
   -------------------------------------------------------------------------- */

.don-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 48px;
    align-items: start;
}

.don-main {
    display: flex;
    flex-direction: column;
    gap: 56px;
    min-width: 0;
}

.don-eyebrow {
    margin-bottom: 6px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--don-gold-text);
}

.don-eyebrow--light {
    color: var(--don-gold-soft);
}

.don .don-section__title {
    position: relative;
    margin-bottom: 16px;
    padding-left: 16px;
    font-size: clamp(24px, 3vw, 30px);
}

.don .don-section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    border-radius: 2px;
    background: var(--don-gold);
}

.don-intro {
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Hadith quotes
   -------------------------------------------------------------------------- */

.don-quotes {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.don-quote {
    position: relative;
    padding: 26px 26px 22px 30px;
    background: var(--don-card);
    border: 1px solid var(--don-line);
    border-left: 4px solid var(--don-gold);
    border-radius: var(--don-radius);
    box-shadow: var(--don-shadow);
}

.don .don-quote blockquote {
    padding: 0;
    border: 0;
    font-size: inherit;
}

.don-quote blockquote p {
    font-family: var(--don-serif);
    font-size: 18px;
    line-height: 1.6;
    color: var(--don-ink);
}

.don-quote figcaption {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--don-muted);
}

.don-quote figcaption::before {
    content: "— ";
}

.don-quote cite {
    font-style: normal;
    color: var(--don-navy);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.don-steps {
    display: grid;
    gap: 14px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: don-step;
}

.don-step {
    position: relative;
    padding: 20px 22px 20px 74px;
    background: var(--don-card);
    border: 1px solid var(--don-line);
    border-radius: var(--don-radius);
    counter-increment: don-step;
}

.don-step::before {
    content: counter(don-step);
    position: absolute;
    left: 20px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--don-navy);
    color: var(--don-gold);
    font-family: var(--don-serif);
    font-size: 17px;
    font-weight: 700;
}

.don .don-step__title {
    margin-bottom: 4px;
    font-size: 18px;
}

.don-step p {
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Bank card
   -------------------------------------------------------------------------- */

.don-aside {
    position: sticky;
    top: 20px;
}

.don-bank {
    overflow: hidden;
    background: var(--don-card);
    border: 1px solid var(--don-line);
    border-radius: var(--don-radius);
    box-shadow: var(--don-shadow-lift);
}

.don-bank__head {
    padding: 22px 24px 20px;
    color: #fff;
    background-color: var(--don-navy);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--don-navy) 0%, var(--don-navy-deep) 100%);
    background-size: 72px 72px, auto;
    border-bottom: 3px solid var(--don-gold);
}

.don .don-bank__title {
    font-size: 22px;
    color: #fff;
}

.don-bank__list {
    margin: 0;
    padding: 6px 24px;
}

.don-bank__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
}

.don-bank__row + .don-bank__row {
    border-top: 1px dashed var(--don-line);
}

.don .don-bank__row dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--don-muted);
}

.don .don-bank__row dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.don-bank__value {
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--don-ink);
    overflow-wrap: anywhere;
}

.don-bank__row--key .don-bank__value {
    font-family: var(--don-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--don-navy);
}

/* The account title reads better in the page font. */
.don-bank__row--key:first-child .don-bank__value {
    font-family: var(--don-sans);
    letter-spacing: 0;
}

.don .don-copy {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--don-line);
    border-radius: 999px !important; /* style-v1.css squares every button */
    background: var(--don-card);
    color: var(--don-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.don .don-copy:hover {
    border-color: var(--don-navy);
}

.don .don-copy.is-copied {
    background: var(--don-green-soft);
    border-color: var(--don-green-soft);
    color: var(--don-green);
}

.don-bank__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px 24px;
    background: var(--don-gold-wash);
    border-top: 1px solid var(--don-gold-soft);
}

.don-status {
    min-height: 1.6em;
    margin-top: 10px !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--don-green);
}

/* --------------------------------------------------------------------------
   Buttons + call to action
   -------------------------------------------------------------------------- */

.don .don-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--don-navy);
    border-radius: 999px !important;
    background: var(--don-navy);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.don .don-btn:hover,
.don .don-btn:focus {
    background: var(--don-navy-deep);
    border-color: var(--don-navy-deep);
    color: #fff;
    text-decoration: none;
}

.don .don-btn.is-copied {
    background: var(--don-green);
    border-color: var(--don-green);
}

.don .don-btn--block {
    width: 100%;
}

.don .don-btn--gold {
    background: var(--don-gold);
    border-color: var(--don-gold);
    color: var(--don-ink);
}

.don .don-btn--gold:hover,
.don .don-btn--gold:focus {
    background: #ffb938;
    border-color: #ffb938;
    color: var(--don-ink);
}

.don .don-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.don .don-btn--ghost:hover,
.don .don-btn--ghost:focus {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
}

.don-cta {
    margin-top: 72px;
    padding: 64px 0;
    color: #fff;
    background-color: var(--don-navy);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--don-navy) 0%, var(--don-navy-deep) 100%);
    background-size: 72px 72px, auto;
    text-align: center;
}

.don .don-cta__title {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 34px);
    color: #fff;
}

.don .don-cta__text {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 16px;
    color: rgba(255, 255, 255, .86);
}

.don-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .don-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    /* On narrow screens the bank card comes first — it is what donors came for. */
    .don-aside {
        position: static;
        order: -1;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .don-main {
        gap: 44px;
    }
}

@media (max-width: 767px) {
    .don-quote {
        padding: 20px 18px 18px 20px;
    }

    .don-quote blockquote p {
        font-size: 17px;
    }

    .don-step {
        padding: 18px 18px 18px 66px;
    }

    .don-step::before {
        left: 16px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .don-bank__head,
    .don-bank__list,
    .don-bank__foot {
        padding-left: 18px;
        padding-right: 18px;
    }

    .don-cta {
        margin-top: 56px;
        padding: 52px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .don *,
    .don *::before,
    .don *::after {
        transition: none !important;
    }
}
