/*
Theme Name:   Twenty Twenty-Five Child
Theme URI:    https://prohelp.ir
Description:  قالب فرزند Twenty Twenty-Five برای تنظیمات سفارشی
Author:       نام شما
Author URI:   https://prohelp.ir
Template:     twentytwentyfive
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  twentytwentyfive-child
*/

/* ==========================================================================
   1. تعریف فونت Vazirmatn
   ========================================================================== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://prohelp.ir/wp-content/uploads/2025/11/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به تمام سایت */
body,
html,
* {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
}

/* ==========================================================================
   2. Justify کردن تمام پاراگراف‌ها
   ========================================================================== */
p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* ==========================================================================
   3. لینک‌های درون پاراگراف‌ها (بولد و آبی)
   ========================================================================== */
p a,
.entry-content a,
.wp-block-post-content a {
    font-weight: 700 !important;
    color: #0066cc !important;
    text-decoration: none;
}

p a:hover,
.entry-content a:hover,
.wp-block-post-content a:hover {
    text-decoration: underline;
    color: #0052a3 !important;
}

/* ==========================================================================
   4. هاور منوها
   ========================================================================== */
.wp-block-navigation-item a:hover,
.wp-block-navigation__submenu-container a:hover,
nav a:hover,
.menu a:hover {
    color: #0066cc !important;
    border-bottom: 2px solid #0066cc;
    text-decoration: none !important; /* این خط برای حذف خط زیرین نازک اضافه شد */
}

/* ==========================================================================
   6. مخفی کردن متادیتای نوشته‌ها
   ========================================================================== */
.single .wp-block-post-author,
.single .wp-block-post-author-name,
.single .wp-block-post-terms,
.single .wp-block-post-date,
.single .wp-block-group.has-accent-4-color,
.single .wp-block-post-author-biography {
    display: none !important;
}

/* ==========================================================================
   7. اندازه فونت‌های ریسپانسیو
   ========================================================================== */

/* اندازه پایه برای موبایل */
body {
    font-size: 16px;
    line-height: 1.8;
}

p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

/* هدینگ‌ها - موبایل */
h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 1em;
}

h2 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 0.9em;
}

h3 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 0.8em;
}

h4 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 0.7em;
}

h5 {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0.6em;
}

h6 {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0.5em;
}

/* تبلت (768px و بالاتر) */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }
    
    p {
        font-size: 17px;
        line-height: 1.9;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    h4 {
        font-size: 20px;
    }
    
    h5 {
        font-size: 18px;
    }
    
    h6 {
        font-size: 16px;
    }
}

/* دسکتاپ (1024px و بالاتر) */
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
    
    p {
        font-size: 18px;
        line-height: 2;
    }
    
    h1 {
        font-size: 42px;
    }
    
    h2 {
        font-size: 34px;
    }
    
    h3 {
        font-size: 28px;
    }
    
    h4 {
        font-size: 22px;
    }
    
    h5 {
        font-size: 19px;
    }
    
    h6 {
        font-size: 17px;
    }
}

/* صفحات بزرگ (1440px و بالاتر) */
@media (min-width: 1440px) {
    p {
        font-size: 19px;
    }
    
    h1 {
        font-size: 48px;
    }
    
    h2 {
        font-size: 38px;
    }
}

/* ==========================================================================
   8. عرض محتوا - نوشته‌ها و برگه‌ها
   ========================================================================== */

/* نوشته‌ها: حداکثر عرض استاندارد برای خوانایی بهتر */
.single-post .entry-content,
.single-post .wp-block-post-content {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* برگه‌ها: تمام عرض */
.page .entry-content,
.page .wp-block-post-content {
    max-width: 100%;
    width: 100%;
}

/* حذف سایدبار از همه جا */
.sidebar,
aside,
.widget-area {
    display: none !important;
}

/* تنظیم عرض کامل برای محتوای اصلی */
.site-content,
main {
    width: 100% !important;
    max-width: 100% !important;
}

/* ==========================================================================
   9. عنوان نوشته‌ها وسط‌چین
   ========================================================================== */
.single-post .entry-title,
.single-post .wp-block-post-title,
.single-post h1.entry-title {
    text-align: center !important;
    margin-bottom: 2em;
}

/* ==========================================================================
   10. هدینگ‌ها بولد
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-post-title {
    font-weight: 700 !important;
}

/* ==========================================================================
   11. مخفی کردن عنوان برگه‌ها
   ========================================================================== */
.page .entry-title,
.page .wp-block-post-title {
    display: none !important;
}

/* ==========================================================================
   تنظیمات اضافی برای بهبود خوانایی فارسی
   ========================================================================== */

/* فاصله بهتر برای متن فارسی */
body {
    letter-spacing: 0.02em;
    word-spacing: 0.05em;
}

/* بهبود نمایش لیست‌ها */
ul, ol {
    text-align: right;
    padding-right: 2em;
    padding-left: 0;
}

li {
    margin-bottom: 0.5em;
}

/* تنظیم جداکننده‌های فوتر */
.wp-block-separator {
    margin: 2em auto;
}




/* حذف "نوشته‌های بیشتر" فقط */
.single-post article > .wp-block-group.alignwide:last-of-type:has(.wp-block-post-template) {
    display: none !important;
}

/* یا این روش که بر اساس padding مشخص می‌کنه */
.single .wp-block-group.alignwide[style*="padding-top:var(--wp--preset--spacing--60)"]:has(.wp-block-query) {
    display: none !important;
}

/* روش سوم: فقط بخشی که wp-block-post-template داره */
.single .wp-block-group > .wp-block-query.alignwide:has(.wp-block-post-template) {
    display: none !important;
}

.single .wp-block-group > h2.wp-block-heading + .wp-block-query {
    display: none !important;
}
/* حذف خط زیرین نازک از آیتم‌های منو در حالت هاور */
.wp-block-navigation .wp-block-navigation-item a:hover {
    text-decoration: none !important;
}