@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Inter:wght@400;500;700&display=swap');

/* ==============================================================
   1. HERO SECTION (FULL WIDTH 100VW)
   ============================================================== */
.vik-srv-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.vik-srv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 11, 20, 0.8), rgba(10, 25, 47, 0.95));
}
.vik-srv-hero-content { position: relative; z-index: 2; color: white; padding: 0 20px; }

.vik-srv-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.vik-srv-hero-content h1 span { display: inline-block; }

.vik-breadcrumbs { font-size: 0.85rem; margin-bottom: 15px; color: #94a3b8; letter-spacing: 1px; text-transform: uppercase; }
.vik-breadcrumbs a { color: #74EB2F; text-decoration: none; font-weight: 700; }

/* ==============================================================
   2. MAIN LAYOUT (SIDEBAR + CONTENT)
   ============================================================== */
.vik-srv-main-layout {
    position: relative; 
    background: #f8fafc;
    padding: 60px 0 100px 0;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.vik-srv-container-flex {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
}

/* --- SIDEBAR STYLE --- */
.vik-srv-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .vik-srv-sidebar {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

.vik-side-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
}

.vik-widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0a192f;
    margin: 0 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid #1EA12D;
    line-height: 1;
}

.vik-search-box-side {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.vik-search-box-side:focus-within {
    background: #fff;
    border-color: #3a7bd5;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}
.vik-search-box-side svg { width: 18px !important; height: 18px !important; color: #3a7bd5; margin-right: 12px; }
.vik-search-box-side input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

.vik-side-list { list-style: none; padding: 0; margin: 0; }
.vik-side-list li { margin-bottom: 8px; }
.vik-side-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 15px;
    display: block;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.vik-side-link:hover {
    background: rgba(58, 123, 213, 0.05);
    color: #3a7bd5;
    padding-left: 20px;
    border-color: rgba(58, 123, 213, 0.1);
}

/* --- MAIN CONTENT AREA --- */
.vik-srv-content-area { flex-grow: 1; }
.vik-srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ==============================================================
   3. CARD STYLE
   ============================================================== */
.vik-srv-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}
.vik-srv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vik-srv-img-wrap { width: 100%; height: 210px; overflow: hidden; }
.vik-srv-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.vik-srv-card:hover .vik-srv-img-wrap img { transform: scale(1.08); }

.vik-srv-content { padding: 25px; flex-grow: 1; }
.vik-srv-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; color: #0a192f; margin: 0 0 12px 0; font-weight: 700; }
.vik-srv-content p { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin: 0; }

.vik-srv-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px 25px 25px;
    border-top: 1px solid #f1f5f9;
}
.vik-btn-detail { color: #3a7bd5; font-weight: 700; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; }
.vik-btn-detail:hover { color: #21B532; }

.vik-btn-card-wa {
    display: inline-flex;
    align-items: center;
    background: #21B532;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s;
}
.vik-btn-card-wa img { width: 16px !important; height: 16px !important; margin-right: 6px; }
.vik-btn-card-wa:hover { background: #16a34a; }

/* ==============================================================
   4. MODAL POP-UP (ANTI-BOCOR)
   ============================================================== */
.vik-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vik-modal.show { display: flex; }
.vik-modal-overlay { position: absolute; inset: 0; background: rgba(5, 11, 20, 0.92); backdrop-filter: blur(8px); }

.vik-modal-content {
    position: relative;
    z-index: 10;
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    border-radius: 24px;
    overflow: hidden; /* Mengunci semua elemen di dalam modal */
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.vik-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vik-modal-close:hover { background: #e3342f; }

/* FIX: GAMBAR MODAL DIGEMBOK AGAR TIDAK BOCOR KE BAWAH */
.vik-modal-image { 
    width: 100%; 
    height: 240px; 
    flex: 0 0 240px; /* Memaksa ukuran tidak bisa diubah-ubah */
    overflow: hidden !important; /* INI PENYELAMATNYA! */
    position: relative;
    z-index: 1;
}
.vik-modal-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; /* Menghindari celah kosong di bawah gambar */
}

/* FIX: BACKGROUND PUTIH PEKAT UNTUK AREA TEKS */
.vik-modal-body { 
    padding: 30px; 
    overflow-y: auto; 
    flex-grow: 1; 
    background-color: #ffffff !important; /* Warna putih wajib ada agar foto yang bocor tertutup */
    position: relative;
    z-index: 2; /* Berada di atas gambar */
}
.vik-modal-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: #0a192f;
    margin: 0 0 15px 0;
    font-weight: 800;
    line-height: 1.2;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}
.vik-modal-text { color: #475569; line-height: 1.7; font-size: 1.05rem; }

/* TOMBOL MODAL */
.vik-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.vik-btn-modal {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}
.vik-btn-wa { background: #21B532; color: #ffffff !important; border: none; }
.vik-btn-wa:hover { background: #16a34a; }
.vik-btn-email { background: #f1f5f9; color: #0a192f !important; border: 1px solid #cbd5e1; }
.vik-btn-email:hover { background: #e2e8f0; }

.vik-btn-modal img, .vik-btn-modal svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    margin-right: 10px !important;
}

/* ==============================================================
   5. RESPONSIVE (MOBILE)
   ============================================================== */
@media (max-width: 991px) {
    .vik-srv-container-flex { flex-direction: column; }
    .vik-srv-sidebar { width: 100%; position: relative; top: 0; }
    .vik-srv-hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    .vik-modal-content { max-height: 95vh; }
    .vik-modal-image { height: 180px; flex: 0 0 180px; }
    .vik-modal-body { padding: 20px; }
    .vik-modal-body h2 { font-size: 1.4rem; }
    .vik-modal-actions { flex-direction: column; padding: 15px 20px; }
    .vik-btn-modal { width: 100%; }
}