/* ===== Direction helpers ===== */


/* ===== Main layout: list (left) + featured (right) ===== */

.datis-blog-widget-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-direction: row-reverse;
}

.datis-blog-widget-list-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 670px;
}

/* right column: big featured image */
.datis-blog-widget-feature-column {
    min-width: 590px;
}

/* ===== List cards ===== */

.datis-blog-widget-list-item {
    display: flex;
    align-items: center;
    background: rgba(9, 6, 37, 0.03);
    border-radius: 24px;
    padding: 16px;
    text-decoration: none;
    color: var(--datis-secondary-color);
    overflow: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
    flex-direction: row-reverse;
    gap: 16px;
}

/* hover – فقط اینجا تیره می‌شود */
.datis-blog-widget-list-item:hover {
    background: var(--datis-secondary-color);
    color: #ffffff;
}

/* small arrow (SVG 28x28) */
.datis-blog-widget-list-arrow {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms;
}

/* thumbnail on the right */
.datis-blog-widget-list-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.datis-blog-widget-list-thumb span {
    display: block;
    width: 68px;
    height: 56px;
    border-radius: 12px;
    background-size: cover;
    background-position: center center;
}

/* center text area */
.datis-blog-widget-list-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.datis-blog-widget-list-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.datis-blog-widget-list-category,
.datis-blog-widget-list-comments {

    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    text-align: right;
    color: rgba(9, 6, 37, 0.5);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 8px;

}


/* title */
.datis-blog-widget-list-title {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 25px;
    text-align: right;
    color: #090625;
}

/* hover states for meta */
.datis-blog-widget-list-item:hover .datis-blog-widget-list-meta {
    color: rgb(247 246 254 / 70%);
}

.datis-blog-widget-list-item:hover .datis-blog-widget-list-category {
    color: rgb(247 246 254 / 70%);

}

.datis-blog-widget-list-item:hover .datis-blog-widget-list-category svg path,
.datis-blog-widget-list-item:hover .datis-blog-widget-list-comments svg path {
    stroke-opacity: 1 !important;
    stroke: rgb(247 246 254 / 1);
}

.datis-blog-widget-list-item:hover .datis-blog-widget-list-title {
    color: #ffffff;
}

.datis-blog-widget-list-item:hover .datis-blog-widget-list-arrow {
    transform: rotate(-45deg);
}


.datis-blog-widget-list-item:hover .datis-blog-widget-list-arrow svg rect {
    fill: #fff;
}

.datis-blog-widget-list-item:hover .datis-blog-widget-list-arrow svg path {
    stroke: var(--datis-secondary-color);
}

.datis-blog-widget-list-item:hover .datis-blog-widget-list-comments {
    color: rgb(247 246 254 / 70%);
}

/* ===== Featured card (big one) ===== */

.datis-blog-widget-feature-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 32px;
    overflow: hidden;
    min-height: 412px;
}

/* main image – no filters */
.datis-blog-widget-feature-image {
    width: 100%;
    background-size: cover;
    background-position: center center;
    height: 412px;
}

/* top-right meta pills */
.datis-blog-widget-feature-meta-top {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.datis-blog-widget-feature-meta-pill {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 12px;
    gap: 6px;
    height: 36px;
    background: #FFFFFF;
    border-radius: 1000px;
    box-sizing: border-box;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 36px;
    text-align: right;
    color: var(--datis-secondary-color);
}

/* bottom white bar over image */
.datis-blog-widget-feature-bottom {
    position: absolute;
    left: auto;
    right: auto;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    flex-direction: row-reverse;
    width: 558px;
    height: 90px;
    box-sizing: border-box;
    inset-inline: 16px;
}

/* big arrow (SVG 52x52) */
.datis-blog-widget-feature-bottom-arrow {
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms;
}


.datis-blog-widget-feature-column:hover .datis-blog-widget-feature-bottom-arrow {
    transform: rotate(-45deg);
}

/* text inside white bar */
.datis-blog-widget-feature-bottom-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.datis-blog-widget-feature-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--datis-secondary-color);
    font-weight: 400;
    width: 350px;
    line-height: 32px;
}

.datis-blog-widget-feature-subtitle {
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 768px) {
    .datis-blog-widget-feature-bottom {
        padding: 14px 18px;
    }

    .datis-blog-widget-feature-title {
        font-size: 15px;
    }

    .datis-blog-widget-list-item {
        padding: 14px 18px;
    }

    .datis-blog-widget-feature-bottom {
        position: absolute;
        left: auto;
        right: auto;
        bottom: 16px;
        display: flex;
        align-items: center;
        gap: 18px;
        background: #ffffff;
        border-radius: 20px;
        padding: 24px;
        flex-direction: row-reverse;
        width: calc(100% - 24px);
        height: 90px;
        box-sizing: border-box;
        inset-inline: 12px !important;
        left: 0 !important;
        bottom: 12px !important;
    }

    .datis-blog-widget-feature-title {
        width: 100%;
    }

    .datis-blog-widget-feature-image,
    .datis-blog-widget-feature-card {
        height: 322px;
        min-height: 322px;
    }

    .datis-blog-widget-feature-column {
        max-width: 100%;
        width: 100%;
        min-width: 100%;
    }

    .datis-blog-widget-list-column {
        width: 100%;
    }

    .datis-blog-widget-inner {
        flex-direction: column;
    }

    .datis-blog-widget-slider.swiper {
        display: block !important;
    }
}

.datis-blog-widget-slider.swiper {
    display: none;
}

.datis-blog-widget-slider-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.datis-blog-widget-slider-nav button {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.datis-blog-widget-slider-next,
.datis-blog-widget-slider-prev {
    position: relative;
    z-index: 0;
}

.datis-blog-widget-slider-prev:hover::before,
.datis-blog-widget-slider-next::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 9px;
    border-radius: 1000px;
    background: var(--datis-primary-color);
    z-index: -1;
    top: 2px;
    right: 4px;
    transition: all 300ms;

}

.datis-blog-widget-slider-prev:hover::before {
    left: 4px;
}

.datis-blog-widget-slider-prev:hover svg path {
    stroke: #090625;
}

.datis-blog-widget-slider-prev svg path {
    stroke: #09062580;
}




.datis-blog-widget-slider-nav .datis-blog-widget-slider-prev {
    transform: rotate(180deg);
}

/* ===== Main layout: list (left) + featured (right) ===== */

.datis-blog-widget-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-direction: row-reverse;
}

/* ... بقیه‌ی CSSی که خودت دادی همون باشه ... */

/* ===== Slider (for mobile) ===== */
.datis-blog-widget-slider {
    display: none;
    /* پیش‌فرض: دسکتاپ hide */
}

.datis-blog-widget-slider.swiper {
    width: 100%;
}

.datis-blog-widget-slider-wrapper {
    display: flex;
}

.datis-blog-widget-slider .swiper-slide {
    display: flex;
    justify-content: center;
}

.datis-blog-widget-slider .datis-blog-widget-feature-card {
    width: 100%;
}




.datis-blog-widget.style-2 .blog.large-card {
    position: relative;
    z-index: 1;
}

.datis-blog-widget.style-2 .blog.large-card .wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    gap: 13px;
    border: 1px solid rgba(10, 38, 71, 0.1);
    border-radius: 24px;
}

.datis-blog-widget.style-2 .blog-column {
    width: 33%;
}

.datis-blog-widget.style-2 .blog.large-card .blog-thumbnail {
    padding: 0;
    width: 100%;
    height: 219px;
}

.datis-blog-widget.style-2 .blog.large-card .blog-thumbnail img {
    height: 219px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.datis-blog-widget.style-2 .blog.large-card .meta {
    width: 100%;
    box-sizing: border-box;
}

.datis-blog-widget.style-2 .blog.large-card .meta .categories .cat a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
    gap: 8px;
    background: rgba(10, 38, 71, 0.04);
    border-radius: 10px;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 44px;
    text-align: center;
    color: var(--datis-body-text-color);
    height: 27px;
}

.datis-blog-widget.style-2 .blog.large-card .meta .comments {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 10px;
    gap: 6px;
    height: 28px;
    border: 1px solid #0A2647;
    border-radius: 10px;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 44px;
    text-align: right;
    color: #0A2647;
}

.datis-blog-widget.style-2 .blog.large-card .blog-title a {
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 40px;
    text-align: right;
    color: var(--datis-body-text-color);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 97%;
    display: block;
}

.datis-blog-widget.style-2 .blog.large-card .blog-excerpt {
    width: 100%;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 27px;
    text-align: right;
    color: rgba(10, 38, 71, 0.64);
}

.datis-blog-widget.style-2 .blog.small-card {
    position: relative;
    z-index: 1;
}

.datis-blog-widget.style-2 .blog.small-card .wrapper {
    box-sizing: border-box;
    height: 189px;
    border: 1px solid rgba(10, 38, 71, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;

}

.datis-blog-widget.style-2 .blog.small-card .blog-thumbnail {
    padding: 0;
    width: 118px;
    height: 157px;
}

.datis-blog-widget.style-2 .blog.small-card .blog-thumbnail img {
    width: 100%;
    height: 157px;
    object-fit: cover;
    border-radius: 16px;
}

.datis-blog-widget.style-2 .blog.small-card .blog-card-text {
    width: 240px;
}


.datis-blog-widget.style-2 .blog.small-card .blog-title a {
    color: var(--datis-body-text-color);
    width: 100%;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 36px;
    text-align: right;
}

.datis-blog-widget.style-2 .blog.small-card .blog-excerpt {
    width: 100%;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 30px;
    text-align: right;
    color: rgba(10, 38, 71, 0.64);

}


.datis-blog-widget.style-2 .blog.small-card .wrapper:hover,
.datis-blog-widget.style-2 .blog.large-card .wrapper:hover {
    background: #ECF1F7;
    border: 1px solid #ECF1F7;
}

.datis-blog-widget.style-2 .blog.small-card::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: 360px;
    height: 162px;
    right: -1px;
    bottom: -2px;
    border: 5px solid transparent;
    background: transparent;
    border-radius: 24px;
    transform: matrix(-1, 0, 0, 1, 0, 0) rotate(-1deg) skewX(-3deg);
    display: block;
    z-index: -1;
}

.datis-blog-widget.style-2 .blog.large-card:hover::before,
.datis-blog-widget.style-2 .blog.small-card:hover::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: 90%;
    height: 162px;
    right: -1px;
    bottom: -2px;
    border: 5px solid var(--datis-primary-color);
    background: var(--datis-primary-color);
    border-radius: 24px;
    transform: matrix(-1, 0, 0, 1, 0, 0) rotate(-1deg) skewX(-3deg);
    display: block;
    z-index: -1;
}


/* --- Media Queries --- */

@media (max-width: 768px) {

    /* دسکتاپی رو مخفی کن */
    .datis-blog-widget-inner {
        display: none;
    }

    /* فقط اسلایدر موبایل نمایش داده شود */
    .datis-blog-widget-slider {
        display: block;
    }

    /* تنظیمات موبایلی کارت‌ها همون‌هایی که داشتی: */
    .datis-blog-widget-feature-bottom {
        padding: 14px 18px;
        position: absolute;
        left: auto;
        right: auto;
        bottom: 12px !important;
        display: flex;
        align-items: center;
        gap: 18px;
        background: #ffffff;
        border-radius: 20px;
        flex-direction: row-reverse;
        width: calc(100% - 24px);
        height: 90px;
        box-sizing: border-box;
        inset-inline: 12px !important;
        left: 0 !important;
    }

    .datis-blog-widget-feature-title {
        font-size: 15px;
        width: 100%;
    }

    .datis-blog-widget-feature-image,
    .datis-blog-widget-feature-card {
        height: 322px;
        min-height: 322px;
    }

    .datis-blog-widget-feature-column {
        max-width: 100%;
        width: 100%;
        min-width: 100%;
    }

    .datis-blog-widget-list-column {
        width: 100%;
    }

    .datis-blog-widget.style-2 .blog-column {
        width: 100%;
    }
}