/*
===========================================
فایل CSS جامع برای نوشته‌های سایت خط و قلم
آدرس: https://khatoghalam.com/all/css/posts.css
رنگ اصلی: #758afc
رنگ دوم: #162760
===========================================
*/

/* ==================== تنظیمات پایه ==================== */

* {
    box-sizing: border-box;
}

/* کلاس‌های مشترک بین همه نوشته‌ها */
.khat-article,
.emza-article,
.emza-order-article {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.9;
    color: #2c3e50;
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== بخش‌های هیرو ==================== */

.khat-hero,
.emza-hero,
.emza-order-hero {
    position: relative;
    background: linear-gradient(135deg, #162760 0%, #758afc 50%, #a29bfe 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(117, 138, 252, 0.35);
    overflow: hidden;
}

.khat-hero::before,
.emza-hero::before,
.emza-order-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 50 Q 30 20, 50 50 T 90 50" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.khat-hero-content,
.emza-hero-content {
    position: relative;
    z-index: 1;
}

.khat-hero h1,
.khat-hero h2,
.emza-hero h1,
.emza-order-hero h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.khat-hero h3 {
    font-size: 20px;
    margin-top: 30px;
}

.khat-hero ul,
.emza-hero ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.khat-hero li,
.emza-hero li {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    margin: 10px auto;
    border-radius: 10px;
    max-width: 500px;
    backdrop-filter: blur(10px);
    font-size: 16px;
}

.emza-hero-subtitle,
.emza-order-hero-text {
    font-size: 18px;
    line-height: 1.9;
    max-width: 900px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* ==================== باکس‌های ویژگی و معرفی ==================== */

.khat-features,
.emza-intro,
.emza-order-intro {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-right: 5px solid #758afc;
    padding: 35px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(117, 138, 252, 0.15);
}

.khat-features h3 {
    color: #162760;
    font-size: 22px;
    margin-bottom: 20px;
}

.khat-features ol,
.khat-features ul {
    list-style-position: inside;
}

.khat-features li,
.emza-intro p,
.emza-order-intro p {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    line-height: 2;
}

.khat-features li:last-child {
    border-bottom: none;
}

.emza-intro strong,
.emza-order-intro strong {
    color: #758afc;
    font-weight: bold;
}

.emza-intro a,
.emza-order-intro a {
    color: #162760;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #758afc;
    transition: all 0.3s ease;
}

.emza-intro a:hover,
.emza-order-intro a:hover {
    color: #758afc;
    border-bottom-color: #162760;
}

/* ==================== بخش‌ها و کارت‌ها ==================== */

.khat-section,
.emza-section,
.emza-order-step,
.emza-order-checklist {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(117, 138, 252, 0.12);
    border-top: 4px solid #758afc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.khat-section:hover,
.emza-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(117, 138, 252, 0.2);
}

/* هدر بخش‌ها */
.khat-section-title,
.emza-section-title,
.emza-order-step-title {
    color: #162760;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.khat-section-title,
.emza-section-title {
    padding-bottom: 15px;
    border-bottom: 3px solid #758afc;
    display: inline-block;
}

.emza-section-header,
.emza-order-step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.emza-section-icon,
.emza-order-step-number {
    font-size: 40px;
    background: linear-gradient(135deg, #758afc 0%, #162760 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emza-order-step-number {
    width: 50px;
    height: 50px;
    background: #162760;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    -webkit-text-fill-color: white;
}

/* ==================== توضیحات و باکس‌های اطلاعاتی ==================== */

.emza-section-description,
.khat-schedule {
    background: linear-gradient(135deg, #e8f0ff 0%, #f0e8ff 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-right: 4px solid #758afc;
    font-size: 17px;
    line-height: 1.9;
}

.khat-schedule {
    background: #fff9e6;
    border-right-color: #ffc107;
}

.khat-schedule strong {
    color: #162760;
    display: block;
    margin-bottom: 8px;
}

/* ==================== لیست‌های ترم و ویژگی ==================== */

.khat-terms,
.emza-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.khat-term-item,
.emza-feature {
    background: linear-gradient(135deg, #758afc 0%, #162760 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(117, 138, 252, 0.3);
    transition: transform 0.3s ease;
}

.khat-term-item:hover,
.emza-feature:hover {
    transform: translateY(-5px);
}

.emza-feature-icon {
    font-size: 35px;
    margin-bottom: 12px;
    display: block;
}

.emza-feature-text {
    font-size: 16px;
    line-height: 1.6;
}

/* ==================== بج‌ها و برچسب‌ها ==================== */

.emza-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #758afc 0%, #162760 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    margin: 20px 0;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(117, 138, 252, 0.4);
}

/* ==================== باکس‌های هشدار و توجه ==================== */

.khat-price-notice,
.emza-price-notice,
.emza-highlight-box,
.emza-order-important-note {
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
    font-weight: bold;
}

.khat-price-notice,
.emza-price-notice {
    background: #ffe6e6;
    border: 2px solid #ff6b6b;
    color: #c92a2a;
}

.emza-highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6e6 100%);
    border: 3px solid #758afc;
    color: #162760;
}

.emza-highlight-box p {
    margin: 0;
    font-size: 19px;
}

.emza-order-important-note {
    background: #fff9e6;
    border: 2px solid #ffc107;
    text-align: right;
}

.emza-order-important-note strong {
    color: #ff6b6b;
    font-size: 18px;
}

/* ==================== گالری تصاویر ==================== */

.emza-gallery,
.emza-sample-image,
.emza-order-banner,
.khat-logo {
    margin: 30px auto;
    text-align: center;
}

/* تصویر شاخص بالای مطلب - سایز کنترل شده */
.emza-sample-image img {
    width: 100%;
    max-width: 500px; /* تصویر نمونه امضا */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(117, 138, 252, 0.4);
    border: 5px solid white;
}

.emza-order-banner img,
.khat-logo img {
    width: 100%;
    max-width: 600px; /* تصاویر عمومی */
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(117, 138, 252, 0.2);
    border-radius: 15px;
}

/* بنرهای تبلیغاتی */
.emza-cta-banner img {
    max-width: 700px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(117, 138, 252, 0.2);
    margin: 0 auto;
    display: block;
}

/* تصاویر گالری نمونه کارها */
.emza-gallery-item {
    margin: 35px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(117, 138, 252, 0.2);
    transition: all 0.3s ease;
    border: 3px solid #f0f0f0;
}

.emza-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(117, 138, 252, 0.3);
    border-color: #758afc;
}

.emza-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* لینک تصاویر نمونه */
.emza-order-sample-link img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(117, 138, 252, 0.12);
    transition: transform 0.3s ease;
}

.emza-order-sample-link img:hover {
    transform: translateY(-5px);
}

/* تصاویر عمومی داخل figure */
figure.image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
}

/* Responsive برای موبایل */
@media (max-width: 768px) {
    .emza-sample-image img,
    .emza-order-banner img,
    .khat-logo img,
    .emza-cta-banner img {
        max-width: 100%;
        padding: 0 15px;
    }
}
/* ==================== بخش‌های ویژه ==================== */

.emza-art-section {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6f7 50%, #e6f7ff 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(117, 138, 252, 0.2);
}

.emza-art-section .emza-section-description {
    background: rgba(255, 255, 255, 0.9);
}

.emza-online-value {
    background: #e8f0ff;
    border-right: 4px solid #162760;
    color: #162760;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

/* ==================== لینک‌های سریع ==================== */

.emza-quick-links,
.emza-order-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.emza-quick-link,
.emza-order-link-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(117, 138, 252, 0.15);
    border: 2px solid transparent;
}

.emza-quick-link:hover,
.emza-order-link-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(117, 138, 252, 0.25);
    border-color: #758afc;
}

.emza-quick-link a,
.emza-order-link-item a {
    text-decoration: none;
    color: #162760;
    font-weight: bold;
    font-size: 18px;
    display: block;
}

.emza-quick-link-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

/* ==================== بخش اعتماد و آمار ==================== */

.emza-order-trust {
    background: linear-gradient(135deg, #e8f0ff 0%, #f0e8ff 100%);
    padding: 35px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
    border: 2px solid #758afc;
}

.emza-order-trust h3 {
    color: #162760;
    font-size: 26px;
    margin-bottom: 15px;
}

.emza-order-trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.emza-order-trust-stat {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(117, 138, 252, 0.15);
}

.emza-order-trust-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #162760;
    display: block;
    margin-bottom: 8px;
}

.emza-order-trust-stat-label {
    font-size: 15px;
    color: #6c757d;
}

/* ==================== چک‌لیست ==================== */

.emza-order-checklist h3 {
    color: #162760;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.emza-order-checklist ul,
.emza-order-step-content ul {
    list-style: none;
    padding: 0;
}

.emza-order-checklist li {
    padding: 15px 0;
    padding-right: 40px;
    position: relative;
    font-size: 16px;
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}

.emza-order-checklist li:last-child {
    border-bottom: none;
}

.emza-order-checklist li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 15px;
    width: 28px;
    height: 28px;
    background: #162760;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.emza-order-step-content {
    padding-right: 70px;
}

.emza-order-step-content li {
    padding: 10px 0;
    padding-right: 25px;
    position: relative;
    line-height: 1.8;
}

.emza-order-step-content li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #758afc;
    font-size: 20px;
    font-weight: bold;
}

/* ==================== تعرفه و قیمت‌گذاری ==================== */

.emza-order-pricing {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6e6 100%);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
    border: 3px solid #ff9900;
}

.emza-order-pricing h3 {
    color: #162760;
    font-size: 24px;
    margin-bottom: 20px;
}

/* ==================== دکمه‌ها و CTA ها ==================== */

.khat-cta,
.emza-cta-final,
.emza-order-contact {
    background: linear-gradient(135deg, #162760 0%, #758afc 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 15px 40px rgba(22, 39, 96, 0.4);
}

.khat-cta h3,
.emza-cta-final h2,
.emza-order-contact h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.khat-cta a,
.emza-cta-button,
.emza-order-cta-button {
    display: inline-block;
    background: white;
    color: #162760;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    margin: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.khat-cta a:hover,
.emza-cta-button:hover,
.emza-order-cta-button:hover {
    background: #758afc;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(117, 138, 252, 0.5);
}

.emza-order-cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.emza-order-cta-button.secondary:hover {
    background: white;
    color: #162760;
}

.emza-order-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.emza-order-contact-number {
    font-size: 42px;
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: 2px;
    direction: ltr;
}

/* ==================== آدرس و اطلاعات تماس ==================== */

.khat-address {
    background: #e8f0ff;
    border: 2px dashed #758afc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #162760;
    margin-top: 30px;
}

/* ==================== بخش شبکه‌های اجتماعی ==================== */

.emza-social-section {
    background: linear-gradient(135deg, #758afc 0%, #162760 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 50px 0;
    text-align: center;
    color: white;
}

.emza-social-section h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

/* ==================== نظرات و تستیمونیال ==================== */

.emza-order-testimonials {
    margin: 50px 0;
}

.emza-order-testimonials h3 {
    color: #162760;
    font-size: 28px;
    text-align: center;
    margin-bottom: 35px;
}

.emza-order-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.emza-order-testimonial-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(117, 138, 252, 0.15);
    transition: transform 0.3s ease;
}

.emza-order-testimonial-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(117, 138, 252, 0.25);
}

.emza-order-testimonial-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
    .khat-hero h1,
    .khat-hero h2,
    .emza-hero h1,
    .emza-order-hero h1 {
        font-size: 24px;
    }

    .khat-hero-subtitle,
    .emza-hero-subtitle,
    .emza-order-hero-text {
        font-size: 16px;
        padding: 20px;
    }

    .khat-section,
    .emza-section,
    .emza-order-step {
        padding: 25px;
    }

    .khat-section-title,
    .emza-section-title {
        font-size: 20px;
    }

    .emza-quick-links,
    .khat-terms,
    .emza-features,
    .emza-order-links {
        grid-template-columns: 1fr;
    }

    .emza-order-step-content {
        padding-right: 0;
    }

    .emza-order-step-header {
        flex-direction: column;
        text-align: center;
    }

    .emza-order-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .emza-order-cta-buttons {
        flex-direction: column;
    }

    .emza-order-contact-number {
        font-size: 32px;
    }

    .khat-cta h3,
    .emza-cta-final h2,
    .emza-order-contact h3 {
        font-size: 24px;
    }

    .khat-cta a,
    .emza-cta-button,
    .emza-order-cta-button {
        font-size: 16px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .khat-hero,
    .emza-hero,
    .emza-order-hero {
        padding: 30px 20px;
    }

    .khat-section,
    .emza-section,
    .emza-order-step {
        padding: 20px;
    }

    .emza-order-trust-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================== پایان فایل CSS ==================== */