/* ============================================
   Success Stories Page — Synchrony
   Page-specific styles only.
   Global resets, navigation, and footer styles
   are handled by global CSS includes.
   ============================================ */

/* ============================================
   HERO
   ============================================ */
.ss-hero {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ss-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ss-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(78.86deg, #2D2E35 10%, rgba(59, 60, 67, 0.5) 50%, rgba(249, 249, 249, 0) 75%);
    z-index: 1;
}

.ss-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 45px;
    max-width: 781px;
}

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */
.ss-testimonial {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 44px;
    max-width: 1440px;
    min-height: 546px;
    margin: 0 auto;
}

.ss-testimonial__text-container {
    display: flex;
    align-items: center;
    padding: 64px 90px 64px 45px;
    gap: 36px;
    width: 100%;
    max-width: 1350px;
    background: #F3F6F6;
    border-radius: 16px;
}

.ss-testimonial__quote-block {
    display: flex;
    gap: 16px;
    flex: 1;
}

.ss-testimonial__quote-icon {
    width: 47px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.ss-testimonial__quote-content {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 32px;
    flex: 1;
}

.ss-testimonial__slide {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.ss-testimonial__slide--active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.ss-testimonial__slide--enter-right { transform: translateX(40px); }
.ss-testimonial__slide--enter-left  { transform: translateX(-40px); }

.ss-testimonial__slide--active.ss-testimonial__slide--enter-right,
.ss-testimonial__slide--active.ss-testimonial__slide--enter-left {
    transform: translateX(0);
}

.ss-testimonial__quote {
    color: #2D2E35;
    margin: 0;
}

.ss-testimonial__author {
    display: flex;
    flex-direction: column;
}

.ss-testimonial__name { color: #246697; }
.ss-testimonial__org  { color: #3B3D49; }

.ss-testimonial__pagination {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}

.ss-testimonial__dots {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ss-testimonial__dot {
    width: 10px;
    height: 10px;
    border-radius: 500px;
    background: #D7D9D9;
    transition: width 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.ss-testimonial__dot--active {
    width: 36px;
    background: #3B3D49;
}

.ss-testimonial__arrows {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ss-testimonial__arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 2px solid #B7BDC9;
    background: transparent;
}

.ss-testimonial__arrow svg path { stroke: #B7BDC9; }

.ss-testimonial__arrow--right,
.ss-testimonial__arrow--left.ss-testimonial__arrow--active {
    background: #3B3D49;
    border-color: #3B3D49;
}

.ss-testimonial__arrow--right svg path,
.ss-testimonial__arrow--left.ss-testimonial__arrow--active svg path {
    stroke: #FFFFFF;
}

.ss-testimonial__arrow--right.ss-testimonial__arrow--inactive {
    background: transparent;
    border-color: #B7BDC9;
}

.ss-testimonial__arrow--right.ss-testimonial__arrow--inactive svg path {
    stroke: #B7BDC9;
}

/* ============================================
   DISCLOSURES
   ============================================ */
.ss-disclosures {
    display: flex;
    justify-content: center;
    padding: 16px 45px 128px 45px;
    max-width: 1440px;
    margin: 0 auto;
}

.ss-disclosures__text {
    max-width: 1350px;
    width: 100%;
    color: #000000;
    text-align: left;
}

/* ============================================
   TABLET (≤1024px) — also covers mobile
   ============================================ */
@media (max-width: 1024px) {
    .ss-hero {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .ss-hero__bg-img {
        position: relative;
        inset: auto;
        height: 300px;
    }

    .ss-hero__overlay { display: none; }

    .ss-hero__content {
        position: relative;
        padding: 48px 45px;
        max-width: 100%;
        gap: 16px;
        background: #2D2E35;
    }

    .ss-hero__content h1,
    .ss-hero__content p {
        color: #FFFFFF;
    }

    .ss-testimonial {
        padding: 50px 45px;
        max-width: 100vw;
        overflow: hidden;
        box-sizing: border-box;
    }

    .ss-testimonial__text-container {
        padding: 48px 100px 24px 42px;
        min-height: 426px;
        margin-right: -60px;
    }

    .ss-testimonial__quote-block {
        flex-direction: column;
        gap: 28px;
    }

    .ss-testimonial__quote-content {
        width: 100%;
    }
}

/* ============================================
   MOBILE (≤767px)
   ============================================ */
@media (max-width: 767px) {
    .ss-hero {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .ss-hero__bg-img {
        position: relative;
        inset: auto;
        height: 250px;
    }

    .ss-hero__overlay { display: none; }

    .ss-hero__content {
        position: relative;
        padding: 40px 31px;
        max-width: 100%;
        gap: 16px;
        background: #2D2E35;
    }

    .ss-hero__content h1,
    .ss-hero__content p {
        color: #FFFFFF;
    }

    .ss-testimonial {
        grid-template-columns: 1fr;
        padding: 40px 31px;
        min-height: auto;
    }

    .ss-testimonial__text-container {
        padding: 40px 16px 40px 32px;
        min-height: auto;
        border-radius: 0 24px 24px 0;
        margin-right: 0;
        margin-bottom: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    .ss-testimonial__quote-block { gap: 24px; }

    .ss-testimonial__arrows {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .ss-testimonial__pagination { justify-content: center; }

    .ss-testimonial__image {
        justify-self: center;
        position: relative;
        bottom: 50px;
    }

    .ss-disclosures { padding: 16px 16px 64px; }
}
