/**
 * Rubbers.ir - Shared Entity Relations
 */

.rsk-rel-section{
    --rsk-rel-ink:#172229;
    --rsk-rel-muted:#66747c;
    --rsk-rel-border:#e2e7ea;
    --rsk-rel-soft:#f6f8f9;
    --rsk-rel-accent:#c8272f;
    --rsk-rel-accent-soft:#fff1f2;
    --rsk-rel-deep:#063f3d;
    padding:70px 0;
    border-bottom:1px solid var(--rsk-rel-border);
}

.rsk-rel-section *,
.rsk-rel-section *::before,
.rsk-rel-section *::after{
    box-sizing:border-box;
}

.rsk-rel-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
    margin-bottom:30px;
}

.rsk-rel-section-head > div:first-child{
    max-width:800px;
}

.rsk-rel-kicker{
    display:block;
    margin-bottom:8px;
    color:var(--rsk-rel-accent);
    font-size:12px;
    font-weight:900;
}

.rsk-rel-section-head h2{
    margin:0 !important;
    color:var(--rsk-rel-ink) !important;
    font-size:clamp(26px,3vw,36px) !important;
    line-height:1.35 !important;
    font-weight:900 !important;
}

.rsk-rel-section-head p{
    margin:11px 0 0;
    color:var(--rsk-rel-muted);
    line-height:1.9;
}

.rsk-rel-total{
    flex:0 0 auto;
    min-width:105px;
    padding:13px 16px;
    border:1px solid var(--rsk-rel-border);
    border-radius:15px;
    background:var(--rsk-rel-soft);
    text-align:center;
}

.rsk-rel-total strong{
    display:block;
    color:var(--rsk-rel-deep);
    font-size:22px;
    line-height:1.2;
    font-weight:900;
}

.rsk-rel-total span{
    display:block;
    margin-top:4px;
    color:var(--rsk-rel-muted);
    font-size:11px;
    font-weight:800;
}

.rsk-rel-groups{
    display:grid;
    gap:40px;
}

.rsk-rel-group-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:15px;
}

.rsk-rel-group-head h3{
    margin:0 !important;
    color:var(--rsk-rel-ink) !important;
    font-size:20px !important;
    line-height:1.5 !important;
    font-weight:900 !important;
}

.rsk-rel-group-head > span{
    color:#7b878e;
    font-size:12px;
    font-weight:800;
}

.rsk-rel-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.rsk-rel-card{
    min-width:0;
    overflow:hidden;
    border:1px solid var(--rsk-rel-border);
    border-radius:19px;
    background:#fff;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.rsk-rel-card:hover{
    transform:translateY(-3px);
    border-color:#d2d9dd;
    box-shadow:0 16px 36px rgba(23,34,41,.08);
}

.rsk-rel-card-link{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    min-height:100%;
    color:inherit;
    text-decoration:none !important;
}

.rsk-rel-media{
    min-height:156px;
    overflow:hidden;
    background:#edf1f2;
}

.rsk-rel-image{
    display:block;
    width:100%;
    height:100%;
    min-height:156px;
    object-fit:cover;
}

.rsk-rel-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    min-height:156px;
    padding:10px;
    background:linear-gradient(145deg,#0a5652,#073d3b);
    color:#fff;
    font-size:18px;
    line-height:1.4;
    font-weight:900;
    text-align:center;
}

.rsk-rel-card-body{
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:17px;
}

.rsk-rel-type{
    align-self:flex-start;
    margin-bottom:8px;
    padding:4px 7px;
    border:1px solid #f0cacc;
    border-radius:999px;
    background:var(--rsk-rel-accent-soft);
    color:var(--rsk-rel-accent);
    font-size:9px;
    font-weight:900;
}

.rsk-rel-card h4{
    margin:0 !important;
    color:var(--rsk-rel-ink) !important;
    font-size:16px !important;
    line-height:1.55 !important;
    font-weight:900 !important;
}

.rsk-rel-english{
    display:block;
    margin-top:3px;
    color:#7c888f;
    font-size:11px;
    line-height:1.5;
}

.rsk-rel-card p{
    margin:11px 0 0;
    color:#647178;
    font-size:12px;
    line-height:1.8;
}

.rsk-rel-more{
    display:inline-block;
    margin-top:auto;
    padding-top:13px;
    color:var(--rsk-rel-accent);
    font-size:11px;
    font-weight:900;
}

@media(max-width:980px){
    .rsk-rel-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:640px){
    .rsk-rel-section{
        padding:48px 0;
    }

    .rsk-rel-section-head{
        align-items:flex-start;
    }

    .rsk-rel-total{
        min-width:82px;
        padding:10px;
    }

    .rsk-rel-grid{
        grid-template-columns:1fr;
    }

    .rsk-rel-card-link{
        grid-template-columns:84px minmax(0,1fr);
    }

    .rsk-rel-media,
    .rsk-rel-image,
    .rsk-rel-placeholder{
        min-height:145px;
    }
}
