:root {
    --home-navy: #0f3f55;
    --home-blue: #1c6e94;
    --home-sky: #35a8d6;
    --home-ink: #14242d;
    --home-muted: #6f7f88;
    --home-surface: #ffffff;
    --home-soft: #eef6fa;
    --home-line: #dfeaf0;
    --home-radius: 20px;
}
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}
body {
    background: #f4f8fb !important;
    color: var(--home-ink) !important;
    padding-bottom: 86px !important;
}
.bk-home, .bk-home * {
    box-sizing: border-box;
}
.bk-home {
    width: calc(100% - 32px);
    max-width: 1180px;
    min-width: 0;
    margin: 22px auto 42px;
    overflow-x: clip;
}
.bk-home-slider {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    contain: layout paint;
    aspect-ratio: 16 / 6.2;
    min-height: 300px;
    max-height: 460px;
    border-radius: 28px;
    background: var(--home-navy);
    box-shadow: 0 18px 45px rgba(15, 63, 85, .18);
    isolation: isolate;
}
.bk-home-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}
.bk-home-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.bk-home-slide img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.001);
    transform-origin: center center;
    will-change: transform;
}
.bk-home-slide.is-active img {
    animation: bkHomeHeroZoom var(--bk-slide-zoom-duration, 12s) linear forwards;
}
@keyframes bkHomeHeroZoom {
    from { transform: scale(1.001); }
    to { transform: scale(1.055); }
}
.bk-home-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 28, 40, .80), rgba(7, 28, 40, .28));
}
.bk-home-slide-content {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(720px, calc(100% - 120px));
    max-width: calc(100% - 32px);
    min-width: 0;
    color: #fff;
    text-align: center;
}
.bk-home-slide h1 {
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1.35;
    margin: 0 0 9px;
    text-shadow: 0 3px 16px rgba(0,0,0,.24);
}
.bk-home-slide p {
    max-width: 650px;
    margin: 0 auto 18px;
    font-size: clamp(13px, 1.45vw, 17px);
    line-height: 1.85;
    color: rgba(255,255,255,.9);
}
.bk-home-primary,
.bk-home-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 13px;
    padding: 0 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}
.bk-home-primary {
    background: #fff;
    color: var(--home-navy);
    box-shadow: 0 10px 25px rgba(0,0,0,.16);
}
.bk-home-primary:hover,
.bk-home-secondary:hover { transform: translateY(-2px); }
.bk-slider-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 34, 48, .42);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 19px;
}
.bk-slider-prev { right: 16px; }
.bk-slider-next { left: 16px; }
.bk-slider-dots {
    position: absolute;
    z-index: 5;
    right: 0;
    left: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.bk-slider-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.bk-slider-dot.is-active {
    width: 28px;
    background: #fff;
}
.bk-home-section { margin-top: 22px; }
.bk-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}
.bk-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.bk-section-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--home-sky), var(--home-blue));
    color: #fff;
    box-shadow: 0 8px 20px rgba(28, 110, 148, .2);
    font-size: 19px;
}
.bk-section-title h2 {
    margin: 0;
    font-size: clamp(19px, 2.2vw, 25px);
    color: var(--home-ink);
}
.bk-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--home-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.bk-video-carousel {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    min-width: 0;
}
.bk-video-viewport {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    cursor: grab;
    direction: ltr;
    user-select: none;
    touch-action: pan-y;
    overscroll-behavior: contain;
    contain: layout paint;
}
.bk-video-viewport.is-dragging { cursor: grabbing; }
.bk-video-viewport:focus-visible {
    outline: 3px solid rgba(28, 110, 148, .28);
    outline-offset: 5px;
    border-radius: 22px;
}
.bk-video-track {
    /* رفتار و جهت نسخه اصلی: کارت فعال سمت راست و کارت بعدی از سمت چپ نمایان می‌شود. */
    --bk-video-card-width: 80%;
    display: flex;
    direction: ltr;
    flex-direction: row-reverse;
    justify-content: flex-start;
    width: 100%;
    min-width: 100%;
    margin: 0;
    gap: 9px;
    transform: translate3d(0, 0, 0);
    transition: transform .34s cubic-bezier(.22,.72,.24,1);
    will-change: transform;
}
.bk-video-track.is-no-transition { transition: none; }
.bk-video-slide {
    flex: 0 0 var(--bk-video-card-width);
    width: var(--bk-video-card-width);
    min-width: 0;
    direction: rtl;
}
.bk-content-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: var(--home-surface);
    box-shadow: 0 9px 24px rgba(24, 61, 78, .065);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bk-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(24, 61, 78, .11);
}
.bk-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #dceaf0;
}
.bk-card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(8,31,43,.55), transparent);
    pointer-events: none;
}
.bk-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
    pointer-events: none;
}
.bk-content-card:hover .bk-card-media img { transform: scale(1.035); }
.bk-card-chip {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: calc(100% - 20px);
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(8, 39, 54, .72);
    color: #fff;
    backdrop-filter: blur(7px);
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bk-play-badge {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(15,63,85,.86);
    color: #fff;
    border: 2px solid rgba(255,255,255,.75);
    font-size: 16px;
}
.bk-card-body { padding: 10px 12px 9px; }
.bk-card-title {
    margin: 0 0 7px;
    min-height: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--home-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bk-card-title a { color: inherit; text-decoration: none; }
.bk-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid #edf2f5;
    color: #81909a;
    font-size: 10.5px;
}
.bk-card-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.bk-video-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 22px;
    margin-top: 7px;
}
.bk-video-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c4d2d9;
    cursor: pointer;
    transition: width .22s ease, background .22s ease, transform .22s ease;
}
.bk-video-dot.is-active {
    width: 22px;
    background: var(--home-blue);
}
.bk-empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed #c8dce6;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    color: var(--home-muted);
}
.bk-article-list {
    display: grid;
    gap: 6px;
}
.bk-article-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(250px, 286px) minmax(0, 1fr);
    align-items: stretch;
    gap: 15px;
    padding: 9px;
    border: 1px solid var(--home-line);
    border-radius: 19px;
    background: var(--home-surface);
    box-shadow: 0 8px 22px rgba(24, 61, 78, .055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bk-article-row:hover {
    transform: translateY(-2px);
    border-color: #c7dce7;
    box-shadow: 0 13px 28px rgba(24, 61, 78, .095);
}
.bk-article-media {
    position: relative;
    display: block;
    align-self: start;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #edf3f6;
}
.bk-article-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}
.bk-article-row:hover .bk-article-media img { transform: scale(1.018); }
.bk-article-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 3px 2px 2px 6px;
}
.bk-article-title {
    margin: 0 0 5px;
    font-size: clamp(15px, 1.55vw, 18px);
    line-height: 1.55;
    color: var(--home-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bk-article-title a { color: inherit; text-decoration: none; }
.bk-article-excerpt {
    margin: 0;
    color: var(--home-muted);
    font-size: 12.5px;
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bk-article-meta {
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #edf2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    color: #7d8c95;
    font-size: 10.5px;
}
.bk-article-meta > span {
    min-width: 0;
    white-space: nowrap;
}
.bk-article-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.bk-article-category {
    position: absolute;
    right: 8px;
    left: auto;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: calc(100% - 16px);
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: var(--home-blue);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px rgba(20, 36, 45, .14);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}
.bk-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.bk-promo {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 26px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: #fff;
    box-shadow: 0 16px 36px rgba(20, 67, 90, .18);
}
.bk-promo::before,
.bk-promo::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}
.bk-promo::before { width: 170px; height: 170px; left: -55px; top: -85px; }
.bk-promo::after { width: 105px; height: 105px; right: -34px; bottom: -52px; }
.bk-promo-explore { background: linear-gradient(135deg, #7654ff, #3157c8); }
.bk-promo-chat { background: linear-gradient(135deg, #0f8f8a, #0f536c); }
.bk-promo-copy { position: relative; z-index: 2; min-width: 0; }
.bk-promo-copy span { font-size: 12px; opacity: .82; }
.bk-promo h3 { margin: 5px 0 8px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; }
.bk-promo p { margin: 0; font-size: 13px; line-height: 1.9; opacity: .88; }
.bk-home-secondary {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    background: rgba(255,255,255,.94);
    color: var(--home-navy);
    box-shadow: 0 9px 24px rgba(0,0,0,.13);
}
@media (prefers-reduced-motion: reduce) {
    .bk-home-slide img { animation: none !important; transform: none !important; }
}

@media (max-width: 900px) {
    .bk-home-slider { aspect-ratio: 16 / 7.2; min-height: 280px; }
    .bk-video-carousel { max-width: 720px; }
    .bk-promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bk-home { width: calc(100% - 22px); max-width: 1180px; min-width: 0; margin-top: 12px; }
    .bk-home-section { margin-top: 18px; }
    .bk-promo-grid { margin-top: 18px; }
    .bk-home-slider {
        aspect-ratio: 16 / 8.8;
        min-height: 215px;
        max-height: none;
        border-radius: 21px;
    }
    .bk-home-slide-content {
        width: calc(100% - 76px);
        max-width: calc(100% - 76px);
        min-width: 0;
    }
    .bk-home-slide h1 { font-size: clamp(20px, 6vw, 27px); margin-bottom: 6px; }
    .bk-home-slide p {
        max-width: 92%;
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .bk-home-primary { min-height: 36px; padding: 0 14px; border-radius: 11px; font-size: 12px; }
    .bk-slider-arrow { width: 34px; height: 34px; font-size: 17px; }
    .bk-slider-prev { right: 8px; }
    .bk-slider-next { left: 8px; }
    .bk-slider-dots { bottom: 9px; }
    .bk-video-carousel { max-width: none; }
    .bk-video-track { gap: 7px; }
    .bk-card-media { aspect-ratio: 16 / 6.8; }
    .bk-card-title { min-height: 0; font-size: 14px; }
    .bk-card-body { padding: 9px 11px 8px; }
    .bk-article-list { gap: 5px; }
    .bk-article-row {
        grid-template-columns: minmax(128px, 40%) minmax(0, 1fr);
        align-items: stretch;
        gap: 9px;
        padding: 7px;
        border-radius: 16px;
    }
    .bk-article-media {
        align-self: start;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 11px;
    }
    .bk-article-content { padding: 1px 0 1px 1px; }
    .bk-article-title {
        margin-bottom: 3px;
        font-size: 13px;
        line-height: 1.48;
        -webkit-line-clamp: 2;
    }
    .bk-article-excerpt {
        margin: 0;
        font-size: 10.7px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }
    .bk-article-meta {
        justify-content: space-between;
        gap: 4px;
        padding-top: 5px;
        font-size: 8.8px;
    }
    .bk-article-meta-group { gap: 7px; }
    .bk-article-category {
        right: 6px;
        left: auto;
        bottom: 6px;
        min-height: 20px;
        max-width: calc(100% - 12px);
        padding: 0 6px;
        font-size: 9px;
    }
    .bk-promo { min-height: 195px; padding: 22px; align-items: flex-start; flex-direction: column; }
    .bk-home-secondary { width: 100%; }
}
@media (max-width: 380px) {
    .bk-section-heading { align-items: center; }
    .bk-section-icon { width: 37px; height: 37px; }
    .bk-view-all { font-size: 12px; }
    .bk-card-meta { font-size: 10px; }
}


@media (prefers-reduced-motion: reduce) {
    .bk-home-slide,
    .bk-content-card,
    .bk-card-media img,
    .bk-video-dot { transition: none !important; }
    .bk-home-slide.is-active img { animation: none !important; }
    .bk-video-viewport { scroll-behavior: auto !important; }
}
