/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: whitesmoke;
}

/* Navigation Styles */
nav {
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    padding-left: 30px;
    padding-right: 30px;
}

nav img {
    width: 150px;
    height: 80px;
}

#nav-menu {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

#dropdown-icon {
    display: block;
    padding: 20px;
    font-size: 24px;
    cursor: pointer; 
}

#menu-right {
    display: flex;
    align-items: center;
}

#menu-right.show {
    display: flex; 
    flex-direction: column; 
    width: 100%; 
}

div a {
    text-decoration: none;
    color: black;
    margin-left: 10px;
    margin-right: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #D46935;
}

.hover-underline-animation:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #D46935;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media only screen and (max-width: 768px) {
    .hover-underline-animation{
        padding-bottom: 15px;
    }
    
    nav {
        flex-direction: column; 
        padding: 20px; 
    }

    #nav-menu {
        flex-direction: column; 
        width: 100%; 
    }

    #menu-right {
        display: none; 
        justify-content: right; 
    }

    .banner-section {
        font-size: 28px; 
        padding: 50px 10px; 
    }

    #btn1 {
        background-color: #F5DADF;
        color: white;
        width: 180px;
        height: 40px;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        cursor: pointer;
    }
    
    #btn1:hover{
        background-color: #BCA4E3;
        color: white;
        width: 180px;
        height: 40px;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        cursor: pointer;
    }
}

@media only screen and (min-width: 769px) {
    #dropdown-icon {
        display: none; 
    }

    #menu-right {
        display: flex; 
    }
}

/* Header Styles */
h1 {
    text-align: center;
    color: #333;
    margin: 20px 0;
}

#produk-h1 {
    margin-top: 30px;
}

/* Product Container */
#product-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    padding: 20px; 
}

/* Product Styles */
.product {
    position: relative;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px; 
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
    width: calc(33.33% - 20px); 
    box-sizing: border-box; 
}

.product table, th, td {
    width: auto;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    border: 1px solid whitesmoke;
    padding: 10px;
    background-color: #FAE5D2;
}

.product th{
    width: 500px;
    height: 100px;
}

.product:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.product h3 {
    margin-bottom: 20px; 
    margin-top: 10px;
}

img {
    border-radius: 5px;
    max-width: 100%; 
    height: auto; 
}

/* Paragraph Styles */
.para-produk {
    text-align: center;
    color: #666;
}

.product p {
    margin-top: 20px; 
}

/* Footer Styles */
footer {
    background-color: white;
    color: black;
    padding: 20px 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-left{
    padding-left: 135px;
    width: 50%;
}

.footer-right {
    padding-left: 300px;
    width: 50%;
    padding-right: 135px;
}

.footer-left a,
.footer-right a {
    text-decoration: none;
    color: black;
}

.footer-left div,
.footer-right div {
    margin-bottom: 5px;
}

.alamat{
    padding-left: 10px;
}

.alamat-2{
    padding-left: 50px;
}

/* Style for the active link */
.active-link {
    font-weight: bold;
    text-decoration: underline;
    color: #D46935; 
}

@media screen and (max-width: 768px) {
    /* Product styles */
    #product-container {
        flex-direction: column;
        padding: 10px;
    }

    .product {
        width: 100% !important;
        margin: 10px 0;
        padding: 15px;
        box-shadow: none; /* Optional: hilangkan shadow di mobile */
        transform: none !important;
    }

    .product:hover {
        transform: none;
        cursor: default;
    }

    .product table {
        width: 100% !important;
        font-size: 13px;
        table-layout: auto;
        word-wrap: break-word;
    }

    .product th, .product td {
        padding: 6px;
        font-size: 13px;
    }

    h1, h3 {
        text-align: center;
        font-size: 18px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Footer styles */
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        padding: 10px 0;
    }

    .footer-left {
        padding-left: 0;
    }

    .footer-right {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-left div,
    .footer-right div {
        margin-bottom: 10px;
        font-weight: normal;
        word-break: break-word;
        white-space: normal;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .alamat{
        padding-left: 10px;
    }
    
    .alamat-1,
    .alamat-2 {
        display: block;
        width: 100%;
        padding-left: 0 !important;
        margin-left: 0;
        word-break: break-word;
        white-space: normal;
    }


    .footer-left a,
    .footer-right a {
        display: inline;
        font-weight: normal;
        word-wrap: break-word;
        white-space: normal;
    }

    footer {
        padding: 20px;
        text-align: left;
    }
}

@media screen and (max-width: 738px) {
    
}
