﻿/* =========================================
   استایل‌های ایزوله و قدرتمند برای وبلاگ دوم
   ========================================= */

/* ۱. حذف کامل هرگونه انیمیشن و تغییر Opacity از صفحه وبلاگ */
/* این خطوط تضمین می‌کنند که هیچ استایل عمومی‌ای (مثل intro یا loaded) روی این صفحه اثر نمی‌گذارد */
.blog-page,
.blog-page *,
.blog-page .blog-header,
.blog-page .blog-content-container,
.blog-page .container,
.blog-page .header-content {
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
}

    /* ۲. استایل هدر وبلاگ */
    .blog-page .blog-header {
        /* مسیر عکس: اگر فایل bl.jpg است، همین بماند. اگر bll.jpg است، اصلاح کنید */
        background: linear-gradient(rgba(15, 48, 87, 0.8), rgba(15, 48, 87, 0.9)), url('/images/bl.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #fff;
        border-radius: 0 0 30px 30px;
        margin: 0 0 40px 0;
        position: relative;
        width: 100%;
        /* جلوگیری از هرگونه پرش یا تغییر سایز */
        min-height: 400px;
        max-height: 400px;
    }

        /* لایه تاریک روی عکس (برای خوانایی متن) */
        .blog-page .blog-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: inherit; /* ارث‌بری از بک‌گراند */
            z-index: 1;
        }

    /* محتوای متنی روی هدر */
    .blog-page .header-content {
        max-width: 800px;
        padding: 0 20px;
        position: relative;
        z-index: 2; /* بالاتر از لایه تاریک */
    }

    .blog-page .blog-title {
        font-size: 2.5rem;
        font-weight: 800;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .blog-page .blog-meta {
        font-size: 14px;
        opacity: 0.9;
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

        .blog-page .blog-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .blog-page .blog-meta i {
            color: #FF8126;
        }

    /* ۳. دکمه بازگشت */
    .blog-page .back-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 15px;
        background: rgba(0,0,0,0.2);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 30px;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

        .blog-page .back-btn:hover {
            background: #FF8126;
            border-color: #FF8126;
            color: #fff;
            transform: translateY(-2px);
        }

    /* ۴. محتوای بلاگ */
    .blog-page .blog-content-container {
        max-width: 900px;
        margin: 0 auto;
        background: #E0E0E0;
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        margin-bottom: 50px;
        color: #333;
        line-height: 1.8;
    }

    /* ۵. لیست بررسی */
    .blog-page .checklist-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ccc;
    }

        .blog-page .checklist-item:last-child {
            border-bottom: none;
        }

    .blog-page .check-icon {
        background: #FF8126;
        color: #fff;
        min-width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 20px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .blog-page .check-text h3 {
        color: #0F3057;
        margin-bottom: 8px;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .blog-page .check-text p {
        color: #555;
        font-size: 15px;
        margin: 0;
    }

/* واکنش‌گرا */
@media (max-width: 768px) {
    .blog-page .blog-header {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        border-radius: 0 0 20px 20px;
    }

    .blog-page .blog-title {
        font-size: 1.8rem;
    }

    .blog-page .blog-content-container {
        padding: 20px;
        margin: 0 15px 30px 15px;
    }

    .blog-page .checklist-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-page .check-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .blog-page .back-btn {
        top: 15px;
        right: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }
}
