/**
 * Program Studi Slider CSS
 * Styling untuk slider/carousel pada halaman program studi
 */

/* Section slider */
.prodi-slider-section {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
    position: relative;
    clear: both;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Container untuk slider */
.prodi-slider-container {
    position: relative;
    width: 100%;
    height: 350px; /* Ukuran lebih kompak untuk desktop */
    overflow: hidden;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Lebih kompak untuk desktop */
}

/* Slide individual */
.prodi-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slide aktif */
.prodi-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Judul slide */
.prodi-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* Navigasi dots */
.prodi-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.prodi-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.prodi-slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Tombol navigasi prev/next */
.prodi-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prodi-slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prodi-slider-prev {
    left: 10px;
}

.prodi-slider-next {
    right: 10px;
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
    .prodi-slider-section {
        width: 95%;
        padding: 0 10px;
        margin: 15px auto;
        padding-bottom: 15px;
    }
    
    .prodi-slider-container {
        height: 300px; /* Ukuran sedang untuk tablet */
        max-width: 550px;
    }
    
    .prodi-slider-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .prodi-slider-section {
        margin: 10px auto;
        padding-bottom: 10px;
    }
    
    .prodi-slider-container {
        height: 220px;
        width: 100%;
        max-width: 350px;
    }
    
    .prodi-slider-nav {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .prodi-slide-caption {
        padding: 8px;
        font-size: 12px;
    }
} 