{% load static %}
{% load i18n %}

{# --- این بخش HTML مربوط به نمایش بنرها در صفحه اصلی است --- #}
{# --- کد CSS مربوطه نیز در انتهای همین فایل قرار دارد --- #}

<div id="banner-slider-wrapper" style="width: 100%; max-width: 100%; margin: 0 auto 30px auto; padding: 0;">
    <div id="banner-slider" class="banner-slider-container">
        
        {# --- بنرهای اصلی (Banner) --- #}
        {% for banner in banners %}
        <div class="banner-slide {% if forloop.first %}is-active{% endif %}" data-slide-index="{{ forloop.counter }}">
            
            {# --- تگ picture برای نمایش تصاویر مختلف در موبایل و دسکتاپ --- #}
            <picture class="banner-picture">

                {# --- WebP موبایل؛ در صورتی که بعداً فیلد mobile_image_webp داشته باشید --- #}
                {% if banner.mobile_image_webp %}
                    <source
                        media="(max-width: 768px)"
                        srcset="{{ banner.mobile_image_webp.url }}"
                        type="image/webp"
                        class="banner-source-mobile-webp"
                    >
                {% endif %}

                {# --- تصویر موبایل فعلی؛ نسبت 4:5 --- #}
                {% if banner.mobile_image %}
                    <source
                        media="(max-width: 768px)"
                        srcset="{{ banner.mobile_image.url }}"
                        class="banner-source-mobile"
                    >
                {% endif %}

                {# --- WebP دسکتاپ؛ در صورتی که بعداً فیلد desktop_image_webp داشته باشید --- #}
                {% if banner.desktop_image_webp %}
                    <source
                        srcset="{{ banner.desktop_image_webp.url }}"
                        type="image/webp"
                        class="banner-source-desktop-webp"
                    >
                {% endif %}
                
                {# --- تصویر دسکتاپ و تصویر جایگزین اصلی --- #}
                {% if banner.desktop_image %}
                    <img
                        src="{{ banner.desktop_image.url }}"
                        class="banner-img"
                        alt="{{ banner.alt_text|default:banner.title }}"
                        loading="{% if forloop.first %}eager{% else %}lazy{% endif %}"
                        decoding="async"
                    >
                {% elif banner.mobile_image %}
                    <img
                        src="{{ banner.mobile_image.url }}"
                        class="banner-img"
                        alt="{{ banner.alt_text|default:banner.title }}"
                        loading="{% if forloop.first %}eager{% else %}lazy{% endif %}"
                        decoding="async"
                    >
                {% else %}
                    <div class="banner-placeholder">تصویر دسکتاپ آپلود نشده است</div>
                {% endif %}
            </picture>
            
            {# --- لایه گرادیانت برای خوانایی متن --- #}
            <div class="banner-overlay-layer"></div>
            
            {# --- شامل محتوای متنی بنر از فایل banner_content.html --- #}
            {% include 'home/includes/banner_content.html' with current_banner=banner services=main_services contact_phone=contact_phone banner_kind='main' %}
            
            {# --- تگ عنوان بنر --- #}
            <div class="banner-tag">
                {{ banner.title }}
            </div>
        </div>
        {% endfor %}

        {# --- بنرهای لیدربورد (LeaderboardBanner) --- #}
        {% for leaderboard in leaderboard_banners %}
        <div class="banner-slide {% if not banners and forloop.first %}is-active{% endif %}" data-slide-index="{{ forloop.counter0|add:banners.count }}">
            
            <picture class="banner-picture">

                {# --- WebP موبایل؛ در صورت وجود فیلد مربوطه در مدل --- #}
                {% if leaderboard.mobile_image_webp %}
                    <source
                        media="(max-width: 768px)"
                        srcset="{{ leaderboard.mobile_image_webp.url }}"
                        type="image/webp"
                        class="banner-source-mobile-webp"
                    >
                {% endif %}

                {# --- تصویر موبایل فعلی --- #}
                {% if leaderboard.mobile_image %}
                    <source
                        media="(max-width: 768px)"
                        srcset="{{ leaderboard.mobile_image.url }}"
                        class="banner-source-mobile"
                    >
                {% endif %}

                {# --- WebP دسکتاپ؛ در صورت وجود فیلد مربوطه در مدل --- #}
                {% if leaderboard.desktop_image_webp %}
                    <source
                        srcset="{{ leaderboard.desktop_image_webp.url }}"
                        type="image/webp"
                        class="banner-source-desktop-webp"
                    >
                {% endif %}
                
                {# --- تصویر دسکتاپ و تصویر جایگزین اصلی --- #}
                {% if leaderboard.desktop_image %}
                    <img
                        src="{{ leaderboard.desktop_image.url }}"
                        class="banner-img"
                        alt="{{ leaderboard.alt_text|default:leaderboard.title }}"
                        loading="{% if not banners and forloop.first %}eager{% else %}lazy{% endif %}"
                        decoding="async"
                    >
                {% elif leaderboard.mobile_image %}
                    <img
                        src="{{ leaderboard.mobile_image.url }}"
                        class="banner-img"
                        alt="{{ leaderboard.alt_text|default:leaderboard.title }}"
                        loading="{% if not banners and forloop.first %}eager{% else %}lazy{% endif %}"
                        decoding="async"
                    >
                {% else %}
                    <div class="banner-placeholder">تصویر لیدبرد آپلود نشده است</div>
                {% endif %}
            </picture>
            
            <div class="banner-overlay-layer"></div>
            
            {# --- شامل محتوای متنی بنر لیدربورد --- #}
            {% include 'home/includes/banner_content.html' with current_banner=leaderboard services=leaderboard_services contact_phone=contact_phone banner_kind='leaderboard' %}
            
            <div class="banner-tag">
                {{ leaderboard.title }}
            </div>
        </div>
        {% endfor %}

    </div>
</div>

{# --- جاوااسکریپت برای مدیریت پایدار اسلایدر --- #}
<script>
document.addEventListener("DOMContentLoaded", function () {
    const slider = document.getElementById("banner-slider");

    if (!slider) {
        return;
    }

    const slides = Array.from(slider.querySelectorAll(".banner-slide"));
    const totalSlides = slides.length;

    let currentSlideIndex = 0;
    let sliderInterval = null;

    if (totalSlides === 0) {
        return;
    }

    /*
     * نمایش فقط یک اسلاید فعال.
     * این روش، مشکل تداخل display و z-index
     * در اسلایدهای قبلی را رفع می‌کند.
     */
    function showSlide(nextIndex) {
        slides.forEach(function (slide, index) {
            const isCurrentSlide = index === nextIndex;

            slide.classList.toggle("is-active", isCurrentSlide);
            slide.setAttribute("aria-hidden", isCurrentSlide ? "false" : "true");
        });

        currentSlideIndex = nextIndex;
    }

    /*
     * اگر به‌دلیل قالب یا کش، کلاس is-active روی اسلایدی نبود،
     * اسلاید اول فعال می‌شود.
     */
    const activeSlideIndex = slides.findIndex(function (slide) {
        return slide.classList.contains("is-active");
    });

    if (activeSlideIndex >= 0) {
        currentSlideIndex = activeSlideIndex;
    }

    showSlide(currentSlideIndex);

    /*
     * اجرای خودکار اسلایدر
     */
    if (totalSlides > 1) {
        sliderInterval = setInterval(function () {
            const nextSlideIndex = (currentSlideIndex + 1) % totalSlides;
            showSlide(nextSlideIndex);
        }, 5000);
    }

    /*
     * هنگام تغییر سایز مرورگر یا چرخش گوشی،
     * اسلاید فعلی دوباره تثبیت می‌شود.
     * این بخش هیچ تغییری در سایز یا قاب ایجاد نمی‌کند.
     */
    let resizeTimer = null;

    window.addEventListener("resize", function () {
        clearTimeout(resizeTimer);

        resizeTimer = setTimeout(function () {
            showSlide(currentSlideIndex);
        }, 200);
    });

    /*
     * زمانی که کاربر به تب دیگر می‌رود،
     * زمان‌بندی متوقف و پس از بازگشت دوباره فعال می‌شود.
     */
    document.addEventListener("visibilitychange", function () {
        if (document.hidden) {
            if (sliderInterval) {
                clearInterval(sliderInterval);
                sliderInterval = null;
            }
        } else if (totalSlides > 1 && !sliderInterval) {
            sliderInterval = setInterval(function () {
                const nextSlideIndex = (currentSlideIndex + 1) % totalSlides;
                showSlide(nextSlideIndex);
            }, 5000);
        }
    });
});
</script>

{# --- استایل‌های CSS برای بنر اسلایدر، متن، فوتر و لوگو --- #}
<style>
/* --- فونت وب --- */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* --- تنظیمات پایه --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Vazirmatn', Tahoma, sans-serif; background: #f0f4f8; direction: rtl; }

/* ========================================== */
/* استایل بنر اسلایدر - ریسپانسیو و بهینه شده */
/* ========================================== */

.banner-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 900;
    height: auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* بهینه‌سازی نمایش تصاویر چندرسانه‌ای */
.banner-slider-container picture,
.banner-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    background: transparent !important;
}

.banner-slider-container .banner-img,
.banner-picture .banner-img,
.banner-slide img.banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent !important;
    border: none;
}

/* اسلایدهای بنر */
.banner-slide {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    background: transparent !important;
}

/* نمایش اسلاید فعال */
.banner-slide.is-active {
    display: block;
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* سازگاری با کدها یا استایل‌های قبلی */
.banner-slide[style*="display: block"] {
    display: block;
    z-index: 5;
}

/* --- لایه محتوای روی عکس (اصلاح شده برای سمت چپ) --- */
/* این استایل‌ها فرض می‌کنند محتوای banner_content.html سمت چپ قرار می‌گیرد */
.banner-overlay-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    max-width: 400px;
    direction: rtl;
}

/* --- استایل کپسول‌های خدمات و آیتم‌های بنر --- */
.service-capsule, .banner-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    width: fit-content;
    transition: all 0.3s ease;
}

.service-capsule:hover, .banner-item:hover {
    transform: scale(1.02);
}

/* --- دایره آیکون‌ها با گرادیان حرفه‌ای --- */
.icon-circle, .banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
}

/* گرادیان مخصوص برف و آتش */
.snow-icon { 
    background: linear-gradient(135deg, #e8fbff, #c7f0ff);
    color: #00bcd4;
}

.fire-icon { 
    background: linear-gradient(135deg, #ffe9df, #ffd2bf);
    color: #ff5722;
}

/* --- استایل متن‌های اصلی داخل کپسول --- */
.service-text, .banner-text {
    font-size: 16px;
    font-weight: bold;
    color: #0a3d6b;
    white-space: nowrap;
}

/* --- استایل متن‌های ریز زیر کپسول‌ها --- */
.small-banner-text, .banner-note {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.note-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- لایه گرادیانت برای خوانایی متن (فقط دسکتاپ) --- */
.banner-overlay-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 60%);
}

/* --- تگ بنر --- */
.banner-tag {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 5;
    backdrop-filter: blur(4px);
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
}

/* --- جایگزین برای زمانی که تصویری آپلود نشده --- */
.banner-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Vazirmatn', sans-serif;
    color: #333;
    z-index: 0;
}

/* --- استایل بنر لیدربورد 728×90 --- */
.banner-leaderboard {
    width: 100%;
    max-width: 728px;
    height: auto;
    aspect-ratio: 728 / 90;
    background-size: cover;
    background-position: center;
    margin: 10px auto;
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.banner-leaderboard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- متن بنر لیدربورد --- */
.banner-content .banner-main-title {
    color: #003366;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.banner-content .banner-sub-text {
    color: #0055aa;
    font-size: 14px;
    margin: 5px 0 0 0;
}

/* --- استایل خدمات پایین بنر (اگر در banner_content.html استفاده شود) --- */
.banner-services {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f5ea8;
    color: #fff;
    padding: 14px 20px;
    border-radius: 0 0 16px 16px;
    margin-top: -5px;
    gap: 0;
    overflow: hidden;
}

.banner-service-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    min-height: 70px;
}

.banner-service-item i {
    font-size: 22px;
    color: #ffffff;
}

.banner-service-item span {
    display: block;
    line-height: 1.6;
}

.banner-service-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
}

/* --- استایل شماره تلفن --- */
.phone-wrapper {
    margin-top: 10px;
    margin-right: 55px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2ecc71;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #27ae60;
}

.phone-link:hover {
    background: #27ae60;
    transform: scale(1.05);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.phone-link i {
    font-size: 1.3rem;
    color: #ffffff !important;
}

.banner-subtext {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-top: 20px;
}

.banner-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* --- استایل انیمیشن عدد ۱ --- */
.orange-pulse-one {
    color: #ff8c00;
    font-weight: 800;
    font-size: 18px;
    display: inline-block;
    padding: 0 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========================================== */
/* ریسپانسیو برای دستگاه‌های مختلف */
/* ========================================== */

/* تبلت و دستگاه‌های با عرض متوسط */
@media (max-width: 992px) {
    .banner-slider-container {
        aspect-ratio: 1920 / 900 !important;
        height: auto !important;
        border-radius: 20px !important;
    }
    
    .banner-leaderboard {
        max-width: 100%;
        aspect-ratio: 728 / 90;
    }
}

/* ========================================== */
/* موبایل - تنظیم نمایش کامل تصویر بدون برش */
/* نسبت 4:5 کاملاً حفظ شده است */
/* ========================================== */
@media (max-width: 768px) {
    #banner-slider-wrapper {
        padding: 0 15px !important;
        margin-bottom: 20px !important;
    }

    .banner-slider-container { 
        aspect-ratio: 1080 / 1350 !important;
        height: auto !important;
        border-radius: 16px !important;
        background-color: transparent !important; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important; 
    }

    .banner-picture {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
    }

    .banner-img {
        object-fit: contain !important; 
        object-position: center center !important; 
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
    }
    
    .banner-overlay-layer {
        background: rgba(0,0,0,0.08) !important; 
    }

    .banner-tag {
        top: 10px !important;
        right: 10px !important;
        padding: 3px 8px !important;
        font-size: 9px !important;
    }

    .banner-overlay-content { 
        position: static;
        transform: none;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        z-index: 2;
    }

    .banner-overlay-content .service-capsule,
    .banner-overlay-content .banner-item {
        margin: 0 auto;
    }

    .banner-overlay-content .service-text,
    .banner-overlay-content .banner-text {
        white-space: normal !important;
        text-align: center;
    }
}

/* ========================================== */
/* موبایل خیلی کوچک (زیر 400px) */
/* ========================================== */
@media (max-width: 400px) {
    .banner-slider-container {
        aspect-ratio: 1080 / 1350 !important;
        height: auto !important;
    }
}

/* ========================================== */
/* استایل بخش متن صفحه اصلی */
/* ========================================== */
.home-text-sections {
    width: 100%;
    padding: 24px 16px;
    background: #f8fafc;
}

.home-text-sections-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-text-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.home-text-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.8;
    color: #0f172a;
}

.home-text-content {
    font-size: 15px;
    line-height: 2.1;
    color: #334155;
}

.home-text-meta {
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 768px) {
    .home-text-sections {
        padding: 18px 12px;
    }

    .home-text-sections-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-text-card {
        padding: 14px;
        border-radius: 12px;
    }

    .home-text-title {
        font-size: 18px;
        line-height: 1.7;
    }

    .home-text-content {
        font-size: 14px;
        line-height: 2;
    }

    .home-text-meta {
        font-size: 12px;
    }
}

/* ================= FOOTER STYLES ================= */
.sepehr-footer {
    background: #0f2334;
    color: #e2e8f0;
    padding: 45px 0 0 0;
    margin-top: 40px;
    border-top: 4px solid #16a34a;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.8fr 1.1fr 1.1fr;
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-heading i {
    color: #22c55e;
    font-size: 18px;
}

/* ستون خدمات */
.service-group {
    margin-bottom: 16px;
}

.service-group h4 {
    font-size: 14px;
    color: #93c5fd;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.service-group h4 i {
    font-size: 12px;
}

.service-group ul {
    list-style: none;
    padding-right: 20px;
    margin: 0;
}

.service-group ul li {
    font-size: 13px;
    line-height: 1.9;
    color: #cbd5e1;
    position: relative;
}

.service-group ul li::before {
    content: "•";
    color: #22c55e;
    font-weight: bold;
    position: absolute;
    right: -12px;
}

/* ستون مناطق و مدیریت */
.coverage-text {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.coverage-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.coverage-list li {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.coverage-list li i {
    color: #22c55e;
    font-size: 12px;
}

.management-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ffffff;
}

.management-box i {
    color: #38bdf8;
    font-size: 18px;
}

/* ستون شبکه اجتماعی و اینماد */
.social-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.enamad-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.enamad-title {
    display: block;
    font-size: 11px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 8px;
}

.enamad-badge {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enamad-badge img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.enamad-placeholder-text {
    font-size: 12px;
    color: #64748b;
    border: 2px dashed #cbd5e1;
    padding: 20px 10px;
    border-radius: 8px;
    width: 100%;
}

/* بخش کپی‌رایت پایین */
.footer-bottom {
    background: #081420;
    margin-top: 35px;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom strong {
    color: #cbd5e1;
}

/* ریسپانسو برای موبایل و تبلت */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .sepehr-footer {
        padding-top: 30px;
    }

    .footer-heading {
        font-size: 15px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

/* تنظیمات لوگوی هدر */
.logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    width: 220px;
    height: auto;
    max-height: 90px;
    display: block;
    object-fit: contain;
    /* جلوگیری از فشرده شدن تصویر */
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .logo img {
        width: 160px;
        max-height: 65px;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 10px;
    }
}
</style>
