/* =================================================
   SARANA.CSS - HALAMAN SARANA DAN PRASARANA
   Tema Biru Putih Modern dengan Slider & Modal
   ================================================= */

:root {
    --primary-blue: #0a4d8c;
    --secondary-blue: #1e6eb5;
    --accent-blue: #3498db;
    --light-blue: #eef5fc;
    --pure-white: #ffffff;
    --soft-white: #f8fafd;
    --text-dark: #2c3e50;
    --text-light: #5a6a7a;
    --border-light: #d9e6f2;
    --shadow: 0 10px 30px rgba(10, 77, 140, 0.08);
    --shadow-hover: 0 15px 40px rgba(10, 77, 140, 0.12);
    --gradient-blue: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--soft-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ========== BANNER HALAMAN ========== */
.page-banner {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    margin-bottom: 3rem;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--pure-white);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb span {
    color: var(--pure-white);
    font-weight: 500;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.header-line {
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0 auto 1rem;
    border-radius: 4px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== SARANA SECTION ========== */
.sarana-section {
    padding: 0 0 5rem;
    position: relative;
}

.slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.slider-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--border-light);
}

.slider-wrapper::-webkit-scrollbar {
    height: 8px;
}

.slider-wrapper::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.slider-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

.slider-item {
    flex: 0 0 350px;
    max-width: 350px;
}

.sarana-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sarana-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: var(--primary-blue);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slide-prev {
    left: 10px;
}

.slide-next {
    right: 10px;
}

.sarana-card:hover .slide-prev,
.sarana-card:hover .slide-next {
    opacity: 1;
}

.slide-prev:hover,
.slide-next:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.dot.active {
    width: 20px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
}

.photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.3);
}

.photo-count i {
    font-size: 0.7rem;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--accent-blue);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid var(--pure-white);
    z-index: 5;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

.btn-detail {
    background: var(--light-blue);
    color: var(--primary-blue);
    border: 1px solid var(--border-light);
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
}

.btn-detail:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-detail:hover i {
    transform: translateX(5px);
}

.scroll-indicator {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 4px;
    margin-top: 1rem;
}

.scroll-progress {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
}

.no-data {
    text-align: center;
    padding: 4rem;
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
}

.no-data i {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 1rem;
}

.no-data p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--pure-white);
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    background: var(--gradient-blue);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.modal-header h3 {
    color: var(--pure-white);
    font-size: 1.4rem;
    margin: 0;
}

.modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--pure-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.modal-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.modal-slide.active {
    opacity: 1;
    visibility: visible;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-slide-prev,
.modal-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary-blue);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.modal-slide-prev {
    left: 15px;
}

.modal-slide-next {
    right: 15px;
}

.modal-slide-prev:hover,
.modal-slide-next:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.modal-dot.active {
    width: 30px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 8px rgba(255,255,255,0.9);
}

.modal-info h4 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

.modal-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border-light);
}

.modal-nav-btn {
    padding: 0.8rem 1.5rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-nav-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-kembali {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    background: var(--primary-blue);
    color: var(--pure-white);
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-kembali:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-kembali i {
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .banner-content h1 { font-size: 2.5rem; }
    .slider-item { flex: 0 0 300px; }
    .modal-body { grid-template-columns: 1fr; }
    .modal-slider-container { height: 250px; }
}

@media (max-width: 768px) {
    .page-banner { height: 250px; }
    .banner-content h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .slider-nav { justify-content: center; }
    .modal-container { width: 95%; }
    .modal-header h3 { font-size: 1.2rem; }
    .modal-footer { flex-direction: column; }
    .modal-nav-btn { width: 100%; justify-content: center; }
    .modal-slide-prev, .modal-slide-next { width: 35px; height: 35px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .banner-content h1 { font-size: 1.8rem; }
    .breadcrumb { font-size: 0.9rem; }
    .slider-item { flex: 0 0 280px; }
    .modal-body { padding: 1.5rem; }
    .card-image-slider { height: 200px; }
}