/* Testimonial Widget - Main Container */
.atic-testimonial-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0 50px;
    box-sizing: border-box;
}

/* Viewport — this clips the sliding cards */
.atic-testimonial-viewport {
    overflow: hidden;
    width: 100%;
}

/* Wrapper */
.atic-testimonial-wrapper {
    display: flex;
    gap: 0;
    overflow: visible;
    padding: 8px 0 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Hide scrollbar for modern browsers */
.atic-testimonial-wrapper::-webkit-scrollbar {
    display: none;
}

.atic-testimonial-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Individual Testimonial Item */
.atic-testimonial-item {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 30px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.atic-testimonial-item:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/* Quote Icon Badge — top-right corner, perfectly centered */
.atic-testimonial-icon {
    position: absolute;
    top: 0;
    right: 0;
    width: 75px;
    height: 75px;
    background-color: #3366D1;
    border-radius: 0 12px 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
}

.atic-testimonial-icon i,
.atic-testimonial-icon svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    color: #ffffff;
}

/* Header section — name, image, position */
.atic-testimonial-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    padding-right: 50px;
    /* avoid overlap with icon badge */
}

.atic-testimonial-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Person image */
.atic-testimonial-image {
    margin: 12px 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.atic-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atic-testimonial-position {
    font-size: 13px;
    color: #888888;
    margin: 8px 0 0 0;
}

/* Text Content */
.atic-testimonial-text {
    font-size: 14px;
    line-height: 1.75;
    color: #555555;
    text-align: center;
    flex-grow: 1;
    width: 100%;
}

/* Arrows */
.atic-testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 1px solid #e0e0e8;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    z-index: 10;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.atic-testimonial-arrow:hover,
.atic-testimonial-arrow:focus-visible {
    background-color: #3366D1;
    color: #ffffff;
    border-color: #3366D1;
    box-shadow: 0 4px 16px rgba(51, 102, 209, 0.35);
}

.atic-testimonial-arrow:focus:not(:hover) {
    background-color: #ffffff;
    color: #333;
    border-color: #e0e0e8;
    outline: none;
}

.atic-testimonial-arrow:focus-visible {
    outline: 3px solid rgba(51, 102, 209, 0.25);
    outline-offset: 2px;
}

.atic-testimonial-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.atic-testimonial-arrow-prev {
    left: 0;
}

.atic-testimonial-arrow-next {
    right: 0;
}

/* Dots / Pagination */
.atic-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-bottom: 10px;
}

.atic-testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d0d0d8;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    padding: 0;
}

.atic-testimonial-dot:hover {
    background-color: #aaaaaa;
}

.atic-testimonial-dot.active {
    background-color: #4169E1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .atic-testimonial-header {
        padding-right: 50px;
    }

    .atic-testimonial-item {
        padding: 28px 24px 28px;
    }
}

@media (max-width: 768px) {
    .atic-testimonial-item {
        padding: 24px 20px 24px;
    }

    .atic-testimonial-name {
        font-size: 16px;
        margin: 0 0 10px 0;
    }

    .atic-testimonial-header {
        padding-right: 40px;
        margin-bottom: 16px;
    }

    .atic-testimonial-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .atic-testimonial-icon i,
    .atic-testimonial-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .atic-testimonial-item {
        padding: 20px 16px 20px;
    }

    .atic-testimonial-name {
        font-size: 15px;
        margin: 0 0 8px 0;
    }

    .atic-testimonial-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .atic-testimonial-header {
        padding-right: 35px;
        margin-bottom: 12px;
    }

    .atic-testimonial-image {
        width: 50px;
        height: 50px;
    }

    .atic-testimonial-position {
        font-size: 12px;
    }

    .atic-testimonial-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .atic-testimonial-icon i,
    .atic-testimonial-icon svg {
        width: 24px;
        height: 24px;
    }
}