.aboutus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 60%;
    background-color: rgba(236, 236, 236, 0.877);
    padding: 1%;
    text-align: center;
    border-radius: 7px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.aboutus h1 {
    position: relative;
    display: inline-block;
    margin-bottom: 0px;
}

.aboutus h1::after {
    content: "";
    position: absolute;
    left: -40px;
    right: -40px;
    bottom: -2px;
    height: 2px;
    background-color: black;
}

.bannerimg {
    width: 100%;
    display: block;
}

.banner {
    position: relative;
    width: 100%;
}

.category-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5% 0;
    box-sizing: border-box;
}

.category-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0 50px;
    width: 100%;
}

.service-box {
    position: relative;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #fcfcfc;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: 2px solid #e6e6e6;
    overflow: hidden;
    flex: 0 1 calc(33.333% - 20px);
    box-sizing: border-box;
    min-width: 280px;
}

.home-page .service-box::after {
    content: '→';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: #333;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: bold;
}

.home-page .service-box:hover::after {
    opacity: 1;
    transform: translateX(0);
    color: #000;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-color: #d0d0d0;
}

.placeholder {
    width: 100%;
    height: 200px;
    background-color: #f8f8f8;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.product-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0 50px;
    width: 100%;
}

.product-box {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: #fcfcfc;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid #eaeaea;
    text-decoration: none;
    color: inherit;
    gap: 30px;
    overflow: hidden;
}


.product-box.image-right {
    flex-direction: row-reverse;
}

.product-image {
    flex: 0 0 35%;
    max-width: 35%;
    height: 300px;
    background-color: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
    text-align: center;
}

.product-info p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .banner {
        display: flex;
        flex-direction: column;
    }

    .aboutus {
        position: static;
        transform: none;
        width: 100%;
        padding: 20px 5%;
        box-sizing: border-box;
        border-radius: 0;
        box-shadow: none;
    }

    .aboutus h1 {
        font-size: 1.4rem;
    }

    .aboutus h1::after {
        left: 0;
        right: 0;
    }

    .aboutus p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .category-section {
        padding: 30px 4% 0;
    }

    .category-title {
        font-size: 1.5em;
    }

    .services {
        gap: 20px;
        padding: 15px 0 40px;
    }

    .service-box {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }

    .placeholder {
        height: 160px;
    }

    .product-box,
    .product-box.image-right {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .product-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        height: auto;
        min-height: 150px;
    }

    .product-info {
        text-align: center;
    }
}