﻿:root {
    --brand-blue: #007bff; /* رنگ آبی هدر سایت شما */
    --brand-blue-dark: #0056b3;
    --text-white: #ffffff;
    --text-gray: #f8f9fa;
    --overlay-dark: rgba(0, 15, 30, 0.85); /* سرمه ای بسیار تیره برای خوانایی متن */
    --overlay-light: rgba(0, 123, 255, 0.2);
}

.hero-slider-v4 {
    position: relative;
    width: 100%;
    height: 70vh; /* ارتفاع مناسب برای نمایش هدر و بنر با هم */
    min-height: 500px;
    background-color: #000;
    overflow: hidden;
    font-family: inherit; /* ارث بری فونت از پروژه شما */
}

.slider-container-v4, .slide-v4 {
    width: 100%;
    height: 100%;
}

.slide-v4 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

    .slide-v4.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

.slide-bg-v4 {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s linear;
}

.slide-v4.active .slide-bg-v4 {
    transform: scale(1);
}

/* اورلی گرادیان برای خوانایی کامل متن */
.slide-overlay-v4 {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--overlay-dark) 0%, rgba(0,0,0,0.4) 50%, var(--overlay-light) 100%);
}

.slide-content-v4 {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.text-wrapper-v4 {
    max-width: 700px;
}

/* استفاده از clamp برای ریسپانسیو شدن دقیق فونت ها در موبایل و دسکتاپ */
.slide-title-v4 {
    color: var(--text-white);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.slide-desc-v4 {
    color: var(--text-gray);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.slide-actions-v4 {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

.slide-v4.active .slide-title-v4,
.slide-v4.active .slide-desc-v4,
.slide-v4.active .slide-actions-v4 {
    opacity: 1;
    transform: translateY(0);
}

/* دکمه ها */
.btn-v4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-v4 {
    background-color: var(--brand-blue);
    color: var(--text-white) !important;
    border: 2px solid var(--brand-blue);
}

    .btn-primary-v4:hover {
        background-color: var(--brand-blue-dark);
        border-color: var(--brand-blue-dark);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    }

.btn-outline-v4 {
    background-color: transparent;
    color: var(--text-white) !important;
    border: 2px solid var(--text-white);
    backdrop-filter: blur(4px);
}

    .btn-outline-v4:hover {
        background-color: var(--text-white);
        color: var(--brand-blue) !important;
        transform: translateY(-2px);
    }

/* دکمه های ناوبری */
.nav-btn-v4 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

    .nav-btn-v4:hover {
        background: var(--brand-blue);
        border-color: var(--brand-blue);
    }

.prev-v4 {
    right: 2%;
}

.next-v4 {
    left: 2%;
}

/* کنترل های پایین */
.controls-wrapper-v4 {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-v4 {
    display: flex;
    gap: 8px;
}

.dot-v4 {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dot-v4.active {
        background: var(--brand-blue);
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.8);
        transform: scale(1.3);
    }

.progress-bar-container-v4 {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-v4 {
    height: 100%;
    width: 0%;
    background: var(--brand-blue);
}

/* ریسپانسیو فوق‌العاده برای موبایل */
@media (max-width: 768px) {
    .slide-content-v4 {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .slide-overlay-v4 {
        background: linear-gradient(0deg, var(--overlay-dark) 0%, rgba(0,15,30,0.6) 100%);
    }

    .slide-actions-v4 {
        justify-content: center;
        width: 100%;
    }

    .btn-v4 {
        width: 100%;
        max-width: 300px;
    }

    .nav-btn-v4 {
        display: none; /* مخفی کردن فلش ها در موبایل - پشتیبانی از Swipe در JS اضافه شده */
    }

    .controls-wrapper-v4 {
        bottom: 15px;
    }
}
/* دکمه های ناوبری */
.nav-btn-v4 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px; /* کمی بزرگتر برای کلیک راحت تر */
    height: 55px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

    .nav-btn-v4 svg {
        display: block;
        margin: 0;
        padding: 0;
    }

    .nav-btn-v4:hover {
        background: var(--brand-blue);
        border-color: var(--brand-blue);
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    }
