.related-link {
    font-family: 'Segoe UI', sans-serif;
    margin: 1.5em 0;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-link a {
    text-decoration: none;
    color: #F9F9F9;
}

/* Hover effect */
.related-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(75, 0, 130, 0.3);
}

/* Large variant */
.related-link.large {
    background-color: #4B0082;
    border-radius: 16px;
    padding: 1em;
}

.related-link.large .rl-image-wrapper img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    border: 2px solid #FFD700;
}

.related-link.large .rl-title {
    margin-top: 0.6em;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
}

/* Small variant */
.related-link.small {
    background-color: #A8FFCE;
    border-left: 6px solid #50C878;
    border-radius: 10px;
    padding: 0.8em;
    text-align: left;
}

.related-link.small .rl-small-wrapper {
    display: flex;
    align-items: center;
    gap: 1em;
}

.related-link.small img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #4B0082;
}

.related-link.small .rl-title {
    color: #4B0082;
    font-weight: bold;
    font-size: 1em;
}

/* Text-only variant */
.related-link.text-only {
    background: linear-gradient(90deg, #4B0082 0%, #50C878 100%);
    padding: 0.8em;
    border-radius: 10px;
}

.related-link.text-only .rl-title-only {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .related-link.large .rl-image-wrapper img {
        max-width: 100%;
    }

    .related-link.small img {
        width: 60px;
        height: 60px;
    }

    .related-link.small .rl-title {
        font-size: 0.95em;
    }

    .related-link.large .rl-title {
        font-size: 1em;
    }
}