/* ============================================
   استایل مخصوص وبلاگ - خدمات آلفا شیراز
   این فایل بعد از style.css لود می‌شود
   ============================================ */

/* ============ کارت‌های مقاله در صفحه وبلاگ ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 30px;
}
.blog-card {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,0.07);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.03);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 32px -10px rgba(0,0,0,0.18);
}
.blog-card .cover {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #0f5c6b, #0a3e5a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}
.blog-card .body {
    padding: 22px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card .cat {
    display: inline-block;
    background: #e8f4f8;
    color: #0b5e7e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    align-self: flex-start;
}
.blog-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #155f74;
    margin-bottom: 10px;
    line-height: 1.6;
}
.blog-card p {
    font-size: 0.92rem;
    color: #5d6f7e;
    line-height: 1.85;
    flex: 1;
    margin-bottom: 16px;
}
.blog-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #95a8b8;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}
.blog-card .meta .read-more {
    color: #0b5e7e;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============ صفحه داخلی مقاله ============ */
.article-header {
    text-align: center;
    padding: 30px 15px 22px;
    background: linear-gradient(120deg, #f9fbfd, #ffffff);
    border-radius: 40px;
    margin-bottom: 25px;
}
.article-header .cat-badge {
    display: inline-block;
    background: #f4a261;
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.article-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f5c6b;
    line-height: 1.6;
    margin-bottom: 14px;
}
.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 0.85rem;
    color: #5d6f7e;
}
.article-header .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============ متن مقاله ============ */
.article-content {
    background: #fff;
    border-radius: 30px;
    padding: 34px 38px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    font-size: 1.02rem;
    line-height: 2.1;
    color: #2a3f52;
}
.article-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f5c6b;
    margin: 32px 0 16px;
    padding-right: 14px;
    border-right: 5px solid #f4a261;
    line-height: 1.6;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #155f74;
    margin: 24px 0 12px;
    line-height: 1.7;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
    margin: 14px 24px 20px 0;
    padding-right: 12px;
}
.article-content li {
    margin-bottom: 10px;
    line-height: 2;
}
.article-content strong { color: #0f5c6b; }

/* جعبه نکته */
.tip-box {
    background: #eaf6fb;
    border-right: 5px solid #0b5e7e;
    border-radius: 18px;
    padding: 18px 22px;
    margin: 22px 0;
    font-size: 0.97rem;
    line-height: 2;
}
.tip-box strong { color: #0b5e7e; }

.warning-box {
    background: #fff4e8;
    border-right: 5px solid #f4a261;
    border-radius: 18px;
    padding: 18px 22px;
    margin: 22px 0;
    font-size: 0.97rem;
    line-height: 2;
}
.warning-box strong { color: #d97f1f; }

/* CTA در وسط مقاله */
.article-cta {
    background: linear-gradient(115deg, #0b5e7e, #0a485f);
    color: white;
    border-radius: 24px;
    padding: 26px 28px;
    text-align: center;
    margin: 30px 0;
}
.article-cta h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}
.article-cta p {
    font-size: 0.95rem;
    margin-bottom: 18px;
    opacity: 0.95;
}
.article-cta .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.article-cta .cta-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.2s;
    background: white;
    color: #0b5e7e;
}
.article-cta .cta-buttons a.wa {
    background: #25D366;
    color: white;
}
.article-cta .cta-buttons a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ============ مقالات مرتبط ============ */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.related-article {
    display: block;
    background: linear-gradient(135deg, #ffffff, #f1f7fb);
    border: 2px solid #dbe7ee;
    border-radius: 20px;
    padding: 20px 18px;
    text-decoration: none;
    color: #155f74;
    transition: 0.25s;
}
.related-article:hover {
    border-color: #0b5e7e;
    background: #0b5e7e;
    color: white;
    transform: translateY(-3px);
}
.related-article h4 {
    font-size: 1.02rem;
    margin-bottom: 8px;
    line-height: 1.6;
}
.related-article p {
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.7;
}

/* ============ ریسپانسیو ============ */
@media (max-width: 680px) {
    .article-header h1 { font-size: 1.35rem; }
    .article-content { padding: 22px 18px; font-size: 0.96rem; }
    .article-content h2 { font-size: 1.18rem; }
    .article-content h3 { font-size: 1.05rem; }
    .article-cta { padding: 22px 18px; }
    .article-cta h3 { font-size: 1.08rem; }
    .blog-card h3 { font-size: 1.05rem; }
}
