        :root {
            --primary-green: #2ecc71; /* سبز شاپینو */
            --dark-green: #27ae60;
            --accent-yellow: #f1c40f; /* زرد لوگو */
            --bg-light: #f9fbf9;
            --text-dark: #2c3e50;
        }

        @font-face {
    font-family: 'Vazir';
    src: url('../../Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazir', sans-serif; }
        body { background-color: #f6f9f8; color: var(--text-dark); line-height: 1.7; overflow-x: hidden; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        
        /* استایل دکمه‌ها (الهام گرفته از سبک نرم و سه‌بعدی) */
        .btn { background: var(--primary-green); color: white; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3); transition: 0.3s; border: none; cursor: pointer; }
        .btn:hover { background: var(--dark-green); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4); }

        /* هدر */
        header { 
            background: transparent; padding: 25px 0; margin-bottom: 20px;
        }
        .nav-container { display: flex; justify-content: space-between; align-items: center; }
        .logo img { height: 50px; object-fit: contain; }
        .nav-links a { margin: 0 20px; text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
        
        .btn-outline {
            background: transparent; border: 2px solid var(--text-dark); color: var(--text-dark);
            padding: 10px 24px; border-radius: 50px; text-decoration: none; font-weight: bold;
            transition: 0.3s;
        }
        .btn-outline:hover { background: var(--text-dark); color: var(--white); }

        /* بخش اصلی (Hero) */
        .hero { display: flex; align-items: center; justify-content: space-between; padding: 80px 0 80px; gap: 40px; }
        .hero-content { flex: 1; }
        .hero-content h1 { font-size: 2.3rem; color: var(--primary-green); margin-bottom: 20px; line-height: 1.4;}
        .hero-content p { font-size: 1.1rem; color: #555; margin-bottom: 30px; }
        .hero-image { flex: 1; text-align: center; }
        .hero-image img { max-width: 100%; height: auto; animation: float 4s ease-in-out infinite; }
        
        @keyframes float { 
            0%, 100% { transform: translateY(0); } 
            50% { transform: translateY(-15px); } 
        }

        
        /* امکانات - کادرهای سه‌بعدی (Claymorphism) */
        .features { padding: 80px 0; text-align: center; }
        .features h2 { color: var(--text-dark); margin-bottom: 50px; font-size: 2.2rem; font-weight: 800; }
        .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
        .card { 
            background: var(--white); padding: 40px 25px; border-radius: 35px; 
            /* سایه نرم و سه‌بعدی */
            box-shadow: 0 20px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02), inset 0 -2px 0 rgba(0,0,0,0.01); 
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
        }
        .card:hover { transform: translateY(-15px); }
        .card-icon { 
            width: 80px; height: 80px; background: var(--bg-light); border-radius: 25px; 
            margin: 0 auto 25px; display: flex; align-items: center; justify-content: center;
            box-shadow: inset 0 5px 10px rgba(0,0,0,0.02);
        }
        .card h3 { color: var(--text-dark); margin-bottom: 15px; font-size: 1.3rem; font-weight: 800; }
        .card p { color: var(--text-gray); font-size: 0.95rem; }

        
        /* کادر دور آیکون داخل کارت‌ها */
.card-icon {
    /* پس‌زمینه و سایه را کاملا حذف می‌کنیم تا کادری دور عکس نباشد */
    background: transparent; 
    box-shadow: none;
    border: none;
    
    /* برای وسط‌چین کردن عکس */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* فاصله از عنوان پایین */
    height: 100px; /* ارتفاع ثابت برای یکدست شدن کارت‌ها */
}

.card-icon img {
    width: 120px; /* سایز عکس‌ها را اینجا تنظیم کن */
    height: auto;
    object-fit: contain;
    /* این سایه ملایم به خود عکس‌ها عمق می‌دهد (اختیاری) */
    /* filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));  */
}

        .card h3 { color: var(--text-dark); margin-bottom: 15px; font-size: 1.3rem; font-weight: 800; }
        .card p { color: var(--text-gray); font-size: 0.95rem; }

        /* بخش ویدیو (محل قرارگیری) */
/* بخش ویدیو (محل قرارگیری) */
.video-section { 
    padding: 60px 0; 
    text-align: center; 
    background: #ffffff; 
    border-radius: 40px; 
    
    /* تغییرات مهم برای وسط‌چین شدن */
    width: 90%; /* عرض کادر نسبت به صفحه */
    max-width: 1200px; /* حداکثر عرض در مانیتورهای بزرگ */
    margin: 40px auto; /* بالا و پایین 40 پیکسل، چپ و راست اتوماتیک (وسط‌چین) */
    
    box-shadow: 0 20px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02), inset 0 -2px 0 rgba(0,0,0,0.01);
}


.video-placeholder { 
    background: #f4f8f6; /* رنگ پس‌زمینه مشابه آیکون‌ها */
    border-radius: 20px; 
    padding: 80px 20px; 
    margin: 20px auto; 
    max-width: 800px; 
    color: #777; 
    border: 1px solid #fff; /* حذف حاشیه نقطه‌چین و جایگزینی با حاشیه سفید */
    /* حالت فرورفته (Inset) ملایم و سه‌بعدی */
    box-shadow: 
        inset 5px 5px 15px rgba(0,0,0,0.04), 
        inset -5px -5px 15px rgba(255, 255, 255, 1);
}

        /* فوتر */
/* فوتر */
footer { 
    background: var(--primary-green); 
    color: var(--white); 
    padding: 60px 0 20px; 
    margin-top: 100px; 
    border-radius: 60px 60px 0 0; 
    
    /* سایه بیرونی نرم رو به بالا + سایه داخلی سفید برای ایجاد برجستگی لبه‌ها */
    box-shadow: 
        0 -15px 40px rgba(0,0,0,0.05), 
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

        .footer-main-title {
            text-align: center;
            font-size: 4rem;
            font-weight: 900;
            margin-bottom: 50px;
            letter-spacing: 2px;
            color: var(--white);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
            gap: 30px;
            margin-bottom: 50px;
        }
        .footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: bold; color: var(--white); }
        .footer-col p { opacity: 0.85; font-size: 0.85rem; line-height: 1.8; }
        .footer-col ul { list-style: none; padding: 0; margin: 0; }
        .footer-col ul li { margin-bottom: 12px; }
        .footer-col ul a { color: var(--white); text-decoration: none; opacity: 0.85; transition: 0.3s; font-size: 0.9rem;}
        .footer-col ul a:hover { opacity: 1; padding-right: 5px; }
        
        .contact-info li { display: flex; align-items: center; gap: 8px; opacity: 0.85; font-size: 0.9rem;}
        .social-icons { display: flex; gap: 12px; margin-top: 25px; }
        .social-icons a { 
            width: 32px; height: 32px; 
            background: var(--white); 
            border-radius: 50%; 
            display: flex; align-items: center; justify-content: center;
            color: var(--primary-green); 
            text-decoration: none; 
            transition: 0.3s;
            font-weight: bold;
            font-size: 0.8rem;
        }
        .social-icons a:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

        .footer-bottom { 
            text-align: center; 
            padding-top: 25px; 
            border-top: 1px solid rgba(255,255,255,0.2); 
            opacity: 0.7; 
            font-size: 0.8rem; 
        }

        @media (max-width: 992px) {
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .footer-main-title { font-size: 3rem; }
        }
        @media (max-width: 600px) {
            .footer-grid { grid-template-columns: 1fr; text-align: center; }
            .contact-info li { justify-content: center; }
            .social-icons { justify-content: center; }
        }

        @media (max-width: 768px) {
            .hero { flex-direction: column; text-align: center; }
            .nav-links { display: none; } /* برای سادگی در موبایل مخفی شده، بعدا میتوانید منوی همبرگری اضافه کنید */
        }



/* ================================ */
/* استایل‌های اختصاصی صفحات وبلاگ    */
/* ================================ */
/* تنظیمات گرید: ۴ ستون در دسکتاپ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding: 20px 0;
}

/* بدنه اصلی کارت مقاله */
.blog-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* سایه نرم و کمرنگ کارت */
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative; /* ضروری برای کلیک‌پذیر شدن کل کارت */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* افکت هاور برای جذابیت بیشتر وقتی موس روی کارت می‌رود */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.blog-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 15px 5px 10px 5px;
    line-height: 1.4;
}

/* مخفی کردن توضیحات */
.blog-card p {
    display: none; 
}

.blog-card .read-more {
    margin-top: auto;
    margin-bottom: 5px;
    margin-right: 5px;
}

/* استایل متن لینک و حذف کامل سایه و کادر */
.blog-card .read-more a {
    color: #2e7d32;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important; /* حذف سایه سبز */
    padding: 0 !important;
}

/* ترفند جادویی برای کلیک‌پذیر شدن کل کارت */
.blog-card .read-more a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* استایل بخش صفحه‌بندی در پایین مقالات */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: 0.3s;
}

.pagination a:hover, .pagination a.active {
    background-color: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

/* تنظیمات موبایل: ۲ ستون در موبایل */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .blog-card h3 {
        font-size: 14px; /* کوچکتر شدن فونت در موبایل */
    }
}



/* صفحه تکی مقاله (Single Post) */
.single-post-container {
    max-width: 1000px;
    margin: 40px auto 80px;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.05), -8px -8px 16px rgba(255,255,255,0.8);
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-header h1 {
    color: var(--dark-green);
    margin-bottom: 15px;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.post-cover {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
}

.post-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

.post-content h2 {
    color: var(--primary-green);
    margin: 30px 0 15px;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .single-post-container {
        padding: 20px;
        margin: 20px 15px;
    }
}

@media (max-width: 768px) {
    /* نمایش ۲ ستون (کارت) در هر ردیف */
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    
    .card { 
        padding: 20px 15px; 
        border-radius: 20px; 
    }
    
    .card-icon { 
        height: 60px; 
        margin-bottom: 15px; 
    }
    .card-icon img { 
        width: 50px !important; /* سایز مناسب‌تر برای آیکون‌ها */
    }
    
    .card h3 { 
        font-size: 1rem; 
        margin-bottom: 10px; 
    }
    .card p { 
        font-size: 0.85rem; 
        line-height: 1.6; 
    }
}


/* --- استایل پیش‌فرض (دسکتاپ) --- */
.hamburger-menu {
    display: none; /* در کامپیوتر مخفی است */
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 100;
}

/* خطوط منوی ساندویچی */
.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #2ecc71; /* 🟢 اینجا کد رنگ سبز قالب خود را جایگزین کنید */
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- استایل حالت موبایل --- */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px 0;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 15px;
    }

    /* استایل منوی کشویی در حالت بسته */
    .nav-links {
        display: none; 
        position: absolute;
        top: 60px; /* اگر منو روی هدر افتاد، این عدد را بیشتر کنید */
        right: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 99;
    }

    /* این کلاس با کلیک اضافه می‌شود و منو را باز می‌کند */
    .nav-links.active {
        display: flex; 
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
}

.top-bg-wrapper {
    background-image: url('../images/back.webp');
    background-size: 100% auto;
    background-position: top center; /* عکس از بالا تراز می‌شود تا بریده نشود */
    background-repeat: no-repeat;
    width: 100%;
    min-height: 700px;
}
.top-bg-wrapper {
    background-size: contain; 
}
@media (max-width: 768px) {
    .top-bg-wrapper {
        background-image: none;
    }
}




