﻿.testimoni-section {
    background: linear-gradient(to right, #007e33, #20903e);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.testimoni-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Navigation buttons */
.btn-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 20;
    margin: 0 15px;
    transition: all 0.3s;
}

.btn-nav:hover {
    background-color: #f8f8f8;
    transform: scale(1.05);
}

/* Main carousel structure */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 1000px;
    height: 350px;
}

/* Preview slides */
.preview-slide {
    width: 150px;
    height: 300px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.prev-preview {
    justify-content: flex-start;
}

.next-preview {
    justify-content: flex-end;
}

.preview-slide:hover {
    transform: scale(1.05);
}

.preview-content {
    width: 100px;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    filter: brightness(0.7);
    transition: all 0.3s ease;
}

.preview-slide:hover .preview-content {
    filter: brightness(0.9);
}

/* Vertical mosque names */
.vertical-mosque-name {
    position: absolute;
    height: 250px;
    width: 50px;
    display: flex;
    align-items: center;
    z-index: 5;
    border-radius: 12px;
    background-color: white;
}

.left-mosque {
    left: 0;
}

.right-mosque {
    right: 0;
}

.vertical-mosque-name span {
    position: absolute;
    white-space: nowrap;
    color: #20903E;
    width: 180px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 16px;
}

.left-mosque span {
    transform: rotate(-90deg);
    left: -65px;
}

.right-mosque span {
    transform: rotate(90deg);
    right: -65px;
}

.main-carousel-container {
    width: 700px;
    position: relative;
    overflow: visible;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center; /* Untuk vertical centering */
}

.testimonial-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Testimonial slides */
.testimoni-slide {
    display: none;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center; /* Untuk vertical centering */
}

    .testimoni-slide.active {
        display: flex;
        opacity: 1;
        z-index: 10;
    }

/* Two-card layout */
.testimoni-content-card {
    height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.testimoni-image-card {
    height: 262px; /* 75% dari height content card (350px) */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 45%;
    position: relative;
    margin-right: -30px; /* Untuk membuat overlap dengan content card */
    z-index: 5; /* Lebih rendah dari content card */
    align-self: center; /* Posisi di tengah vertikal */
    top: 0; /* Reset posisi top jika ada */
}

    .testimoni-image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.testimoni-content-card {
    width: 55%;
    background-color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    color: #333;
    position: relative;
    z-index: 10; /* Lebih tinggi dari image card untuk overlay */
    left: -30px; /* Untuk membuat overlay dengan image card */
}

    .testimoni-content-card h4 {
        color: #20903e;
        margin-bottom: 15px;
        font-size: 22px;
        font-weight: bold;
    }

    .testimoni-content-card p {
        line-height: 1.6;
        margin-bottom: 20px;
        flex-grow: 1;
    }

/* Button styles */
.button-container {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-program {
    padding: 10px 20px;
    background: transparent;
    color: #20903e;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border: 1px solid #20903e;
    transition: all 0.3s;
}

    .btn-program:hover {
        background-color: rgba(32, 144, 62, 0.1);
    }

.btn-emc {
    padding: 10px 20px;
    background: #20903e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn-emc:hover {
        background: #1a7a33;
    }

/* Carousel indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

    .indicator-dot.active {
        background-color: white;
        transform: scale(1.2);
    }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .carousel-wrapper {
        width: 900px;
    }

    .preview-slide {
        width: 120px;
    }

    .preview-content {
        width: 80px;
    }

    .main-carousel-container {
        width: 660px;
    }
}

@media (max-width: 992px) {
    .carousel-wrapper {
        width: 90%;
    }

    .preview-slide {
        width: 100px;
    }

    .preview-content {
        width: 70px;
        height: 180px;
    }

    .main-carousel-container {
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        flex-direction: column;
        height: auto;
        width: 100%;
        align-items: center;
        padding: 0 10px;
    }

    .preview-slide {
        display: none;
    }

    .main-carousel-container {
        width: 100%;
        height: auto;
        padding: 0 10px;
    }

    .testimoni-slide {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
        position: relative;
    }

    .testimoni-image-card,
    .testimoni-content-card {
        width: 100%;
        height: auto;
        margin: 0;
        left: 0;
    }

    .testimoni-image-card {
        height: 180px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .testimoni-content-card {
        padding: 20px;
        margin-top: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 10px;
    }

        .testimoni-content-card h4 {
            font-size: 18px;
        }

        .testimoni-content-card p {
            font-size: 14px;
            line-height: 1.4;
        }

    .btn-program,
    .btn-emc {
        font-size: 14px;
        padding: 8px 16px;
    }

    .btn-nav {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .carousel-indicators {
        margin-top: 20px;
    }

    .indicator-dot {
        width: 10px;
        height: 10px;
    }
}
