/* ==========================================================================
   DOKUMENTASI PAGE STYLES — PT JALASENA CAKRA PERKASA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION (Identik dengan Artikel & Tentang Kami)
   -------------------------------------------------------------------------- */
.dokumentasi-hero {
    position: relative;
    width: 100%;
    min-height: 429px;
    background: #1D3A72;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-top: 75px; /* Offset for fixed header */
}

/* Foto Hero (Di Belakang Elemen) */
.dokumentasi-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dokumentasi-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Elemen Hero (Di Depan Foto Hero) */
.dokumentasi-hero-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.dokumentasi-elements-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Hero Content */
.dokumentasi-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    box-sizing: border-box;
}

.dokumentasi-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.dokumentasi-hero-accent-bar {
    width: 64px;
    height: 3px;
    background: #F2B632;
    border-radius: 0;
    margin-bottom: 24px;
}

.dokumentasi-breadcrumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0.0778em;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.breadcrumb-item {
    color: #E8E8E8;
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-item:hover {
    opacity: 1;
}

.breadcrumb-current {
    color: #E8E8E8;
    font-weight: 500;
}

.dokumentasi-hero-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 130%;
    color: #F5F5F5;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0;
}

/* --------------------------------------------------------------------------
   2. MAIN GALLERY SECTION (GRID 4 COLUMN)
   -------------------------------------------------------------------------- */
.dokumentasi-main-section {
    padding: 80px 0 100px;
    background: #F8FAFC;
    width: 100%;
    box-sizing: border-box;
}

.dokumentasi-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
    box-sizing: border-box;
}

/* Section Header */
.dokumentasi-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 48px;
}

.dokumentasi-subtag {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.dokumentasi-gold-bar {
    width: 64px;
    height: 3px;
    background: #D99A16;
}

.dokumentasi-subtag-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.0778em;
    text-transform: uppercase;
    color: #4A5565;
}

.dokumentasi-section-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 48px;
    color: #000000;
    margin: 0;
}

.dokumentasi-section-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #606060;
    max-width: 720px;
    margin: 0;
}

/* Grid 4 Kolom */
.dokumentasi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 100%;
}

/* Card Galeri */
.dokumentasi-card {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.dokumentasi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* Gambar Card & Overlay */
.dokumentasi-card-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #172235;
}

.dokumentasi-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.dokumentasi-card:hover .dokumentasi-card-img {
    transform: scale(1.08);
}

/* Hover Zoom Overlay Icon */
.dokumentasi-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 34, 53, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dokumentasi-card:hover .dokumentasi-card-overlay {
    opacity: 1;
}

.dokumentasi-card-zoom-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(217, 154, 22, 0.95);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dokumentasi-card:hover .dokumentasi-card-zoom-icon {
    transform: scale(1);
}

/* Card Body Content */
.dokumentasi-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    background: #FFFFFF;
}

.dokumentasi-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: #D99A16;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dokumentasi-card-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1E293B;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.dokumentasi-card:hover .dokumentasi-card-title {
    color: #1D3A72;
}

.dokumentasi-card-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #64748B;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   3. MODAL PREVIEW LIGHTBOX (NEXT, PREV, CLOSE)
   -------------------------------------------------------------------------- */
.doc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    user-select: none;
    box-sizing: border-box;
    padding: 24px;
}

.doc-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button (X) */
.doc-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100010;
    transition: background 0.2s ease, transform 0.2s ease;
}

.doc-modal-close:hover {
    background: #E7000B;
    border-color: #E7000B;
    transform: scale(1.08);
}

/* Navigation Arrows (Prev & Next) */
.doc-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100010;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.doc-modal-nav:hover {
    background: #D99A16;
    border-color: #D99A16;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 4px 18px rgba(217, 154, 22, 0.5);
}

.doc-modal-prev {
    left: 28px;
}

.doc-modal-next {
    right: 28px;
}

/* Modal Content Box */
.doc-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100005;
}

.doc-modal-img-container {
    max-width: 100%;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.doc-modal-img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    animation: docZoomIn 0.25s ease-out;
}

@keyframes docZoomIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Caption & Index Counter */
.doc-modal-caption-wrap {
    margin-top: 16px;
    text-align: center;
    max-width: 800px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.doc-modal-category {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #D99A16;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(217, 154, 22, 0.15);
    border: 1px solid rgba(217, 154, 22, 0.4);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 2px;
}

.doc-modal-counter {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #D99A16;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.doc-modal-caption {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
    color: #F8FAFC;
    margin: 0;
}

.doc-modal-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #94A3B8;
    margin: 0;
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    .dokumentasi-hero-container,
    .dokumentasi-container {
        padding-left: 60px;
        padding-right: 60px;
    }

    .dokumentasi-grid {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .dokumentasi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .dokumentasi-hero {
        min-height: 360px;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .dokumentasi-hero-container,
    .dokumentasi-container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .dokumentasi-hero-title {
        font-size: 38px;
    }

    .dokumentasi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .dokumentasi-main-section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 767px) {
    .dokumentasi-hero {
        min-height: 320px;
        padding-top: 85px;
        padding-bottom: 35px;
    }

    .dokumentasi-hero-container,
    .dokumentasi-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dokumentasi-hero-accent-bar {
        width: 48px;
        margin-bottom: 16px;
    }

    .dokumentasi-breadcrumb {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .dokumentasi-hero-title {
        font-size: 32px;
    }

    .dokumentasi-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dokumentasi-card-img-wrap {
        height: 200px;
    }

    .doc-modal-nav {
        width: 44px;
        height: 44px;
    }

    .doc-modal-prev {
        left: 10px;
    }

    .doc-modal-next {
        right: 10px;
    }

    .doc-modal-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .doc-modal-caption {
        font-size: 15px;
    }
}
