/*
Theme Name: Hello Elementor Child
Description: اختصاصی 
Template: hello-elementor
Version: 1.2.0
*/

/* ۱. فراخوانی فونت استاندارد و زیبا */
@import url('://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* ۲. تنظیمات پایه و ریست کردن فاصله‌های اضافه */
* {
    box-sizing: border-box;
    font-family: 'Vazir', Tahoma, sans-serif !important;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    background-color: #f0f4f9; /* رنگ پس‌زمینه مشابه JSON */
    line-height: 1.6;
}

.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ۳. بخش هیرو (Hero Section) */
.hero-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1.5;
}

.hero-text h1 {
    font-size: 22px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 400;
}

.main-title {
    font-size: 48px;
    font-weight: 900;
    color: #333;
    margin-bottom: 30px;
}

.purple-text {
    color: #722171; /* رنگ بنفش JSON */
    border-bottom: 6px solid #e91e63; /* خط صورتی زیر متن */
    padding-bottom: 5px;
}

.description-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 25px;
    border-right: 10px solid #722171;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    font-size: 19px;
    color: #444;
    line-height: 2;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-pink {
    background-color: #e91e63;
    color: #ffffff !important;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
}

.btn-outline {
    border: 2px solid #722171;
    color: #722171 !important;
    padding: 13px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.hero-image img {
    width: 380px;
    border-radius: 40px;
    box-shadow: 20px 20px 0 #722171;
    display: block;
}

/* ۴. بخش خدمات (Services Grid) */
.hp-services-section { 
    background: #f8fafc; 
    padding: 80px 0; 
    margin: 50px 0; 
    border-radius: 60px; 
}
.service-card { 
    transition: all 0.3s ease; 
}
.service-card:hover { 
    transform: translateY(-10px); 
    border-top-color: #1e3a8a; 
}

/* ۵. ریسپانسیو (موبایل و تبلت) */
@media (max-width: 991px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 0;
    }
    .main-title { font-size: 32px; }
    .hero-btns { justify-content: center; }
    .description-box { border-right: none; border-bottom: 10px solid #722171; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-image img { width: 300px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
}
.hp-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 50px;
        direction: rtl; /* حفظ جهت راست به چپ */
    }

    /* استایل دکمه‌های قبلی و بعدی برای شباهت به سایت الگو */
    .hp-pagination .prev, 
    .hp-pagination .next {
        width: auto !important;
        padding: 0 20px !important;
        border-radius: 30px !important;
        background: #f1f5f9 !important;
        font-size: 14px;
        color: #4f46e5 !important;
    }

    .hp-pagination .page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #fff;
        color: #4f46e5;
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        text-decoration: none !important;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .hp-pagination .page-numbers.current {
        background: #4f46e5;
        color: #fff !important;
        border-color: #4f46e5;
        box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    }
/* استایل سوالات */
    .faq-container { max-width: 1000px; margin: 40px auto; }
    
    .faq-item { 
        border: 1px solid #ececec; 
        border-radius: 8px; 
        margin-bottom: 10px; 
        background: #fff; 
        transition: all 0.3s ease;
    }

    .faq-item details summary { 
        padding: 18px 25px; 
        font-weight: 700; 
        color: #2c3e50; 
        cursor: pointer; 
        list-style: none; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        transition: all 0.3s ease;
        border-radius: 8px;
    }

    /* فلش سمت چپ سوال */
    .faq-item details summary::after { 
        content: '\2304'; /* آیکون فلش */
        font-size: 28px; 
        color: #1e3a8a; 
        transition: 0.3s;
        line-height: 0;
    }

    /* استایل زمان باز شدن (مشابه سایت نمونه) */
    .faq-item details[open] summary { 
        background: #1e3a8a; 
        color: #ffffff; 
        border-radius: 8px 8px 0 0;
    }

    .faq-item details[open] summary::after { 
        color: #ffffff;
        transform: rotate(180deg) translateY(5px);
    }

    .faq-content { 
        padding: 20px 25px; 
        line-height: 1.9; 
        color: #555; 
        background: #ffffff; 
        border-top: 1px solid #f1f1f1;
        font-size: 15px;
        border-radius: 0 0 8px 8px;
    }

    /* حذف مارکر پیش‌فرض مرورگر */
    .faq-item details summary::-webkit-details-marker { display: none; }
/* --- استایل جدید و زیبای ناوبری (Pagination) --- */
.hp-pagination {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #ffffff;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* صفحه فعلی */
.hp-pagination .current {
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 10px 15px rgba(30, 58, 138, 0.2);
    transform: translateY(-2px);
}

/* افکت هاور روی دکمه‌ها */
.hp-pagination .page-numbers:hover:not(.current) {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(220, 38, 36, 0.2);
}

/* دکمه‌های قبلی و بعدی */
.hp-pagination .prev, .hp-pagination .next {
    width: auto !important;
    padding: 0 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hp-pagination .page-numbers {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
