@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 160px 0; 
    height: 928px; 
    min-height: 928px;
    max-height: 928px;
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    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: rgba(0, 0, 0, 0.4); 
}

.testimonial-wrapper {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 80px;
    box-sizing: border-box;
}

.testimonial-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    color: #FFFFFF;
    animation: fadeInUp 1s ease-out;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.testimonial-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    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: 400;
    line-height: 20px;
}

.section-title {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 64px;
    margin: 0;
    display: block;
    white-space: normal;
}

.section-description {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    text-align: right;
    margin: 0;
    opacity: 0.9;
    max-width: 400px;
    margin-top: 41px;
}

.testimonial-slider-container {
    position: relative;
    width: 100%;
    padding: 0 80px;
    box-sizing: border-box;
}

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

.testimonial-card.active {
    display: flex;
}

.card-image-wrapper {
    flex: 0 0 335px;
}

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

.card-content {
    flex: 1;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow-y: auto;
}

.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;
    font-weight: 400;
    color: #000000;
    margin: 0 0 24px 0;
}

.testimonial-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-list li {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    display: flex;
    align-items: flex-start;
}

.testimonial-list li::before {
    content: "•";
    margin-right: 8px;
    color: #000000;
    flex-shrink: 0;
}

.content-details{
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.content-thumbnails {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
}

.content-thumbnails img {
    width: 132px;
    height: 75px;
    object-fit: cover;
    border-radius: 0;
}

.slider-navigation {
    position: absolute;
    bottom: -84px;
    right: 80px;
    display: flex;
    z-index: 10;
}

.nav-btn {
    width: 60px;
    height: 60px;
    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;

    border-radius: 0; 

    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-wrapper { padding: 0 24px; }
    .testimonial-slider-container { padding: 0; }
    .testimonial-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .section-description { text-align: left; max-width: 100%; margin-top: 0; }
    .testimonial-card { height: auto; }
    .testimonial-card.active { flex-direction: column; }
    .card-image-wrapper { flex: 0 0 auto; width: 100%; }
    .card-image-wrapper img { height: 300px; }
    .card-content { height: auto; padding: 32px 24px; }
    .slider-navigation { bottom: -60px; right: 0; }
}