/* ================= RESET ================= */
*,
html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ================= NAVBAR ================= */
.container-navbar {
    display: flex;
    background-color: #485f5f;
    width: 100%;
    padding: 10px 16px;
}

.wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 10px;
}

.mode a {
    cursor: pointer;
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.brand {
    display: flex;
    font-size: 1.4rem;
}

.firstname {
    color: rgb(243, 238, 238);
    font-weight: 700;
    font-style: italic;
}

.lastname {
    color: rgb(230, 37, 53);
    padding-left: 5px;
}

.ul-navbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.li-navbar {
    list-style: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.3s;
}

.a-navbar,
.dropdown-btn {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.li-navbar:hover {
    background-color: #020818;
}

/* ================= DROPDOWN ================= */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    background: #fae18f;
    padding: 8px 10px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
    text-align: center;
}

.dropdown-content a {
    color: #333;
    display: block;
    padding: 6px 0;
    text-decoration: none;
}

.dropdown:hover .dropdown-content,
.dropdown-btn:focus + .dropdown-content {
    display: block;
}

/* ================= CONTENT ================= */
.container-content {
    background: #91c1d1;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
}

.content-box {
    background: white;
    padding: 24px;
    border-radius: 15px;
    max-width: 820px;
    width: 100%;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
}

.text {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 10px;
}

/* ================= ABOUT US (CARD GRID) ================= */
.about-container {
    max-width: 1100px;
    margin: 32px auto 48px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC */
    gap: 16px;
}

.card {
    background: #ffffff;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin: 8px 0 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

/* ================= FOOTER ================= */
.container-footer {
    background-color: #755962;
    padding: 10px;
    text-align: center;
}

.h1-footer {
    color: white;
    font-size: 0.9rem;
}

/* ================= DARK MODE ================= */
.dark {
    background-color: #0f172a;
    color: #e5e7eb;
}

.dark .container-navbar,
.dark .container-content,
.dark .container-footer {
    background-color: #020617;
}

.dark .content-box,
.dark .card {
    background: #0f172a;
    color: #e5e7eb;
}

.dark .dropdown-content {
    background: #020617;
}

.dark .dropdown-content a {
    color: #e5e7eb;
}

.dark .mode a {
    background: #334155;
}

/* ================= RESPONSIVE ================= */
/* Tablet */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* HP */
@media (max-width: 480px) {
    .about-container {
        grid-template-columns: repeat(2, 1fr); /* tetap 2 kolom di HP */
        gap: 10px;
    }

    .card {
        padding: 8px;
        border-radius: 12px;
    }

    .card img {
        height: 120px;
    }

    .card h3 {
        font-size: 0.85rem;
    }

    .wrapper {
        flex-wrap: wrap;
    }

    .ul-navbar {
        width: 100%;
        justify-content: center;
    }
}