/* Sarinegar SEO Article Widget Styles */
.sn-seo-article {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
    direction: rtl;
    color: #475569;
    line-height: 1.8;
}

/* Hero */
.sn-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sn-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.85), rgba(30, 64, 175, 0.8), rgba(30, 58, 138, 0.9));
    z-index: 1;
}

.sn-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.sn-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 20px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.sn-hero-title {
    color: white;
    margin: 0 0 20px;
}

.sn-hero-title .sn-line1 {
    display: block;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
}

.sn-hero-title .sn-line2 {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #f59e0b;
}

.sn-hero-title .sn-line3 {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
}

.sn-hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Article Body */
.sn-article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Sections */
.sn-section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

/* Headings */
.sn-heading {
    color: #1e293b;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1e40af;
    display: inline-block;
}

/* Text */
.sn-text {
    color: #475569;
    line-height: 2;
    font-size: 16px;
}

.sn-text p {
    margin-bottom: 15px;
}

.sn-text strong {
    color: #1e40af;
}

/* Highlight Box */
.sn-highlight {
    background: linear-gradient(to left, rgba(30,64,175,0.05), rgba(13,148,136,0.05));
    border-right: 4px solid #1e40af;
    padding: 20px;
    margin: 20px 0;
    color: #334155;
    line-height: 2;
}

/* Box */
.sn-box {
    border-radius: 12px;
}

/* Benefits Grid */
.sn-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.sn-benefit-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 24px;
    transition: all 0.3s ease;
}

.sn-benefit-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sn-benefit-card h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

/* SEO Type Blocks */
.sn-type-block {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 16px;
}

.sn-type-onpage {
    border-right: 4px solid #1e40af;
}

.sn-type-offpage {
    border-right: 4px solid #0d9488;
}

.sn-type-technical {
    border-right: 4px solid #8b5cf6;
}

.sn-type-block h3 {
    font-size: 20px;
    margin: 0 0 12px;
}

/* Checklist */
.sn-checklist {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sn-checklist li {
    padding: 6px 10px;
    font-size: 14px;
    color: #475569;
}

/* Two Column Layout */
.sn-two-col {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.sn-two-col.sn-reverse {
    flex-direction: row-reverse;
}

.sn-col-img {
    flex: 0 0 45%;
}

.sn-col-text {
    flex: 1;
}

.sn-image {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Keyword Tags */
.sn-keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.sn-tag {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #fde68a;
}

/* Warnings */
.sn-warnings {
    margin: 15px 0;
}

.sn-warning-item {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Solutions */
.sn-solutions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.sn-solution-item {
    padding: 6px 10px;
    font-size: 13px;
    color: #166534;
}

/* Local Examples */
.sn-local-examples {
    margin-top: 15px;
}

.sn-local-item {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-weight: 500;
}

/* FAQ */
.sn-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sn-faq-item {
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
}

.sn-faq-item.active {
    border-color: #1e40af;
    background: #eff6ff;
}

.sn-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
}

.sn-faq-arrow {
    transition: transform 0.3s;
    font-size: 12px;
    color: #94a3b8;
}

.sn-faq-item.active .sn-faq-arrow {
    transform: rotate(180deg);
    color: #1e40af;
}

.sn-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.sn-faq-item.active .sn-faq-answer {
    padding: 0 20px 16px;
    max-height: 200px;
}

/* Conclusion */
.sn-conclusion {
    background: linear-gradient(135deg, rgba(30,64,175,0.05), white, rgba(13,148,136,0.05));
    border: 1px solid #bfdbfe;
    padding: 30px;
}

.sn-conclusion-highlight {
    background: linear-gradient(to left, #1e40af, #0d9488);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin-top: 20px;
}

/* CTA */
.sn-cta {
    background: linear-gradient(135deg, #1e40af, #1e3a8a, #1e40af);
    padding: 50px 30px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.sn-cta-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 15px;
    color: white;
}

.sn-cta-desc {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

.sn-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.sn-btn-primary {
    background: white;
    color: #1e40af;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.sn-btn-primary:hover {
    background: #f59e0b;
    color: white;
}

.sn-btn-secondary {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.sn-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sn-hero-title .sn-line1 { font-size: 28px; }
    .sn-hero-title .sn-line2 { font-size: 24px; }
    .sn-hero-title .sn-line3 { font-size: 18px; }
    .sn-hero { padding: 50px 15px; }
    .sn-heading { font-size: 22px; }
    .sn-benefits-grid { grid-template-columns: 1fr; }
    .sn-two-col, .sn-two-col.sn-reverse { flex-direction: column; }
    .sn-col-img { flex: none; width: 100%; }
    .sn-checklist { grid-template-columns: 1fr; }
    .sn-solutions { grid-template-columns: 1fr; }
    .sn-cta { padding: 30px 20px; }
    .sn-cta-title { font-size: 22px; }
}
