body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #000;
    border-bottom: 1px solid #444;
}
.header .logo {
    display: flex;
    align-items: center;
}
.header .logo img {
    height: 50px;
    margin-right: 10px;
}
.header .logo .title {
    font-size: 24px;
    font-weight: bold;
}
.header .logo .subtitle {
    font-size: 14px;
}
.header .logo div {
    font-size: 14px;
}
.header .logo div span {
    display: block;
}
.header .nav {
    display: flex;
    text-align: center;
    gap: 20px;
}
.header .nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}
.header .nav a.active {
    color: #bb8d02;
}
.header .contact {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
}
.header .contact i {
    font-size: 20px;
}
.header .contact a.phone {
    font-size: 18px;
    width: 200px;
    color: #fff;
    text-decoration: none;
}

.header .search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    height: 40px;
    border: 1px solid #fff;
}
.header .search input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    padding: 5px;
    width: 160px;
}
.header .search i {
    color: #fff;
    font-size: 20px;
}

/* HOME */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex: 1;
}
.home .text {
    font-size: 64px;
    font-weight: bold;
    line-height: 1.2;
}
.home .image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
}
.home-footer {
    padding: 20px;
    text-align: left;
    font-size: 18px;
}
/* END HOME */

/* PRODUK */
.produk {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.sidebar {
    flex: 1;
    min-width: 200px;
    margin-left: 20px;
}
.sidebar h2 {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.sidebar h2.active {
    color: #bb8d02;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin-left: 30px;
}
.sidebar ul li {
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
}
.sidebar ul li.active {
    color: #bb8d02;
}

.main {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 20px;
    min-height: 400px;
}
.main .item {
    text-align: center;
    margin-right: 20px;
}
.main .item img {
    width: 100%;
    height: auto;
}
.main .item p {
    margin: 10px 0 0;
    font-size: 16px;
}
/* END PRODUK */

.content {
    padding: 20px;
}

.content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.content .map-contact {
    display: flex;
    gap: 20px;
}

.content .map-contact img {
    max-width: 100%;
    height: auto;
}

.content .contact-info {
    font-size: 16px;
    line-height: 1.5;
}


.footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #444;
}

.footer a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

@media (max-width: 768px) {
    
    .header {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items horizontally */
    }
   .header .nav {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: center; /* Center navigation items */
        margin-top: 10px; /* Space between nav and contact */
    }

    .header .contact {
        display: flex; /* Use flexbox for alignment */
        align-items: center; /* Center items vertically */
        justify-content: center; /* Center items horizontally */
        gap: 0; /* Remove space between icon and text */
        width: auto; /* Allow it to take only necessary width */
        margin-top: 10px; /* Add some margin on top */
        text-align: center; /* Center text within the contact section */
    }

    .header .contact i {
        font-size: 20px; /* Ensure the icon size is appropriate */
        line-height: 1; /* Set line-height to 1 for better vertical alignment */
        margin: 0; /* Remove any margin */
    }

    .header .contact a.phone {
        width: 100%;
        margin: 5px;
        font-size: 18px; /* Ensure the link size is appropriate */
        color: #fff; /* Ensure the color is set */
        text-decoration: none; /* Remove underline */
        line-height: 1; /* Set line-height to 1 for better vertical alignment */
    }
    .header .search {
        margin-top: 10px;
    }
    .home {
        flex-direction: column; /* Stack text and image vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text */
    }
    .home .text {
        margin-bottom: 20px; /* Add space between text and image */
    }
    
    .main {
        flex: 3;
        display: grid;
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text */
        padding: 10px;
        height: auto; /* Allow height to adjust based on content */
    }

    .main .item {
        width: 100%; /* Make each item take full width */
        margin: 10px 0; /* Add some vertical spacing between items */
    }
    .main .image img {
        width: 100%;
        height: auto;
    }
    .footer {
        text-align: center;
    }

    .header .nav {
        flex-direction: column;
        align-items: center;
    }
    .content .map-contact {
        flex-direction: column;
        align-items: center;
    }
}
