/*
 * Home page "Artist Success Stories" (Website Management > Success Stories).
 * Scoped to .dw-stories; the card look itself comes from custom.css
 * (.author-info, .groinner, .testimonial-desc ...).
 */

.dw-stories .dw-stories__item,
.dw-stories .dw-stories__item .author-info {
    height: 100%;
}

.dw-stories .dw-stories__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dw-stories .dw-stories__foot {
    margin-top: auto;
}

/* Story text: three lines, then a smooth open / close (height set by JS). */
.dw-stories .dw-stories__text {
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.4, 0, .2, 1);
}

.dw-stories .dw-stories__text.expanded {
    overflow: hidden;
}

.dw-stories .dw-stories__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    transition: color .2s ease;
}

.dw-stories .dw-stories__more[hidden] {
    display: none;
}

.dw-stories .dw-stories__more::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .35s ease;
}

.dw-stories .dw-stories__more[aria-expanded="true"]::after {
    transform: translateY(1px) rotate(-135deg);
}

.dw-stories .dw-stories__more:focus-visible {
    outline: 2px solid #ffae00;
    outline-offset: 3px;
    border-radius: 2px;
}

.dw-stories .dw-stories__star--off {
    color: rgba(255, 255, 255, .2);
}

.dw-stories .dw-stories__platform {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 15px;
    transition: background .2s ease;
}

.dw-stories .spoty a:hover .dw-stories__platform {
    background: #ff2b8a;
}

/* Slider (more than three stories) */
.dw-stories .dw-stories__swiper {
    padding-bottom: 4px;
}

.dw-stories .dw-stories__swiper .swiper-slide {
    height: auto;
}

.dw-stories .dw-stories__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}

.dw-stories .dw-stories__arrow {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(#1e142b, #0e051a) padding-box,
        linear-gradient(90deg, #ffb300 0%, #ff8800 40%, #ff4f8a 70%, #ff0080 100%) border-box;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.dw-stories .dw-stories__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dw-stories .dw-stories__arrow:hover:not(.swiper-button-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 43, 138, .35);
}

.dw-stories .dw-stories__arrow:focus-visible {
    outline: 2px solid #ffae00;
    outline-offset: 3px;
}

.dw-stories .dw-stories__arrow.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

.dw-stories .dw-stories__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.dw-stories .dw-stories__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, .3);
    opacity: 1;
    transition: width .3s ease, background .3s ease;
}

.dw-stories .dw-stories__dots .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffb300, #ff0080);
}

@media (prefers-reduced-motion: reduce) {
    .dw-stories .dw-stories__text,
    .dw-stories .dw-stories__more::after,
    .dw-stories .dw-stories__arrow {
        transition: none;
    }
}
