/* CONTAINER UTAMA - EFEK CARD TIMBUL (DIPERBAIKI) */
.pimpinan-slideshow {
    position: relative;
    width: 100%;
    height: 300px; 
    /* Gunakan margin-top agar ada ruang saat kursor di atasnya */
    margin-top: 10px;
    margin-bottom: 25px; 
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    /* Bayangan default yang halus */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    /* Transisi halus untuk semua perubahan */
    transition: all 0.3s ease-in-out;
}

/* EFEK SAAT KURSOR DI ATAS (HOVER) */
.pimpinan-slideshow:hover {
    /* Menghapus translateY agar tidak menabrak garis atas */
    transform: none; 
    /* Bayangan dibuat lebih tebal ke bawah untuk kesan timbul */
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

/* Efek zoom halus pada foto saat hover agar terlihat interaktif */
.pimpinan-slideshow:hover img {
    transform: scale(1.05);
}

/* PEMBUNGKUS SINKRONISASI */
.pimpinan-fade {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    animation: pimpinanSlide 16s infinite;
}

/* Jeda Tampil */
.pimpinan-fade:nth-child(1) { animation-delay: 0s; }
.pimpinan-fade:nth-child(2) { animation-delay: 4s; }
.pimpinan-fade:nth-child(3) { animation-delay: 8s; }
.pimpinan-fade:nth-child(4) { animation-delay: 12s; }

@keyframes pimpinanSlide {
    0% { opacity: 0; visibility: hidden; }
    5% { opacity: 1; visibility: visible; }
    25% { opacity: 1; visibility: visible; }
    30% { opacity: 0; visibility: hidden; }
    100% { opacity: 0; visibility: hidden; }
}

.pimpinan-fade img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 0% 15%;
    /* Transisi untuk efek zoom */
    transition: transform 0.5s ease;
}

/* CAPTION DENGAN GRADIENT */
.caption-pimpinan {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to right, #005944 0%, #005944 45%, #f08100 100%);
    padding: 8px 0;
    text-align: center;
    border-top: 2px solid #ffd700;
    z-index: 5;
}

.nama-pimpinan {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.caption-pimpinan marquee {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

/* ============================================================
   SLIDESHOW UCAPAN & PENGUMUMAN (VERSI FIX FINAL)
   ============================================================ */

.pengumuman-slideshow {
    position: relative;
    width: 100%;
    height: 320px; /* Tinggi disesuaikan agar rapi di sidebar */
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 10px;
    margin-bottom: 25px;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Efek Hover Card Timbul */
.pengumuman-slideshow:hover {
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.pengumuman-slideshow:hover img {
    transform: scale(1.03);
}

/* Pengaturan Gambar agar Tidak Terpotong */
.pengumuman-fade img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Memastikan seluruh isi brosur terlihat */
    padding-bottom: 50px; /* Memberi ruang agar teks bawah tidak menutupi gambar */
    background-color: #ffffff; 
    transition: transform 0.5s ease;
}

/* Animasi Fade - Mencegah Tulisan Tertimpa */
.pengumuman-fade {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    opacity: 0;
    visibility: hidden;
    animation: pengumumanSlideClean 12s infinite; /* Durasi 12 detik untuk 3 foto */
}

/* Jeda Tampil per Foto */
.pengumuman-fade:nth-child(1) { animation-delay: 0s; }
.pengumuman-fade:nth-child(2) { animation-delay: 4s; }
.pengumuman-fade:nth-child(3) { animation-delay: 8s; }

/* Keyframes Transisi Bersih */
@keyframes pengumumanSlideClean {
    0% { opacity: 0; visibility: hidden; }
    2% { opacity: 1; visibility: visible; }
    30% { opacity: 1; visibility: visible; }
    33% { opacity: 0; visibility: hidden; } /* Menghilang total sebelum yang lain muncul */
    100% { opacity: 0; visibility: hidden; }
}

/* Background Caption Gradient Hijau-Oranye */
.caption-pengumuman {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Gradient disamakan dengan Aplikasi Layanan */
    background: linear-gradient(to right, #005944 0%, #005944 45%, #f08100 100%);
    padding: 10px 0;
    text-align: center;
    border-top: 2px solid #ffd700;
    z-index: 5;
}

.judul-pengumuman {
    display: block;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    padding: 0 5px;
    line-height: 1.4;
}

.caption-pengumuman marquee {
    display: block;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
}


/* EFEK CARD TIMBUL UNTUK ISI TAB */
.custom-card-timbul {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    /* Efek Bayangan Lembut */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efek saat Tab di-hover (sedikit terangkat) */
.custom-card-timbul:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.custom-card-timbul h3.dotted {
    margin-top: 0;
    color: #005944; /* Hijau PA Batam */
    font-size: 18px;
    border-bottom: 2px dotted #ffd700;
    padding-bottom: 10px;
}

/* ============================================================
   CONTAINER UTAMA tampilan bantuan hukum
   ============================================================ */

.prosedur-container {
    padding: 10px;
    background: #fdfdfd;
}

/* GRID LAYOUT */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* GAYA CARD TIMBUL */
.card-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.card-item:hover img {
    transform: scale(1.05);
}

/* BADGE LANGKAH DENGAN GRADIENT */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #005944 0%, #f08100 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.card-info {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #005944;
    background: #f9f9f9;
}

/* GAYA LAMPIRAN */
.lampiran-section {
    margin-top: 40px;
    border-top: 2px solid #005944;
    padding-top: 20px;
}

.title-lampiran {
    color: #005944;
    font-weight: bold;
    margin-bottom: 20px;
}

.lampiran-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lampiran-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none !important;
    color: #444 !important;
    border-left: 5px solid #f08100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}

.lampiran-card:hover {
    background: #f0fdf4;
    border-left: 5px solid #005944;
}

.lampiran-icon {
    background: #005944;
    color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.lampiran-text {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   CONTAINER UTAMA tampilan bantuan hukum
   ============================================================ */

/* HEADER GRADIENT STYLE */
.header-gradient-prosedur {
    background: linear-gradient(to right, #005944 0%, #005944 45%, #f08100 100%);
    padding: 30px 20px;
    border-radius: 15px 15px 0 0; /* Sudut bulat di atas saja */
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.title-utama {
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 24px !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle-utama {
    color: #ffffff !important;
    font-size: 14px;
    margin-top: 10px !important;
    opacity: 0.9;
    border-top: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-top: 5px;
}

/* Memastikan kontainer bawah menyatu dengan rapi */
.prosedur-container {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-grid {
    padding: 0 20px 20px 20px; /* Jarak agar kartu tidak mepet ke pinggir kontainer */
}

/* ============================================================
   CONTAINER UTAMA tampilan artikel
   ============================================================ */
/* --- GAYA TAB INFORMASI BERKALA PA BATAM --- */
.tab-wrapper {
    max-width: 900px;
    margin: 30px auto;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15); /* Efek timbul konsisten */
    overflow: hidden;
    border: 1px solid #eee;
}

.tab-wrapper input[type="radio"] { display: none; }

.tab-nav {
    display: flex;
    background: #f4f8f7;
    border-bottom: 2px solid #eee;
}

.tab-nav label {
    flex: 1;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    color: #555 !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logika Tab Aktif - Hijau Teal & Oranye */
#tab1:checked ~ .tab-nav label[for="tab1"],
#tab2:checked ~ .tab-nav label[for="tab2"],
#tab3:checked ~ .tab-nav label[for="tab3"],
#tab4:checked ~ .tab-nav label[for="tab4"] {
    background: #006a6a !important;
    color: #ffffff !important;
    border-bottom: 3px solid #f36e0c;
}

.tab-content {
    display: none;
    padding: 30px;
    background: #ffffff;
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4 { display: block; }

/* Styling List Informasi */
.section-header {
    color: #006a6a;
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 5px solid #f36e0c;
    padding-left: 15px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.list-item a {
    text-decoration: none !important;
    color: #444 !important;
    font-weight: 500;
}

.btn-link-tab {
    font-size: 10px;
    font-weight: bold;
    color: #006a6a;
    text-transform: uppercase;
    border: 1px solid #006a6a;
    padding: 4px 12px;
    border-radius: 15px;
}

.list-item:hover { background: #f9f9f9; }
.list-item:hover .btn-link-tab { background: #006a6a; color: #fff; }