/* ══════════════════════════════════════════
   CSR Carousel – shortcode.css
   ══════════════════════════════════════════ */

/* Section wrapper */
.csr-carousel-section {
    position: relative;
    overflow: visible;
}

/* Viewport clips overflowing cards */
.csr-carousel-viewport {
    overflow: hidden;
}

/* Flex track */
.csr-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Card ── */
.csr-card {
    flex: 0 0 calc((100% - 80px) / 3);
    /* 3 cards, 2 × 40px gaps */
    margin-right: 40px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.csr-card:last-child {
    margin-right: 0;
}

/* Image */
.csr-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    display: block;
    border-radius: 34px
}

/* Body */
.csr-card__body {
    padding: 24px 0px 28px 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Label (Project 1 / Our Stories) */
.csr-card__label {
    font-size: 13px;
    font-style: italic;
    color: #3CD028;
    margin-bottom: 8px;
    display: block;
}

/* Title */
.csr-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #162A3C;
    line-height: 1.3;
    margin: 0 0 12px;
}

/* Description */
.csr-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #162A3C;
    margin: 0 0;
    flex: 1;
}

p.csr-card__desc a {
    color: #02d029;
}

/* Button */
.csr-card__btn {
    margin: 35px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #3CD028;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    align-self: flex-start;
}

.csr-card__btn:hover {
    background: #32b322;
    transform: translateY(-1px);
    color: #fff;
}

/* ── Arrows ── */
.csr-arrows {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    justify-content: flex-end;
}

.csr-arrow {
    width: 34px;
    height: 34px;
    border: 1.5px solid #3CD028;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #E5E5E5;
    transition: background 0.25s ease, transform 0.15s ease;
    padding: 0;
}

.csr-arrow:hover {
    background: rgba(60, 208, 40, 0.1);
    transform: scale(1.08);
}

.csr-arrow svg {
    display: block;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

/* Tablet – 2 cards */
@media (max-width: 1024px) {
    .csr-card {
        flex: 0 0 calc((100% - 40px) / 2);
        /* 2 cards, 1 × 40px gap */
        margin-right: 40px;
    }
}

/* Mobile – 1 card (sizing handled by JS) */
@media (max-width: 600px) {
    .csr-card {
        flex: 0 0 100%;
    }
}


/* ============================================================
   DONATE TIERS
   ============================================================ */

/* ── Design tokens ── */
:root {
    --tiers-navy: #162A3C;
    --tiers-green: #3CD028;
    --tiers-off-white: #f4f6f9;
    --tiers-muted: #5a6a7e;
    --tiers-pill-w: 72px;
    --tiers-pill-open: 320px;
    --tiers-pill-h: 420px;
    --tiers-radius: 40px;
}

/* ════════════════════════════════════════════
   CAROUSEL
════════════════════════════════════════════ */

.tiers-carousel {
    display: flex;
    gap: 52px;
    align-items: center;
    width: 100%;
}

/* ── Pills strip ── */

.tiers-carousel__pills {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.tiers-carousel__pill {
    height: var(--tiers-pill-h);
    border-radius: var(--tiers-radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #14476D;
    transition:
        width 0.65s cubic-bezier(0.86, 0, 0.07, 1),
        box-shadow 0.65s cubic-bezier(0.86, 0, 0.07, 1);
}

.tiers-carousel__pill--collapsed {
    width: var(--tiers-pill-w);
    box-shadow: 0 4px 20px rgba(13, 35, 64, 0.15);
}

.tiers-carousel__pill--expanded {
    width: var(--tiers-pill-open);
    box-shadow: 0 16px 56px rgba(13, 35, 64, 0.32);
}

/* collapsed: vertical label */
.tiers-carousel__pill-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.18s ease;
    padding-bottom: 71px;
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-label {
    opacity: 0;
    pointer-events: none;
}

.tiers-carousel__pill-label span {
    color: #fff;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    user-select: none;
}

/* expanded: card shell */
.tiers-carousel__pill-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: var(--tiers-radius);
    overflow: hidden;
    transition: opacity 0.35s ease 0.30s;
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-card {
    opacity: 1;
    pointer-events: auto;
}

.tiers-carousel__pill-background {
    position: absolute;
    inset: 0;

    &.bg {
        background-size: cover;
        background-position: 70%;
        background-repeat: no-repeat;
    }
}

.tiers-carousel__pill-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #162A3CB2 100%, rgba(10, 25, 50, 0.25) 100%);
}

/* text block slides up on open */
.tiers-carousel__pill-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 53px 35px;
    transform: translateY(18px);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-body {
    transform: translateY(0);
}

/* staggered children */
.tiers-carousel__pill-tag,
.tiers-carousel__pill-name,
.tiers-carousel__pill-invest-label,
.tiers-carousel__pill-price,
.tiers-carousel__pill-link {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.38s ease,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-tag {
    opacity: 1;
    transform: none;
    transition-delay: 0.36s;
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-name {
    opacity: 1;
    transform: none;
    transition-delay: 0.42s;
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-invest-label {
    opacity: 1;
    transform: none;
    transition-delay: 0.48s;
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-price {
    opacity: 1;
    transform: none;
    transition-delay: 0.52s;
}

.tiers-carousel__pill--expanded .tiers-carousel__pill-link {
    opacity: 1;
    transform: none;
    transition-delay: 0.58s;
}

/* snap out on collapse */
.tiers-carousel__pill--collapsed .tiers-carousel__pill-tag,
.tiers-carousel__pill--collapsed .tiers-carousel__pill-name,
.tiers-carousel__pill--collapsed .tiers-carousel__pill-invest-label,
.tiers-carousel__pill--collapsed .tiers-carousel__pill-price,
.tiers-carousel__pill--collapsed .tiers-carousel__pill-link {
    transition-delay: 0s;
    transition-duration: 0.12s;
}

.tiers-carousel__pill-tag {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 12px;
    line-height: 1;
    border-bottom: 1px solid #3CD028;
    margin-bottom: 37px;
    max-width: 146px;
}

.tiers-carousel__pill-name {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 7px;
}

.tiers-carousel__pill-invest-label {
    font-size: 18px;
    line-height: 1;
    font-style: italic;
    color: #fff;
    margin-bottom: 2px;
}

.tiers-carousel__pill-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--tiers-green);
    margin-bottom: 41px;
}

.tiers-carousel__pill-link {
    display: inline-block;
    padding: 10px 35px;
    border: 1px solid var(--tiers-green);
    border-radius: 22px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s,
        opacity 0.38s ease,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.tiers-carousel__pill-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ── Right panel ── */

.tiers-carousel__panel {
    flex: 1;
    min-width: 0;
}

.tiers-carousel__panel-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tiers-carousel__panel-content.is-fading {
    opacity: 0;
    transform: translateY(8px);
}

.tiers-carousel__tier-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tiers-green);
    margin-bottom: 8px;
}

.tiers-carousel__tier-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--tiers-navy);
    line-height: 1.15;
    margin-bottom: 18px;
}

.tiers-carousel__tier-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--tiers-muted);
    margin-bottom: 14px;
}

.tiers-carousel__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tiers-carousel__donate-btn {
    padding: 10px 35px !important;
    background: var(--tiers-green) !important;
    color: #fff;
    border: 1px solid var(--tiers-green) !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s;
}

.tiers-carousel__donate-btn:hover {
    background: transparent !important;
    color: var(--tiers-green);
}

.tiers-carousel__contact-btn {
    padding: 12px 26px;
    background: transparent;
    color: var(--tiers-navy);
    border: 1px solid var(--tiers-green);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tiers-carousel__contact-btn:hover {
    background: var(--tiers-navy);
    color: #fff;
    border-color: var(--tiers-navy);
}

.tiers-carousel__eft-note {
    font-size: 12px;
    color: var(--tiers-muted);
    margin-bottom: 16px;
}

.tiers-carousel__eft-note a {
    color: var(--tiers-muted);
    text-decoration: underline;
    cursor: pointer;
}

/* mobile-only "What's Included" link */
.tiers-carousel__whats-included-link {
    display: none;
}

/* nav arrows */
.tiers-carousel__nav {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.tiers-carousel__nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E5E5E5;
    background: #E5E5E5 !important;
    display: flex;
    color: #3CD028;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.tiers-carousel__nav-btn:hover {
    border-color: var(--tiers-navy);
    background: var(--tiers-navy) !important;
}

.tiers-carousel__nav-btn svg {
    width: 14px;
    height: 14px;
}

/* mobile dots */
.tiers-carousel__dots {
    display: none;
    gap: 8px;
    margin-bottom: 20px;
}

.tiers-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccd5e0;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.tiers-carousel__dot--active {
    background: var(--tiers-green);
    width: 22px;
    border-radius: 4px;
}

/* ════════════════════════════════════════════
   MODAL
════════════════════════════════════════════ */

.tiers-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.tiers-modal.is-open {
    display: flex;
}

.tiers-modal__box {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 32px 80px rgba(10, 20, 40, 0.25);
    animation: tiersModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tiersModalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tiers-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--tiers-off-white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tiers-navy);
    transition: background 0.2s;
}

.tiers-modal__close:hover {
    background: #e2e8f0;
}

.tiers-modal__tag {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tiers-green);
    margin-bottom: 6px;
}

.tiers-modal__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--tiers-navy);
    margin-bottom: 20px;
}

.tiers-modal__eft-box {
    background: var(--tiers-off-white);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.tiers-modal__eft-box h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tiers-muted);
    margin-bottom: 12px;
}

.tiers-modal__eft-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 7px;
}

.tiers-modal__eft-row:last-child {
    margin-bottom: 0;
}

.tiers-modal__eft-label {
    color: var(--tiers-muted);
}

.tiers-modal__eft-value {
    font-weight: 600;
    color: var(--tiers-navy);
}

.tiers-modal__divider {
    border: none;
    border-top: 1px solid #e4eaf2;
    margin: 20px 0;
}

.tiers-modal__sub {
    font-size: 12px;
    color: var(--tiers-muted);
    margin-bottom: 18px;
}


/* ════════════════════════════════════════════
   BLOCK — What's Included
════════════════════════════════════════════ */

.tiers-block {
    width: 100%;
    margin-top: 120px;
}

.tiers-block__heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--tiers-navy);
    text-align: center;
    margin-bottom: 44px;
}

.tiers-block__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 53px;
    margin-bottom: 28px;
}

.tiers-block__col {
    display: block;
    scroll-margin-top: 90px;
}

#wi-tier-4 {
    grid-column: span 3;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 30px 55px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;

    .tiers-block__description {
        width: 600px;
    }

    .tiers-block__tier-label {
        width: 128px;
    }
}

.tiers-block__tier-label {
    font-size: 24px;
    font-weight: 700;
    color: var(--tiers-green);
    margin-bottom: 2px;
}

.tiers-block__tier-name {
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    color: var(--tiers-navy);
    margin-bottom: 16px;
}

.tiers-block__description {
    margin-bottom: 22px;
}

.tiers-block__description ul,
.tiers-block__description ol {
    padding-left: 20px;
    margin: 0;
}

.tiers-block__description li {
    padding-bottom: 15px;
}

.tiers-block__description :is(li, p) {
    font-size: 16px;
    line-height: normal;
    color: var(--tiers-navy);
    position: relative;
}

.tiers-block__donate-btn {
    padding: 10px 35px !important;
    background: var(--tiers-green) !important;
    color: #fff;
    border: 1px solid var(--tiers-green) !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s;
}

.tiers-block__donate-btn:hover {
    background: transparent !important;
    color: var(--tiers-green);
}

.tiers-block__donate-btn:active {
    background: var(--tiers-green);
    color: #fff;
}

.tiers-block__eft {
    margin-top: 10px;
    font-size: 13px;
    color: var(--tiers-navy);
}

.tiers-block__eft-link {
    color: var(--tiers-navy);
    text-decoration: underline;
    cursor: pointer;
}

/* Tier 4 — full-width banner row */
.tiers-block__full-row {
    background: var(--tiers-off-white);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.tiers-block__full-label {
    flex-shrink: 0;
}

.tiers-block__full-desc {
    flex: 1;
    font-size: 14px;
    font-style: italic;
    color: var(--tiers-muted);
    line-height: 1.65;
}

.tiers-block__full-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* ════════════════════════════════════════════
   MOBILE  ≤ 900px
════════════════════════════════════════════ */

@media (max-width: 900px) {

    /* carousel */
    .tiers-carousel {
        flex-direction: column;
        padding: 32px 24px;
        gap: 0;
        border-radius: 20px;
    }

    .tiers-carousel__pills {
        display: none;
    }

    .tiers-carousel__dots {
        display: flex;
    }

    .tiers-carousel__tier-title {
        font-size: 22px;
    }

    .tiers-carousel__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tiers-carousel__donate-btn,
    .tiers-carousel__contact-btn {
        text-align: center;
    }

    /* fade only on mobile — no slide */
    .tiers-carousel__panel-content {
        transition: opacity 0.28s ease;
    }

    .tiers-carousel__panel-content.is-fading {
        opacity: 0;
        transform: none;
    }

    /* show What's Included link on mobile */
    .tiers-carousel__whats-included-link {
        display: inline-block;
        margin-top: 14px;
        font-size: 13px;
        font-weight: 600;
        color: var(--tiers-navy);
        text-decoration: none;
        border-bottom: 1.5px solid var(--tiers-navy);
        padding-bottom: 1px;
        transition: color 0.2s, border-color 0.2s;
    }

    .tiers-carousel__whats-included-link:hover {
        color: var(--tiers-green);
        border-color: var(--tiers-green);
    }

    /* modal */
    .tiers-modal__box {
        padding: 28px 20px;
    }

    /* block */
    .tiers-block {
        padding: 0px 32px 20px;
        border-radius: 20px;
        margin-top: 0px;
    }

    .tiers-block__heading {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .tiers-block__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    #wi-tier-4 {
        grid-column: span 1;
        padding: 20px 20px;
        display: flex;
        gap: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: normal;

        .tiers-block__description,
        .tiers-block__tier-label {
            width: 100%;
        }
    }

    .tiers-block__full-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tiers-block__full-actions {
        width: 100%;
    }

    .tiers-block__donate-btn {
        width: 100%;
        text-align: center;
    }

    .tiers-block__col {
        scroll-margin-top: 150px;
    }
}