/*
 * Bazarban Blog UI - light resource-center style
 * Keeps the existing weblog data/behaviour and only changes presentation.
 */
.bb-blog-page {
    --bb-blog-bg: #ffffff;
    --bb-blog-soft-bg: #f6f9f9;
    --bb-blog-soft-bg-2: #eef5f4;
    --bb-blog-surface: #ffffff;
    --bb-blog-ink: #182727;
    --bb-blog-muted: #758282;
    --bb-blog-line: #e1e9e8;
    --bb-blog-line-strong: #d3dfde;
    --bb-blog-accent: #0b8f89;
    --bb-blog-accent-dark: #08736e;
    --bb-blog-accent-soft: #e5f3f2;
    --bb-blog-shadow: 0 14px 36px rgba(23, 55, 53, .07);
    background: var(--bb-blog-bg);
    color: var(--bb-blog-ink);
    direction: rtl;
    padding: 0 0 64px;
    overflow-x: hidden;
}

.bb-blog-page *,
.bb-blog-page *::before,
.bb-blog-page *::after {
    box-sizing: border-box;
}

.bb-blog-page a,
.bb-blog-page a:hover,
.bb-blog-page a:focus {
    color: inherit;
    text-decoration: none;
}

.bb-blog-shell {
    max-width: 1320px;
    padding-left: 24px;
    padding-right: 24px;
}

.bb-blog-ad {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bb-blog-line);
    border-radius: 18px;
    background: var(--bb-blog-soft-bg);
}

.bb-blog-ad img {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
}

.bb-blog-ad--top {
    margin-bottom: 24px;
}

.bb-blog-ad--inline {
    margin-top: 30px;
}

/* Full-bleed resource-center hero */
.bb-blog-resource-head {
    position: relative;
    isolation: isolate;
    /* Keep the hero itself visible so the fade can continue past its bottom edge.
       The artwork is still clipped by __media. */
    overflow: visible;
    --bb-blog-hero-fade-tail: 58px;
    width: 100vw;
    min-height: 560px;
    height: clamp(560px, 70vh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    margin-bottom: 58px;
    padding: 72px max(24px, calc((100vw - 1320px) / 2)) 46px;
    border: 0;
    border-radius: 0;
    background-color: #fff;
    text-align: center;
}

/* Responsive hero artwork: real <picture> sources are used so each viewport
   gets a suitable crop instead of stretching one desktop background. */
.bb-blog-resource-head__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bb-blog-resource-head__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Strong CSS fallback. The PNG files also contain a baked alpha fade,
       so the bottom of the actual artwork always dissolves into white. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.96) 64%, rgba(0,0,0,.72) 74%, rgba(0,0,0,.34) 86%, transparent 96%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.96) 64%, rgba(0,0,0,.72) 74%, rgba(0,0,0,.34) 86%, transparent 96%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}


/* The approved artwork contains a static center sample. This soft white veil
   keeps the artwork itself while the real, backend-driven title/categories
   remain live HTML and fully interactive on top of it. */
.bb-blog-resource-head::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: clamp(620px, 50vw, 940px);
    height: clamp(360px, 46vh, 540px);
    border-radius: 50%;
    background: rgba(255, 255, 255, .985);
    filter: blur(44px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.bb-blog-resource-head::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: calc(var(--bb-blog-hero-fade-tail) * -1);
    left: 0;
    /* The veil crosses the actual edge of the hero. This is intentional:
       it removes the hard horizontal strip even when the section below
       has a slightly gray background. */
    height: calc(220px + var(--bb-blog-hero-fade-tail));
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.12) 18%,
        rgba(255,255,255,.48) 42%,
        rgba(255,255,255,.86) 64%,
        #ffffff 76%,
        rgba(255,255,255,.96) 82%,
        rgba(255,255,255,.72) 90%,
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
}


.bb-blog-resource-head__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 18px 46px;
    direction: rtl;
    text-align: center;
}

.bb-blog-resource-head__inner > * {
    max-width: 100%;
}


.bb-blog-resource-head__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--bb-blog-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.bb-blog-resource-head__title {
    margin: 0;
    color: var(--bb-blog-ink);
    font-size: clamp(48px, 5.2vw, 78px);
    line-height: 1.2;
    font-weight: 700;
}

.bb-blog-categories {
    position: relative;
    z-index: 4;
    width: min(100%, 960px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(26px, 4vw, 58px);
    overflow-x: auto;
    padding: 0 12px;
    list-style: none;
    scrollbar-width: none;
}

.bb-blog-categories::-webkit-scrollbar {
    display: none;
}

.bb-blog-category-item {
    position: relative;
    flex: 0 0 auto;
    list-style: none;
    padding: 14px 2px 18px;
    border: 0;
    background: transparent;
    color: var(--bb-blog-muted);
    cursor: pointer;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

.bb-blog-category-item::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--bb-blog-accent);
    transform: translateX(50%);
    transition: width .2s ease;
}

.bb-blog-category-item:hover,
.bb-blog-category-item.active {
    color: var(--bb-blog-accent-dark);
}

.bb-blog-category-item.active::after,
.bb-blog-category-item:hover::after {
    width: 100%;
}

/* Main list page */
.bb-blog-resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 48px;
    align-items: start;
    direction: ltr;
}

.bb-blog-resource-main,
.bb-blog-sidebar {
    min-width: 0;
    direction: rtl;
}

.bb-blog-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.bb-blog-resource-card {
    position: relative;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bb-blog-line);
    border-radius: 18px;
    background: var(--bb-blog-surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bb-blog-resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--bb-blog-line-strong);
    box-shadow: var(--bb-blog-shadow);
}

.bb-blog-resource-card--featured {
    grid-column: span 2;
    min-height: 380px;
}

.bb-blog-resource-card__media {
    position: relative;
    height: 145px;
    overflow: hidden;
    background: var(--bb-blog-soft-bg-2);
}

.bb-blog-resource-card--featured .bb-blog-resource-card__media {
    height: 195px;
}

.bb-blog-resource-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.bb-blog-resource-card:hover .bb-blog-resource-card__media img {
    transform: scale(1.025);
}

.bb-blog-resource-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 25px 22px;
}

.bb-blog-resource-card__category {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 12px;
    color: var(--bb-blog-accent);
    font-size: 11px;
    font-weight: 600;
}

.bb-blog-resource-card__title {
    margin: 0;
    color: var(--bb-blog-ink);
    font-size: 18px;
    line-height: 1.8;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-blog-resource-card--featured .bb-blog-resource-card__title {
    max-width: 780px;
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.65;
    -webkit-line-clamp: 2;
}

.bb-blog-text-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.bb-blog-text-card {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 20px;
    border: 1px solid var(--bb-blog-line);
    border-radius: 16px;
    background: var(--bb-blog-soft-bg);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.bb-blog-text-card:hover {
    transform: translateY(-2px);
    border-color: var(--bb-blog-line-strong);
    background: var(--bb-blog-surface);
}

.bb-blog-text-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--bb-blog-muted);
    font-size: 10px;
}

.bb-blog-text-card__category {
    color: var(--bb-blog-accent);
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bb-blog-text-card__title {
    margin: 0 0 9px;
    color: var(--bb-blog-ink);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-blog-text-card__excerpt {
    margin: 0;
    color: var(--bb-blog-muted);
    font-size: 11px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-blog-text-card__arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-right: auto;
    border: 1px solid var(--bb-blog-line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--bb-blog-accent-dark);
    font-size: 16px;
}

.bb-blog-section {
    margin-top: 42px;
}

.bb-blog-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bb-blog-section-title,
.bb-blog-side-title,
.bb-single-side-title {
    position: relative;
    margin: 0;
    padding-right: 13px;
    color: var(--bb-blog-ink);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 600;
}

.bb-blog-section-title::before,
.bb-blog-side-title::before,
.bb-single-side-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: .35em;
    width: 3px;
    height: 1.25em;
    border-radius: 8px;
    background: var(--bb-blog-accent);
}

.bb-blog-latest-grid,
.bb-blog-category-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.bb-blog-card {
    min-height: 335px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bb-blog-line);
    border-radius: 17px;
    background: var(--bb-blog-surface);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bb-blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--bb-blog-line-strong);
    box-shadow: var(--bb-blog-shadow);
}

.bb-blog-card__media {
    position: relative;
    height: 155px;
    overflow: hidden;
    background: var(--bb-blog-soft-bg-2);
}

.bb-blog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.bb-blog-card:hover .bb-blog-card__media img {
    transform: scale(1.025);
}

.bb-blog-card__label {
    position: absolute;
    z-index: 2;
    right: 13px;
    bottom: 12px;
    max-width: calc(100% - 26px);
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    color: var(--bb-blog-accent-dark);
    font-size: 10px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bb-blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 21px 21px 17px;
}

.bb-blog-card__title {
    margin: 0 0 18px;
    color: var(--bb-blog-ink);
    font-size: 15px;
    line-height: 1.85;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    color: var(--bb-blog-muted);
    font-size: 10px;
}

.bb-blog-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.bb-blog-card__actions span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bb-blog-card__actions img {
    width: 13px;
    height: 13px;
    opacity: .55;
}

/* List sidebar */
.bb-blog-sidebar {
    position: sticky;
    top: 24px;
}

.bb-blog-side-panel,
.bb-blog-newsletter {
    padding: 0 0 22px;
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-blog-newsletter {
    margin-top: 28px;
}

.bb-blog-popular-list {
    margin-top: 15px;
}

.bb-blog-popular-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-blog-popular-item:last-child {
    border-bottom: 0;
}

.bb-blog-popular-thumb {
    width: 78px;
    height: 58px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bb-blog-soft-bg-2);
}

.bb-blog-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.bb-blog-popular-item:hover .bb-blog-popular-thumb img {
    transform: scale(1.04);
}

.bb-blog-popular-content {
    min-width: 0;
}

.bb-blog-popular-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--bb-blog-muted);
    font-size: 9px;
}

.bb-blog-popular-category {
    max-width: 60%;
    color: var(--bb-blog-accent);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bb-blog-popular-title {
    margin: 0;
    color: var(--bb-blog-ink);
    font-size: 11px;
    line-height: 1.75;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-blog-newsletter-text {
    margin: 15px 0;
    color: var(--bb-blog-muted);
    font-size: 11px;
    line-height: 1.9;
}

.bb-blog-newsletter-form {
    display: flex;
    gap: 7px;
}

.bb-blog-newsletter-input {
    min-width: 0;
    flex: 1;
    height: 42px;
    border: 1px solid var(--bb-blog-line-strong);
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
    outline: 0;
    color: var(--bb-blog-ink);
    font-size: 11px;
}

.bb-blog-newsletter-input:focus {
    border-color: var(--bb-blog-accent);
    box-shadow: 0 0 0 3px rgba(11, 143, 137, .08);
}

.bb-blog-newsletter-button {
    flex: 0 0 auto;
    height: 42px;
    border: 1px solid var(--bb-blog-accent);
    border-radius: 8px;
    background: var(--bb-blog-accent);
    color: #fff;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.bb-blog-newsletter-button:hover {
    background: var(--bb-blog-accent-dark);
    border-color: var(--bb-blog-accent-dark);
}

.bb-blog-slider-wrap {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid var(--bb-blog-line);
}

.bb-blog-slider-wrap #sliderMoreComment .bb-blog-card {
    margin: 0 8px;
}

.bb-blog-empty {
    width: 100%;
    padding: 46px 20px;
    border: 1px dashed var(--bb-blog-line-strong);
    border-radius: 16px;
    background: var(--bb-blog-soft-bg);
    text-align: center;
    color: var(--bb-blog-muted);
}

/* AJAX category view */
.bb-blog-category-view {
    margin-top: 4px;
}

.bb-blog-category-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    direction: ltr;
}

.bb-blog-category-tree,
.bb-blog-category-results {
    direction: rtl;
}

.bb-blog-category-tree {
    position: sticky;
    top: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--bb-blog-line);
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-blog-category-tree__title {
    margin-bottom: 13px;
    color: var(--bb-blog-ink);
    font-size: 15px;
    font-weight: 600;
}

.bb-blog-category-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-blog-category-tree ul ul {
    margin-top: 4px;
    padding-right: 12px;
}

.bb-blog-category-tree li + li {
    margin-top: 2px;
}

.bb-blog-category-link {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--bb-blog-muted);
    font-size: 11px;
    transition: color .2s ease, background-color .2s ease;
}

.bb-blog-category-link:hover,
.bb-blog-category-link--parent {
    background: var(--bb-blog-soft-bg);
    color: var(--bb-blog-accent-dark);
}

.bb-blog-category-link--back {
    color: var(--bb-blog-accent);
}

.bb-blog-pagination,
.bb-comment-pagination {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

/* =========================
   Single blog
   ========================= */
.bb-blog-single-page {
    padding-top: 18px;
}

.bb-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    margin-bottom: 28px;
    color: var(--bb-blog-muted);
    font-size: 10px;
    white-space: nowrap;
}

.bb-single-breadcrumb__item {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-single-breadcrumb__item:hover {
    color: var(--bb-blog-accent-dark);
}

.bb-single-breadcrumb__sep {
    color: #bcc6c5;
}

.bb-single-breadcrumb__item--current {
    color: var(--bb-blog-ink);
}

.bb-single-header {
    position: relative;
    max-width: 900px;
    margin: 0 auto 34px;
    padding: 18px 0 4px;
    text-align: center;
}

.bb-single-header__eyebrow {
    margin-bottom: 11px;
    color: var(--bb-blog-accent);
    font-size: 11px;
    font-weight: 600;
}

.bb-single-title {
    margin: 0 auto;
    color: var(--bb-blog-ink);
    font-size: clamp(29px, 3.5vw, 44px);
    line-height: 1.55;
    font-weight: 650;
}

.bb-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 17px;
    color: var(--bb-blog-muted);
    font-size: 11px;
}

.bb-single-meta__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #bdc8c7;
}

.bb-single-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bb-single-view i {
    font-size: 14px;
}

.bb-single-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.bb-single-share__btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bb-blog-line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--bb-blog-ink);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.bb-single-share__btn:hover {
    transform: translateY(-2px);
    border-color: var(--bb-blog-accent);
    background: var(--bb-blog-accent-soft);
}

.bb-single-share__btn i {
    font-size: 16px !important;
    color: var(--bb-blog-accent) !important;
}

.bb-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
    direction: ltr;
}

.bb-single-article,
.bb-single-sidebar {
    min-width: 0;
    direction: rtl;
}

.bb-single-cover {
    width: 100%;
    margin: 0 0 34px;
    overflow: hidden;
    border: 1px solid var(--bb-blog-line);
    border-radius: 20px;
    background: var(--bb-blog-soft-bg);
}

.bb-single-cover__img {
    display: block;
    width: 100%;
    max-height: 620px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.bb-single-content {
    max-width: 870px;
    color: #334140;
    font-size: 14px;
    line-height: 2.15;
}

.bb-single-content > :first-child {
    margin-top: 0;
}

.bb-single-content h1,
.bb-single-content h2,
.bb-single-content h3,
.bb-single-content h4,
.bb-single-content h5,
.bb-single-content h6 {
    margin: 34px 0 14px;
    color: var(--bb-blog-ink);
    line-height: 1.75;
    font-weight: 650;
}

.bb-single-content h2 {
    font-size: 23px;
}

.bb-single-content h3 {
    font-size: 19px;
}

.bb-single-content p {
    margin: 0 0 18px;
}

.bb-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 13px;
}

.bb-single-content ul,
.bb-single-content ol {
    padding-right: 22px;
    margin: 14px 0 20px;
}

.bb-single-content blockquote {
    margin: 26px 0;
    padding: 18px 20px;
    border-right: 3px solid var(--bb-blog-accent);
    background: var(--bb-blog-soft-bg);
    color: #4d5b5a;
}

.bb-single-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    overflow: hidden;
}

.bb-single-content th,
.bb-single-content td {
    border: 1px solid var(--bb-blog-line);
    padding: 10px 12px;
}

.bb-single-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 38px;
    padding: 20px 0;
    border-top: 1px solid var(--bb-blog-line);
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-single-tags {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.bb-single-tags__icon {
    flex: 0 0 auto;
    margin-top: 7px;
    font-size: 17px;
}

.bb-single-tags__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-single-tag {
    padding: 6px 10px;
    border: 1px solid var(--bb-blog-line);
    border-radius: 999px;
    background: var(--bb-blog-soft-bg);
    color: var(--bb-blog-muted);
    font-size: 10px;
}

.bb-single-reactions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.bb-single-reaction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bb-blog-muted);
    font-size: 11px;
}

.bb-single-reaction i {
    font-size: 18px;
}

.bb-single-reaction .likepostIcon {
    cursor: pointer;
}

.bb-single-sidebar {
    position: sticky;
    top: 24px;
}

.bb-single-side-panel {
    padding: 0 0 24px;
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-single-side-panel + .bb-single-side-panel {
    margin-top: 28px;
}

.bb-single-moment-slider {
    margin-top: 16px;
}

.bb-single-moment-card {
    display: block;
}

.bb-single-moment-card__media {
    height: 180px;
    overflow: hidden;
    border-radius: 11px;
    background: var(--bb-blog-soft-bg-2);
}

.bb-single-moment-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-single-moment-card__title {
    margin: 11px 0 0;
    color: var(--bb-blog-ink);
    font-size: 12px;
    line-height: 1.8;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-single-moment-slider .owl-nav {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
}

.bb-single-moment-slider .owl-nav button.owl-prev,
.bb-single-moment-slider .owl-nav button.owl-next {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bb-blog-line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--bb-blog-ink) !important;
}

.bb-single-moment-slider .owl-dots {
    display: none;
}

.bb-single-related-list {
    margin-top: 14px;
}

.bb-single-related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-single-related-item:last-child {
    border-bottom: 0;
}

.bb-single-related-item__thumb {
    width: 72px;
    height: 56px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bb-blog-soft-bg-2);
}

.bb-single-related-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-single-related-item__content {
    min-width: 0;
}

.bb-single-related-item__title {
    color: var(--bb-blog-ink);
    font-size: 11px;
    line-height: 1.75;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-single-related-item__date {
    display: block;
    margin-top: 3px;
    color: var(--bb-blog-muted);
    font-size: 9px;
}

/* Comments */
.bb-single-comments {
    margin-top: 42px;
}

.bb-comment-add-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 14px 16px;
    border: 1px solid var(--bb-blog-line);
    border-radius: 12px;
    background: var(--bb-blog-soft-bg);
    color: var(--bb-blog-ink);
    cursor: pointer;
    font-size: 12px;
}

.bb-comment-add-trigger__icon {
    font-size: 28px !important;
}

.bb-comment-form.add_comment {
    display: none;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--bb-blog-line);
    border-radius: 13px;
    background: #fff;
}

.bb-comment-form__title {
    margin: 0 0 18px;
    color: var(--bb-blog-ink);
    font-size: 16px;
    font-weight: 600;
}

.bb-comment-input,
.bb-comment-textarea {
    width: 100%;
    border: 1px solid var(--bb-blog-line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--bb-blog-ink);
    outline: 0;
    font-size: 12px;
}

.bb-comment-input {
    height: 44px;
    padding: 0 12px;
}

.bb-comment-textarea {
    min-height: 120px;
    padding: 11px 12px;
    resize: vertical;
}

.bb-comment-input:focus,
.bb-comment-textarea:focus {
    border-color: var(--bb-blog-accent);
    box-shadow: 0 0 0 3px rgba(11, 143, 137, .08);
}

.bb-comment-captcha {
    margin-top: 16px;
}

.bb-comment-submit {
    min-width: 110px;
    height: 42px;
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    background: var(--bb-blog-accent);
    color: #fff;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.bb-comment-submit:hover {
    background: var(--bb-blog-accent-dark);
}

.bb-comment-captcha-result {
    display: inline-block;
    margin-right: 10px;
    color: var(--bb-blog-accent-dark) !important;
}

.bb-comment-list-wrap {
    margin-top: 34px;
}

.bb-comment-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-comment-list-head h3 {
    margin: 0;
    color: var(--bb-blog-ink);
    font-size: 16px;
    font-weight: 600;
}

.bb-comment-count {
    color: var(--bb-blog-muted);
    font-size: 11px;
}

.bb-blog-single-page .item_comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--bb-blog-line);
}

.bb-blog-single-page .item_comment.replay_comment {
    margin-right: 44px;
    padding-right: 16px;
    border-right: 2px solid var(--bb-blog-accent-soft);
}

.bb-blog-single-page .summery_comment {
    margin-bottom: 10px;
}

.bb-blog-single-page .avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    margin-left: 10px;
    border-radius: 50%;
    background: var(--bb-blog-soft-bg);
    color: var(--bb-blog-accent);
}

.bb-blog-single-page .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-blog-single-page .about_user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bb-blog-single-page .name_userComment {
    color: var(--bb-blog-ink);
    font-size: 12px;
    font-weight: 600;
}

.bb-blog-single-page .time_addComment {
    color: var(--bb-blog-muted);
    font-size: 9px;
}

.bb-blog-single-page .text_commentUser {
    color: #4a5857;
    font-size: 12px;
    line-height: 1.95;
}

.bb-blog-single-page .pagination {
    justify-content: center;
}

.bb-blog-single-page .page-link,
.bb-blog-category-view .page-link {
    color: var(--bb-blog-ink);
    border-color: var(--bb-blog-line);
}

.bb-blog-single-page .page-item.active .page-link,
.bb-blog-category-view .page-item.active .page-link {
    border-color: var(--bb-blog-accent);
    background: var(--bb-blog-accent);
    color: #fff;
}

/* Owl controls on list */
.bb-blog-slider-wrap .owl-nav {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 13px;
}

.bb-blog-slider-wrap .owl-nav button.owl-prev,
.bb-blog-slider-wrap .owl-nav button.owl-next {
    width: 32px;
    height: 32px;
    border: 1px solid var(--bb-blog-line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--bb-blog-ink) !important;
}

.bb-blog-slider-wrap .owl-dots {
    display: none;
}

@media (max-width: 1199.98px) {
    .bb-blog-resource-layout,
    .bb-single-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 34px;
    }

    .bb-blog-text-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-blog-text-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .bb-blog-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bb-blog-resource-head {
        min-height: 520px;
        height: clamp(520px, 64vh, 640px);
        --bb-blog-hero-fade-tail: 40px;
        margin-bottom: 40px;
        padding: 56px 24px 36px;
    }


    .bb-blog-resource-head__media img {
        object-position: center center;
    }

    .bb-blog-resource-head::before {
        width: min(92vw, 760px);
        height: 390px;
        filter: blur(38px);
    }

    .bb-blog-resource-layout,
    .bb-single-layout,
    .bb-blog-category-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .bb-blog-sidebar,
    .bb-single-sidebar,
    .bb-blog-category-tree {
        position: static;
    }

    .bb-blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .bb-blog-newsletter {
        margin-top: 0;
    }

    .bb-single-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding-top: 8px;
        border-top: 1px solid var(--bb-blog-line);
    }

    .bb-single-side-panel + .bb-single-side-panel {
        margin-top: 0;
    }

    .bb-single-side-panel {
        border-bottom: 0;
    }

    .bb-blog-category-tree {
        padding: 15px 0;
    }

    .bb-blog-category-tree > ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .bb-blog-category-tree > ul > li {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .bb-blog-page {
        padding-bottom: 44px;
    }

    .bb-blog-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .bb-blog-resource-head {
        min-height: 500px;
        height: 64svh;
        max-height: 590px;
        --bb-blog-hero-fade-tail: 32px;
        margin-bottom: 32px;
        padding: 46px 17px 30px;
    }


    .bb-blog-resource-head__media img {
        object-position: 50% 50%;
    }

    .bb-blog-resource-head::before {
        width: 122vw;
        height: 330px;
        filter: blur(34px);
    }

    .bb-blog-resource-head__inner {
        width: 100%;
        max-width: 100%;
        padding: 0 18px 24px;
        margin: 0 auto;
        text-align: center;
    }

    .bb-blog-resource-head__eyebrow {
        display: block;
        margin-right: auto;
        margin-left: auto;
        font-size: 13px;
        line-height: 1.7;
        white-space: normal;
    }

    .bb-blog-resource-head__title {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(40px, 12vw, 54px);
        line-height: 1.25;
        white-space: nowrap;
    }

    .bb-blog-category-item {
        padding: 10px 1px 12px;
        font-size: 13px;
    }

    .bb-blog-categories {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 20px;
        overflow: visible;
        padding: 0 12px;
        margin-right: auto !important;
        margin-left: auto !important;
        direction: rtl;
        text-align: center;
    }

    .bb-blog-category-item {
        padding-bottom: 14px;
    }

    .bb-blog-feature-grid,
    .bb-blog-latest-grid,
    .bb-blog-category-cards,
    .bb-blog-sidebar,
    .bb-single-sidebar {
        grid-template-columns: 1fr;
    }

    .bb-blog-resource-card--featured {
        grid-column: auto;
        min-height: 340px;
    }

    .bb-blog-resource-card--featured .bb-blog-resource-card__media {
        height: 160px;
    }

    .bb-blog-text-grid {
        grid-template-columns: 1fr;
    }

    .bb-blog-text-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .bb-blog-sidebar {
        padding-top: 8px;
        border-top: 1px solid var(--bb-blog-line);
    }

    .bb-blog-newsletter {
        margin-top: 4px;
    }

    .bb-blog-card {
        min-height: 320px;
    }

    .bb-single-breadcrumb {
        margin-bottom: 18px;
    }

    .bb-single-header {
        margin-bottom: 24px;
        padding-top: 10px;
    }

    .bb-single-title {
        font-size: 28px;
    }

    .bb-single-cover {
        margin-bottom: 24px;
        border-radius: 14px;
    }

    .bb-single-content {
        font-size: 13px;
        line-height: 2.05;
    }

    .bb-single-footer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .bb-single-reactions {
        width: 100%;
        justify-content: flex-end;
    }

    .bb-comment-form.add_comment {
        padding: 17px;
    }

    .bb-blog-single-page .item_comment.replay_comment {
        margin-right: 18px;
    }
}

@media (max-width: 479.98px) {
    .bb-blog-resource-head {
        min-height: 455px;
        height: 62svh;
        max-height: 520px;
        padding-top: 38px;
        padding-bottom: 26px;
    }


    .bb-blog-resource-head__media img {
        object-position: 50% 50%;
    }

    .bb-blog-resource-head::before {
        width: 138vw;
        height: 300px;
    }

    .bb-blog-resource-head__inner {
        padding-right: 12px;
        padding-left: 12px;
        padding-bottom: 20px;
    }

    .bb-blog-resource-head__title {
        font-size: clamp(36px, 11vw, 42px);
    }

    .bb-blog-categories {
        gap: 6px 14px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .bb-blog-category-item {
        font-size: 12px;
    }

    .bb-blog-resource-card,
    .bb-blog-resource-card--featured {
        min-height: 310px;
    }

    .bb-blog-resource-card__content {
        padding: 20px 18px;
    }

    .bb-blog-resource-card__title,
    .bb-blog-resource-card--featured .bb-blog-resource-card__title {
        font-size: 16px;
    }

    .bb-blog-text-card {
        min-height: 190px;
    }

    .bb-blog-newsletter-form {
        flex-direction: column;
    }

    .bb-blog-newsletter-button {
        width: 100%;
    }

    .bb-single-title {
        font-size: 24px;
        line-height: 1.7;
    }

    .bb-single-meta {
        flex-wrap: wrap;
    }

    .bb-single-share__btn {
        width: 34px;
        height: 34px;
    }

    .bb-single-cover__img {
        aspect-ratio: 4 / 3;
    }

    .bb-single-content h2 {
        font-size: 19px;
    }

    .bb-single-content h3 {
        font-size: 17px;
    }
}

/* =========================================================
   Single article hero — same visual language as blog listing
   ========================================================= */
.bb-blog-single-page {
    padding-top: 0;
}

.bb-single-resource-head {
    height: auto;
    min-height: clamp(560px, 70vh, 760px);
    margin-bottom: 58px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.bb-single-resource-head__inner {
    max-width: 980px;
    padding: 0 24px;
}

.bb-single-resource-head__breadcrumb {
    width: 100%;
    justify-content: center;
    margin: 0 auto 24px;
    color: #81908f;
    font-size: 11px;
    direction: rtl;
}

.bb-single-resource-head__breadcrumb .bb-single-breadcrumb__item {
    max-width: 320px;
}

.bb-single-resource-head__breadcrumb .bb-single-breadcrumb__item--current {
    color: #5f6e6d;
}

.bb-single-resource-head__eyebrow {
    margin-bottom: 12px;
}

.bb-single-resource-head__title {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    font-size: clamp(34px, 4.25vw, 62px);
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
}

.bb-single-resource-head__meta {
    margin-top: 20px;
    color: #6f7e7d;
    font-size: 12px;
}

.bb-single-resource-head__share {
    margin-top: 18px;
}

.bb-single-resource-head__share .bb-single-share__btn {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 18px rgba(28, 67, 64, .05);
}

/* The requested order is explicit at every breakpoint: moment suggestion first,
   related articles second. */
.bb-single-sidebar {
    display: flex;
    flex-direction: column;
}

.bb-single-moment-panel {
    order: 1;
}

.bb-single-related-panel {
    order: 2;
}

@media (max-width: 991.98px) {
    .bb-single-resource-head {
        min-height: 540px;
        margin-bottom: 40px;
        padding: 56px 22px 58px;
    }

    .bb-single-resource-head__inner {
        max-width: 820px;
        padding: 0 18px;
    }

    .bb-single-resource-head__title {
        max-width: 800px;
        font-size: clamp(31px, 5.2vw, 48px);
    }
}

@media (max-width: 767.98px) {
    .bb-single-resource-head {
        height: auto;
        min-height: 500px;
        max-height: none;
        margin-bottom: 32px;
        padding: 48px 16px 54px;
    }

    .bb-single-resource-head__inner {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        text-align: center;
    }

    .bb-single-resource-head__breadcrumb {
        justify-content: center;
        gap: 6px;
        margin-bottom: 18px;
        padding: 0 4px;
        font-size: 10px;
    }

    .bb-single-resource-head__breadcrumb .bb-single-breadcrumb__item {
        max-width: 34vw;
    }

    .bb-single-resource-head__title {
        max-width: 94vw;
        font-size: clamp(26px, 7.6vw, 36px);
        line-height: 1.65;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .bb-single-resource-head__meta {
        justify-content: center;
        margin-top: 16px;
    }

    .bb-single-resource-head__share {
        justify-content: center;
        margin-top: 16px;
    }
}

@media (max-width: 479.98px) {
    .bb-single-resource-head {
        min-height: 470px;
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .bb-single-resource-head__breadcrumb .bb-single-breadcrumb__item--current,
    .bb-single-resource-head__breadcrumb .bb-single-breadcrumb__sep:last-of-type {
        display: none;
    }

    .bb-single-resource-head__title {
        max-width: 96vw;
        font-size: clamp(24px, 7.4vw, 32px);
        line-height: 1.7;
    }

    .bb-single-resource-head__meta {
        gap: 8px;
        font-size: 11px;
    }
}


/* Single blog v13: compact sidebar stack and backend-only hero meta. */
#bbBlogSinglePage .bb-single-resource-head__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

#bbBlogSinglePage .bb-single-resource-head__share {
    display: none !important;
}

#bbBlogSinglePage .bb-single-sidebar {
    gap: 0 !important;
}

#bbBlogSinglePage .bb-single-moment-panel {
    order: 1;
    margin: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

#bbBlogSinglePage .bb-single-related-panel {
    order: 2;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#bbBlogSinglePage .bb-single-side-panel + .bb-single-side-panel {
    margin-top: 0 !important;
}

#bbBlogSinglePage .bb-single-moment-slider {
    margin-bottom: 0 !important;
}

#bbBlogSinglePage .bb-single-moment-slider .owl-nav {
    margin-bottom: 0 !important;
}

#bbBlogSinglePage .bb-single-related-panel .bb-single-side-title {
    margin-top: 0 !important;
}

@media (max-width: 991.98px) {
    #bbBlogSinglePage .bb-single-moment-panel,
    #bbBlogSinglePage .bb-single-related-panel,
    #bbBlogSinglePage .bb-single-side-panel + .bb-single-side-panel {
        margin-top: 0 !important;
    }
}
