/**
 * Testimonial Slider Styles - Exact match to index.html
 */

/* Testimonial Card Container */
.testimonial-card {
    max-width: 774px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 0;
    position: relative;
    min-height: 400px;
    cursor: grab;
    user-select: none;
}

.content-section.dragging {
    cursor: grabbing;
}

/* Content Wrapper - Base styles */
.content-wrapper {
    position: absolute;
    width: 711px;
    max-width: 100%;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.content-wrapper.dragging {
    transition: none;
}

/* Testimonial Slide Card */
.content-wrapper.testimonial-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 1px 1px 8px 2px #0b0b0b1c;
    background: linear-gradient(180deg, #F1F1FF 0%, #FFFFFF 100%),
        linear-gradient(180deg, rgba(234, 243, 251, 0) 0%, #FFFFFF 100%);
}

/* Active Slide */
.content-wrapper.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
    animation: slideInFromTop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    background: linear-gradient(180deg, #F1F1FF 0%, #FFFFFF 100%),
        linear-gradient(180deg, rgba(234, 243, 251, 0) 0%, #FFFFFF 100%);
    text-align: left;
}

/* Inactive Slides */
.content-wrapper.testimonial-slide:not(.active) {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    pointer-events: none;
}

/* Previous Slide (stacked behind - left rotation) */
.content-wrapper.testimonial-slide.previous {
    opacity: 1;
    transform: translateX(-0px) translateY(0px) scale(1.01) rotate(-4deg);
    z-index: 5;
    background: linear-gradient(180deg, #F1F1FF 0%, #FFFFFF 100%),
        linear-gradient(180deg, rgba(234, 243, 251, 0) 0%, #FFFFFF 100%);
    pointer-events: auto;
}

/* Next Slide (stacked behind - right rotation) */
.content-wrapper.testimonial-slide.next {
    opacity: 1;
    transform: translateX(0px) translateY(0px) scale(1.01) rotate(4deg);
    background: linear-gradient(180deg, #F1F1FF 0%, #FFFFFF 100%),
        linear-gradient(180deg, rgba(234, 243, 251, 0) 0%, #FFFFFF 100%);
    z-index: 5;
    pointer-events: auto;
}

/* Quote */
.quote {
    font-size: 20px;
    color: #060F2D;
    font-weight: 400;
    line-height: 30px;
    margin-top: 0px;
    margin-bottom: 24px;
    min-height: 150px;
}

/* Divider */
.divider {
    height: 1px;
    background-color: #DEE5ED;
    margin-bottom: 25px;
    width: 100%;
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.author-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.author-details .author-details-name {
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
    color: #111827;
    margin: 0px;
    text-align: left;
}

.author-details p {
    font-size: 16px;
    color: #3A3E4C;
    line-height: 24px;
    font-weight: 400;
    margin: 0;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #f3f4f6;
    padding: 4px;
}

/* Controls */
.controls {
    display: flex;
    gap: 16px;
    padding-top: 48px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

@media (min-width: 768px) {
    .controls {
        padding-top: 0;
    }
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3866FF;
    border: 1px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0px 0px 0px 1px #5C71E1;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
}

/* Active/pressed state for touch feedback */
.control-btn:active {
    transform: translateY(-50%) scale(0.95);
    background-color: #2d52cc;
}

.control-btn.disabled {
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid #6943FF66;
    background-color: #ffffff00 !important;
    color: #6943FF66;
}

.control-btn.disabled:active {
    transform: none;
}

.control-btn.disabled svg {
    color: #6943FF66 !important;
    opacity: 1;
}

.control-btn svg {
    width: 20px;
    height: 20px;
    color: #fff !important;
    transition: transform 0.3s ease;
	 transform: scale(2.5);
}

.control-btn:hover .arrow-left {
    transform: rotate(12deg);
}

.control-btn:hover .arrow-right {
    transform: rotate(-12deg);
}

/* Button Positioning - Desktop */
button[id^="prevBtn"] {
    position: absolute;
    left: -94px;
}

button[id^="nextBtn"] {
    position: absolute;
    right: -94px;
}

/* Slide in from top animation */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================
   RESPONSIVE STYLES - TABLET
   =================================== */
@media all and (min-width: 768px) and (max-width: 1024px) {
    .content-wrapper {
        width: 412px;
    }

    .testimonial-card {
        max-width: 474px;
    }

    .control-btn {
        width: 25px;
        height: 25px;
    }

    .content-wrapper.testimonial-slide {
        padding: 17px;
    }

    .quote {
        font-size: 14px;
        color: #060F2D;
        font-weight: 400;
        line-height: 20px;
        margin-top: 0px;
        margin-bottom: 12px;
        min-height: 130px;
    }

    .avatar {
        width: 24px;
        height: 24px;
        border-radius: 5px;
        object-fit: cover;
    }

    .author-info {
        gap: 6px;
    }

    .author-details .author-details-name {
        font-size: 10px;
        line-height: 14px;
        font-weight: 600;
    }

    .author-details p {
        font-size: 9px;
        line-height: 13px;
        margin: 0;
    }
}

/* ===================================
   RESPONSIVE STYLES - SMARTPHONE
   =================================== */
@media all and (max-width: 767px) {
    .testimonial-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .content-wrapper {
        width: 75%;
    }

    .content-wrapper.testimonial-slide {
        padding: 16px;
    }

    .controls {
        display: flex;
        gap: 16px;
        padding-top: 48px;
        position: absolute;
        width: 100%;
        height: auto;
        z-index: 20;
        bottom: 0px;
        top: auto;
        left: 0;
        justify-content: center;
        pointer-events: none;
    }

    .quote {
        font-size: 16px;
        color: #060F2D;
        font-weight: 400;
        line-height: 22px;
        margin-top: 0px;
        margin-bottom: 16px;
        min-height: 200px;
    }

    button[id^="prevBtn"] {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }

    button[id^="nextBtn"] {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
    }

    .control-btn {
        position: relative;
        top: auto;
        transform: none;
        pointer-events: all;
        width: 48px;
        height: 48px;
    }

    .avatar {
        width: 24px;
        height: 24px;
        border-radius: 5px;
        object-fit: cover;
    }

    .author-details .author-details-name {
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
        margin: 0px;
        text-align: left;
    }

    .author-details p {
        font-size: 12px;
        color: #3A3E4C;
        line-height: 18px;
        font-weight: 400;
        margin: 0;
    }

    .author-info {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .divider {
        height: 1px;
        background-color: #DEE5ED;
        margin-bottom: 16px;
        width: 100%;
    }

    .content-section {
        min-height: 362px;
    }
}