.bkbg-resource-links-wrap {
    box-sizing: border-box;
}

.bkbg-rl-inner {
    margin: 0 auto;
    width: 100%;
}

/* Header */
.bkbg-rl-heading {
    font-family: var(--bkrl-ht-font-family, inherit);
    font-size: var(--bkrl-ht-font-size-d, 32px);
    font-weight: var(--bkrl-ht-font-weight, 700);
    font-style: var(--bkrl-ht-font-style, normal);
    text-decoration: var(--bkrl-ht-text-decoration, none);
    text-transform: var(--bkrl-ht-text-transform, none);
    line-height: var(--bkrl-ht-line-height-d, 1.2);
    letter-spacing: var(--bkrl-ht-letter-spacing-d, normal);
    word-spacing: var(--bkrl-ht-word-spacing-d, normal);
    margin: 0 0 8px;
}

.bkbg-rl-inner h2.bkbg-rl-heading {
    font-family: var(--bkrl-ht-font-family, inherit);
    font-size: var(--bkrl-ht-font-size-d, 32px);
    font-weight: var(--bkrl-ht-font-weight, 700);
    font-style: var(--bkrl-ht-font-style, normal);
    text-decoration: var(--bkrl-ht-text-decoration, none);
    text-transform: var(--bkrl-ht-text-transform, none);
    line-height: var(--bkrl-ht-line-height-d, 1.2);
    letter-spacing: var(--bkrl-ht-letter-spacing-d, normal);
    word-spacing: var(--bkrl-ht-word-spacing-d, normal);
    margin: 0 0 8px;
}

.bkbg-rl-subtext {
    line-height: 1.6;
    margin: 0 0 32px;
}

/* Grid layout */
.bkbg-rl-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(var(--bkbg-rl-cols, 2), 1fr);
}

/* List layout */
.bkbg-rl-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card */
.bkbg-rl-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: inherit;
    border-radius: var(--bkbg-rl-radius, 10px);
    padding: 16px 20px;
    transition: background 0.2s ease, transform 0.15s ease;
    border: 1px solid transparent;
}

.bkbg-rl-card:hover {
    transform: translateY(-1px);
}

.bkbg-rl-icon {
    flex-shrink: 0;
    line-height: 1;
}
.bkbg-rl-icon svg { width: 1em; height: 1em; fill: currentColor; }
.bkbg-rl-icon .dashicons { font-size: inherit; width: 1em; height: 1em; line-height: 1; }
.bkbg-rl-icon .bkbg-icon-img { width: 1em; height: 1em; object-fit: contain; }

.bkbg-rl-body {
    flex: 1;
    min-width: 0;
}

.bkbg-rl-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.bkbg-rl-title {
    font-family: var(--bkrl-tt-font-family, inherit);
    font-size: var(--bkrl-tt-font-size-d, 17px);
    font-weight: var(--bkrl-tt-font-weight, 700);
    font-style: var(--bkrl-tt-font-style, normal);
    text-decoration: var(--bkrl-tt-text-decoration, none);
    text-transform: var(--bkrl-tt-text-transform, none);
    line-height: var(--bkrl-tt-line-height-d, 1.3);
    letter-spacing: var(--bkrl-tt-letter-spacing-d, normal);
    word-spacing: var(--bkrl-tt-word-spacing-d, normal);
}

.bkbg-rl-tag {
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    flex-shrink: 0;
}

.bkbg-rl-desc {
    font-family: var(--bkrl-bt-font-family, inherit);
    font-size: var(--bkrl-bt-font-size-d, 14px);
    font-weight: var(--bkrl-bt-font-weight, 400);
    font-style: var(--bkrl-bt-font-style, normal);
    text-decoration: var(--bkrl-bt-text-decoration, none);
    text-transform: var(--bkrl-bt-text-transform, none);
    line-height: var(--bkrl-bt-line-height-d, 1.5);
    letter-spacing: var(--bkrl-bt-letter-spacing-d, normal);
    word-spacing: var(--bkrl-bt-word-spacing-d, normal);
    margin: 0;
}

.bkbg-rl-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bkbg-rl-card:hover .bkbg-rl-arrow {
    transform: translateX(4px);
}

/* Responsive – Typography */
@media (max-width: 1024px) {
    .bkbg-rl-inner .bkbg-rl-heading {
        font-size: var(--bkrl-ht-font-size-t, var(--bkrl-ht-font-size-d, 32px));
        line-height: var(--bkrl-ht-line-height-t, var(--bkrl-ht-line-height-d, 1.2));
        letter-spacing: var(--bkrl-ht-letter-spacing-t, var(--bkrl-ht-letter-spacing-d, normal));
        word-spacing: var(--bkrl-ht-word-spacing-t, var(--bkrl-ht-word-spacing-d, normal));
    }
    .bkbg-rl-title {
        font-size: var(--bkrl-tt-font-size-t, var(--bkrl-tt-font-size-d, 17px));
        line-height: var(--bkrl-tt-line-height-t, var(--bkrl-tt-line-height-d, 1.3));
        letter-spacing: var(--bkrl-tt-letter-spacing-t, var(--bkrl-tt-letter-spacing-d, normal));
        word-spacing: var(--bkrl-tt-word-spacing-t, var(--bkrl-tt-word-spacing-d, normal));
    }
    .bkbg-rl-desc {
        font-size: var(--bkrl-bt-font-size-t, var(--bkrl-bt-font-size-d, 14px));
        line-height: var(--bkrl-bt-line-height-t, var(--bkrl-bt-line-height-d, 1.5));
        letter-spacing: var(--bkrl-bt-letter-spacing-t, var(--bkrl-bt-letter-spacing-d, normal));
        word-spacing: var(--bkrl-bt-word-spacing-t, var(--bkrl-bt-word-spacing-d, normal));
    }
}
@media (max-width: 767px) {
    .bkbg-rl-inner .bkbg-rl-heading {
        font-size: var(--bkrl-ht-font-size-m, var(--bkrl-ht-font-size-t, var(--bkrl-ht-font-size-d, 32px)));
        line-height: var(--bkrl-ht-line-height-m, var(--bkrl-ht-line-height-t, var(--bkrl-ht-line-height-d, 1.2)));
        letter-spacing: var(--bkrl-ht-letter-spacing-m, var(--bkrl-ht-letter-spacing-t, var(--bkrl-ht-letter-spacing-d, normal)));
        word-spacing: var(--bkrl-ht-word-spacing-m, var(--bkrl-ht-word-spacing-t, var(--bkrl-ht-word-spacing-d, normal)));
    }
    .bkbg-rl-title {
        font-size: var(--bkrl-tt-font-size-m, var(--bkrl-tt-font-size-t, var(--bkrl-tt-font-size-d, 17px)));
        line-height: var(--bkrl-tt-line-height-m, var(--bkrl-tt-line-height-t, var(--bkrl-tt-line-height-d, 1.3)));
        letter-spacing: var(--bkrl-tt-letter-spacing-m, var(--bkrl-tt-letter-spacing-t, var(--bkrl-tt-letter-spacing-d, normal)));
        word-spacing: var(--bkrl-tt-word-spacing-m, var(--bkrl-tt-word-spacing-t, var(--bkrl-tt-word-spacing-d, normal)));
    }
    .bkbg-rl-desc {
        font-size: var(--bkrl-bt-font-size-m, var(--bkrl-bt-font-size-t, var(--bkrl-bt-font-size-d, 14px)));
        line-height: var(--bkrl-bt-line-height-m, var(--bkrl-bt-line-height-t, var(--bkrl-bt-line-height-d, 1.5)));
        letter-spacing: var(--bkrl-bt-letter-spacing-m, var(--bkrl-bt-letter-spacing-t, var(--bkrl-bt-letter-spacing-d, normal)));
        word-spacing: var(--bkrl-bt-word-spacing-m, var(--bkrl-bt-word-spacing-t, var(--bkrl-bt-word-spacing-d, normal)));
    }
}

/* Responsive – Layout */
@media (max-width: 768px) {
    .bkbg-rl-grid {
        grid-template-columns: 1fr;
    }
}

/* Editor preview */
.bkbg-rl-editor {
    display: block;
}
