/**
 * Flow theme — light refresh for public site, member auth, and member panel.
 * Loads after style.css / inner-compat; uses CSS variables so future tweaks stay in one place.
 */
:root {
    --flow-primary: #c51f1e;
    --flow-primary-rgb: 197, 31, 30;
    --flow-secondary: #1e3a5f;
    --flow-secondary-rgb: 30, 58, 95;
    --flow-gold: #d4a012;
    --flow-radius-lg: 16px;
    --flow-radius-md: 12px;
    --flow-shadow-soft: 0 14px 48px rgba(var(--flow-primary-rgb), 0.1);
    --flow-shadow-nav: 0 8px 32px rgba(30, 20, 20, 0.12);
    --flow-surface-muted: #f8f4f4;
}

/* —— Public site chrome —— */
body:not(.body--member-panel) {
    scroll-behavior: smooth;
}

.header .header-nav-wrapper.header-sticky.scroll-on {
    box-shadow: var(--flow-shadow-nav);
}

.header .header-nav-wrapper.header-sticky {
    backdrop-filter: saturate(1.1) blur(8px);
    -webkit-backdrop-filter: saturate(1.1) blur(8px);
}

.header .btn.btn-auth-nav.btn-primary {
    background: linear-gradient(135deg, var(--flow-primary) 0%, #9e1918 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(var(--flow-primary-rgb), 0.28);
}

.header .btn.btn-auth-nav.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(var(--flow-primary-rgb), 0.35);
}

/* Public header (header-2): inset nav + top bar from viewport left/right */
.header.header-2 .container-fluid,
.header.header-2 .header-top .container-fluid {
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* Home hero (slider-2): mobile Swiper loop + creative effect can leave copy at opacity 0; fade + min-height in JS/CSS */
@media (max-width: 767.98px) {
    .slider-2-sec.slider-2-full .slide-entry {
        min-height: min(88vh, 640px);
    }
}

/* Theme hides hero dots on small screens — show as bottom row so users see slide position */
@media (max-width: 575.98px) {
    .slider-2-sec .swiper-pagination {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        left: 50% !important;
        right: auto !important;
        bottom: 12px !important;
        top: auto !important;
        transform: translateX(-50%);
        width: auto !important;
        height: auto !important;
    }

    .slider-2-sec .swiper-pagination-bullet {
        margin: 0 6px !important;
    }
}

@media (max-width: 1199.98px) {
    #publicSiteNavOffcanvas.offcanvas.offcanvas-nav {
        --bs-offcanvas-bg: #fff;
        background-color: #fff !important;
    }

    #publicSiteNavOffcanvas .offcanvas-nav__header {
        padding-right: 0.5rem;
    }

    #publicSiteNavOffcanvas .offcanvas-nav__close {
        width: 2.75rem;
        height: 2.75rem;
        margin: 0;
        padding: 0;
        opacity: 1;
        background-color: var(--flow-primary);
        box-shadow: 0 2px 10px rgba(var(--flow-primary-rgb), 0.35);
        flex-shrink: 0;
    }

    #publicSiteNavOffcanvas .offcanvas-nav__close:hover {
        filter: brightness(1.06);
    }

    #publicSiteNavOffcanvas .offcanvas-nav__close:focus {
        outline: none;
        box-shadow: 0 2px 10px rgba(var(--flow-primary-rgb), 0.35), 0 0 0 0.2rem rgba(var(--flow-primary-rgb), 0.35);
    }

    #publicSiteNavOffcanvas .offcanvas-nav__brand {
        display: block;
        max-width: calc(100% - 3.25rem);
    }

    #publicSiteNavOffcanvas .offcanvas-nav__brand-logo {
        display: block;
        max-width: 100%;
        width: auto;
        height: auto;
        max-height: 3rem;
        object-fit: contain;
        object-position: left center;
    }

    #publicSiteNavOffcanvas .offcanvas-body {
        -webkit-overflow-scrolling: touch;
    }

    #publicSiteNavOffcanvas.offcanvas-nav .navbar-nav .nav-link {
        color: var(--headings-color) !important;
    }

    #publicSiteNavOffcanvas.offcanvas-nav .navbar-nav .nav-link:hover,
    #publicSiteNavOffcanvas.offcanvas-nav .navbar-nav .nav-link:focus {
        color: var(--flow-primary) !important;
    }

    #publicSiteNavOffcanvas .offcanvas-nav__footer {
        margin-bottom: env(safe-area-inset-bottom, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider2 .swiper-slide .title-box,
    .hero-slider2 .swiper-slide .content-box,
    .hero-slider2 .swiper-slide .slide-stat {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.header.header-2 .header-top {
    margin-left: clamp(0.75rem, 3vw, 1.75rem);
    margin-right: clamp(0.75rem, 3vw, 1.75rem);
}

/* Inner pages (promo hero): breadcrumb links — brand red (overrides navy --secondary in style.css) */
section.promo-sec ol.breadcrumb .breadcrumb-item a {
    color: var(--flow-primary) !important;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    font-weight: 600;
}

section.promo-sec ol.breadcrumb .breadcrumb-item a:hover {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

section.promo-sec ol.breadcrumb .breadcrumb-item.active {
    color: #fecaca !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* Join-info hero: utility classes on breadcrumb must not stay grey/white */
section.promo-sec ol.breadcrumb .breadcrumb-item a.text-white-50 {
    color: var(--flow-primary) !important;
}

section.promo-sec ol.breadcrumb .breadcrumb-item.active.text-white {
    color: #fecaca !important;
}

.footer.footer-2 .footer-widgets2 {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}

/* —— Member auth (login / register / reset) —— */
.member-guest-page.member-guest-flow {
    --mp-green: var(--flow-primary);
}

.member-guest-flow__ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1.5rem;
}

.member-guest-flow__ribbon a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.member-guest-flow__ribbon a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
}

.member-guest-flow__ribbon a.is-active {
    background: #fff;
    color: var(--flow-primary);
    border-color: #fff;
}

.member-guest-flow .member-guest-page__main {
    position: relative;
    z-index: 1;
}

.member-guest-flow .member-card-panel {
    border-radius: var(--flow-radius-lg);
    box-shadow: var(--flow-shadow-soft);
    border: 1px solid rgba(var(--flow-primary-rgb), 0.1);
}

.member-guest-flow .member-card-panel .btn-primary {
    background: linear-gradient(135deg, var(--flow-primary) 0%, #9e1918 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(var(--flow-primary-rgb), 0.28);
}

.member-guest-flow .member-card-panel .btn-primary:hover {
    filter: brightness(1.06);
}

/* —— Member panel shell —— */
.member-panel {
    background: var(--flow-surface-muted);
}

@media (min-width: 992px) {
    .member-panel {
        background: linear-gradient(105deg, #f1eae8 0%, #f5f0ee 42%, #faf7f6 100%);
    }
}

.member-panel-main__inner .alert {
    border-radius: var(--flow-radius-md) !important;
}

.member-panel-botnav {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.member-panel-botnav__tab.is-active {
    color: var(--flow-primary);
}

/* Dashboard welcome strip — secondary navy accent */
.member-dashboard-hero {
    border-left: 4px solid var(--flow-secondary);
}

/* —— Donation page — UPI QR —— */
.donation-qr-panel {
    max-width: 420px;
}

.donation-qr-card {
    border-radius: var(--flow-radius-lg);
    border: 1px solid rgba(var(--flow-primary-rgb), 0.12) !important;
}

.donation-qr-figure {
    display: inline-block;
    margin: 0;
    padding: 0.5rem;
    background: linear-gradient(145deg, #fafafa 0%, #fff 100%);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.donation-qr-img {
    display: block;
    max-width: min(280px, 78vw);
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* —— Public site footer (layout + contrast; overrides theme “pill” footer-2) —— */
.footer.footer-2.site-footer {
    margin: 0;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    border-radius: 0;
    padding-top: clamp(2.75rem, 5vw, 4rem);
    padding-bottom: 0;
    background: linear-gradient(165deg, #231717 0%, var(--tertiary, #2c1818) 38%, #1a1212 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.footer.site-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 85% 0%, rgba(var(--flow-primary-rgb), 0.14), transparent 55%);
    z-index: 0;
}

.footer.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer.site-footer .footer-widgets2 {
    padding: 0 0 2.25rem;
}

@media (min-width: 992px) {
    .footer.site-footer .footer-widgets2 {
        padding-bottom: 2.75rem;
    }
}

.footer.site-footer .footer-widget .widget-title {
    margin-bottom: 1.125rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.footer.site-footer .footer-widget .widget-title::before,
.footer.site-footer .footer-widget .widget-title::after {
    display: none !important;
}

.footer.site-footer .site-footer__logo {
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

.footer.site-footer .site-footer__tagline {
    max-width: 28rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

.footer.site-footer .site-footer__org p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    font-size: 0.9375rem;
}

/* Quick links: two columns (two items per row) */
.footer.site-footer .site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 0.5rem;
    align-items: start;
    padding-left: 1.25rem;
}

.footer.site-footer .site-footer__links li {
    margin-bottom: 0;
}

.footer.site-footer .site-footer__links li a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.footer.site-footer .site-footer__links li:hover a {
    color: #fff;
}

.footer.site-footer .footer-widget ul li::before {
    color: rgba(255, 255, 255, 0.45);
}

.footer.site-footer .site-footer__bar {
    margin-top: 0;
    padding-top: 1rem !important;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--flow-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.footer.site-footer .site-footer__bar .site-footer__bar-inner > p {
    color: rgba(255, 255, 255, 0.96) !important;
}

.footer.site-footer .site-footer__bar-inner {
    width: 100%;
}

.footer.site-footer .site-footer__credit {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .footer.site-footer .site-footer__credit {
        white-space: normal;
    }
}

.footer.site-footer .site-footer__credit-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer.site-footer .site-footer__credit-link:hover {
    color: inherit;
}

@media (max-width: 575.98px) {
    .footer.site-footer {
        padding-top: 2.25rem;
    }

    .footer.site-footer .footer-widget {
        margin-bottom: 0;
    }
}

/* Home hero slider: navy “secondary” is hard to read on dark photos — use brand red */
.slider-2-sec .sub-title {
    color: var(--flow-primary) !important;
}

.slider-2-sec .slide-title .text-secondary,
.slider-2-sec .slide-content h1 .text-secondary {
    color: var(--flow-primary) !important;
}

.slider-2-sec .slide-actions .btn-secondary {
    background: linear-gradient(135deg, var(--flow-primary) 0%, #9e1918 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(var(--flow-primary-rgb), 0.28);
}

.slider-2-sec .slide-actions .btn-secondary:hover,
.slider-2-sec .slide-actions .btn-secondary:focus {
    background: linear-gradient(135deg, #d42827 0%, var(--flow-primary) 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    filter: brightness(1.05);
}

/* Donation page — bank blocks + single-row UPI + banks */
.donation-bank-container {
    max-width: min(1100px, 100%);
}

.donation-pay-wrap {
    padding: clamp(1rem, 3vw, 1.75rem);
    border-radius: var(--flow-radius-lg);
    background: linear-gradient(180deg, #faf8f8 0%, #f3f4f6 100%);
    border: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.donation-pay-wrap--three .donation-pay-row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.donation-pay-tile {
    border-radius: var(--flow-radius-md) !important;
}

.donation-pay-tile__head {
    background: linear-gradient(135deg, #166534 0%, #0d9488 100%) !important;
    border-bottom: 0 !important;
}

.donation-pay-step-label {
    letter-spacing: 0.06em;
}

.donation-pay-row .donation-qr-img {
    max-width: min(220px, 72vw);
}

.donation-pay-tile .sub-title {
    color: var(--flow-primary) !important;
}

.donation-page-intro {
    max-width: 40rem;
    padding: 1rem 1.25rem;
    border-radius: var(--flow-radius-md);
    background: var(--flow-surface-muted);
    border: 1px solid rgba(30, 58, 95, 0.1);
    font-size: 0.98rem;
    line-height: 1.6;
    color: #4a5568;
}

.donation-org-card {
    border-radius: var(--flow-radius-lg) !important;
}

.donation-org-card__head {
    background: linear-gradient(135deg, var(--flow-primary) 0%, #9e1918 100%) !important;
    border-bottom: 0 !important;
}

.donation-bank-hint {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: #6b7280 !important;
}

.donation-bank-plain {
    font-size: 1.02rem;
    color: #1f2937;
}

.donation-bank-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
    padding: 0.5rem 0.65rem;
    background: #f4f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.donation-bank-pill__value {
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Compact copy control (donation bank rows) */
.donation-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    margin: 0;
    padding: 0.18rem 0.42rem;
    font-family: var(--font-family-btn, "Onest", sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--flow-primary);
    background: #fff;
    border: 1px solid rgba(var(--flow-primary-rgb), 0.38);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.donation-copy-btn:hover {
    background: rgba(var(--flow-primary-rgb), 0.08);
    border-color: var(--flow-primary);
    box-shadow: 0 2px 6px rgba(var(--flow-primary-rgb), 0.15);
}

.donation-copy-btn:focus-visible {
    outline: 2px solid var(--flow-primary);
    outline-offset: 2px;
}

.donation-copy-btn__icon {
    font-size: 0.58rem;
    line-height: 1;
    opacity: 0.92;
}

.donation-copy-btn__lbl {
    position: relative;
    top: 0.5px;
}

.donation-copy-btn.is-copied {
    color: #fff;
    background: #15803d;
    border-color: #15803d;
    box-shadow: 0 1px 3px rgba(21, 128, 61, 0.35);
}

.donation-copy-btn.is-copied:hover {
    background: #166534;
    border-color: #166534;
    color: #fff;
}

.donation-footer-note {
    max-width: 40rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
}
