@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.ppid-page-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #F8FAFC;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
    padding-top: 103px; /* Offset navbar */
}

/* ── Header Section ──────────────────────────────────────────── */
.ppid-header {
    background-color: #006045;
    padding: 60px 0;
    text-align: left;
    box-sizing: border-box;
}

.ppid-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.ppid-header-title {
    font-size: 48px; /* judul 48 */
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ppid-header-subtitle {
    font-size: 16px; /* teks 16 */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
}

/* ── Stats Section (Overlapping) ─────────────────────────────── */
.ppid-stats-section {
    margin-top: -80px; /* Overlap ke header */
    padding: 0;
    box-sizing: border-box;
}

.ppid-stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ppid-stat-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 1px !important; /* Card: 1px */
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05); /* shadow x0 y0 blur 35 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.ppid-stat-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.ppid-stat-number {
    font-size: 40px; /* Angka statistik menonjol */
    font-weight: 800;
    color: #1A1A1A;
    margin: 0 0 12px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.ppid-stat-desc {
    font-size: 12px; /* Teks deskripsi stats kecil agar proporsional */
    font-weight: 500;
    color: #A3A3A3; /* warna abu A3A3A3 */
    margin: 0;
    line-height: 1.6;
}

/* ── Main Content Section ────────────────────────────────────── */
.ppid-content {
    padding: 80px 0;
    box-sizing: border-box;
}

.ppid-main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.ppid-card-wrapper {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 1px; /* Elemen umum: 1px */
    padding: 48px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05); /* shadow x0 y0 blur 35 */
    box-sizing: border-box;
}

.ppid-section-title {
    font-size: 24px; /* sub judul 24 */
    font-weight: 800;
    color: #1A1A1A;
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
}

/* ── Accordion ───────────────────────────────────────────────── */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border: 1px solid #EAEAEA;
    border-radius: 1px; /* Elemen umum: 1px */
    overflow: hidden;
    background: #FFFFFF;
}

.accordion-header {
    width: 100%;
    background: #FFFFFF;
    border: none;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
    text-align: left;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.accordion-header:hover {
    background-color: #FAFAFA;
}

.header-text {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.chevron-icon {
    font-size: 20px;
    color: #1A1A1A;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .chevron-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: #FFFFFF;
    box-sizing: border-box;
}

.accordion-content-inner {
    padding: 0 28px 28px;
    box-sizing: border-box;
}

.placeholder-text {
    font-size: 16px; /* teks biasa 16 */
    font-weight: 400;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* ── Filter Form inside Accordion ────────────────────────────── */
.filter-box-card {
    border: 1px solid #EAEAEA;
    border-radius: 1px; /* Elemen umum: 1px */
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 6px 0;
}

.filter-desc {
    font-size: 13px;
    color: #A3A3A3; /* warna abu A3A3A3 */
    margin: 0 0 20px 0;
}

.filter-form {
    display: flex;
    gap: 16px;
    width: 100%;
}

.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #A3A3A3;
}

.search-input-field {
    width: 100%;
    border: 1px solid #E0E0E0;
    border-radius: 1px; /* Elemen umum: 1px */
    padding: 12px 16px 12px 42px;
    font-size: 16px; /* teks biasa 16 */
    font-family: inherit;
    outline: none;
    background: #FFFFFF;
    color: #332C2B;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.search-input-field:focus {
    border-color: #00BC7D;
}

.category-select-wrap {
    width: 220px;
    position: relative;
    flex-shrink: 0;
}

/* ── PPID Custom Select Dropdown ───────────────────────────────── */
.ppid-custom-select {
    position: relative;
    width: 100%;
}

.ppid-custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    background: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #332C2B;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.2s;
}

.ppid-custom-select-btn:focus,
.ppid-custom-select.open .ppid-custom-select-btn {
    border-color: #00BC7D;
    outline: none;
}

.ppid-custom-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.ppid-custom-select-icon {
    width: 10px;
    height: 6px;
    flex-shrink: 0;
    fill: none;
    stroke: #A3A3A3;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.ppid-custom-select.open .ppid-custom-select-icon {
    transform: rotate(180deg);
}

.ppid-custom-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    z-index: 99999 !important;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
}

.ppid-custom-select.open .ppid-custom-select-list {
    display: block;
}

.ppid-custom-option {
    padding: 10px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #332C2B;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ppid-custom-option:hover {
    background: rgba(0, 153, 102, 0.08);
    color: #009966;
}

.ppid-custom-option.selected {
    color: #009966;
    font-weight: 700;
    background: rgba(0, 153, 102, 0.06);
}

.filter-submit-btn {
    background-color: #00BC7D; /* warna btn sama seperti btn di search */
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 32px;
    border: none;
    border-radius: 3px; /* btn: 3px */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.filter-submit-btn:hover {
    background-color: #009A66;
}

.filter-submit-btn:active {
    transform: scale(0.98);
}


/* ── Tautan Section (Pelayanan Publik) ─────────────────────────── */
.tautan-section {
    margin-top: 64px;
    box-sizing: border-box;
}

.tautan-badge-title {
    font-size: 16px;
    font-weight: 700;
    color: #009966; /* Hijau badge */
}

.tautan-title {
    font-size: 32px; /* judul 32 */
    font-weight: 800;
    color: #1A1A1A;
    margin: 8px 0 12px 0;
    letter-spacing: -0.5px;
}

.tautan-subtitle {
    font-size: 16px; /* teks 16 */
    color: #A3A3A3; /* warna abu A3A3A3 */
    margin: 0 0 36px 0;
    line-height: 1.6;
}

.tautan-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0 30px 0;
}

.tautan-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollRight 30s linear infinite;
}

.tautan-marquee-track:hover {
    animation-play-state: paused;
}

.tautan-card {
    flex: 0 0 240px; /* Fixed width for consistent loop */
    height: 220px;
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 1px !important; /* Card luar: 1px */
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05); /* shadow x0 y0 blur 35 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tautan-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.tautan-icon-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tautan-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tautan-card-text {
    font-size: 16px; /* teks biasa 16 */
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.4;
}

/* ── Tata Cara Permohonan Section ────────────────────────────── */
.tata-cara-outer {
    width: 100%;
    background-color: #FFFFFF;
    margin-top: 0;
    padding: 0 0 80px 0; /* Gap ke footer samakan dengan Faskes (80px) */
    box-sizing: border-box;
}

.tata-cara-section {
    margin: 0 auto;
    max-width: 1280px;
    display: flex;
    gap: 0;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    min-height: 460px;
    box-sizing: border-box;
}

.tata-cara-image-wrapper {
    flex-shrink: 0;
    width: 380px;
    margin: 40px 32px 40px 0; /* kanan saja agar content menempel */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tata-cara-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.tata-cara-content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 40px 40px 48px;
    box-sizing: border-box;
}

.tata-cara-badge {
    font-size: 14px;
    font-weight: 700;
    color: #009966; /* Hijau */
    margin-bottom: 6px;
    display: inline-block;
}

.tata-cara-heading {
    font-size: 40px;
    font-weight: 800;
    color: #1A1A1A;
    margin: 0 0 24px 0;
    letter-spacing: -1px;
    line-height: 1.15;
}

.tata-cara-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.tata-cara-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 1px !important; /* Card luar: 1px */
    padding: 20px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05); /* shadow x0 y0 blur 35 */
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tata-cara-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.tata-cara-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 10px 0;
}

.tata-cara-card-text {
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

.inline-green-link {
    color: #009966;
    font-weight: 700;
    text-decoration: underline;
}

.inline-blue-link {
    color: #0066cc;
    font-weight: 700;
    text-decoration: underline;
}

.tata-cara-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 28px;
    box-sizing: border-box;
}

.action-btn-green {
    flex: 1;
    background-color: #00BC7D; /* warna btn sama dengan search */
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    text-align: center;
    border-radius: 3px; /* btn: 3px */
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    display: inline-block;
}

.action-btn-green:hover {
    background-color: #009A66;
}

.action-btn-outline {
    flex: 1;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    color: #00BC7D;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    text-align: center;
    border-radius: 3px; /* btn: 3px */
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: inline-block;
}

.action-btn-outline:hover {
    background-color: #FAFAFA;
    border-color: #00BC7D;
}

/* ── Responsive Layout ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ppid-header-container,
    .ppid-stats-container,
    .ppid-main-container,
    .tata-cara-section {
        padding: 0 32px;
    }

    .ppid-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ppid-card-wrapper {
        padding: 32px;
    }

    .tata-cara-section {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .tata-cara-content-box {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .ppid-page-wrapper {
        padding-top: 80px;
    }
    
    .ppid-header {
        padding: 40px 0;
    }
    
    .ppid-header-container {
        padding: 0 24px;
    }

    .ppid-header-title {
        font-size: 30px;
    }
    
    .ppid-stats-section {
        margin-top: -60px;
        padding: 0;
    }
    
    .ppid-stats-container {
        padding: 0 24px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ppid-main-container {
        padding: 0 24px;
    }
    
    .ppid-stat-card {
        padding: 24px 20px;
    }
    
    .ppid-stat-number {
        font-size: 32px;
    }
    
    .ppid-content {
        padding: 36px 0 56px;
    }
    
    .ppid-card-wrapper {
        padding: 20px;
    }
    
    .filter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .category-select-wrap {
        width: 100%;
    }
    
    .filter-submit-btn {
        width: 100%;
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    .tautan-title {
        font-size: 24px;
    }

    .tautan-card {
        flex: 0 0 200px;
        height: 180px;
        padding: 20px 16px;
        gap: 12px;
    }

    .tautan-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .tata-cara-outer {
        padding: 0 0 56px 0;
    }

    .tata-cara-section {
        padding: 0 24px;
    }

    .tata-cara-image-wrapper {
        display: none; /* Sembunyikan gambar di HP/Tablet agar rapi */
    }

    .tata-cara-content-box {
        padding: 0;
    }

    .tata-cara-heading {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .tata-cara-grid {
        grid-template-columns: 1fr;
    }

    .tata-cara-actions {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ppid-header-container,
    .ppid-stats-container,
    .ppid-main-container,
    .tata-cara-section {
        padding: 0 20px;
    }

    .ppid-card-wrapper {
        padding: 16px;
    }

    .tata-cara-outer {
        padding: 0 0 52px 0;
    }
}

/* ── Layanan PPID Section (Akses Layanan Utama) ──────────────── */
.layanan-ppid-section {
    background-color: #F8FAFC; /* Light gray background like regulasi-wrapper */
    padding: 40px 0; /* Match satudata-main padding */
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1E293B; /* Slate dark text */
    box-sizing: border-box;
    border-bottom: 1px solid #E2E8F0;
    flex: 1; /* Stretch to fill remaining space */
}

.layanan-ppid-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.layanan-ppid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px; /* Match satudata-header margin-bottom */
    gap: 32px;
}

.layanan-ppid-header .header-left {
    flex: 1;
}

.layanan-ppid-header .header-right {
    flex: 1;
    max-width: 600px;
}

.layanan-ppid-header .badge-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; /* Match satudata-category-tag size */
    font-weight: 700;
    color: #009966; /* Accent color like satudata-category-tag */
    display: block;
    margin-bottom: 6px;
}

.layanan-ppid-header .section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px; /* Match satudata-section-title size */
    font-weight: 800;
    color: #0F172A; /* Dark slate */
    margin: 0;
    letter-spacing: -1px;
}

.layanan-ppid-header .section-desc {
    font-size: 16px;
    font-weight: 400;
    color: #64748B; /* Text color like regulasi-card-desc */
    margin: 0;
    line-height: 1.6;
}

/* Grid */
.layanan-ppid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    box-sizing: border-box;
}

/* Cards */
.layanan-ppid-card {
    background: #FFFFFF; /* White card like regulasi-card */
    border: 1px solid #E2E8F0; /* Light gray border like regulasi-card */
    border-radius: 1px !important; /* Card luar: 1px */
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05); /* Shadow like regulasi-card */
    box-sizing: border-box;
    position: relative;
    min-height: 320px;
}

.layanan-ppid-card:hover {
    transform: translateY(-4px); /* Hover like regulasi-card */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Hover shadow like regulasi-card */
}

.layanan-ppid-card.card-permohonan:hover {
    border-color: #2563EB; /* Blue border on hover */
}
.layanan-ppid-card.card-keberatan:hover {
    border-color: #EF4444; /* Red border on hover */
}
.layanan-ppid-card.card-status:hover {
    border-color: #00BC7D; /* Green border on hover */
}

/* Icon Wrappers */
.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 3px !important; /* Card dalam: 3px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.icon-permohonan {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.icon-keberatan {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.icon-status {
    background-color: rgba(0, 188, 125, 0.1);
    color: #00BC7D;
}

.card-icon {
    width: 24px;
    height: 24px;
}

/* Card Content */
.layanan-ppid-card .card-title {
    font-size: 20px; /* Judul card: 20px */
    font-weight: 700;
    color: #0F172A; /* Dark slate */
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.layanan-ppid-card .card-desc {
    font-size: 15px;
    font-weight: 400;
    color: #64748B; /* Text color like regulasi-card-desc */
    margin: 0 0 32px 0;
    line-height: 1.6;
    flex: 1; /* Pushes button to bottom */
}

/* Card Button */
.card-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px; /* Sub judul card / Btn card: 16px */
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

/* Button colors */
.card-permohonan .card-btn { color: #2563EB; }
.card-keberatan .card-btn { color: #EF4444; }
.card-status .card-btn { color: #00BC7D; }

.card-btn .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.card-btn:hover {
    gap: 12px;
}

.card-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.card-permohonan .card-btn:hover { color: #1d4ed8; }
.card-keberatan .card-btn:hover { color: #dc2626; }
.card-status .card-btn:hover { color: #009A66; }

/* Responsive CSS */
@media (max-width: 1024px) {
    .layanan-ppid-container {
        padding: 0 32px;
    }

    .layanan-ppid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .layanan-ppid-header .section-title {
        font-size: 32px;
    }

    .layanan-ppid-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .layanan-ppid-section {
        padding: 60px 0;
    }

    .layanan-ppid-container {
        padding: 0 24px;
    }

    .layanan-ppid-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .layanan-ppid-card {
        padding: 32px 24px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .layanan-ppid-container {
        padding: 0 20px;
    }
}


