#products {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
    padding: 20px 40px;
    background-color: #f8f9fa;
    min-height: 700px;
    margin-bottom: 100px;
    flex-wrap: wrap;
    gap: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100vw;
}

#products .product {
    /* Adjusted to account for gap */
    height: auto;
    width: 25vw;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-image: url('Graphics/Cream%20and%20White%20Watercolor%20Background%20Document%20A4_20250511_143008_0000.png');
    background-size: cover;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    padding: 20px;
}

#products .product-one {
    border: 5px solid green;
    border-radius: 5px;
    box-shadow: 0 10px 10px green;
}

#products .product.appear {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#products .product:hover {
    background-image: none;
    background-color: orange;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.6);
    transform: scale(1.05);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#products .product:hover h1,
#products .product:hover h2,
#products .product:hover p,
#products .product:hover li {
    color: white;
}

#productHeading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#products .product h1 {
    font-size: 28px;
    color: #2e3439;
    margin-left: 10px;
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: 450;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#products .product h2 {
    align-self: center;
    margin-bottom: 15px;
    color: #6c757d;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

#products .product h3 {
    align-self: center;
    margin-bottom: 15px;
    color: green;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

#products .product p {
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 400;
    font-size: 16px;
    color: #495057;
    line-height: 1.5;
}

#products .product ol {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    width: 100%;
    padding-left: 20px;
    margin-top: 10px;
}

#products .product ol li {
    color: #495057;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    font-size: 15px;
}

#products .product ol li::marker {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745;
    font-size: 16px;
}

#products .product .status {
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
}

#products .one .status {
    align-self: center;
    color: #28a745;
}

#products .two .status,
#products .three .status {
    align-self: center;
    color: #dc3545;
}

#products .product .productbtn {
    height: 40px;
    width: 80%;
    align-self: center;
    margin-top: 25px;
    margin-bottom: 20px;
    color: #ffffff;
    background-color: #343a40;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

#products .product .productbtn:hover {
    background-color: #40474f;
}

/* Responsive Design */
@media (max-width: 767px) {
    #products {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 0;
        width: 100vw;
        box-sizing: border-box;
    }

    #products .product {
        width: 70vw;
        height: auto;
        padding: 20px;
    }

    #productHeading {
        font-size: 24px;
    }

    #products .product h1 {
        font-size: 24px;
    }

    #products .product p {
        font-size: 14px;
    }

    #products .product ol {
        height: auto;
    }

    #products .product .productbtn {
        font-size: 16px;
        height: 40px;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #products {
        flex-wrap: wrap;
        justify-content: space-evenly;
        width: 100vw;
        height: auto;
        padding: 0 30px;
    }

    #products .product {
        width: 28vw;
        height: auto;
        padding: 20px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    #products .product.appear {
        opacity: 1;
    }

    #productHeading {
        font-size: 26px;
    }

    #products .product h1 {
        font-size: 26px;
    }

    #products .product p {
        font-size: 15px;
    }

    #products .product .productbtn {
        font-size: 16px;
        height: 40px;
        margin-bottom: 10px;
    }
}

@media (min-width: 1024px) and (max-width: 1400px) {
    #products {
        flex-wrap: wrap;
        justify-content: space-evenly;
        width: 100vw;
        height: auto;
        padding: 0 40px;
    }

    #products .product {
        width: 30%;
        padding: 20px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    #products .product.appear {
        opacity: 1;
    }

    #productHeading {
        font-size: 28px;
        height: 40px;
        margin-bottom: 10px;
    }

    #products .product h1 {
        font-size: 28px;
    }

    #products .product p {
        font-size: 16px;
    }

    #products .product .productbtn {
        font-size: 16px;
    }
}