/* =====================================================
   DASAR
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0a406d;
}

[id] {
    scroll-margin-top: 100px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: #0c2f45;

    display: flex;
    align-items: center;

    padding: 20px 40px;

    z-index: 10000;

    box-sizing: border-box;
}

.logo {
    color: white;

    font-size: 28px;
    font-weight: 700;

    margin-right: 60px;

    white-space: nowrap;
}


/* =====================================================
   MENU
===================================================== */

.menu {
    display: flex;

    list-style: none;

    margin: 0;
    padding: 0;

    gap: 30px;
}

.menu li {
    position: relative;
}

.menu li a {
    color: white;

    text-decoration: none;

    padding: 15px;

    display: block;

    cursor: pointer;
}

.menu li a:hover {
    color: #FFD700;
}


/* =====================================================
   DROPDOWN
===================================================== */

.submenu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    background: white;

    min-width: 240px;

    list-style: none;

    padding: 0;
    margin: 0;

    border-radius: 0 0 8px 8px;

    box-shadow: 0 5px 15px rgba(0,0,0,.2);

    z-index: 20000;
}


/*
   BUKA DROPDOWN KETIKA MOUSE DIARAHKAN
*/

.dropdown:hover > .submenu {
    display: block;
}


/*
   BUKA DROPDOWN KETIKA DIKLIK
   sesuai dengan JavaScript landing.php
*/

.dropdown.open > .submenu {
    display: block;
}


/* =====================================================
   LINK SUBMENU
===================================================== */

.submenu li {
    width: 100%;
}

.submenu li a {
    color: #333 !important;

    padding: 13px 16px;

    display: block;

    white-space: nowrap;

    font-size: 15px;
}

.submenu li a:hover {
    background: #f1f1f1;

    color: #0c2f45 !important;
}


/*
   KHUSUS LINK LAPORAN
*/

.submenu li a.laporan-link {
    color: #333 !important;

    cursor: pointer;
}

.submenu li a.laporan-link:hover {
    background: #f1f1f1;

    color: #0c2f45 !important;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    height: calc(100vh - 80px);

    overflow: hidden;

    margin-top: 80px;
}

.hero-bg {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .55);

    z-index: 1;
}


/* =====================================================
   OVERLAY HERO
===================================================== */

.overlay {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 70%;
    max-width: 1000px;

    padding: 50px;

    background: rgba(0, 0, 0, .45);

    border-radius: 15px;

    color: #fff;

    text-align: center;

    z-index: 5;
}

.overlay h2 {
    text-align: center;

    font-size: 42px;

    margin: 0 0 30px;
}

.overlay p {
    font-size: 19px;

    line-height: 2;

    margin-bottom: 20px;
}


/* =====================================================
   TOMBOL
===================================================== */

.btn {
    display: inline-block;

    margin-top: 30px;

    padding: 14px 35px;

    background: #2ecc71;

    color: #fff;

    text-decoration: none;

    border-radius: 6px;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;
}

.btn:hover {
    background: #27ae60;

    color: white;
}


/* =====================================================
   INFO
===================================================== */

.info {
    display: flex;

    justify-content: space-around;

    gap: 25px;

    padding: 30px;

    background: #f5f5f5;
}

.card {
    background: white;

    padding: 20px;

    border-radius: 10px;

    width: 25%;

    text-align: center;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #0c2f45;
}

.card p {
    color: #555;

    line-height: 1.6;
}


/* =====================================================
   KONTAK
===================================================== */

.kontak {
    padding: 60px 10%;

    background: #f5f5f5;

    color: #333;
}

.kontak h2 {
    text-align: center;

    color: #0c2f45;

    margin-bottom: 30px;

    font-size: 32px;
}

.kontak p {
    line-height: 1.8;

    font-size: 17px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    text-align: center;

    padding: 15px;

    background: #2ecc71;

    color: white;
}

footer p {
    margin: 0;

    line-height: 1.6;
}


/* =====================================================
   HALAMAN LAIN
===================================================== */

.tentang {
    margin-top: 1px;

    padding: 80px 10%;

    background: #ffffff;
}

.tentang h2 {
    text-align: center;

    color: #0c2f45;

    margin-bottom: 30px;

    font-size: 32px;
}

.tentang p {
    text-align: justify;

    line-height: 1.8;

    color: #444;

    font-size: 17px;

    margin-bottom: 15px;
}


/* =====================================================
   PAGE HEADER
===================================================== */

.page-header {
    margin-top: 70px;

    background: linear-gradient(
        135deg,
        #1ca08a,
        #93f509
    );

    padding: 40px;

    text-align: center;
}


/* =====================================================
   AREA RKT
===================================================== */

.artikel-rkt {
    max-width: 900px;

    margin: 120px auto 50px;

    padding: 20px;

    background: white;
}

.artikel-rkt h1 {
    color: #0c2f45;

    font-size: 38px;

    margin-bottom: 10px;
}

.subjudul {
    color: #666;

    margin-bottom: 30px;

    font-size: 18px;
}

.artikel-rkt img {
    width: 100%;

    max-width: 900px;

    display: block;

    margin: 20px auto;

    border-radius: 10px;
}

.artikel-rkt h2 {
    color: #2ecc71;

    margin-top: 30px;
}

.artikel-rkt p {
    text-align: justify;

    line-height: 1.9;

    font-size: 18px;

    color: #444;
}


/* =====================================================
   TABEL
===================================================== */

.tabel-data {
    width: 100%;

    border-collapse: collapse;

    margin-top: 30px;
}

.tabel-data th {
    background: #0c2f45;

    color: white;

    padding: 12px;
}

.tabel-data td {
    padding: 12px;

    border: 1px solid #ddd;
}

.tabel-data tr:nth-child(even) {
    background: #f7f7f7;
}


/* =====================================================
   KAWASAN HUTAN
===================================================== */

.list-hutan {
    margin-top: 20px;

    padding-left: 25px;
}

.list-hutan li {
    margin-bottom: 10px;

    line-height: 1.8;

    color: #444;

    font-size: 17px;
}


/* =====================================================
   LAYANAN PENGADUAN
===================================================== */

.hero-layanan {
    margin-top: 100px;

    text-align: center;

    padding: 80px 20px;

    background: #0c2f45;

    color: white;
}

.hero-layanan h1 {
    font-size: 42px;
}

.btn-layanan {
    display: inline-block;

    margin-top: 20px;

    padding: 12px 25px;

    background: #f4a62a;

    color: white;

    text-decoration: none;

    border-radius: 5px;
}

.fitur-layanan {
    display: flex;

    justify-content: center;

    gap: 20px;

    padding: 50px;

    flex-wrap: wrap;
}

.fitur-card {
    width: 280px;

    background: white;

    padding: 25px;

    border-radius: 10px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    text-align: center;
}


/* =====================================================
   PENGADUAN
===================================================== */

.pengaduan {
    max-width: 800px;

    margin: auto;

    padding: 50px;
}

.pengaduan h2 {
    text-align: center;

    margin-bottom: 20px;
}

.pengaduan input,
.pengaduan select,
.pengaduan textarea {
    width: 100%;

    padding: 12px;

    margin-bottom: 15px;

    border: 1px solid #ccc;

    border-radius: 5px;
}

.pengaduan button {
    background: #0c2f45;

    color: white;

    padding: 12px 25px;

    border: none;

    border-radius: 5px;

    cursor: pointer;
}


/* =====================================================
   PERSYARATAN
===================================================== */

.header-persyaratan {
    margin-top: 75px;

    background: #69c542;

    color: white;

    text-align: center;

    padding: 25px;
}

.header-persyaratan h1 {
    margin: 0;

    font-size: 35px;

    font-weight: bold;
}

.persyaratan-content {
    padding: 60px 10%;

    background: #f5f5f5;
}

.persyaratan-box {
    background: white;

    padding: 50px;

    border-radius: 15px;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.persyaratan-box h2 {
    color: #0c2f45;

    margin-bottom: 30px;

    font-size: 38px;
}

.persyaratan-box li {
    margin-bottom: 20px;

    line-height: 1.8;

    font-size: 20px;

    color: #444;
}


/* =====================================================
   PANDUAN
===================================================== */

.artikel-panduan {
    max-width: 900px;

    margin: 120px auto 50px;

    padding: 20px;

    background: white;
}

.artikel-panduan img {
    width: 100%;

    border-radius: 10px;

    margin-bottom: 30px;
}

.artikel-panduan h1 {
    color: #0c2f45;

    margin-bottom: 25px;

    font-size: 40px;
}

.artikel-panduan h2 {
    color: #0c2f45;

    margin-top: 30px;
}

.artikel-panduan p {
    text-align: justify;

    line-height: 1.9;

    font-size: 18px;

    color: #444;
}

.artikel-panduan ul {
    line-height: 2;

    font-size: 18px;
}


/* =====================================================
   PENDAFTARAN
===================================================== */

.header-pendaftaran {
    margin-top: 80px;

    background: #0c2f45;

    color: white;

    text-align: center;

    padding: 40px;
}

.header-pendaftaran h1 {
    margin: 0;

    font-size: 30px;
}

.pendaftaran-content {
    padding: 60px 10%;

    background: #f5f5f5;
}

.alur-box,
.info-daftar {
    background: white;

    padding: 35px;

    border-radius: 15px;

    margin-bottom: 30px;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   TUJUAN
===================================================== */

.tujuan-section {
    max-width: 1200px;

    margin: auto;

    padding: 20px;
}

.tujuan-section h1 {
    text-align: center;

    color: #0B3558;

    margin-bottom: 40px;

    font-size: 40px;
}

.tujuan-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );

    gap: 25px;
}

.tujuan-card {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

    padding: 30px;

    transition: 0.3s;

    text-align: center;
}

.tujuan-card:hover {
    transform: translateY(-8px);
}

.icon {
    font-size: 60px;

    margin-bottom: 15px;
}


/* =====================================================
   DASAR HUKUM
===================================================== */

.header-hukum {
    margin-top: 80px;

    height: 350px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("img/pp.png");

    background-size: cover;

    background-position: center;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    color: white;
}

.header-hukum h1 {
    font-size: 55px;

    margin-bottom: 15px;
}

.header-hukum p {
    font-size: 20px;

    max-width: 800px;
}

.hukum-content {
    padding: 80px 10%;
}

.hukum-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 25px;
}

.hukum-card {
    background: #fff;

    border-radius: 15px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    min-height: 230px;

    transition: .3s;
}

.hukum-card:hover {
    transform: translateY(-8px);
}

.hukum-card h3 {
    font-size: 22px;

    margin-bottom: 15px;

    word-break: break-word;

    line-height: 1.4;
}

.hukum-card p {
    margin-top: 10px;

    line-height: 1.8;

    overflow-wrap: anywhere;
}


/* =====================================================
   INFO TABLE
===================================================== */

.info-table {
    width: 100%;

    border-collapse: collapse;

    margin-top: 20px;

    background: #fff;
}

.info-table th {
    background: #28a745;

    color: white;

    padding: 12px;

    text-align: center;
}

.info-table td {
    border: 1px solid #ddd;

    padding: 12px;

    line-height: 1.6;
}

.info-table tr:nth-child(even) {
    background: #f8f9fa;
}

.info-table tr:hover {
    background: #e8f5e9;
}


/* =====================================================
   ADMIN BUTTON
===================================================== */

.admin-btn {
    background: #28a745;

    color: white;

    padding: 10px 18px;

    border-radius: 5px;

    text-decoration: none;

    font-weight: bold;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .navbar {
        padding: 15px 25px;
    }

    .logo {
        font-size: 25px;

        margin-right: 30px;
    }

    .menu {
        gap: 10px;
    }

    .menu li a {
        padding: 10px 8px;

        font-size: 15px;
    }

    .overlay {
        width: 75%;

        padding: 35px;
    }

    .overlay h2 {
        font-size: 36px;
    }

    .overlay p {
        font-size: 17px;
    }

    .card {
        width: 27%;
    }
}


/* =====================================================
   HP
===================================================== */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    /* =================================================
       NAVBAR HP
    ================================================= */

    .navbar {
        position: relative;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        padding: 18px 10px 12px;
    }

    .logo {
        width: 100%;

        margin: 0 0 10px 0;

        text-align: center;

        font-size: 27px;
    }

    .menu {
        width: 100%;

        display: flex;

        justify-content: center;

        align-items: center;

        flex-wrap: wrap;

        gap: 2px 5px;
    }

    .menu li a {
        padding: 9px 8px;

        font-size: 14px;

        white-space: nowrap;

        text-align: center;
    }


    /* =================================================
       DROPDOWN HP
    ================================================= */

    .submenu {
        position: absolute;

        top: 100%;

        left: 50%;

        transform: translateX(-50%);

        width: 230px;

        max-width: calc(100vw - 20px);

        z-index: 30000;

        box-shadow: 0 5px 15px rgba(0,0,0,.25);
    }


    /*
       JANGAN HILANGKAN DROPDOWN KETIKA DIKLIK
    */

    .dropdown:hover > .submenu {
        display: none;
    }

    .dropdown.open > .submenu {
        display: block;
    }


    .submenu li a {
        display: block;

        padding: 12px 15px;

        font-size: 14px;

        text-align: left;
    }


    /* =================================================
       HERO HP
    ================================================= */

    .hero {
        position: relative;

        width: 100%;

        height: calc(100vh - 115px);

        min-height: 600px;

        margin-top: 0;

        overflow: hidden;
    }

    .hero-bg {
        width: 100%;

        height: 100%;

        object-fit: cover;

        object-position: center center;
    }


    /* =================================================
       OVERLAY HP
    ================================================= */

    .overlay {
        width: calc(100% - 30px);

        max-width: none;

        padding: 30px 18px;

        top: 50%;

        left: 50%;

        transform: translate(-50%, -50%);

        border-radius: 18px;

        background: rgba(0, 0, 0, .48);
    }

    .overlay h2 {
        width: 100%;

        margin: 0 0 20px;

        font-size: 34px;

        line-height: 1.2;

        text-align: center;
    }

    .overlay p {
        width: 100%;

        margin: 0 auto 10px;

        font-size: 17px;

        line-height: 1.7;

        text-align: center;

        word-wrap: break-word;
    }

    .btn {
        display: block;

        width: 100%;

        max-width: 280px;

        margin: 25px auto 0;

        padding: 15px 20px;

        font-size: 17px;

        text-align: center;
    }


    /* =================================================
       INFO HP
    ================================================= */

    .info {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 20px;

        padding: 30px 15px;
    }

    .card {
        width: 100%;

        max-width: 450px;

        padding: 25px 20px;

        margin: 0;
    }


    /* =================================================
       KONTAK HP
    ================================================= */

    .kontak {
        width: 100%;

        padding: 45px 20px;

        text-align: center;
    }

    .kontak h2 {
        font-size: 28px;
    }

    .kontak p {
        font-size: 15px;

        line-height: 1.7;

        word-wrap: break-word;
    }


    /* =================================================
       FOOTER HP
    ================================================= */

    footer {
        width: 100%;

        padding: 18px 15px;
    }

    footer p {
        margin: 0;

        font-size: 14px;

        line-height: 1.6;
    }


    /* =================================================
       BAGIAN LAIN
    ================================================= */

    .tentang,
    .hukum-content,
    .persyaratan-content,
    .pendaftaran-content {
        width: 100%;

        padding-left: 20px;

        padding-right: 20px;
    }

    .artikel-rkt,
    .artikel-panduan {
        width: calc(100% - 30px);

        margin-left: auto;

        margin-right: auto;

        padding: 15px;
    }


    /* =================================================
       PERSYARATAN
    ================================================= */

    .header-persyaratan {
        margin-top: 0;

        padding: 30px 20px;
    }

    .persyaratan-box {
        padding: 25px 20px;
    }

    .persyaratan-box h2 {
        font-size: 28px;
    }

    .persyaratan-box li {
        font-size: 16px;

        line-height: 1.7;
    }


    /* =================================================
       TUJUAN
    ================================================= */

    .tujuan-section {
        width: 100%;

        padding: 20px 15px;
    }

    .tujuan-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .tujuan-card {
        width: 100%;

        padding: 25px 20px;
    }


    /* =================================================
       DASAR HUKUM
    ================================================= */

    .header-hukum {
        margin-top: 0;

        height: 300px;

        padding: 20px;
    }

    .header-hukum h1 {
        font-size: 35px;

        line-height: 1.2;
    }

    .header-hukum p {
        font-size: 16px;

        line-height: 1.6;
    }

    .hukum-grid {
        grid-template-columns: 1fr;
    }

    .hukum-card {
        min-height: auto;

        width: 100%;
    }


    /* =================================================
       LAYANAN
    ================================================= */

    .hero-layanan {
        margin-top: 0;

        padding: 55px 20px;
    }

    .hero-layanan h1 {
        font-size: 32px;

        line-height: 1.3;
    }

    .fitur-layanan {
        padding: 30px 15px;

        flex-direction: column;

        align-items: center;
    }

    .fitur-card {
        width: 100%;

        max-width: 400px;
    }

    .pengaduan {
        width: 100%;

        padding: 30px 20px;
    }


    /* =================================================
       PENDAFTARAN
    ================================================= */

    .header-pendaftaran {
        margin-top: 0;

        padding: 35px 20px;
    }

    .alur-box,
    .info-daftar {
        padding: 25px 20px;
    }


    /* =================================================
       TABEL HP
    ================================================= */

    .info-table,
    .tabel-data {
        display: block;

        width: 100%;

        overflow-x: auto;

        white-space: nowrap;
    }

}

/* Menghilangkan warna biru cerah pada navbar */
.navbar {
    background: #0d3045 !important;
}

/* Menghilangkan lapisan biru tambahan jika ada */
.navbar::before,
.navbar::after {
    display: none !important;
}