:root {
    --sp-color-maroon: #5a0a32;
    --sp-color-bg: #f8f6f4;
    --sp-color-card-bg: #ffffff;
    --sp-color-text-main: #1b1c1c;
    --sp-color-text-muted: #52424a;
    --sp-color-dot-inactive: #d7c1c9;
    --sp-font-family: 'Montserrat', sans-serif;
}

.sp-testimonial-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sp-testimonial-section {
    width: 100%;
    /*max-width: 900px;*/
    margin: 20px auto;
    font-family: var(--sp-font-family);
    contain: content; /* Optimizes rendering pipeline performance */
}

.sp-testimonial-card {
    background-color: var(--sp-color-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 32px 24px 48px;
    overflow: hidden;
    min-height: 320px;
}

@media (min-width: 768px) {
    .sp-testimonial-card {
        padding: 48px 64px 56px;
        min-height: 280px;
    }
}

.sp-testimonial-slides-wrapper {
    width: 100%;
    position: relative;
}

.sp-testimonial-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    will-change: opacity, transform;
}

.sp-testimonial-slide.sp-active {
    display: flex;
    animation: spFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (min-width: 768px) {
    .sp-testimonial-slide {
        flex-direction: row;
        align-items: center;
    }
}

@keyframes spFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 4px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.sp-avatar-wrapper {
    flex-shrink: 0;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .sp-avatar-wrapper {
        width: 30%;
        margin-bottom: 0;
        justify-content: flex-start;
    }
}

.sp-avatar-img {
    height: 160px;
    width: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
}

@media (min-width: 768px) {
    .sp-avatar-img {
        height: 192px;
        width: 192px;
    }
}

.sp-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .sp-content-wrapper {
        width: 70%;
        padding-left: 48px;
        text-align: left;
    }
}

.sp-section-title {
    color: var(--sp-color-maroon);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .sp-section-title {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }
}

.sp-quote-text {
    color: var(--sp-color-text-muted);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    margin-bottom: 20px;
        border: none;
}

@media (min-width: 768px) {
    .sp-quote-text {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 24px;
    }
}

.sp-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .sp-author-info {
        align-items: flex-start;
    }
}

.sp-author-name {
    color: var(--sp-color-text-main);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.sp-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--sp-color-maroon);
    color: #ffffff;
    font-weight: 600;
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 9999px;
    letter-spacing: 0.03em;
}

.sp-badge-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sp-pagination-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.sp-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--sp-color-dot-inactive);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.sp-dot-btn:hover {
    background-color: var(--sp-color-maroon);
}

.sp-dot-btn.sp-active {
    background-color: var(--sp-color-maroon);
    transform: scale(1.2);
}