/* Landing Blog — lbd-* prefix */

.lbd-hero .lbd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.lbd-hero .lbd-breadcrumb .breadcrumb-item a,
.lbd-hero .lbd-breadcrumb .breadcrumb-item.active {
    font-size: 0.95rem;
}

.lbd-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lbd-hero__stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    backdrop-filter: blur(6px);
}

.lbd-content-area {
    position: relative;
    z-index: 1;
}

.lbd-content-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(120, 80, 255, 0.07), transparent 55%),
        radial-gradient(ellipse 50% 35% at 90% 80%, rgba(80, 180, 255, 0.05), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Post list — vertical stack */
.lbd-post-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Row card — horizontal, image on right (RTL) */
.lbd-row-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.lbd-row-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 40%, rgba(130, 100, 255, 0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.28s ease;
}

.lbd-row-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.lbd-row-card:hover::before {
    opacity: 1;
}

/* Media — first in DOM = right side in RTL */
.lbd-row-card__media {
    position: relative;
    flex: 0 0 clamp(200px, 34%, 280px);
    display: block;
    overflow: hidden;
    text-decoration: none;
    padding: 0.85rem 0.85rem 0.85rem 0;
}

.lbd-row-card__img {
    width: 100%;
    height: 100%;
    min-height: 148px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.45s ease;
}

.lbd-row-card:hover .lbd-row-card__img {
    transform: scale(1.04);
}

.lbd-row-card__media-shine {
    position: absolute;
    inset: 0.85rem 0.85rem 0.85rem 0;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.lbd-row-card__badge {
    position: absolute;
    top: 1.35rem;
    right: 1.15rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5a623, #e879f9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}

.lbd-row-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.35rem 1.5rem 1.35rem 1.25rem;
    border-right: 3px solid transparent;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 65%);
    transition: border-color 0.28s ease;
}

.lbd-row-card:hover .lbd-row-card__body {
    border-right-color: rgba(130, 100, 255, 0.55);
}

.lbd-row-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-bottom: 0.65rem;
}

.lbd-row-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.52);
}

.lbd-row-card__meta-item i {
    font-size: 0.82rem;
    opacity: 0.85;
}

.lbd-row-card__title {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 800;
    line-height: 1.55;
    margin: 0 0 0.65rem;
}

.lbd-row-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lbd-row-card__title a:hover {
    color: rgba(200, 180, 255, 0.95);
}

.lbd-row-card__excerpt {
    margin: 0 0 0.75rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lbd-row-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.85rem;
}

.lbd-row-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.52);
    white-space: nowrap;
}

.lbd-row-card__date i {
    font-size: 0.82rem;
    opacity: 0.85;
}

.lbd-row-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.22s ease, color 0.22s ease;
    white-space: nowrap;
}

.lbd-row-card__link i {
    font-size: 0.78rem;
    transition: transform 0.22s ease;
}

.lbd-row-card__link:hover {
    color: #fff;
    gap: 0.75rem;
}

.lbd-row-card__link:hover i {
    transform: translateX(-4px);
}

/* Legacy grid card (kept for compatibility) */
.lbd-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lbd-card:hover {
    transform: translateY(-4px);
}

.lbd-card__img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.lbd-card .feature-img,
.lbd-card .feature-thumb {
    max-height: 220px;
}

.lbd-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lbd-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* Sidebar */
.lbd-sidebar__title {
    font-family: 'YekanBakh', sans-serif;
    font-weight: 800;
}

.lbd-search-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.lbd-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.lbd-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
}

.lbd-category-list__item {
    margin-bottom: 0.35rem;
}

.lbd-category-list__item--child .lbd-category-list__link {
    padding-right: 1rem;
    font-size: 0.92rem;
}

.lbd-category-list__link,
.lbd-filter-link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.lbd-category-list__item.is-active .lbd-category-list__link,
.lbd-filter-link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lbd-category-list__link:hover,
.lbd-filter-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Tags */
.lbd-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lbd-tag:hover,
.lbd-tag.is-active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.lbd-post-category {
    display: inline-block;
    text-decoration: none;
}

/* Article */
.lbd-article-featured__img {
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.lbd-article__body {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
}

.lbd-article__body h2,
.lbd-article__body h3,
.lbd-article__body h4 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'YekanBakh', sans-serif;
}

.lbd-article__body p {
    margin-bottom: 1rem;
}

.lbd-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.lbd-article__body ul,
.lbd-article__body ol {
    padding-right: 1.25rem;
    margin-bottom: 1rem;
}

.lbd-article__body blockquote {
    border-right: 3px solid rgba(255, 255, 255, 0.25);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
}

.lbd-post-title {
    line-height: 1.35;
}

/* Comments section */
.lbd-comments-section {
    position: relative;
    overflow: hidden;
}

.lbd-comments-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(130, 100, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.lbd-comments-section__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lbd-comments-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 700;
}

.lbd-comment-alert {
    border-radius: 12px;
    border: 0;
}

.lbd-comment-compose {
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lbd-comment-compose__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.lbd-comment-replying-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(130, 100, 255, 0.1);
    border: 1px solid rgba(130, 100, 255, 0.28);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 600;
}

.lbd-comment-replying-banner[hidden] {
    display: none !important;
}

.lbd-comment-form__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.4rem;
}

.lbd-comment-form__input,
.lbd-comment-form__textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 12px;
}

.lbd-comment-form__input:focus,
.lbd-comment-form__textarea:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(130, 100, 255, 0.45);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(130, 100, 255, 0.15);
}

.lbd-comment-form__textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.7;
}

.lbd-comment-form__captcha-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
}

.lbd-comment-form__captcha-img {
    max-width: 120px;
    width: 120px;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.lbd-comment-form__captcha-input {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.lbd-comment-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem 1rem;
    margin-top: 0.25rem;
}

.lbd-comment-form__captcha {
    flex-shrink: 0;
}

.lbd-comment-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.lbd-comment-form__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.lbd-comment-form__cancel:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.lbd-comment-form__cancel:active {
    background: rgba(255, 255, 255, 0.18);
}

.lbd-comment-form__submit {
    min-width: 7rem;
}

.lbd-comment__reply-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .lbd-comment-form__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.lbd-comment-form__auth-hint {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
}

.lbd-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.5rem;
}

.lbd-comment {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lbd-comment:last-child {
    border-bottom: 0;
}

.lbd-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.lbd-comment__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(130, 100, 255, 0.35), rgba(80, 180, 255, 0.2));
    color: #fff;
    flex-shrink: 0;
}

.lbd-comment__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.lbd-comment__author {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.lbd-comment__date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lbd-comment__body {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.65rem;
}

.lbd-comment__reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border: 0;
    background: transparent;
    color: rgba(200, 180, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.lbd-comment__reply-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lbd-comment__reply-form-wrap {
    margin-top: 0.85rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lbd-comment__reply-form-wrap[hidden] {
    display: none !important;
}

.lbd-comment__replies {
    margin-top: 0.85rem;
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 2px solid rgba(130, 100, 255, 0.25);
}

.lbd-comment__replies .lbd-comment {
    padding: 0.85rem 0;
}

.lbd-comment__replies .lbd-comment:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.lbd-comments-section__empty {
    padding-top: 0.5rem;
}

/* Pagination */
.lbd-pagination {
    margin-top: 2rem;
}

.lbd-pagination .page-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.lbd-pagination .page-item.active .page-link {
    background: var(--bs-primary, #6f42c1);
    border-color: transparent;
    color: #fff;
}

.lbd-pagination .page-item.disabled .page-link {
    opacity: 0.45;
}

/* Empty state */
.lbd-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .lbd-row-card {
        flex-direction: column;
    }

    .lbd-row-card__media {
        flex: none;
        width: 100%;
        padding: 0.85rem 0.85rem 0;
    }

    .lbd-row-card__media-shine {
        inset: 0.85rem 0.85rem 0 0.85rem;
    }

    .lbd-row-card__img {
        min-height: 180px;
        max-height: 220px;
    }

    .lbd-row-card__body {
        padding: 1.15rem 1.25rem 1.35rem;
        border-right: 0;
        border-top: 3px solid transparent;
    }

    .lbd-row-card:hover .lbd-row-card__body {
        border-right-color: transparent;
        border-top-color: rgba(130, 100, 255, 0.45);
    }

    .lbd-row-card__badge {
        top: 1.2rem;
        right: 1.2rem;
    }
}

/* Post detail sidebar */
.lbd-post-sidebar__chip {
    font-size: 0.86rem;
}

.lbd-mini-post-list__item + .lbd-mini-post-list__item {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lbd-mini-post {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.lbd-mini-post:hover {
    opacity: 0.92;
}

.lbd-mini-post:hover .lbd-mini-post__title {
    color: rgba(200, 180, 255, 0.95);
}

.lbd-mini-post__thumb-wrap {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.lbd-mini-post__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lbd-mini-post__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lbd-mini-post__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    transition: color 0.2s ease;
}

.lbd-mini-post__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.lbd-mini-post__date i {
    font-size: 0.72rem;
}

@media (max-width: 991.98px) {
    .lbd-hero--post .isb-hero-title {
        font-size: 2rem !important;
    }

    .lbd-sidebar--post {
        margin-top: 0.5rem;
    }
}
