@import url("global.css");

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    padding: 16px;
    text-align: center;
    width: 100%;
    /* position: sticky;   */
    position: fixed;
    top: 0;
    z-index: 9999;
}

header nav {
    display: flex;
    gap: 4px;
    line-height: 10px;
    align-items: center;
}

header .title {
    display: flex;
    flex-direction: column;
    line-height: 10px;
    gap: 4px;
    text-align: left;
    font-family: "Lato", sans-serif;
}

header .title h6 {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-color);
}

header .title span {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-color);
}

header img {
    width: 30px;
    height: auto;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-family: "Lato", sans-serif;
    gap: 10px;
    display: flex;
    align-items: center;
}
header nav ul li {
    cursor: pointer;
    display: inline;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
    font-family: "lato", sans-serif;
    font-weight: 500;
    font-size: 12px;
}

/* Dropdown Button */
.dropbtn2,
.dropbtn {
    cursor: pointer;
    font-size: 12px;
    border: none;
    transition: all 0.3s;
    color: var(--text-color);
    font-family: "lato", sans-serif;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.dropbtn2 i,
.dropbtn i {
    margin-top: 3px;
    transform: rotate(0deg);
    transition: all 0.3s ease-in-out;
}

.dropdown2 .dropbtn2.active i,
.dropdown .dropbtn.active i {
    transform: rotate(-180deg);
    transition: all 0.3s ease-in-out;
}

/* The container <div> - needed to position the dropdown content */
.dropdown2,
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content2,
.dropdown-content {
    display: none;
    opacity: 0;
    transition: all 0.3s;
    position: absolute;
    top: 20px;
    right: -4px;
    text-align: left;
    border-radius: 12px;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-size: 10px;
    line-height: 20px;
}

/* Links inside the dropdown */
.dropdown-content2 a,
.dropdown-content a {
    color: var(--text-color);
    font-family: "lato", sans-serif;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content2 a:last-child,
.dropdown-content a:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-content2 a:first-child,
.dropdown-content a:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Change color of dropdown links on hover */
.dropdown-content2 a:hover,
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown2:hover .dropbtn2,
header nav ul li a:hover,
.dropdown:hover .dropbtn {
    color: var(--secondary-color);
    transition: all 0.3s;
}

/* Main Style */

.hero {
    position: relative;
    padding-top: 70px;
    display: flex;
    justify-content: left;
    align-items: center;
    background: url("../img/foto-kantor.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: "Lato", sans-serif;
    color: #fff;
    height: 300px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, var(--primary-color));
    z-index: 0;
}

.hero main {
    position: relative;
    z-index: 1;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero main .garuda {
    width: 90px;
    padding-right: 25px;
}

.hero main .container {
    display: flex;
    padding: 0px 16px;
    flex-direction: column;
    gap: 6px;
    width: 270px;
}

.hero main .container h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero main .container p {
    font-size: 12px;
    margin-bottom: 20px;
}

section main .container .lapor-btn {
    text-decoration: none;
    font-size: 12px;
    color: #fff;
    background-color: #5e80aa;
    padding: 8px 16px 10px 16px;
    box-shadow: rgba(0, 0, 0, 0.162) 0px 2px 6px;
    border-radius: 9999px;
    gap: 2px;
    width: fit-content;
    font-weight: 700;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

section main .container .lapor-btn:hover {
    background-color: #4e6a8e;
}

section main .container .lapor-btn i {
    font-size: 12px;
}

/* Layanan Style */
.layanan {
    display: flex;
    flex-direction: column;
    font-family: "Lato", sans-serif;
    padding: 30px;
    text-align: center;
    margin-top: -60px;
    background-color: #d9f0cf50;
    height: 100%;
}

.layanan h4 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.layanan .p-layanan {
    justify-self: center;
    font-size: 12px;
    color: #aeaeae;
    margin: 20px 0;
}

.layanan .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.layanan .container .card {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 8px;
    border-radius: var(--border-radius);
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 15px;
    color: #a7d299;
}

.layanan .container .card img {
    width: 40px;
}

.layanan .container .card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;
}

#layanan {
    padding-top: 70px;
}

/* Pimpinan Style */
.pimpinan {
    display: flex;
    flex-direction: column;
    font-family: "Lato", sans-serif;
    padding: 20px;
    margin-top: -60px;
    text-align: center;
}

.pimpinan h4 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.pimpinan .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.pimpinan .container .card-pimpinan {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 5px;
    border-radius: var(--border-radius);
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 10px;
}
.pimpinan .container .card-pimpinan img {
    width: 100px;
    height: 100px;
    object-position: 0px 10px;
    object-fit: cover;
}

.pimpinan .container .card-pimpinan h6 {
    font-size: 14px;
    color: #8e8e8e;
}
.pimpinan .container .card-pimpinan h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.pimpinan .container .card-kontak {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 5px;
    border-radius: var(--border-radius);
    width: 100%;
    font-size: 10px;
}

.pimpinan .container .card-kontak form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px;
}

.pimpinan .container .card-kontak form button {
    width: 100%;
    cursor: pointer;
    background-color: #5e80aa;
    color: #fff;
    padding: 10px;
    border: none;
    transition: all 0.3s ease;
}

.pimpinan .container .card-kontak form button:hover {
    background-color: #476282;
}

.pimpinan .container .card-kontak form ul {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 99%;
}

.pimpinan .container .card-kontak form ul label {
    margin-bottom: 10px;
    font-size: 12px;
}

.pimpinan .container .card-kontak form ul label span {
    color: #c4c4c4;
}

.pimpinan .container .card-kontak form ul:not(:nth-child(2)) label span {
    color: red;
}

.pimpinan .container .card-kontak form ul input,
.pimpinan .container .card-kontak form ul textarea {
    width: 100%;
    max-width: 100%;
    padding: 5px;
}

#kontak {
    padding-top: 70px;
}

/* footer Style */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
    padding: 16px;
    text-align: center;
    width: 100%;
    font-family: "Lato", sans-serif;
    margin-top: 2rem;
}
.footer p {
    font-size: 10px;
    color: var(--text-color);
}

/* =========================
   RESPONSIVE UNTUK TABLET & DESKTOP
   ========================= */

/* Tablet (≥768px) */
@media only screen and (min-width: 768px) {
    header {
        padding: 16px 40px;
    }

    header nav:first-child img {
        width: 45px;
    }

    header .title h6 {
        font-size: 16px;
    }

    header .title span {
        font-size: 12px;
    }

    header nav ul li a,
    .dropbtn,
    .dropbtn2 {
        font-size: 14px;
    }

    /* Hero section */
    .hero {
        height: 400px;
        background-position: center center;
        justify-content: center;
    }

    .hero main {
        width: 85%;
        justify-content: space-between;
        align-items: center;
    }

    .hero main .container {
        width: 400px;
    }

    .hero main .container h4 {
        font-size: 30px;
    }

    .hero main .container p {
        font-size: 14px;
    }

    .hero main .garuda {
        width: 120px;
    }

    /* Layanan */
    .layanan {
        padding: 60px;
        margin-top: -40px;
    }

    .layanan .p-layanan {
        font-size: 14px;
        max-width: 600px;
        margin: 10px auto 30px;
    }

    .layanan .container {
        justify-content: center;
        gap: 40px;
    }

    .layanan .container .card {
        max-width: 280px;
        height: 200px;
    }

    /* Pimpinan section */
    .pimpinan {
        padding: 60px;
    }

    .pimpinan .container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 40px;
    }

    .pimpinan .container .card-pimpinan,
    .pimpinan .container .card-kontak {
        width: 45%;
    }

    .pimpinan .container .card-kontak form {
        padding: 20px 30px;
    }

    .pimpinan .container .card-kontak form ul label {
        font-size: 13px;
    }

    .pimpinan .container .card-pimpinan {
        width: auto;
        height: fit-content;
    }

    .pimpinan .container .card-pimpinan img {
        width: 45%;
    }

    /* Footer */
    .footer p {
        font-size: 12px;
    }
}

/* Desktop (≥1024px) */
@media only screen and (min-width: 1024px) {
    header {
        padding: 20px 80px;
    }

    header nav ul {
        gap: 30px;
    }

    .hero {
        height: 500px;
    }

    .hero main .container {
        width: 480px;
    }

    .hero main .container h4 {
        font-size: 36px;
    }

    .hero main .container p {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero main .garuda {
        width: 150px;
    }

    .layanan {
        padding: 80px 100px;
    }

    .layanan .container {
        gap: 60px;
    }

    .layanan .container .card {
        max-width: 300px;
        height: 220px;
    }

    .pimpinan {
        padding: 80px 100px;
    }

    .pimpinan .container {
        gap: 80px;
    }

    .footer {
        padding: 30px;
    }
}
