.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px; /* Adjust as needed */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-content .btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.card-content .btn:hover {
    background-color: #0056b3;
}

/* New styles for product cards */
.product .item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.product .item:hover {
    transform: translateY(-5px);
}

.product .thumb {
    width: 100%;
    height: 200px; /* Adjust as needed */
    overflow: hidden;
}

.product .thumb .photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.product .text {
    padding: 15px;
    flex-grow: 1; /* Allow content to take available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.product .text h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

/* Service Carousel */
.service-carousel .item {
    padding: 0 15px;
}

.service-carousel .card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-carousel .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-carousel .card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.service-carousel .card-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.service-carousel .card-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #343a40;
}

.service-carousel .card-content p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product .text h4 {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 10px;
}

.product .text .product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 40px; /* Limit height to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

.product .text .rating {
    margin-bottom: 10px;
}

.product .text .rating i {
    color: #ffc107; /* Star color */
}

.product .text .product-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #28a745; /* Green button */
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-top: 10px; /* Space above button */
}

.product .text .product-view-btn:hover {
    background-color: #218838;
}

.product .text .product-view-btn i {
    margin-right: 5px;
}