/**
 * Homepage Module 6: Testimonial Carousel Section
 *
 * Splide-powered carousel with Figma styling.
 * Splide handles positioning, animations, and navigation.
 * This file contains only visual styling from Figma.
 *
 * Figma Node: 179-6848
 */

/* ==========================================================================
   SECTION CONTAINER
   ========================================================================== */

.workjam-testimonials {
    width: 100%;
    padding: 100px 40px;
    overflow: hidden;
    /* Gradient background applied via inline style */
}

.workjam-testimonials__container {
    max-width: 1512px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

.workjam-testimonials__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.workjam-testimonials__title {
    font-family: 'Avenir Next', sans-serif;
    font-size: 64px;
    font-weight: 700; /* Bold */
    color: #FFFFFF;
    line-height: 120.515%;
    margin: 0;
}

.workjam-testimonials__subtitle {
    font-family: 'Avenir Next', sans-serif;
    font-size: 24px;
    font-weight: 400; /* Regular */
    color: #FFFFFF;
    line-height: normal;
    margin: 0;
}

/* ==========================================================================
   CAROUSEL CONTAINER (SPLIDE)
   ========================================================================== */

.workjam-testimonials__carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.workjam-testimonials__track {
    max-width: 1090px;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    height: auto;
}

.splide__list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: auto;
    display: flex;
    align-items: center;
}

/* Splide fade transition stacking */
.splide__slide {
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splide__slide.is-active {
    opacity: 1;
}

/* ==========================================================================
   TESTIMONIAL CARD
   ========================================================================== */

.workjam-testimonials__card {
    background: #FFFFFF;
    border-radius: 24px;
    width: auto;
    max-width: 1090px;
    height: auto;
}

.workjam-testimonials__card-inner {
    padding: 64px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* ==========================================================================
   LABEL (LEFT COLUMN)
   ========================================================================== */

.workjam-testimonials__label {
    width: 311px;
    flex-shrink: 0;
    font-family: 'Avenir Next', sans-serif;
    font-size: 48px;
    font-weight: 700; /* Bold */
    color: #2B388F;
    line-height: 56px;
    letter-spacing: 0%;
}

/* ==========================================================================
   CONTENT (RIGHT COLUMN)
   ========================================================================== */

.workjam-testimonials__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   QUOTE SECTION
   ========================================================================== */

.workjam-testimonials__quote-container {
    position: relative;
}

.workjam-testimonials__quote-icon {
    position: absolute;
    left: -67px;
    top: -32.5px;
    width: 86px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workjam-testimonials__quote-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.workjam-testimonials__quote {
    font-family: 'Avenir Next', sans-serif;
    font-size: 28px;
    font-weight: 500; /* Medium */
    color: #121C66;
    line-height: normal;
}

.workjam-testimonials__quote p {
    margin: 0;
}

/* ==========================================================================
   COMPANY LOGO
   ========================================================================== */

.workjam-testimonials__logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.workjam-testimonials__logo-image {
    max-width: 181px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.workjam-testimonials__logo-image img {
    max-width: 181px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */

.workjam-testimonials__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #121C66;
    color: #FFFFFF;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 400; /* Regular */
    text-decoration: none;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: fit-content;
}

.workjam-testimonials__cta:hover,
.workjam-testimonials__cta:focus {
    background: #0F1754;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 28, 102, 0.3);
    color: #FFFFFF;
}

/* ==========================================================================
   SPLIDE ARROWS (CUSTOM STYLING)
   ========================================================================== */

.splide__arrows {
    position: static;
}

.workjam-testimonials__arrow {
    width: 67px;
    height: 67px;
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 1 !important;
}

.workjam-testimonials__arrow:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.workjam-testimonials__arrow:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

.workjam-testimonials__arrow svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.workjam-testimonials__arrow--left {
    left: 0;
}

.workjam-testimonials__arrow--right {
    right: 0;
}

/* ==========================================================================
   SPLIDE PAGINATION (DOTS - MOBILE)
   ========================================================================== */

.workjam-testimonials__dots {
    display: none !important; /* Hidden on desktop */
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.workjam-testimonials__dots li {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.workjam-testimonials__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.workjam-testimonials__dots button:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.workjam-testimonials__dots button.is-active {
    background: #00E0C4;
    transform: scale(1.2);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptop - 1200px */
@media (max-width: 1200px) {
    .workjam-testimonials {
        padding: 90px 40px;
    }

    .workjam-testimonials__title {
        font-size: 56px;
    }

    .workjam-testimonials__subtitle {
        font-size: 22px;
    }

    .workjam-testimonials__card-inner {
        padding: 56px;
    }

    .workjam-testimonials__label {
        font-size: 42px;
        line-height: 50px;
    }

    .workjam-testimonials__quote {
        font-size: 26px;
    }

    .workjam-testimonials__quote-icon {
        left: -60px;
        top: -28px;
        width: 76px;
        height: 62px;
    }
}

/* Tablet Landscape - 1024px */
@media (max-width: 1024px) {
    .workjam-testimonials {
        padding: 80px 32px;
    }

    .workjam-testimonials__title {
        font-size: 50px;
    }

    .workjam-testimonials__subtitle {
        font-size: 20px;
    }

    .workjam-testimonials__carousel {
        padding: 0 60px;
    }

    .workjam-testimonials__card-inner {
        padding: 48px;
        gap: 32px;
    }

    .workjam-testimonials__label {
        width: 260px;
        font-size: 38px;
        line-height: 46px;
    }

    .workjam-testimonials__quote {
        font-size: 24px;
    }

    .workjam-testimonials__arrow {
        width: 56px;
        height: 56px;
    }
}

/* Tablet - 980px */
@media (max-width: 980px) {
    .workjam-testimonials {
        padding: 70px 24px;
    }

    .workjam-testimonials__card-inner {
        flex-direction: column;
        padding: 40px;
        gap: 24px;
    }

    .workjam-testimonials__label {
        width: 100%;
        font-size: 34px;
        line-height: 42px;
        text-align: center;
    }

    .workjam-testimonials__content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .workjam-testimonials__quote-container {
        width: 100%;
        flex: 0 0 100%;
    }

    .workjam-testimonials__logo {
        flex: 0 1 auto;
    }

    .workjam-testimonials__cta {
        flex: 0 1 auto;
    }
}

/* Tablet Portrait - 768px */
@media (max-width: 768px) {
    .workjam-testimonials {
        padding: 60px 20px;
    }

    .workjam-testimonials__container {
        gap: 40px;
    }

    .workjam-testimonials__title {
        font-size: 42px;
    }

    .workjam-testimonials__subtitle {
        font-size: 18px;
    }

    .workjam-testimonials__carousel {
        padding: 0;
        max-width: 100%;
    }

    .workjam-testimonials__track {
        max-width: 100%;
    }

    /* Hide arrows on mobile */
    .workjam-testimonials__arrow {
        display: none !important;
    }

    /* Show dots on mobile */
    .workjam-testimonials__dots {
        display: flex !important;
    }

    .workjam-testimonials__card-inner {
        flex-direction: column;
        padding: 40px;
        gap: 24px;
    }

    .workjam-testimonials__label {
        width: 100%;
        font-size: 34px;
        line-height: 42px;
        text-align: center;
    }

    .workjam-testimonials__content {
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .workjam-testimonials__quote {
        font-size: 22px;
    }

    .workjam-testimonials__quote-icon {
        left: -50px;
        top: -24px;
        width: 66px;
        height: 52px;
    }

    .workjam-testimonials__logo {
        justify-content: center;
    }
}

/* Mobile - 600px */
@media (max-width: 600px) {
    .workjam-testimonials {
        padding: 50px 16px;
    }

    .workjam-testimonials__title {
        font-size: 36px;
    }

    .workjam-testimonials__subtitle {
        font-size: 16px;
    }

    .workjam-testimonials__dots {
        gap: 10px;
        margin-top: 20px;
    }

    .workjam-testimonials__card-inner {
        padding: 32px;
        gap: 20px;
    }

    .workjam-testimonials__label {
        font-size: 30px;
        line-height: 38px;
    }

    .workjam-testimonials__quote {
        font-size: 20px;
    }

    .workjam-testimonials__quote-icon {
        left: -40px;
        top: -20px;
        width: 56px;
        height: 42px;
    }

    .workjam-testimonials__cta {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile - 400px */
@media (max-width: 400px) {
    .workjam-testimonials {
        padding: 40px 12px;
    }

    .workjam-testimonials__title {
        font-size: 32px;
    }

    .workjam-testimonials__subtitle {
        font-size: 15px;
    }

    .workjam-testimonials__dots {
        gap: 8px;
        margin-top: 16px;
    }

    .workjam-testimonials__card-inner {
        padding: 24px;
    }

    .workjam-testimonials__label {
        font-size: 26px;
        line-height: 34px;
    }

    .workjam-testimonials__quote {
        font-size: 18px;
    }

    .workjam-testimonials__quote-icon {
        left: -32px;
        top: -16px;
        width: 46px;
        height: 36px;
    }
}
