/* 고객후기 슬라이더 스타일 */
.testimonials-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    overflow: hidden;
    /* 넘치는 부분 숨김 */
}

/* 애니메이션 비활성화 */
.testimonials-section *,
.testimonials-container *,
.testimonials-slider *,
.testimonial-item *,
.testimonial-content * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.testimonials-section,
.testimonials-container,
.testimonials-slider,
.testimonial-item,
.testimonial-content {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.testimonials-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
    /* 컨테이너 넘침 방지 */
}

/* 일반 슬라이더 스타일 */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-height: none;
    overflow: visible;
}

.testimonial-item {
    flex: 0 0 calc(50% - 15px);
    min-width: 300px;
    margin-bottom: 30px;
    display: flex;
    height: auto;
}

/* 탭 환경의 슬라이더 스타일 */
.tab-content .testimonials-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    width: 100%;
}

.tab-content .testimonial-item {
    flex: none;
    width: 100%;
    margin: 0;
    min-width: 0;
}

.testimonial-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.testimonial-content:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    flex: 1;
    margin-bottom: 20px;
    overflow: auto;
    max-height: none;
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    position: relative;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.testimonial-text p::before {
    content: '"';
    font-size: 3rem;
    color: rgba(52, 152, 219, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.95rem;
    color: #777;
}

/* 슬라이더 컨트롤 버튼 */
.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background-color: #ff7800;
    color: white;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.slider-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f1f1;
    box-shadow: none;
}

.slider-btn.disabled:hover {
    background-color: #f1f1f1;
    color: #999;
    box-shadow: none;
}

.slider-btn i {
    font-size: 1.2rem;
}

/* 슬라이더 인디케이터 */
.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
}

.dot.active {
    background-color: #ff7800;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .tab-content .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tab-content .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .tab-content .testimonial-item {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* 폐업대행 페이지 후기 탭 스타일 */
.testimonial-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.tab-btn {
    background-color: #fff;
    color: var(--dark);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    justify-content: center;
}

.tab-btn i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.tab-btn.active i {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
}

/* 탭 콘텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 폐업대행 페이지의 후기 이미지 스타일 */
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 사업주 후기와 회원 후기 아이템 스타일 개선 */
#business-tab .testimonial-item {
    background-color: rgba(255, 255, 255, 0);
    border-radius: 30px;
}

#member-tab .testimonial-item {
    background-color: rgba(255, 255, 255, 0);
    border-radius: 30px;
}

/* 회원후기 탭 활성화 스타일 */
.tab-btn[data-tab="member"].active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.tab-btn[data-tab="member"].active::after {
    border-top: 10px solid #4CAF50;
}