/* Common styling for all sections */
.product-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background to match the existing color palette */
}

.product-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #f9b233; /* Dark yellow to match the theme */
}

/* Ensure the row uses flexbox for proper alignment */
.row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: space-between; /* Ensures space between cards */
}

/* Product Card Styling */
.product-card {
    flex: 0 1 calc(25% - 30px); /* 4 cards per row with space */
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow effect */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s; /* Hover effect */
}

/* Ensure images fill the card without distortion */
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #000000; /* Black text for product names */
}

.product-card p {
    font-size: 16px;
    color: #666666; /* Light grey text for descriptions */
    margin-bottom: 15px;
}

.product-card .contact-btn {
    background-color: #f9b233; /* Dark yellow button */
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    margin: auto;
    
}

.product-card .contact-btn:hover {
    background-color: #e0a122; /* Slightly darker yellow on hover */
}

/* Hover effect for cards */
.product-card:hover {
    transform: translateY(-5px); /* Slight lift effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Responsive Design for Tablets */
@media (max-width: 768px) {
    .product-card {
        flex: 0 1 calc(50% - 20px); /* 2 cards per row on tablets */
    }
}

/* Responsive Design for Mobile */
@media (max-width: 576px) {
    .product-card {
        flex: 0 1 100%; /* Full-width cards on mobile */
    }
}
/* Project Title */
.product-card h3 {
    font-size: 12px; /* Slightly smaller font for longer titles */
    margin-bottom: 8px;
    color: #000000; /* Black text */
    line-height: 1.3; /* Ensures tighter spacing for longer titles */
    max-height: 3.6em; /* Limit title to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if text overflows */
    white-space: nowrap; /* Keeps title on a single line */
}

/* Short Description */
.product-card p {
    font-size: 10px; /* Adjusted font size for readability */
    color: #666666; /* Light grey text for descriptions */
    line-height: 1.5; /* Improves readability */
    max-height: 4.5em; /* Limit description to 3 lines */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if text exceeds max height */
    white-space: normal; /* Allows text wrapping */
}

/* Watermark styles */
.watermark {
    position: fixed;
    top: 20%; /* Vertically centered */
    right: 15px; /* Stick to the right and adjust for rotation */
    transform: translateY(-50%) rotate(270deg); /* Rotate 90 degrees to the right */
    transform-origin: right center; /* Set the origin to the right center for smooth rotation */
    background-color: rgba(0, 31, 63, 0.8); /* Dark blue background with opacity */
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 5px 0 0 5px; /* Rounded corners on the left */
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.watermark a {
    color: white;
    text-decoration: none;
}

.watermark a:hover {
    text-decoration: underline;
}
