:root {
    --maroon: #800000;
    --orange: #FF8C00;
    --dark-maroon: #4d0000;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* Navbar Styling */
.navbar {
    background-color: var(--maroon);
    transition: all 0.4s ease;
    padding: 10px 0;
    border-bottom: 3px solid var(--orange);
}

.navbar-brand img {
    height: 45px;
    margin-right: 12px;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 5px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange) !important;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    border-top: 3px solid var(--orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
    padding: 10px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 10px 20px;
    color: #444;
    transition: 0.3s;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--maroon);
    padding-left: 25px;
}

/* Parallax Hero Section */
.hero-parallax {
    position: relative;
    height: 90vh;
    background-image: linear-gradient(rgba(128, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/kantor_pn.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-weight: 700;
    font-size: 3.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--orange);
    border: none;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #e67e00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
    color: white;
}

.btn-outline-orange {
    border: 2px solid var(--orange);
    color: var(--orange);
    background: transparent;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-orange:hover {
    background: var(--orange);
    color: white;
}

/* Section Title */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--maroon);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--orange);
    bottom: 0;
    left: 0;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards & Features */
.feature-card {
    background: white;
    border-radius: 5px;
    padding: 40px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    height: 100%;
    border: 1px solid #eee;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 25px;
}

/* Parallax Stats Section */
.mini-parallax {
    background-image: linear-gradient(rgba(128, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url('../images/kantor.png');
    background-attachment: fixed;
    background-size: cover;
    padding: 100px 0;
    color: white;
}

.stat-label {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 20px;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 400;
}

/* Footer */
footer {
    background: var(--dark-maroon);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 20px;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--orange);
    padding-left: 5px;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--orange);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: 0.4s;
}

.scroll-top.visible {
    opacity: 1;
}

/* Style for Exception Icon */
.icon-circle-info {
    width: 80px;
    height: 80px;
    border: 3px solid #ff4d6d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d6d;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Video Section Styling */
.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* =========================================
           STYLE TAMBAHAN UNTUK TABEL MODERN
        ========================================= */
.table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 30px 40px;
    border: 1px solid #eee;
}

/* Action Bar (Tombol Tambah) */
.table-action-bar {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    display: flex;
    justify-content: flex-start; /* paksa ke kiri */
}

.btn-tambah {
    background-color: #00bcd4;
    /* Warna Cyan sesuai referensi gambar Baginda */
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-tambah:hover {
    background-color: #009eb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Table Footer (Pagination) */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

.pagination {
    display: flex;
    gap: 5px;
}

.btn-page {
    border: 1px solid #ddd;
    background: white;
    color: #555;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-page:hover {
    color: white;
    background-color: var(--maroon);
    border-color: var(--maroon);
}

/* Table Controls (Show entries & Search) */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #555;
}

.table-controls select,
.table-controls input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.table-controls select:focus,
.table-controls input:focus {
    border-color: var(--orange);
}

.table-controls input {
    margin-left: 8px;
    width: 200px;
}

.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.modern-table th,
.modern-table td {
    padding: 16px 24px;
    text-align: left;
}

/* Header Tabel */
.modern-table thead tr {
    background-color: var(--maroon);
    color: white;
    box-shadow: 0 4px 6px rgba(128, 0, 0, 0.1);
}

.modern-table th {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: none;
}

/* Sudut membulat pada header */
.modern-table th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.modern-table th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Baris Tabel (Body) */
.modern-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

/* Garis bawah tipis antar baris, kecuali baris terakhir */
.modern-table tbody td {
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 0.95rem;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Warna selang-seling */
.modern-table tbody tr:nth-of-type(even) td {
    background-color: var(--light-gray);
}

/* Efek Hover */
.modern-table tbody tr:hover td {
    background-color: rgba(255, 140, 0, 0.05);
    /* Orange transparan */
    color: var(--maroon);
    cursor: default;
}

/* Kolom Nomor (Styling Khusus) */
.modern-table td.col-number,
.modern-table th.col-number {
    width: 50px;
    text-align: center;
}

.modern-table td.col-number {
    font-weight: 700;
    color: var(--orange);
    font-size: 1.1rem;
}

/* Kolom Tentang (Agar teks tidak terlalu panjang ke kanan) */
.modern-table td:last-child {
    line-height: 1.6;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .table-wrapper {
        padding: 20px;
    }

    .table-controls input {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 12px 15px;
    }
}

/* =========================================
           STYLE UNTUK AKORDION & CARD MODERN
        ========================================= */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: all 0.4s ease;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maroon);
    transition: color 0.3s;
}

/* State Saat Akordion Terbuka */
.accordion-header.active {
    background: var(--maroon);
}

.accordion-header.active h3 {
    color: white;
}

/* Ikon Chevron (Panah) */
.chevron-icon {
    width: 20px;
    height: 20px;
    fill: var(--orange);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header.active .chevron-icon {
    transform: rotate(180deg);
    fill: white;
}

/* Konten Akordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
}

.accordion-inner {
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

/* =========================================
           KARTU LIST (PENGGANTI TABEL KAKU)
        ========================================= */
.info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-left-color: var(--maroon);
}

.info-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Elemen Nomor Estetik */
.info-number {
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--orange);
    font-size: 1.5rem;
    opacity: 0.6;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover .info-number {
    -webkit-text-stroke: 1px var(--maroon);
    opacity: 1;
}

.info-title {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
    line-height: 1.5;
}

/* Tombol Link Modern */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--maroon);
    border: 1.5px solid var(--maroon);
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-action:hover {
    background-color: var(--orange);
    color: white;
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}

.btn-action svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsif */
@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .accordion-header h3 {
        font-size: 1rem;
    }
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 10px;
}

/* Card Video */
.video-card {
    width: 320px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 140, 0, 0.3);
}

/* Thumbnail Container */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

/* Ikon Play Melayang */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(255, 140, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 4px;
    /* Slight adjustment for optical center */
}

/* Teks Judul Card */
.video-info {
    padding: 20px;
}

.video-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--maroon);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.video-card:hover .video-title {
    color: var(--orange);
}

/* =========================================
           MODAL POPUP YOUTUBE
        ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Tombol Tutup Modal */
.btn-close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.btn-close-modal:hover {
    color: var(--orange);
}

.btn-close-modal svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .video-card {
        width: 100%;
        max-width: 400px;
    }

    .btn-close-modal {
        top: -35px;
    }
}

/* =========================================
           STYLE KHUSUS HALAMAN LOGIN & REGISTRASI
        ========================================= */
.login-wrapper {
    background-image: linear-gradient(rgba(77, 0, 0, 0.85), rgba(0, 0, 0, 0.9)),
        url('../images/kantor.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Tombol kembali ke Beranda */
.login-wrapper .back-link {
    position: absolute;
    top: 40px;
    left: 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.login-wrapper .back-link:hover {
    color: var(--orange);
    transform: translateX(-5px);
}

/* 3D Flip Container Setup */
.flip-container {
    perspective: 1000px;
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.flip-inner {
    display: grid;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-container.flipped .flip-inner {
    transform: rotateY(180deg);
}

/* Form Card Base */
.login-card {
    grid-area: 1 / 1;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 45px 40px;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Mengatur agar sisi yang di belakang tidak bisa di-klik */
.flip-front {
    pointer-events: auto;
    transform: rotateY(0deg);
}

.flip-back {
    pointer-events: none;
    transform: rotateY(180deg);
}

.flip-container.flipped .flip-front {
    pointer-events: none;
}

.flip-container.flipped .flip-back {
    pointer-events: auto;
}

/* Aksen garis oranye di atas form */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--orange);
    border-radius: 15px 15px 0 0;
}

.login-card .brand-logo {
    width: 160px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Input Custom Styling */
.login-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.login-card .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.3s;
}

.login-card .input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.2);
}

.login-card .input-group-text {
    background-color: var(--light-gray);
    border: 1px solid #e0e0e0;
    border-right: none;
    color: var(--maroon);
}

.login-card .input-group-text.password-toggle {
    background-color: white;
    border-left: none;
    border-right: 1px solid #e0e0e0;
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}

.login-card .input-group-text.password-toggle:hover {
    color: var(--orange);
}

.login-card .form-control {
    border: 1px solid #e0e0e0;
    border-left: none;
    padding: 10px 15px 10px 0;
    font-size: 0.9rem;
}

.login-card .form-control:focus {
    border-color: #e0e0e0;
    box-shadow: none;
}

.login-card .form-control.password-input {
    border-right: none;
}

/* Buttons */
.login-card .btn-login {
    background-color: var(--orange);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    width: 100%;
    margin-top: 25px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.login-card .btn-login:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
    color: white;
}

/* Links & Utility */
.login-card .link-custom {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.login-card .link-custom:hover {
    color: var(--orange);
}

.login-card .form-check-input:checked {
    background-color: var(--maroon);
    border-color: var(--maroon);
}

@media (max-width: 576px) {
    .flip-container {
        margin: 20px;
        padding: 0 10px;
    }

    .login-card {
        padding: 35px 25px;
    }

    .login-wrapper .back-link {
        top: 20px;
        left: 20px;
    }
}

/* =========================================
           STYLE UNTUK GAMBAR & EFEK HOVER MAXIMIZE
        ========================================= */
.image-presentation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 800px;
    /* Batas lebar gambar di halaman */
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    border: 4px solid white;
    /* Efek bingkai foto */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15);
    /* Bayangan maroon halus */
    border-color: rgba(255, 140, 0, 0.3);
    /* Bingkai orange saat dihover */
}

.document-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

/* Efek gambar sedikit membesar saat wrapper di hover */
.image-wrapper:hover .document-img {
    transform: scale(1.03);
}

/* Icon Maximize Melayang */
.maximize-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 140, 0, 0.95);
    /* Orange background */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.image-wrapper:hover .maximize-icon {
    opacity: 1;
    transform: scale(1);
}

.maximize-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Overlay gelap pelindung gambar saat di hover */
.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.image-wrapper:hover::before {
    opacity: 1;
}

/* =========================================
           MODAL POPUP GAMBAR (FULLSCREEN)
        ========================================= */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    /* Efek blur estetik */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-img-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: contain;
}

.image-modal-overlay.active .modal-image {
    transform: scale(1);
}

/* Tombol Tutup Modal */
.btn-close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    padding: 5px 0;
}

.btn-close-modal:hover {
    color: var(--orange);
}

.btn-close-modal svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .btn-close-modal {
        top: -40px;
    }

    .maximize-icon {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .maximize-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   SCOPE KHUSUS FORM (ANTI BENTROK)
========================================= */
.ppid-form {
    --maroon: #800000;
    --orange: #ff8c00;
    --light-gray: #f8f9fa;
}

/* =========================================
   STYLE FORM MODERN
========================================= */
.ppid-form .form-container {
    background: white;
    width: 100%;
    max-width: 650px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--maroon);
    animation: formFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    margin: 40px 20px;
}

@keyframes formFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ppid-form .form-title {
    text-align: center;
    color: var(--maroon);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 35px;
    position: relative;
}

.ppid-form .form-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--orange);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Input Group */
.ppid-form .input-group {
    margin-bottom: 25px;
    position: relative;
}

.ppid-form .input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

/* Form Elements */
.ppid-form .form-control,
.ppid-form .custom-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    background-color: var(--light-gray);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
}

.ppid-form .form-control:focus,
.ppid-form .custom-select:focus {
    background-color: white;
    border-color: var(--orange);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1);
}

/* Select */
.ppid-form .select-wrapper {
    position: relative;
}

.ppid-form .custom-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.ppid-form .dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #888;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.ppid-form .select-wrapper:focus-within .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
    fill: var(--orange);
}

/* Textarea */
.ppid-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* File Upload */
.ppid-form .file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ppid-form .file-upload-wrapper:focus-within {
    border-color: var(--orange);
    background-color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1);
}

.ppid-form .btn-choose-file {
    background-color: #e2e8f0;
    color: #475569;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.ppid-form .file-upload-wrapper:hover .btn-choose-file {
    background-color: #cbd5e1;
    color: var(--maroon);
}

.ppid-form .file-name-text {
    padding: 0 16px;
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.ppid-form .file-name-text.has-file {
    color: var(--maroon);
    font-weight: 500;
}

.ppid-form input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Buttons */
.ppid-form .button-group {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.ppid-form .btn-primary-custom {
    background-color: var(--orange);
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ppid-form .btn-primary-custom:hover {
    background-color: #e67e00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
    color: white;
}

.ppid-form .btn-outline-orange {
    border: 2px solid var(--orange);
    color: var(--orange);
    background: transparent;
    padding: 12px 35px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ppid-form .btn-outline-orange:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
}

/* Responsive */
@media (max-width: 576px) {
    .ppid-form .button-group {
        flex-direction: column;
    }

    .ppid-form .form-container {
        padding: 30px 20px;
    }
}

/* CENTERING LAYOUT */
.ppid-form {
    display: flex;
    align-items: center;      /* tengah vertikal */
    justify-content: center;  /* tengah horizontal */
}

/* Override container bootstrap biar gak ganggu */
.ppid-form .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Biar form benar-benar center */
.ppid-form .form-container {
    margin: 0 auto; /* ini penting */
}

/* =========================================
   PERBAIKI ISI FORM BIAR RAPI
========================================= */

/* Hilangkan efek text-center dari parent */
.ppid-form .container {
    text-align: left;
}

/* Judul tetap center */
.ppid-form .form-title {
    text-align: center;
}

/* Input group biar full dan rapi */
.ppid-form .input-group {
    width: 100%;
}

/* Label rata kiri */
.ppid-form .input-group label {
    text-align: left;
}

/* Select & textarea full width */
.ppid-form .custom-select,
.ppid-form .form-control {
    width: 100%;
    display: block;
}

/* FIX dropdown kecil (ini penyebab utama) */
.ppid-form .select-wrapper {
    width: 100%;
}

/* Fix textarea biar proper */
.ppid-form textarea.form-control {
    width: 100%;
}

/* File upload biar full dan sejajar */
.ppid-form .file-upload-wrapper {
    width: 100%;
}

/* Button tetap center dan rapi */
.ppid-form .button-group {
    justify-content: center;
}


.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-diajukan {
    background: #fff3cd;
    color: #856404;
}

.status-proses {
    background: #cce5ff;
    color: #004085;
}

.status-selesai {
    background: #d4edda;
    color: #155724;
}

.status-ditolak {
    background: #f8d7da;
    color: #721c24;
}

.btn-selengkapnya {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: white;
    background-color: var(--maroon);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-selengkapnya:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

/* --- STYLING CUSTOM DROPDOWN --- */
.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px; /* Lebar maksimal dropdown */
}

.select-modern {
    /* MANTRA UTAMA: Menghilangkan panah dan gaya bawaan browser/OS */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    
    width: 100%;
    padding: 12px 45px 12px 20px; /* Padding kanan dilebarkan untuk ruang ikon */
    background-color: var(--light-gray);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Efek saat kursor diarahkan (Hover) */
.select-modern:hover {
    border-color: var(--orange);
    background-color: #fff;
}

/* Efek saat diklik/aktif (Focus) */
.select-modern:focus {
    outline: none;
    border-color: var(--orange);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15); /* Cahaya oranye lembut di luar kotak */
}

/* Styling letak Ikon Panah Kustom */
.dropdown-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    pointer-events: none; /* WAJIB: Agar saat diklik, yang merespon tetap select-nya, bukan ikonnya */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-arrow svg {
    fill: var(--maroon); /* Menggunakan warna maroon andalan Baginda */
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease, fill 0.4s ease;
}

/* Animasi estetik: Panah berputar ke atas saat dropdown diklik */
.select-modern:focus + .dropdown-arrow svg {
    transform: rotate(180deg);
    fill: var(--orange);
}

/* =========================================
   STYLE DROPDOWN MODERN & HALUS
========================================= */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 260px;
    font-family: 'Poppins', sans-serif;
    user-select: none;
}

/* Kotak Utama */
.select-trigger {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efek saat Dropdown Terbuka */
.select-trigger.is-open {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

.arrow-icon {
    width: 22px;
    height: 22px;
    fill: #888;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.3s;
}

.select-trigger.is-open .arrow-icon {
    transform: rotate(180deg);
    fill: var(--orange);
}

/* Kotak Daftar Menu (Dropdown) */
.select-options {
    position: absolute;
    top: calc(100% + 8px); /* Jarak dari kotak utama */
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    z-index: 999;
    overflow: hidden;
    
    /* Animasi Buka/Tutup Halus */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

.select-options.select-hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scaleY(0.95);
}

/* Item Pilihan */
.option-item {
    padding: 12px 20px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.option-item:last-child {
    border-bottom: none;
}

/* Efek Sorot (Hover) pada Pilihan */
.option-item:hover {
    background-color: var(--light-gray);
    color: var(--orange);
    padding-left: 26px; /* Teks sedikit bergeser elegan */
}

/* Penanda Item yang Sedang Aktif/Dipilih */
.option-item.active-option {
    background-color: rgba(255, 140, 0, 0.08);
    color: var(--maroon);
    font-weight: 600;
    border-left: 3px solid var(--orange);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-3px);
    color: white;
}