/* Main Wrapper */
.st-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between rows */
    padding: 20px 0;
}

/* Rows */
.st-marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Masking for fade effect on logic */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.st-marquee-content {
    display: flex;
    gap: 24px;
    /* Space between cards */
    white-space: nowrap;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Animations */
/* Scroll Left (Standard): 0 -> -50% */
.scroll-left .st-marquee-content {
    animation-name: st-scroll-left;
}

@keyframes st-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Scroll Right: -50% -> 0 */
/* Because we have 2 sets of items.
   Visually we want to move L->R.
   We start at -50% (Showing the second set) and move to 0 (Showing the first set).
   Then it snaps back to -50%.
*/
.scroll-right .st-marquee-content {
    animation-name: st-scroll-right;
}

@keyframes st-scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Hover Pause */
.st-marquee-row:hover .st-marquee-content {
    animation-play-state: paused;
}

/* Cards */
.st-card {
    flex: 0 0 350px;
    /* Fixed width for cards */
    min-height: 250px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    white-space: normal;
    /* Allow text wrapping inside card */
    box-sizing: border-box;
}

.st-card:hover {
    transform: translateY(-5px);
}

/* Quote Icon */
.st-quote-icon {
    margin-bottom: 16px;
    color: #5865F2;
    /* Default brand color, likely overridden by controls */
}

/* Content */
.st-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Author Section */
.st-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.st-meta {
    display: flex;
    flex-direction: column;
}

.st-author-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.st-author-role {
    margin: 0;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .st-card {
        flex: 0 0 280px;
        padding: 20px;
    }

    .st-marquee-wrapper {
        gap: 20px;
    }
}

/* Grid Layout */
.st-grid-wrapper {
    display: grid !important;
    /* Default fallback, overridden by Elementor controls */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    width: 100%;
    align-items: start;
    /* Default to natural height */
}

.st-grid-wrapper.st-equal-height {
    align-items: stretch;
    /* Stretch to fill row height */
}

/* Card adjustments for Grid */
.st-grid-wrapper .st-card {
    width: auto;
    /* Override fixed width from marquee */
    height: 100%;
    /* Fill the grid cell height */
    flex: 1 1 auto;
}

/* Slider Layout */
.st-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.st-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.st-slider-slide {
    min-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 10px;
    /* Small gap simulation */
}

.st-slider-slide .st-card {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

/* Arrows */
.st-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    transition: all 0.2s ease;
}

.st-slider-arrow:hover {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
}

.st-prev {
    left: 10px;
}

.st-next {
    right: 10px;
}

/* Dots */
.st-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.st-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.st-slider-dot.active {
    background: #5865F2;
    transform: scale(1.2);
}