/* ===================================================================
   RELATED SERVICES + RELATED PRODUCTS (SHARED)
   =================================================================== */
.rs-section {
    background: #f3f5f8;
    padding: 2rem 0;
    border-top: 1px solid rgba(26, 26, 46, 0.07);
}

.rs-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.rs-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.rs-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--peb2-primary, #1a1a2e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
    position: relative;
    display: inline-block;
}

.rs-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--peb2-amber, #f59e0b), var(--peb2-amber-dark, #d97706));
    border-radius: 2px;
    margin: 12px auto 0;
}

.rs-subtitle {
    font-size: 1rem;
    color: #5f6b7a;
    margin: 0;
    line-height: 1.6;
}

.rs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.rs-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    color: inherit;
    outline-offset: 3px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rs-card-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1e293b;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.rs-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.32s ease;
}

.rs-card-body {
    /* display: flex; */
    /* flex-direction: column; */
    padding:0.5rem 0;
    flex: 1;
    /* min-height: 72px; */
    /* justify-content: center; */
    background: linear-gradient(180deg, #162235 0%, #111b2e 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.rs-card:hover,
.rs-card:focus-visible {
    color: inherit;
    text-decoration: none;
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transform: translateY(-3px);
}

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

.rs-card:hover .rs-card-body,
.rs-card:focus-visible .rs-card-body {
    background: linear-gradient(180deg, #1a2940 0%, #132238 100%);
    border-top-color: rgba(148, 163, 184, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.rs-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1.35;
    text-align: center;
}

.rs-card-name a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.rs-card-name a:hover,
.rs-card-name a:focus-visible {
    color: #f7cc6f;
    text-shadow: 0 1px 8px rgba(247, 204, 111, 0.24);
}

.rs-card-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #c4cfdd;
    margin: 0.55rem 0 1rem;
    flex: 1;
    text-align: left;
}

.rs-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f7cc6f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .rs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rs-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .rs-section {
        padding: 1.25rem 0;
    }

    .rs-grid {
        grid-template-columns: 1fr;
    }

    .rs-card-img-wrap {
        height: 200px;
    }

    .rs-title {
        font-size: 1.5rem;
    }
}
