/* ========================== Quote ========================== */

.quote {
    background: var(--color-ivory);
    align-self: stretch;
    padding: var(--space-20) var(--space-10);
    display: flex;
    justify-content: center;
}

.quote__container {
    width: 100%;
    max-width: 1100px;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Image */

.quote__image-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 457px;
    height: 600px;
}

.quote__image {
    position: absolute;
    top: 20px;
    width: 580px;
    height: 580px;
    object-fit: contain;
}

/* Content */

.quote__content {
    position: absolute;
    left: 480px;
    top: 162px;
    width: 604px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
    text-align: center;
}

.quote__slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.quote__track {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
    align-items: flex-start;
}

.quote__text {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    padding: 0 8px;
    color: var(--pink-500);
    font-family: var(--font-family-display);
    font-size: var(--text-h4);
    font-style: italic;
    font-weight: var(--font-regular);
    line-height: var(--leading-h2);
    text-align: center;
}

.quote__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.quote__name,
.quote__role {
    margin: 0;
}

.quote__name {
    color: var(--color-deep-petrol);
    font-family: var(--font-family-primary);
    font-size: var(--text-h5);
    font-weight: var(--font-semibold);
    line-height: var(--leading-h5);
    padding: 0 6px;
    text-align: center;
}

.quote__role {
    color: var(--grey-950);
    font-family: var(--font-family-primary);
    font-size: var(--text-body);
    font-weight: var(--font-regular);
    line-height: 20px;
    text-align: center;
}

.quote__pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-6);
}

.quote__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grey-300);
    transition: all .3s ease;
}

.quote__dot--active {
    width: 24px;
    border-radius: 999px;
    background: var(--pink-500);
}


/* ==========================Responsive — Tablet========================== */

/* Tablet (<=1024px) */

@media (max-width: 1024px) {

    .quote {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }

    .quote__container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-8);
    }

    .quote__image-wrapper {
        position: static;
        width: 100%;
        max-width: 380px;
        height: auto;
    }

    .quote__image {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 380px;
        height: auto;
    }

    .quote__content {
        position: static;
        width: 100%;
        max-width: 604px;
        height: auto;
    }
}


/* ========================== Mobile (<=768px) ========================== */

@media (max-width: 768px) {

    .quote__text {
        text-align: center;
    }
}


/* ========================== Small Mobile (<=480px) ========================== */

@media (max-width: 480px) {

    .quote{
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .quote__text{
        font-size: var(--text-h5);
        line-height: 32px;
    }
}


/* ==========================
   Reduced Motion
========================== */

@media (prefers-reduced-motion: reduce) {

    .quote__track,
    .quote__dot {
        transition: none;
    }
}
