/* =================================================
   BRANDING WARNA UAA
================================================= */
:root {
    --uaa-primary: #0d3b66;
    --uaa-accent: #f4b41a;
    --uaa-gradient: linear-gradient(135deg, #0d3b66, #1d5fa7);
}

/* =================================================
   WRAPPER SWIPER (KUNCI VIEWPORT)
================================================= */
.testimoni-swiper {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 0;
    overflow: hidden; /* 🔒 KUNCI: ANTI SLIDE KE-4 */
}

/* =================================================
   SWIPER CORE
================================================= */
.testimoni-swiper .swiper-wrapper {
    overflow: visible;
}

.swiper-slide {
    padding: 20px 16px;
    box-sizing: border-box;
    height: auto;
    display: flex;
}

/* =================================================
   CARD TESTIMONI (EQUAL HEIGHT)
================================================= */
.card-testimoni {
    background: #ffffff;
    width: 100%;
    padding: 36px 28px;
    border-radius: 22px;
    text-align: center;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

    box-shadow: 0 18px 45px rgba(13,59,102,0.18);
    transition: transform .35s ease, box-shadow .35s ease;
}

/* Hover halus */
.card-testimoni:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(13,59,102,0.25);
}

/* =================================================
   FOTO ALUMNI
================================================= */
.card-testimoni img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--uaa-accent);
    margin: 0 auto 14px;
}

/* =================================================
   NAMA
================================================= */
.card-testimoni h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--uaa-primary);
    margin: 8px 0 4px;
}

/* =================================================
   PRODI / ANGKATAN
================================================= */
.card-testimoni span {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

/* =================================================
   RATING
================================================= */
.rating {
    font-size: 17px;
    color: var(--uaa-accent);
    margin-bottom: 14px;
}

/* =================================================
   TESTIMONI (DIBATASI)
================================================= */
.card-testimoni p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 18px;

    max-height: 135px;
    overflow: hidden;
    position: relative;
}

/* Fade bawah */
.card-testimoni p::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 40px;
    width: 100%;
    background: linear-gradient(transparent, #ffffff);
}

/* =================================================
   CTA BUTTON
================================================= */
.btn-daftar {
    margin-top: auto;
    display: inline-block;
    background: var(--uaa-gradient);
    color: #fff;
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-daftar:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 25px rgba(13,59,102,.35);
}

/* =================================================
   NAVIGATION BUTTON (FINAL & AMAN)
================================================= */
.testimoni-prev,
.testimoni-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;

    width: 46px;
    height: 46px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    color: var(--uaa-primary);

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

/* Posisi */
.testimoni-prev {
    left: 12px;
}

.testimoni-next {
    right: 12px;
}

/* Disabled */
.testimoni-prev.disabled,
.testimoni-next.disabled {
    opacity: .3;
    pointer-events: none;
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 1024px) {
    .testimoni-swiper {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .testimoni-swiper {
        padding: 30px 0;
    }

    .testimoni-prev,
    .testimoni-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .card-testimoni {
        padding: 28px 22px;
    }

    .card-testimoni img {
        width: 110px;
        height: 110px;
    }
}
