/**
 * Related Products Component Styles
 * Cross-linking cards between PayNow tools
 */

/* Related Products Section */
.related-products-section {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 3rem;
}

.related-products-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #7d1979;
    font-weight: 700;
}

.related-products-section .section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(125, 25, 121, 0.15);
    border-color: #7d1979;
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-card-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #7d1979;
    font-weight: 600;
}

.product-card-body {
    flex-grow: 1;
}

.product-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7d1979;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 2px solid #7d1979;
    border-radius: 8px;
    background: white;
}

.product-card-cta:hover {
    gap: 0.75rem;
    color: white;
    background: #7d1979;
    text-decoration: none;
}

.product-card-cta i {
    transition: transform 0.3s ease;
}

.product-card-cta:hover i {
    transform: translateX(3px);
}

/* Contextual Link Styling */
.contextual-link {
    color: #7d1979;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contextual-link:hover {
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
    color: #6a1566;
}

/* Responsive Design */
@media (max-width: 767px) {
    .related-products-section {
        padding: 3rem 0;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card h3 {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .related-products-section {
        padding: 3.5rem 0;
    }
}