/* ===== TESTIMONIALS ===== */
.testimonial-container {
    display: flex;
    align-items: center;
    overflow: visible;
    gap: 20px;
    position: relative;
    margin: 40px 0;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: none;
    outline: none;
}

.testimonial-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 20px 5px;
    width: 100%;
}

.testimonial-card {
    /* background: white; */
    overflow: visible;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.testimonial-text {
    position: relative;
    padding-left: 22px; /* ruang buat petik */
    margin-bottom: 20px;
}

.testimonial-text::before {
    content: "“"; /* pakai curly quote biar elegan */
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-6px); /* geser dikit ke atas */
    font-size: 2.2rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.22;
    font-family: Georgia, "Times New Roman", serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.author-info h5 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-location {
    color: #666;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-location::before {
    content: "📍";
    font-size: 0.8rem;
}

.program-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.program-link:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Navigation arrows */
.testimonial-arrow {
    background: white;
    border: 1px solid #e5e7eb;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
    z-index: 10;
}

.testimonial-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(191, 134, 34, 0.3);
}

.testimonial-arrow:active {
    transform: scale(0.95);
}

.testimonial-arrow svg {
    width: 20px;
    height: 20px;
}

.testimonial-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.testimonial-arrow.disabled:hover {
    background: white;
    color: var(--primary);
    border-color: #e5e7eb;
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Navigation dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0 20px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

.testimonial-dot::after {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
}

.testimonial-dot:hover {
    background: var(--secondary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .testimonial-container {
        max-width: 900px;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 992px) {
    .testimonial-container {
        max-width: 700px;
        gap: 15px;
    }

    .testimonial-track {
        gap: 20px;
    }

    .testimonial-arrow {
        width: 42px;
        height: 42px;
    }

    .testimonial-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .testimonial-container {
        max-width: 100%;
        padding: 0 15px;
        gap: 10px;
    }

    .testimonial-track-wrapper {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonial-track-wrapper::-webkit-scrollbar {
        display: none;
    }

    .testimonial-track {
        gap: 15px;
        padding: 10px 0;
        width: auto;
        flex-wrap: nowrap;
        transition: none;
    }

    .testimonial-card {
        flex: 0 0 85%;
        min-width: 280px;
        padding: 20px;
        scroll-snap-align: center;
    }

    .testimonial-arrow {
        display: none; /* Sembunyikan panah di mobile */
    }

    .testimonial-dots {
        margin-top: 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-text::before {
        font-size: 2rem;
        left: -8px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        margin: 30px 0;
    }

    .testimonial-track {
        gap: 12px;
        padding: 5px 0;
    }

    .testimonial-card {
        flex: 0 0 88%;
        min-width: 260px;
        padding: 18px;
    }

    .testimonial-dots {
        margin-top: 15px;
        gap: 8px;
    }

    .testimonial-dot {
        width: 6px;
        height: 6px;
    }
}

/* Animation for cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-card {
    animation: slideIn 0.4s ease forwards;
}
