/* =================================================
   GALERI_VIDEO.CSS - HALAMAN GALERI VIDEO
   Tema Biru Putih Modern - Sama dengan Galeri Foto
   ================================================= */

: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: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BANNER HALAMAN (DIPERBAIKI) ========== */
.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;
}

/* ========== GALERI GRID ========== */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.galeri-item {
    background: var(--pure-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.galeri-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.galeri-video {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.galeri-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 77, 140, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.galeri-item:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.galeri-content {
    padding: 1.2rem;
}

.galeri-content h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: box;
    line-clamp: 1;
    box-orient: vertical;
    max-height: 1.6rem;
    line-height: 1.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.galeri-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
    max-height: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.btn-detail:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-detail i {
    font-size: 0.9rem;
}

.no-data {
    text-align: center;
    padding: 4rem;
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.no-data i {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 1rem;
}

.no-data p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pure-white);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    font-weight: 500;
}

.page-link:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--gradient-blue);
    color: white;
    border-color: var(--primary-blue);
}

.info-video {
    text-align: center;
    margin: 2rem 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    background: var(--light-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.info-video i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.info-video strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.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;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.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: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    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: 18px 25px;
    background: var(--gradient-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h3 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: 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: 25px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--border-light);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.modal-video {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #000;
    border: 2px solid var(--border-light);
}

.modal-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-info h4 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
}

.modal-deskripsi {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--border-light);
}

.modal-deskripsi::-webkit-scrollbar {
    width: 4px;
}

.modal-deskripsi::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 10px;
}

.modal-deskripsi::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-container.active {
    animation: modalFadeIn 0.3s ease forwards;
}

body.modal-open {
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .galeri-grid {
        grid-template-columns: 1fr;
    }
    
    .galeri-video {
        height: 220px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-video {
        height: 250px;
    }
    
    .button-wrapper {
        justify-content: center;
    }
    
    .btn-kembali {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .galeri-content h3 {
        font-size: 1rem;
    }
    
    .galeri-content p {
        font-size: 0.8rem;
    }
}