/* ═══════════════════════════════════════════
   SUCCESS STORY PAGE — full redesign
   ═══════════════════════════════════════════ */

/* ── Hero Banner ── */
.ss-hero {
    background: #0d3606;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 560px;
}
/* YouTube video background */
.ss-hero__video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.ss-hero__video-iframe {
    /* Fill the actual .ss-hero box exactly (not the viewport) and crop-to-cover.
       The old width:177.78vh / height:56.25vw "cover" hack only produces correct
       sizing when its container IS the full viewport — .ss-hero is a fixed-height
       box, so that math was scaling the video against the wrong reference and
       looked broken/inconsistently cropped across screen sizes. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    object-position: center;
}
.ss-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,54,6,.60) 0%, rgba(26,92,8,.50) 50%, rgba(54,132,32,.38) 100%);
    z-index: 1;
}
.ss-hero__inner {
    position: relative;
    z-index: 3;
    padding: 140px 0 110px;
}
.ss-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #c6f08a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 24px;
    margin-bottom: 16px;
}
.ss-hero__title {
    font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
}
.ss-hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,.82);
    line-height: 1.75;
    max-width: 580px;
    margin: 0;
}

/* Sound toggle */
.ss-hero__sound-btn {
    position: absolute;
    bottom: 72px;
    right: 24px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.45);
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.ss-hero__sound-btn:hover {
    background: rgba(0,0,0,.55);
    border-color: rgba(255,255,255,.75);
}

/* ── Video Gallery ── */
.ss-gallery-section {
    background: linear-gradient(180deg, #f6faf2 0%, #ffffff 100%);
}
.ss-gallery-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}
.ss-gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaf6e0;
    border: 1px solid #c2e6a8;
    color: #1a5c08;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 24px;
    margin-bottom: 14px;
}
.ss-gallery-title {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
}
.ss-gallery-sub {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.ss-gallery-stage {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 14px 40px rgba(13,54,6,.1);
    border: 1px solid #eef4ea;
    padding: 18px;
}

/* Main stage */
.ss-gallery-stage .swiper.mySwiper2B {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.ss-gallery-stage .swiper.mySwiper2B .swiper-slide {
    border-radius: 20px;
}
.ss-gallery-stage .swiper.mySwiper2B .swiper-slide iframe {
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Custom nav arrows (template ships no default Swiper nav markup) */
.ss-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    margin-top: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.ss-gallery-nav:after {
    font-size: 15px !important;
    font-weight: 900;
}
.ss-gallery-nav:hover {
    background: linear-gradient(135deg, #1a5c08, #368420);
    transform: translateY(-50%) scale(1.06);
}
.ss-gallery-nav--prev { left: 14px; }
.ss-gallery-nav--next { right: 14px; }
.ss-gallery-nav.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}
.ss-gallery-nav.swiper-button-disabled:hover {
    background: rgba(0,0,0,.45);
    transform: translateY(-50%);
}

/* Thumbnail strip */
.ss-gallery-stage .swiper.mySwiper1B {
    margin-top: 16px;
    padding-bottom: 4px;
}
.ss-gallery-stage .mySwiper1B .swiper-slide {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    opacity: .55;
    transition: opacity .2s ease, transform .2s ease;
}
.ss-gallery-stage .mySwiper1B .swiper-slide:hover {
    opacity: .85;
    transform: translateY(-2px);
}
.ss-gallery-stage .mySwiper1B .swiper-slide img:not(.play-icon-img) {
    border-radius: 14px;
    aspect-ratio: 16 / 9;
}
.ss-gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
    pointer-events: none;
}
.ss-gallery-stage .mySwiper1B .swiper-slide .play-icon-img {
    height: 38px !important;
    width: 38px !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
    transition: transform .2s ease;
}
.ss-gallery-stage .mySwiper1B .swiper-slide:hover .play-icon-img {
    transform: translate(-50%, -50%) scale(1.12);
}
.ss-gallery-stage .mySwiper1B .swiper-slide-thumb-active {
    opacity: 1;
    box-shadow: 0 0 0 3px #368420 inset;
}

@media (max-width: 767px) {
    .ss-gallery-stage { padding: 10px; border-radius: 20px; }
    .ss-gallery-nav { width: 34px; height: 34px; }
    .ss-gallery-nav--prev { left: 8px; }
    .ss-gallery-nav--next { right: 8px; }
    .ss-gallery-stage .mySwiper1B .swiper-slide .play-icon-img {
        height: 30px !important;
        width: 30px !important;
    }
}

/* ── Stories section header ── */
.spacing { padding: 60px 0; }
.pt-0 { padding-top: 0 !important; }

.success-storie-wrapper.spacing.pt-0 {
    padding-top: 48px !important;
}
.ss-stories-header {
    margin-bottom: 24px;
}
.ss-stories-title {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
}
.ss-stories-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
}

/* ── Toolbar: category tabs + sort/aging filters ── */
.ss-stories-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 28px;
    border-bottom: 2px solid #eee;
}
.ss-stories-toolbar .common-tab {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border-bottom: none;
}
.ss-stories-toolbar__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 14px;
    flex-shrink: 0;
    padding-bottom: 12px;
}
.ss-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ss-filter-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    margin: 0;
}
.ss-filter-select {
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    cursor: pointer;
}
.ss-filter-select:focus {
    outline: none;
    border-color: #368420;
}
@media (max-width: 767px) {
    .ss-stories-toolbar__filters {
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 0;
        margin-bottom: 12px;
    }
    .ss-filter-group { flex: 1 1 auto; }
    .ss-filter-select { width: 100%; }
}

/* ── Category tabs ── */
.common-tab {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 4px 0 12px;
    margin: 0 0 28px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c2e6a8 #f0f0f0;
    border-bottom: 2px solid #eee;
}
.common-tab::-webkit-scrollbar { height: 4px; }
.common-tab::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.common-tab::-webkit-scrollbar-thumb { background: #c2e6a8; border-radius: 4px; }
.common-tab .nav-item { flex: 0 0 auto; width: auto; }
.common-tab .nav-item .nav-link {
    width: auto;
    border: 1.5px solid #e0e0e0;
    color: #555;
    padding: 5px 14px;
    background: #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-shadow: none;
    min-width: unset;
    text-align: left;
}
.common-tab .nav-item .nav-link:hover {
    background: #f0f9ea;
    border-color: #a8d88a;
    color: #1a5c08;
}
.common-tab .nav-item .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #1a5c08, #368420);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(54,132,32,.35);
}

/* ── Grid layout ── */
.grid-no-swiper { width: 100%; }
.success-storie-wrapper .grid-no-swiper .row.g-3 {
    --bs-gutter-x: 1.4rem;
    --bs-gutter-y: 1.4rem;
}

/* ── Story Card ── */
.ss-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e8f0e4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    transition: transform .22s ease, box-shadow .22s ease;
    position: relative;
}
.ss-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(54,132,32,.1);
    border-color: #c2e6a8;
}

/* Photo */
.ss-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0f4ee;
    flex-shrink: 0;
    /* .card-img-box (global) adds margin-bottom: 24px — neutralize it, spacing is handled by .ss-card__body padding */
    margin-bottom: 0;
}
.ss-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.ss-card:hover .ss-card__img--main { transform: scale(1.03); }

/* Main photo = "business established"; on hover, crossfade to "getting shield" */
.ss-card__img--main,
.ss-card__img--hover {
    position: absolute;
    inset: 0;
}
.ss-card__img--hover {
    opacity: 0;
    transition: opacity .35s ease;
}
.ss-card:hover .ss-card__img--hover { opacity: 1; }

/* Location badge */
.ss-card__location {
    position: absolute;
    bottom: 10px; left: 10px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

/* Repay pill */
.ss-card__repay-pill {
    position: absolute;
    top: 10px; right: 10px;
    background: linear-gradient(135deg, #1a5c08, #368420);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 3;
    letter-spacing: .3px;
}

/* Fully-repaid ribbon — matches the donor-profile app card badge */
.ss-card__success {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
    background: linear-gradient(90deg, #1f7a3d, #2fa657);
    padding: 4px 9px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* Category tag, overlaid on the photo (top-left) */
.ss-card__badges {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 3;
    max-width: calc(100% - 20px);
}
.ss-card__tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 20px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Body */
.ss-card__body {
    padding: 14px 16px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ss-card__name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-bottom: 4px;
}
.ss-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Student/Entrepreneur type pill — sits next to the name */
.ss-card__type {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2px;
    padding: 2px 7px;
    border-radius: 50px;
    white-space: nowrap;
}
.ss-card__type--entrepreneur { background: #eef3e8; color: #4F6F52; border: 1px solid #cfe0c3; }
.ss-card__type--student { background: #eef2f7; color: #3a5a78; border: 1px solid #c9d8e8; }

.ss-card__project-title,
.ss-card__disbursement-date {
    font-size: 12.5px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ss-card__project-title i,
.ss-card__disbursement-date i {
    color: #368420;
    font-size: 11px;
    width: 12px;
    text-align: center;
}

.ss-card__event-line {
    font-size: 12.5px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ss-card__event-line i {
    color: #368420;
    font-size: 11px;
    width: 12px;
    text-align: center;
}
.ss-card__event-link {
    color: #1a5c08;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #a8d88a;
}
.ss-card__event-link:hover {
    color: #368420;
    border-bottom-color: #368420;
}

/* Footer: repayment bar — styled to match the donor-profile app card */
.ss-card__footer {
    margin-top: auto;
    padding: 12px 16px 16px;
    flex-shrink: 0;
    border-top: 1px dashed #e4f0dc;
}
.ss-card__donated {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.ss-card__amount-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ss-card__amount {
    font-size: 15px;
    font-weight: 700;
    color: #368420;
    font-family: Outfit, sans-serif;
}
.ss-card__amount-sub {
    font-size: 12px;
    font-weight: 400;
    color: #777;
}
.ss-card__pct {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    background: #f0f9eb;
    color: #2a7020;
    padding: 2px 9px;
    border-radius: 50px;
    border: 1px solid #c8e6b8;
}
.ss-card__progress {
    height: 5px;
    background: #e4f0dc;
    border-radius: 100px;
    overflow: hidden;
}
.ss-card__progress .progress-bar {
    background: linear-gradient(90deg, #2d7019, #5ab82e);
    height: 100%;
    border-radius: 100px;
}

/* ── Shimmer / skeleton (unchanged logic) ── */
@keyframes ss-shimmer-shift {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes ss-shimmer-scan {
    0%   { transform: translateX(-55%); }
    100% { transform: translateX(55%); }
}
.ss-shimmer {
    background: linear-gradient(90deg, #e8e8e8 0%, #f4f4f4 42%, #e0e0e0 100%);
    background-size: 240% 100%;
    animation: ss-shimmer-shift 1.35s ease-in-out infinite;
}
.story-card-shimmer { display: none; }
html.ss-success-stories-enhanced .story-card-shimmer {
    display: block;
    position: absolute; inset: 0; z-index: 2;
    border-radius: inherit;
    background: #e8e8e8;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .4s ease, visibility .4s ease;
}
html.ss-success-stories-enhanced .story-card-shimmer::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.72) 50%, transparent 62%);
    animation: ss-shimmer-scan 1.25s ease-in-out infinite;
}
html.ss-success-stories-enhanced .card-img-box.is-image-ready .story-card-shimmer { opacity: 0; visibility: hidden; }
html.ss-success-stories-enhanced .story-card-photo { position: relative; z-index: 1; opacity: 0; transition: opacity .45s ease; }
html.ss-success-stories-enhanced .card-img-box.is-image-ready .story-card-photo { opacity: 1; }

/* Skeleton placeholders */
.success-story-skeleton {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e8f0e4;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    height: 100%;
}
.success-story-skeleton__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 180px;
}
.success-story-skeleton__body { padding: 18px 18px 10px; }
.success-story-skeleton__title { height: 1.1rem; border-radius: 6px; margin-bottom: .65rem; max-width: 80%; }
.success-story-skeleton__line  { height: .8rem; border-radius: 6px; margin-bottom: .45rem; }
.success-story-skeleton__line--short { max-width: 55%; margin-bottom: 1rem; }
.success-story-skeleton__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 12px 18px;
    border-top: 1px solid #f0f0f0;
}
.success-story-skeleton__progress { flex: 1; height: 7px; border-radius: 4px; max-width: 55%; }
.success-story-skeleton__amount  { width: 36%; height: 2rem; border-radius: 6px; }

/* Transition state */
#success-stories-container.ss-stories-transitioning {
    transition: opacity .28s ease, min-height .35s ease;
    opacity: .5;
}

/* ── Pagination ── */
.success-storie-wrapper .donor-transactions-pagination {
    margin-top: 3rem;
    margin-bottom: 1rem;
}
.success-storie-wrapper .donor-transactions-pagination nav { display: flex; justify-content: center; }
.success-storie-wrapper .donor-transactions-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0; margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.success-storie-wrapper .donor-transactions-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    appearance: none;
    line-height: 1;
    padding: 0 10px;
}
.success-storie-wrapper .donor-transactions-pagination .page-item .page-link:hover {
    background: #f0f9ea;
    border-color: #a8d88a;
    color: #1a5c08;
}
.success-storie-wrapper .donor-transactions-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1a5c08, #368420);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(54,132,32,.32);
}
.success-storie-wrapper .donor-transactions-pagination .page-item.disabled .page-link {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.success-storie-wrapper .donor-transactions-pagination .page-item--chevron .page-link {
    min-width: 42px;
    color: #555;
}
.success-storie-wrapper .donor-transactions-pagination .page-link--ellipsis {
    border-color: transparent;
    background: transparent;
    color: #999;
    cursor: default;
}
.donor-tx-pag-chevron { display: block; }
.success-storie-wrapper .donor-transactions-pagination.ss-pagination-busy {
    pointer-events: none; opacity: .65; transition: opacity .22s ease;
}

/* ── Impact Section (unchanged) ── */
.ss-impact-section { background: #f4f9f2; padding: 72px 0 64px; }
.ss-impact-eyebrow {
    display: inline-block; font-size: .8125rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: #368420; margin-bottom: 14px;
}
.ss-impact-intro { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.ss-impact-heading {
    font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
    font-weight: 800; color: #1a1a1a; line-height: 1.25; margin-bottom: 18px;
}
.ss-impact-body { font-size: 1.0625rem; color: #555; line-height: 1.75; margin-bottom: 0; }
.ss-impact-pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 52px; }
.ss-impact-pillar {
    background: #fff; border-radius: 14px; border: 1px solid #ddefd6;
    padding: 28px 22px 26px; text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.ss-impact-pillar:hover { box-shadow: 0 8px 28px rgba(54,132,32,.1); transform: translateY(-3px); }
.ss-impact-pillar__icon { width: 56px; height: 56px; margin: 0 auto 18px; }
.ss-impact-pillar__icon svg { width: 56px; height: 56px; }
.ss-impact-pillar h3 { font-size: 1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.ss-impact-pillar p  { font-size: .9rem; color: #555; line-height: 1.65; margin-bottom: 0; }
.ss-impact-quote { text-align: center; }
.ss-impact-quote blockquote {
    display: inline-block;
    font-size: clamp(1.0625rem, .9rem + .75vw, 1.375rem);
    font-style: italic; font-weight: 600; color: #2a6a18;
    border-left: 4px solid #368420;
    padding: 12px 28px; margin: 0; text-align: left;
    background: rgba(54,132,32,.05); border-radius: 0 8px 8px 0; max-width: 720px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .ss-shimmer, html.ss-success-stories-enhanced .story-card-shimmer::after { animation: none; }
    html.ss-success-stories-enhanced .story-card-shimmer { background: #ececec; transition: none; }
    html.ss-success-stories-enhanced .story-card-photo { transition: none; opacity: 1; }
    #success-stories-container.ss-stories-transitioning { transition: none; opacity: .85; }
    .ss-card { transition: none; }
    .ss-card__img { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ss-impact-pillars { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 767px) {
    .ss-hero { min-height: 420px; }
    .ss-hero__inner { padding: 110px 0 80px; }
}
@media (max-width: 575px) {
    .ss-impact-pillars { grid-template-columns: 1fr; }
    .ss-impact-section { padding: 48px 0; }
    .success-storie-wrapper .donor-transactions-pagination .page-item .page-link {
        min-width: 36px; height: 36px; font-size: 13px;
    }
}
