/* Mapped to Elementor Controls via {{WRAPPER}} selectors */
/* Scope everything under .blog-hero-wrapper to avoid theme conflicts */

.blog-hero-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

.blog-hero-wrapper {
    background: #ffffff;
    width: 100%;
    margin: 0 auto;
    border: 1px dashed #e5e7eb;
    display: flex;
    flex-direction: column;
    direction: ltr;
    /* Base direction, elements handle RTL */
}

/* Handle widget direction based on page dir */
[dir="rtl"] .blog-hero-wrapper {
    direction: rtl;
}

.blog-hero-wrapper .top-row {
    display: flex;
    width: 100%;
    height: auto;
    border-bottom: 1px dashed #e5e7eb;
    position: relative;
}

/* --- Sidebar --- */
.blog-hero-wrapper .blog-hero-sidebar {
    width: 25%;
    min-width: 280px;
    padding: 20px;
    padding-bottom: 20px;
    border-inline-end: 1px dashed #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    /* Force minimum spacing */
    background: #fff;
    overflow: hidden;
}

.blog-hero-wrapper .main-slider-container {
    width: 75%;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding-bottom: 20px;
    /* Restored gap */
    background: #fff;
    aspect-ratio: 2/1;
    /* Fixed Aspect Ratio */
    /* border-radius removed */
}

.blog-hero-wrapper .blog-hero-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 15px;
    margin-bottom: 15px;
    position: relative;
}

.blog-hero-wrapper .blog-hero-sidebar-title::before {
    content: '';
    position: absolute;
    inset-inline-start: -20px;
    /* Pull to the border (Sidebar padding is 20px) */
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 100%;
    background-color: #5c4df2;
    border-radius: 2px;
}

.blog-hero-wrapper .blog-hero-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-hero-wrapper .blog-hero-article-list li {
    margin-bottom: 10px;
}

.blog-hero-wrapper .blog-hero-article-list li a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.3s;
    line-height: 1.5;
    display: block;
    /* Ensure full click area */
}

.blog-hero-wrapper .blog-hero-article-list li a:hover {
    color: #5c4df2;
}

/* Social List */
.blog-hero-wrapper .social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-hero-wrapper .social-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;
    color: #111111;
    font-weight: 600;
    font-size: 0.8rem;
}

.blog-hero-wrapper .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
}

.blog-hero-wrapper .social-icon svg {
    fill: currentColor;
}

/* --- Slider Images --- */
.blog-hero-wrapper .gallery-top {
    width: 100%;
    height: 100%;
}

.blog-hero-wrapper .gallery-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-wrapper .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(92, 77, 242, 0.05) 0%, rgba(22, 66, 178, 0.4) 50%, rgba(2, 0, 60, 0.95) 100%);
    pointer-events: none;
}

.blog-hero-wrapper .slide-content {
    position: absolute;
    bottom: 40px;
    inset-inline-start: 40px;
    width: 100%;
    max-width: 65%;
    /* Restricting width as it was "before" */
    z-index: 10;
    color: white;
    text-align: start;
    pointer-events: none;
    will-change: transform, opacity;
}

.blog-hero-wrapper .slide-content-inner {
    transform: translateY(25px);
    /* Base state for hover effect */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.9;
}

.blog-hero-wrapper .slide-content h2 {
    color: #fff !important;
    font-size: 1.4rem;
    /* Reduced from 1.6rem */
    line-height: 1.4;
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0;
    margin-bottom: 5px;
}

/* --- Slide Link Wrapper --- */
.blog-hero-wrapper .main-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.blog-hero-wrapper .gallery-top {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000 !important;
    /* Base color to prevent white flash */
}

.blog-hero-wrapper .gallery-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Read More Button */
/* Read More Button */
.blog-hero-wrapper .read-more-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin-top: 10px;
    /* Space from title */
}

.blog-hero-wrapper .read-more-btn i,
.blog-hero-wrapper .read-more-btn svg {
    font-size: 0.9rem;
    width: 1em;
    height: 1em;
    fill: currentColor;
    transition: transform 0.3s;
}

/* Hover Effects */
.blog-hero-wrapper .main-slide-link:hover .slide-content-inner {
    transform: translateY(0);
}

.blog-hero-wrapper .main-slide-link:hover .read-more-btn {
    opacity: 1;
    transform: translateY(0);
}

.blog-hero-wrapper .main-slide-link:hover .read-more-btn i,
.blog-hero-wrapper .main-slide-link:hover .read-more-btn svg {
    transform: translateX(4px);
}

[dir="rtl"] .blog-hero-wrapper .main-slide-link:hover .read-more-btn i,
[dir="rtl"] .blog-hero-wrapper .main-slide-link:hover .read-more-btn svg {
    transform: translateX(-4px);
}

/* --- Content Sliding Animations (Total Full-Width Soft Slide) --- */

.blog-hero-wrapper .slide-content {
    opacity: 0;
}

/* 1. Moving Next (Forward) */
.blog-hero-wrapper .moving-next .swiper-slide-active .slide-content {
    animation: slideInFromRightFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.blog-hero-wrapper .moving-next .swiper-slide-prev .slide-content {
    animation: slideOutToLeftFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* 2. Moving Prev (Backward) */
.blog-hero-wrapper .moving-prev .swiper-slide-active .slide-content {
    animation: slideInFromLeftFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.blog-hero-wrapper .moving-prev .swiper-slide-next .slide-content {
    animation: slideOutToRightFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* RTL Support - Inverse the logic */
[dir="rtl"] .blog-hero-wrapper .moving-next .swiper-slide-active .slide-content {
    animation: slideInFromLeftFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

[dir="rtl"] .blog-hero-wrapper .moving-next .swiper-slide-prev .slide-content {
    animation: slideOutToRightFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

[dir="rtl"] .blog-hero-wrapper .moving-prev .swiper-slide-active .slide-content {
    animation: slideInFromRightFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

[dir="rtl"] .blog-hero-wrapper .moving-prev .swiper-slide-next .slide-content {
    animation: slideOutToLeftFull 2.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Keyframes using vw for TRUE full width slide transition */
@keyframes slideInFromRightFull {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeftFull {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100vw);
        opacity: 0;
    }
}

@keyframes slideInFromLeftFull {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRightFull {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Background Fix for Fade */
.blog-hero-wrapper .gallery-top .swiper-slide {
    background-color: #000;
}

.blog-hero-wrapper .gallery-top .swiper-slide-fade {
    transition-property: opacity !important;
}

/* --- Navigation Bottom (Merged) --- */
.blog-hero-wrapper .gallery-thumbs.bottom-row {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    border-top: 1px dashed #e5e7eb;
}

.blog-hero-wrapper .gallery-thumbs .swiper-wrapper {
    display: flex;
}

.blog-hero-wrapper .gallery-thumbs .swiper-slide {
    height: auto;
    padding: 15px 20px 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from space-between */
    gap: 12px;
    /* Added gap as requested, larger than previous 6px margin */
    background: #fff;
    transition: background 0.3s;
    text-align: start;
    box-sizing: border-box;
    cursor: pointer;
}

.blog-hero-wrapper .gallery-thumbs .swiper-slide-thumb-active {
    background-color: #fcfcfc;
}

.blog-hero-wrapper .gallery-thumbs .swiper-slide:last-child {
    border-inline-end: none;
}

.blog-hero-wrapper .thumb-title {
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
    font-weight: 700;
    color: #111111;
    line-height: 1.4;
    margin-bottom: 0;
    /* Removed margin in favor of parent gap */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-hero-wrapper .thumb-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.blog-hero-wrapper .thumb-views {
    font-size: 0.75rem;
    /* Smaller views text */
    color: #333;
    /* Further darkened */
    /* Darkened from #999 */
    font-weight: 400;
}

.blog-hero-wrapper .thumb-info-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.blog-hero-wrapper .thumb-category {
    font-size: 0.85rem;
    color: #5c4df2;
    font-weight: 500;
}

.blog-hero-wrapper .thumb-date {
    font-size: 0.8rem;
    color: #444;
    /* Further darkened */
    /* Darkened from #adb5bd */
    font-weight: 400;
}

/* Thinner scrollbar/line for thumbnails */
.blog-hero-wrapper .gallery-thumbs .swiper-slide-thumb-active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 2px;
    /* Thinner as requested */
    background: #5c4df2;
}

/* Sliding active line for desktop */
.blog-hero-wrapper .thumb-active-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: #5c4df2;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), width 0.4s ease;
    display: none;
    /* Hidden by default, shown via JS on desktop */
    pointer-events: none;
}

@media (min-width: 1025px) {
    .blog-hero-wrapper .thumb-active-line {
        display: block;
    }

    /* Disable static line on desktop to use sliding line */
    .blog-hero-wrapper .gallery-thumbs .swiper-slide-thumb-active::before {
        display: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .blog-hero-wrapper {
        border: none;
    }

    .blog-hero-wrapper .top-row {
        flex-direction: column;
        height: auto;
        border: none;
    }

    .blog-hero-wrapper .blog-hero-sidebar {
        width: 100%;
        order: 1;
        border-inline-end: none;
        border-bottom: 1px dashed #e5e7eb;
        padding: 25px 15px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        height: auto;
    }

    .blog-hero-wrapper .blog-hero-sidebar-section {
        min-width: 140px;
    }

    .blog-hero-wrapper .blog-hero-articles-section {
        flex: 1;
    }

    .blog-hero-wrapper .blog-hero-socials-section {
        flex: 0 0 auto;
    }

    .blog-hero-wrapper .blog-hero-sidebar-title::before {
        inset-inline-start: -15px;
        /* Adjust for mobile padding */
    }

    .blog-hero-wrapper .main-slider-container {
        width: 100%;
        order: 2;
        height: 280px;
        padding-bottom: 0;
    }

    .blog-hero-wrapper .slide-content {
        bottom: 25px;
        inset-inline-start: 20px;
        width: calc(100% - 40px);
        max-width: 90%;
    }

    .blog-hero-wrapper .slide-content h2 {
        font-size: 1.25rem;
        /* Reduced from 1.4rem */
    }

    .blog-hero-wrapper .slide-content-inner {
        transform: translateY(0);
        /* Disable vertical hover motion on mobile for better UX */
    }

    .blog-hero-wrapper .gallery-thumbs.bottom-row {
        order: 3;
        height: auto;
        border-top: 1px dashed #e5e7eb;
        background: #fff;
    }

    /* --- Static Grid Layout (Disable Swiper Scroll) --- */
    .blog-hero-wrapper .gallery-thumbs.bottom-row {
        height: auto !important;
        overflow: visible !important;
    }

    .blog-hero-wrapper .gallery-thumbs .swiper-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        transform: none !important;
        /* Disable sliding transform visually */
        width: 100% !important;
        box-sizing: border-box;
        gap: 0 !important;
        padding: 0 !important;
    }

    .blog-hero-wrapper .gallery-thumbs .swiper-slide {
        width: auto !important;
        margin: 0 !important;
        height: auto;
        min-height: 120px;
        padding: 12px 15px 10px 15px;
        border-bottom: 1px dashed #e5e7eb;
    }

    /* Column Borders */
    .blog-hero-wrapper .gallery-thumbs .swiper-slide:nth-child(odd) {
        border-inline-end: 1px dashed #e5e7eb;
    }

    .blog-hero-wrapper .gallery-thumbs .swiper-slide:nth-child(even) {
        border-inline-end: none;
    }

    .blog-hero-wrapper .thumb-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .blog-hero-wrapper .main-slider-container {
        height: 240px;
    }
}