.tw-cr-related {
    padding: 80px 40px;
    background: #f5f5f5;
    color: #171717;
}

.tw-cr-related *,
.tw-cr-related *::before,
.tw-cr-related *::after {
    box-sizing: border-box;
}

.tw-cr-related__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */

.tw-cr-related__header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.tw-cr-related__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.5;
}

.tw-cr-related__title {
    margin: 0 0 16px;
    color: #171717;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.tw-cr-related__description {
    max-width: 680px;
    margin: 0 auto;
    color: #626262;
    font-size: 16px;
    line-height: 1.8;
}

/* Cards Grid */

.tw-cr-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Individual Card */

.tw-cr-related__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tw-cr-related__card:hover {
    border-color: #c8c8c8;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.05);
}

/* Icon */

.tw-cr-related__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #f1f1f1;
    color: #171717;
}

.tw-cr-related__icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

/* Card Content */

.tw-cr-related__card-title {
    margin: 0 0 13px;
    color: #171717;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.35px;
}

.tw-cr-related__card-description {
    margin: 0 0 25px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

/* Card Link */

.tw-cr-related__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: #171717;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tw-cr-related__link span {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.tw-cr-related__link:hover {
    color: #555;
}

.tw-cr-related__link:hover span {
    transform: translateX(4px);
}

.tw-cr-related__link:focus-visible,
.tw-cr-related__all-tools:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 5px;
}

/* Footer CTA */

.tw-cr-related__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid #dedede;
    text-align: center;
}

.tw-cr-related__footer p {
    margin: 0;
    color: #626262;
    font-size: 15px;
    line-height: 1.7;
}

.tw-cr-related__all-tools {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #171717;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tw-cr-related__all-tools span {
    font-size: 19px;
    transition: transform 0.2s ease;
}

.tw-cr-related__all-tools:hover {
    color: #555;
}

.tw-cr-related__all-tools:hover span {
    transform: translateX(4px);
}

/* Tablet */

@media (max-width: 900px) {
    .tw-cr-related {
        padding: 65px 30px;
    }

    .tw-cr-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .tw-cr-related__card {
        padding: 26px;
    }

    .tw-cr-related__card:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .tw-cr-related {
        padding: 50px 20px;
    }

    .tw-cr-related__header {
        margin-bottom: 30px;
        text-align: left;
    }

    .tw-cr-related__eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .tw-cr-related__title {
        margin-bottom: 13px;
        font-size: 30px;
        line-height: 1.25;
        letter-spacing: -0.7px;
    }

    .tw-cr-related__description {
        margin: 0;
        font-size: 15px;
        line-height: 1.75;
    }

    .tw-cr-related__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .tw-cr-related__card,
    .tw-cr-related__card:last-child {
        grid-column: auto;
        padding: 24px;
        border-radius: 10px;
    }

    .tw-cr-related__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 20px;
    }

    .tw-cr-related__icon svg {
        width: 23px;
        height: 23px;
    }

    .tw-cr-related__card-title {
        margin-bottom: 10px;
        font-size: 19px;
    }

    .tw-cr-related__card-description {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.75;
    }

    .tw-cr-related__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 28px;
        padding-top: 24px;
        text-align: left;
    }

    .tw-cr-related__footer p {
        font-size: 14px;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .tw-cr-related__card,
    .tw-cr-related__link,
    .tw-cr-related__link span,
    .tw-cr-related__all-tools,
    .tw-cr-related__all-tools span {
        transition: none;
    }

    .tw-cr-related__card:hover {
        transform: none;
    }
}