.finantres-mx-related-box,
.finantres-mx-related-box * {
    box-sizing: border-box;
}

.finantres-mx-related-box {
    --fmx-bg: #F7FBF8;
    --fmx-surface: #EEF7F1;
    --fmx-lavender: #EFEAFF;
    --fmx-heading: #0E2A1E;
    --fmx-text: #4A5A52;
    --fmx-primary: #0E7C57;
    --fmx-accent: #16A07A;
    --fmx-purple: #6D4AFF;
    --fmx-purple-hover: #8A6BFF;
    --fmx-border: #DCEAE1;
    --fmx-shadow: 0 4px 24px rgba(14, 42, 30, .06);

    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 116px;
    margin: 22px 0;
    overflow: hidden;
    border: 1px solid var(--fmx-border);
    border-radius: 14px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--fmx-bg) 54%, var(--fmx-surface) 100%);
    box-shadow: var(--fmx-shadow);
    color: var(--fmx-heading);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.finantres-mx-related-box::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #0E7C57 0%, #6D4AFF 100%);
    pointer-events: none;
}

.finantres-mx-related-box:hover {
    transform: translateY(-2px);
    border-color: var(--fmx-purple-hover);
    box-shadow: 0 10px 30px rgba(14, 42, 30, .10);
    text-decoration: none !important;
}

.finantres-mx-related-box:focus-visible {
    outline: 3px solid rgba(109, 74, 255, .24);
    outline-offset: 3px;
}

.finantres-mx-related-img {
    position: relative;
    flex: 0 0 170px;
    width: 170px;
    overflow: hidden;
    background: var(--fmx-surface);
}

.finantres-mx-related-img::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(14, 124, 87, .08), transparent 58%);
    pointer-events: none;
}

.finantres-mx-related-img img,
.finantres-mx-related-img-tag {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 116px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    box-shadow: none !important;
    filter: none !important;
}

.finantres-mx-related-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px 20px;
}

.finantres-mx-related-label {
    display: block;
    margin-bottom: 5px;
    color: var(--fmx-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.finantres-mx-related-title {
    display: block;
    color: var(--fmx-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.42;
}

.finantres-mx-related-arrow {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--fmx-border);
    background: var(--fmx-lavender);
    color: var(--fmx-purple);
    font-size: 22px;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.finantres-mx-related-box:hover .finantres-mx-related-arrow {
    transform: translateX(3px);
    background: var(--fmx-purple);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .finantres-mx-related-box {
        min-height: 104px;
        border-radius: 12px;
    }

    .finantres-mx-related-img {
        flex-basis: 104px;
        width: 104px;
    }

    .finantres-mx-related-img img,
    .finantres-mx-related-img-tag {
        min-height: 104px;
    }

    .finantres-mx-related-copy {
        padding: 12px 13px;
    }

    .finantres-mx-related-label {
        margin-bottom: 4px;
        font-size: 10px;
        letter-spacing: .045em;
    }

    .finantres-mx-related-title {
        font-size: 14px;
        line-height: 1.35;
    }

    .finantres-mx-related-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .finantres-mx-related-box,
    .finantres-mx-related-arrow {
        transition: none;
    }

    .finantres-mx-related-box:hover,
    .finantres-mx-related-box:hover .finantres-mx-related-arrow {
        transform: none;
    }
}
