.rcm-home-guides,
.rcm-home-guides * {
    box-sizing: border-box;
}

.rcm-home-guides {
    --rcm-home-guides-title: #183354;
    --rcm-home-guides-border: #dfdfdf;
    --rcm-home-guides-accent: #7153b0;
    --rcm-home-guides-white: #ffffff;
    width: min(1263px, calc(100% - 32px));
    margin: 0 auto;
    font-family: "Inter", sans-serif;
}

.rcm-home-guides__header {
    margin-bottom: var(--rcm-home-rail-gap-rule-content, 34px);
}

.rcm-home-guides__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: var(--rcm-home-rail-gap-title-rule, 15px);
}

.rcm-home-guides__title {
    margin: 0;
    color: var(--rcm-home-guides-title);
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: calc(32.582 / 25);
}

.rcm-home-guides__view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 117px;
    height: 35px;
    padding: 0 16px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    color: var(--rcm-home-guides-title);
    font-family: "Inter", sans-serif;
    font-size: 13.6px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.rcm-home-guides__view-all svg {
    width: 10px;
    height: 10px;
    display: block;
}

.rcm-home-guides__view-all:hover,
.rcm-home-guides__view-all:focus-visible {
    border-color: var(--rcm-topic-color, #7153b0);
    color: var(--rcm-topic-color, #7153b0);
    background: color-mix(in srgb, var(--rcm-topic-color, #7153b0) 4%, transparent);
}

.rcm-home-guides__rule {
    position: relative;
    height: 5px;
    border-top: 1px solid var(--rcm-home-guides-border);
    border-bottom: 1px solid var(--rcm-home-guides-border);
}

.rcm-home-guides__rule-accent {
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 5px;
    background: var(--rcm-home-guides-accent);
}

.rcm-home-guides__rule-notch {
    position: absolute;
    top: -1.5px;
    left: 36px;
    width: 10px;
    height: 6px;
    background: var(--rcm-home-guides-white);
    -webkit-mask-image: url('../../assets/images/notch-mask.svg');
    mask-image: url('../../assets/images/notch-mask.svg');
    -webkit-mask-size: 10px 6px;
    mask-size: 10px 6px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
}

.rcm-home-guides__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rcm-home-guides__card {
    min-width: 0;
}

.rcm-home-guides__card-link {
    display: block;
    text-decoration: none;
}

.rcm-home-guides__image {
    position: relative;
    min-height: 407px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #ddd6f0;
    background-image: var(--rcm-home-guides-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.rcm-home-guides__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #3e286d 0%, transparent 74.67%);
    opacity: 0.96;
}

.rcm-home-guides__content {
    position: absolute;
    inset: auto 29px 26px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.rcm-home-guides__topic-wrap {
    display: inline-flex;
}

.rcm-home-guides__topic {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 3px;
    background: var(--rcm-home-guides-topic-color, #7153b0);
    color: var(--rcm-home-guides-white);
    font-family: "Manrope", sans-serif;
    font-size: 12.6px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rcm-home-guides__card-title {
    margin: 0;
    max-width: 240px;
    color: var(--rcm-home-guides-white);
    font-family: "Manrope", sans-serif;
    font-size: 19.4px;
    font-weight: 700;
    line-height: calc(27.152 / 19.394);
    text-transform: capitalize;
}

.rcm-home-guides__empty {
    width: 100%;
    margin: 0;
}

@media (max-width: 1180px) {
    .rcm-home-guides__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(12px, 2.5vw, 20px);
    }

    .rcm-home-guides__image {
        min-height: min(360px, 52vw);
    }
}

@media (max-width: 767px) {
    .rcm-home-guides {
        width: min(100%, calc(100% - 20px));
    }

    .rcm-home-guides__header {
        margin-bottom: var(--rcm-home-rail-gap-rule-content, 24px);
    }

    .rcm-home-guides__header-top {
        align-items: flex-start;
        flex-direction: row;
        margin-bottom: var(--rcm-home-rail-gap-title-rule, 16px);
    }

    .rcm-home-guides__title {
        font-size: 22px;
    }

    .rcm-home-guides__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .rcm-home-guides__image {
        min-height: 360px;
    }

    .rcm-home-guides__content {
        inset: auto 20px 22px;
        gap: 20px;
    }

    .rcm-home-guides__card-title {
        max-width: none;
        font-size: 18px;
        line-height: 1.35;
    }
}