.related-products-block {
    padding: 60px 0;
    background-color: #fff;
    border-style: solid;
    border-width: 1px;
    border-color: #dedede;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.related-products-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-products-title {
    font-size: 2.5rem;
    color: #0d4c5f;
    margin-bottom: 40px;
    font-weight: 400;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-product-image-wrapper {
    background-color: #f0f0f0;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    overflow: hidden;
}

.related-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps blend image if it has white bg */
    transition: filter 0.3s ease;
}

.related-product-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e5e5;
}

.related-product-content {
    padding: 0 10px;
}

.related-product-name {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: #1d6b81;
    margin: 0 0 12px 0;
    border-style: solid;
    border-width: 1px;
    border-top: none;
    border-color: #dedede;
    border-right: none;
    border-left: none;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.related-product-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* Read more link */
.related-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ed8936;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.related-product-card:hover .related-product-link {
    gap: 12px;
    color: #d97520;
}

.related-product-link i {
    font-size: 0.8rem;
}

/* Hover Effects */
.related-product-card:hover .related-product-image-wrapper {
    background-color: #00BAC6; /* Bright Teal */
}

.related-product-card:hover .related-product-image {
    mix-blend-mode: multiply;
    filter: saturate(0.9) brightness(1.05);
}

/* 
   Based on the screenshot, the middle card (hover state) has:
   - Teal background for image
   - Blue title (same as normal state?)
   - Grey text (same as normal state?)
   
   Wait, looking at the screenshot again:
   Left: Image on Grey. Title Blue. Text Grey.
   Middle: Image on Teal. Title Blue. Text Grey.
   Right: Image on Grey. Title Blue. Text Grey.
   
   So only the image background changes.
*/

@media (max-width: 991px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products-title {
        font-size: 2rem;
    }
}