/* --- Deklarasi Font Lokal Poppins --- */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-300.woff2') format('woff2'); /* Perhatikan perubahan path menjadi ../fonts/ */
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-primary: #14664F;
    --brand-dark: #0f4c3a;
    --brand-light: #e8f5e9;
    --bg-body: #1E1E1E;
    --card-shadow: 0 10px 20px rgba(0,0,0,0.08);
    --card-hover: 0 15px 30px rgba(20, 102, 79, 0.25);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--brand-primary);
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%), 
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 20%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Header Styles --- */
.main-header {
    background: transparent;
    color: white;
    padding-top: 25px;
    padding-bottom: 10px;
}

.brand-logo img {
    height: 44px;
    object-fit: contain;
}

.app-title h5 {
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.app-title small {
    opacity: 0.8;
    font-size: 0.85rem;
    font-weight: 300;
}

/* --- Navigation Bar --- */
.nav-scroller {
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 20px;
}

.nav-scroller::-webkit-scrollbar { display: none; }

.custom-nav .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-right: 8px;
    border: 1px solid transparent;
}

.custom-nav .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.custom-nav .nav-link.active {
    color: var(--brand-primary);
    background-color: #f8f9fa;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}   

/* --- Main Content Container --- */
.main-container {
    background-color: #f8f9fa;
    border-radius: 30px 30px 0 0;
    min-height: 85vh;
    padding: 40px 20px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

/* --- Components --- */
.alert-custom {
    background: linear-gradient(90deg, #14664F 0%, #2E8B57 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(20, 102, 79, 0.2);
    text-align: center;
    /* border-left: 5px solid #455a64; */
    animation: slideInDown 0.8s ease-out;
}

/* --- Service Cards --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.5s; }
.animate-fade-up:nth-child(6) { animation-delay: 0.6s; }
.animate-fade-up:nth-child(7) { animation-delay: 0.7s; }
.animate-fade-up:nth-child(8) { animation-delay: 0.8s; }
.animate-fade-up:nth-child(9) { animation-delay: 0.9s; }
.animate-fade-up:nth-child(10) { animation-delay: 1.0s; }

.service-card {
    border: none;
    border-radius: 20px;
    color: white;
    height: 160px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 1;
    transition: transform 0.5s;
}

.service-card:hover::before {
    transform: scale(1.2);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    z-index: 1;
}

.service-card .card-icon {
    font-size: 3rem;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.8;
    z-index: 2;
    transition: all 0.3s;
}

.service-card:hover .card-icon {
    opacity: 1;
    transform: rotate(-10deg) scale(1.1);
}

.service-card .card-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    text-align: right;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Modern Gradients --- */
.bg-1 { background: linear-gradient(135deg, #006064 0%, #0097a7 100%); }
.bg-2 { background: linear-gradient(135deg, #5d4037 0%, #795548 100%); }
.bg-3 { background: linear-gradient(135deg, #a12020 0%, #ad2a28 100%); }
.bg-4 { background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%); }
.bg-5 { background: linear-gradient(135deg, #e65100 0%, #f57c00 100%); }
.bg-6 { background: linear-gradient(135deg, #827717 0%, #afb42b 100%); }
.bg-7 { background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%); }
.bg-8 { background: linear-gradient(135deg, #455a64 0%, #607d8b 100%); }
.bg-9 { background: linear-gradient(135deg, #09203f 0%, #537895 100%); }

a { text-decoration: none; }

/* KEBIJAKAN */
/* assets/css/kebijakan.css */

/* Menyesuaikan tampilan agar menyerupai dokumen resmi sesuai gambar */
.policy-list p {
    color: #000 !important; /* Hitam pekat sesuai permintaan */
    margin-bottom: 0.5rem;
}

/* Responsif: Ukuran teks sedikit mengecil di HP */
@media (max-width: 768px) {
    .policy-list p {
        font-size: 1.1rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
}

/* Background Utama */
.main-container {
    background-color: #f8f9fa;
}

/* Header & Typography */
.bg-gradient-brand {
    /* background: linear-gradient(135deg, #790000 0%, #004d40 100%); */
    background:#fff;
    /* background-color: #E10E0F; */
    color: white;
}

.ls-2 {
    letter-spacing: 2px;
}

.policy-text {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Card Styling */
.card-kebijakan-pilar {
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .card-kebijakan-pilar {
        padding: 3rem;
    }
}

/* Dekorasi List */
.custom-policy-list {
    line-height: 1.8;
    font-size: 1.15rem;
    padding-left: 1.8rem;
    letter-spacing: 0.5px;
    list-style-type: disc;
}

.sub-category-list {
    padding-left: 1.2rem;
    list-style-type: circle;
    margin-top: 0.5rem;
}

/* Elemen Visual */
.title-separator {
    width: 60px; 
    height: 4px; 
    background: var(--brand-primary); 
    margin: 15px auto; 
    border-radius: 2px;
}

.section-indicator {
    width: 5px; 
    height: 30px; 
    background: var(--brand-primary); 
    margin-right: 15px; 
    border-radius: 5px;
}

/* SKTRUKTUR ORGANISASI */
/* 1. Modal Fullscreen Hitam */
.gp-modal-body {
    background-color: #000;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hilangkan scrollbar browser */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Container Pembungkus (Area Gerak) */
.gp-transform-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab; /* Kursor tangan terbuka */
    touch-action: none; /* Cegah scroll browser di HP */
}
.gp-transform-container:active {
    cursor: grabbing; /* Kursor menggenggam saat klik */
}

/* 3. Gambar Utama */
.gp-image {
    max-width: 100%;
    max-height: 100%;
    transform-origin: 0 0; /* Wajib 0 0 untuk rumus matematika zoom */
    will-change: transform; /* Optimasi GPU agar smooth */
    transition: transform 0.1s linear; /* Animasi halus saat zoom */
    
    /* PENTING: Agar gambar "tembus pandang" saat diklik */
    /* Jadi yang kena klik adalah Container-nya, bukan gambarnya */
    pointer-events: none; 
    user-select: none;
}

/* 4. Toolbar Melayang */
.gp-toolbar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    z-index: 1060;
}
.gp-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.gp-btn:hover { transform: scale(1.2); }



/* PANDUAN */
    .hero-guide {
        background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
        color: white;
        padding: 3rem 1rem;
        border-radius: 0 0 50px 50px;
        margin-bottom: 3rem;
    }

    .search-box {
        position: relative;
        max-width: 600px;
        margin: -50px auto 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 50px;
        background: white;
        padding: 5px;
        z-index: 10;
    }

    .search-input {
        border: none;
        padding: 15px 25px;
        width: 100%;
        outline: none;
        border-radius: 50px;
        font-size: 1.1rem;
    }

    .category-title {
        border-left: 5px solid #00796b;
        padding-left: 15px;
        margin-bottom: 20px;
        margin-top: 30px;
        color: #444;
        font-weight: bold;
    }

    .accordion-item {
        border: none;
        margin-bottom: 1rem;
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .accordion-button {
        font-weight: 600;
        color: #333;
        background-color: white;
        padding: 1.2rem;
    }

    .accordion-button:not(.collapsed) {
        color: var(--brand-primary, #00796b);
        background-color: #f0fdfa;
        box-shadow: none;
    }

    .accordion-body {
        background-color: #fff;
        line-height: 1.6;
        color: #666;
    }
    

/* --- Footer --- */
.footer-text {
    color: #f1f1f1;
    font-size: 0.8rem;
    margin-top: 40px;
    font-weight: 300;
}