﻿
/* کانتینر اصلی */
.blg-sec-wrapper {
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
}

.blg-sec-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* هدر بخش */
.blg-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.blg-sec-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

    .blg-sec-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 3rem;
        height: 3px;
        background: #5b21b6;
        border-radius: 2px;
        animation: blgSecLineGrow 0.6s ease-out;
    }

.blg-sec-viewall {
    padding: 0.75rem 2rem;
    background: #5b21b6;
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

    .blg-sec-viewall:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(91, 33, 182, 0.25);
    }

.blg-sec-slider {
    position: relative;
    padding: 0 8px;
}

.blg-sec-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .blg-sec-track::-webkit-scrollbar {
        display: none;
    }

.blg-sec-card {
    min-width: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    /*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    border: 0.1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    cursor: pointer;
    animation: blgSecFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

    .blg-sec-card:nth-child(1) {
        animation-delay: 0s;
    }

    .blg-sec-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .blg-sec-card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .blg-sec-card:nth-child(4) {
        animation-delay: 0.3s;
    }

    .blg-sec-card:nth-child(5) {
        animation-delay: 0.4s;
    }

    .blg-sec-card:nth-child(6) {
        animation-delay: 0.5s;
    }

    .blg-sec-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

.blg-sec-img-wrap {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f3f4f6;
}

.blg-sec-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blg-sec-card:hover .blg-sec-img {
    transform: scale(1.08);
}

.blg-sec-info {
    padding: 1rem;
}

.blg-sec-card-title {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blg-sec-date {
    color: #6b7280;
    font-size: 0.875rem;
}

/* دکمه‌های ناوبری */
.blg-sec-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    opacity: 0.9;
}

    .blg-sec-nav:hover {
        background: #5b21b6;
        border-color: #5b21b6;
        transform: translateY(-50%) scale(1.1);
    }

        .blg-sec-nav:hover svg {
            stroke: white;
        }

.blg-sec-nav--prev {
    right: -1.25rem;
}

.blg-sec-nav--next {
    left: -1.25rem;
}

.blg-sec-nav svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: #4b5563;
    stroke-width: 2;
    transition: stroke 0.2s ease;
}

/* انیمیشن‌ها */
@keyframes blgSecFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blgSecLineGrow {
    from {
        width: 0;
    }

    to {
        width: 3rem;
    }
}

/* نشانگر پیشرفت اسکرول */
.blg-sec-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.blg-sec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blg-sec-dot--active {
    width: 24px;
    border-radius: 4px;
    background: #5b21b6;
}

/* ریسپانسیو */
@media (max-width: 768px) {


    .blg-sec-title {
        font-size: 1.5rem;
    }

    .blg-sec-card {
        min-width: 215px;
    }

    .blg-sec-nav {
        display: none;
    }

    .blg-sec-viewall {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* حالت لود */
.blg-sec-loading {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.blg-sec-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #5b21b6;
    border-radius: 50%;
    animation: blgSecSpin 0.8s linear infinite;
}

@keyframes blgSecSpin {
    to {
        transform: rotate(360deg);
    }
}
