/* Related Case Studies */
.related-cs {
    box-sizing: border-box;
    width: 100%;
    max-width: 1330px;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 0px;
    background-color: #191716;
}

/* Full 1330px with no side padding when there's room; below that, 40px
   either side of the whole block (20px at 768px and below), matching the
   case study shortcodes. */
@media (max-width: 1329px) {
    .related-cs.uc-section {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.related-cs-heading {
    color: #fcfcfc !important;
    font-size: 2rem !important;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    margin: 0 0 42px;
}

.related-cs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.related-cs-card {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

/* Radius on the wrapper (clipped) and the img itself, both !important -
   Elementor's kit image styles otherwise reset it to square corners. */
.related-cs-image {
    overflow: hidden;
    aspect-ratio: 574 / 328;
    border-radius: 10px !important;
    background-color: #252321;
}

.related-cs-image img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    border-radius: 10px !important;
    transition: transform 0.6s ease;
}

.related-cs-card:hover .related-cs-image img,
.related-cs-card:focus-visible .related-cs-image img {
    transform: scale(1.03);
}

.related-cs-title {
    color: #fcfcfc !important;
    font-size: 1.5rem !important;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 29px 0 0;
}

.related-cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.related-cs-tags li {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border: 1px solid #fcfcfc;
    border-radius: 3px;
    color: #fcfcfc !important;
    font-size: 0.625rem !important;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .related-cs.uc-section {
        padding: 40px 20px;
    }
    .related-cs-heading {
        font-size: 1.5rem !important;
        margin-bottom: 24px;
    }
    .related-cs-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .related-cs-title {
        font-size: 1.25rem !important;
        margin-top: 16px;
    }
}
