.srj-ar-block,
.srj-ar-block * {
    box-sizing: border-box;
}

.srj-ar-block {
    margin: 34px 0;
    padding: 22px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 119, 0, .16), transparent 34%),
        linear-gradient(135deg, #101014 0%, #191926 52%, #101014 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    isolation: isolate;
}

.srj-ar-block::before {
    content: "";
    position: absolute;
    inset: 1px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 23px;
    pointer-events: none;
    z-index: -1;
}

.srj-ar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.srj-ar-eyebrow {
    margin: 0 0 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.68);
    font-weight: 800;
}

.srj-ar-header h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(22px, 2.4vw, 31px) !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: -.03em;
}

.srj-ar-subtitle {
    margin: 8px 0 0 !important;
    color: rgba(255,255,255,.74) !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.srj-ar-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    max-width: 260px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.13);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.srj-ar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.srj-ar-card {
    margin: 0 !important;
    min-width: 0;
}

.srj-ar-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.srj-ar-link:hover,
.srj-ar-link:focus-visible {
    transform: translateY(-4px);
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.24);
    box-shadow: 0 16px 28px rgba(0,0,0,.24);
    outline: none;
}

.srj-ar-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.srj-ar-thumb {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.srj-ar-link:hover .srj-ar-thumb,
.srj-ar-link:focus-visible .srj-ar-thumb {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.05);
}

.srj-ar-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.05));
}

.srj-ar-thumb-placeholder span {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.srj-ar-cat {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 7px 9px;
    border-radius: 999px;
    color: #161616;
    background: rgba(255,255,255,.92);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srj-ar-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.srj-ar-card-body h3 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    letter-spacing: -.02em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srj-ar-card-body p {
    margin: 8px 0 0 !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srj-ar-cta {
    margin-top: auto;
    padding-top: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.srj-ar-layout-compact .srj-ar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.srj-ar-layout-compact .srj-ar-link {
    flex-direction: row;
}

.srj-ar-layout-compact .srj-ar-thumb-wrap {
    width: 42%;
    min-width: 150px;
    aspect-ratio: auto;
}

@media (max-width: 1024px) {
    .srj-ar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .srj-ar-block {
        margin: 26px -2px;
        padding: 16px;
        border-radius: 20px;
    }

    .srj-ar-header {
        display: block;
        margin-bottom: 14px;
    }

    .srj-ar-header h2 {
        font-size: 23px !important;
    }

    .srj-ar-subtitle {
        font-size: 14px !important;
    }

    .srj-ar-pill {
        margin-top: 12px;
        max-width: 100%;
    }

    .srj-ar-grid,
    .srj-ar-layout-compact .srj-ar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .srj-ar-link,
    .srj-ar-layout-compact .srj-ar-link {
        flex-direction: row;
        min-height: 132px;
    }

    .srj-ar-thumb-wrap,
    .srj-ar-layout-compact .srj-ar-thumb-wrap {
        width: 38%;
        min-width: 118px;
        aspect-ratio: auto;
    }

    .srj-ar-card-body {
        padding: 12px;
    }

    .srj-ar-card-body h3 {
        font-size: 15px !important;
        -webkit-line-clamp: 3;
    }

    .srj-ar-card-body p {
        display: none !important;
    }

    .srj-ar-cat {
        left: 8px;
        bottom: 8px;
        padding: 6px 8px;
        font-size: 10px;
    }
}

@media (max-width: 390px) {
    .srj-ar-thumb-wrap,
    .srj-ar-layout-compact .srj-ar-thumb-wrap {
        width: 34%;
        min-width: 102px;
    }

    .srj-ar-card-body h3 {
        font-size: 14px !important;
    }
}
