/* Styling for the Products Section */
#products {
    margin-top: 40px;
    padding: 40px 20px;
    background-color: navy;
    color: white;
    border-radius: 8px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

#products h2 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin-bottom: 30px;
}

/* Ensuring all product items have the same size and shape */
.product-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Ensures uniform height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes content evenly */
}

/* Ensuring the product row is flex-based for equal height alignment */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.col-lg-3, .col-md-4, .col-sm-6 {
    display: flex;
}

/* Uniform image size */
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    object-fit: contain; /* Ensures the entire image fits inside */
    object-position: center; /* Centers the image */
    background-color: #f8f8f8; /* Optional: Adds a light background to maintain aesthetics */
}

}

/* Product name styling */
.product-item h3 {
    margin-top: 15px;
    font-size: 20px;
    color: #333;
}

/* Product description styling */
.product-item p {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    flex-grow: 1; /* Ensures the text expands within the flex container */
}

/* Hover effect on product item */
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

/* Read More link styling */
.product-item .read-more {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

.product-item .read-more i {
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .col-lg-3 {
        flex: 0 0 50%; /* Two items per row on tablets */
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .col-md-4 {
        flex: 0 0 100%; /* One item per row on smaller screens */
        max-width: 100%;
    }

    .product-item {
        margin-bottom: 20px;
    }
}
