body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    margin: 40px auto;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2e3b2e;
    margin-bottom: 10px;
}

.subtitle {
    width: 70%;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 40px;
}

/* =======================
   DESKTOP (default)
======================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.item {
    height: 70px;
    background: #dcdcdc;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.item.active {
    background: #2d4e39;
    color: white;
}

/* =======================
   TABLET LANDSCAPE (<= 1024px)
======================= */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* =======================
   TABLET PORTRAIT (<= 900px)
======================= */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .item {
        height: 65px;
        font-size: 18px;
    }
}

/* =======================
   MOBILE (<= 600px)
======================= */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .item {
        height: 55px;
        font-size: 16px;
    }

    h1 {
        font-size: 24px;
        color: #3E5F44;
    }

    .subtitle {
        width: 100%;
        font-size: 13px;
    }
}

/* =======================
   MOBILE KECIL (<= 400px)
======================= */
@media (max-width: 400px) {
    .grid {
        gap: 10px;
    }

    .item {
        height: 50px;
        font-size: 15px;
    }
}

