@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-section {
    width: 100%;
    position: relative;
    padding: 80px 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFFFFF;
    overflow: hidden;
    box-sizing: border-box;
}

.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.testimonial-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
}

.testimonial-container {
    width: 100%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 48px !important;
}

.testimonial-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 80px;
    box-sizing: border-box;
    animation: fadeInUp 1s ease-out;
}

.header-left { flex: 1; display: flex; flex-direction: column; }
.header-right { flex: 1; display: flex; justify-content: flex-end; }

.testimonial-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.testimonial-badge img { 
    width: 19px !important;
    height: 29px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 19 / 29 !important;
    object-fit: contain !important;
 }

.testimonial-badge span { 
    font-family: 'IBM Plex Sans Thai', sans-serif; 
    font-size: 14px; 
    font-weight: 500; 
    color: #FFFFFF !important; 
}

.testimonial-section .section-title {
    font-family: 'IBM Plex Sans Thai', sans-serif; 
    font-size: 28px; 
    font-weight: 600; 
    line-height: 44px; 
    color: #FFFFFF !important; 
    margin: 0;
}

.testimonial-section .section-description-test {
    font-family: 'IBM Plex Sans Thai', sans-serif; 
    font-size: 18px; 
    font-weight: 400; 
    line-height: 28px; 
    text-align: right; 
    color: #FFFFFF !important; 
    max-width: 495px; 
    margin: 0;
}

.testimonial-content-wrapper {
    width: 100%;
    padding: 0 160px;
    box-sizing: border-box;
}

.testimonial-slider-outer {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px; 
}

.testimonial-card {
    display: none;
    width: 100%;
    background: #FFFFFF;
    height: 454px;
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.testimonial-card.active { display: flex; width: 100%; }

.card-image-wrapper { flex: 0 0 335px; width: 335px; height: 100%; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-content {
    flex: 1;
    padding: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.content-header h3 { font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 24px; font-weight: 600; color: #184382; margin: 0 0 4px 0; }
.region-label { font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 16px; color: #000000; margin-bottom: 24px !important; }

.testimonial-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.testimonial-list li { font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 16px; line-height: 24px; color: #000000; display: flex; }
.testimonial-list li::before { content: "•"; margin-right: 8px; color: #184382; flex-shrink: 0; }

.card-footer-only-thumbs { width: 100%; margin-top: 20px; display: flex; justify-content: center; }
.content-thumbnails { display: flex; gap: 16px; justify-content: center; }
.content-thumbnails img { width: 132px; height: 75px; object-fit: cover; border-radius: 0px; }

.slider-navigation-outer {
    display: flex;
    align-self: flex-end;
}

.nav-btn {
    width: 64px;
    height: 64px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-btn {
    width: 64px !important;
    height: 64px !important;
    padding: 14px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    cursor: pointer;
}

.nav-btn i {
    font-size: 36px !important;
    line-height: 1;
}

.nav-btn.prev {
    background: #FFFFFF;
    color: #184382;
    border: 1px solid #E5E7EB;
}

.nav-btn.next {
    background: #184382;
    color: #FFFFFF;
    border: 1px solid #184382; 
}

@media (max-width: 1024px) {
    .testimonial-header { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
    .testimonial-content-wrapper { padding: 0 24px; }
    .testimonial-section .section-description-test { text-align: left; }
    .testimonial-card.active { flex-direction: column; height: auto; }
    .card-image-wrapper { flex: none; width: 100%; height: 300px; }
    .card-content { padding: 24px !important; }
    .slider-navigation-outer { width: 100%; justify-content: flex-end; margin-top: 10px; }
}