/*
Theme Name:     Page Builder Framework Child
Theme URI:      https://khatgram.com
Description:    Child theme for Page Builder Framework - khatgram.com
Author:         khatgram.com
Author URI:     https://khatgram.com
Template:       page-builder-framework
Version:        1.0.0
License:        GNU General Public License v3 or later
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
Tags:           rtl, responsive, page-builder
/*

/* ================================================================
   فونت‌ها در functions.php تعریف شده‌اند
   ================================================================ */

/* تنظیمات پایه */
body {
    direction: rtl;
    text-align: right;
    font-size: 16px;
    line-height: 1.7;
    color: #222222;
}

/* عناوین */
h1, h2, h3, h4, h5, h6 {
    color: #000000;
    margin: 1em 0 0.6em;
    line-height: 1.4;
}

/* لینک‌ها */
a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* ================================================================
   تنظیمات منو - فقط رفع تداخل‌ها
   ================================================================ */

/* منو - حفظ حالت قبلی */
.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0 10px;
}

.main-navigation ul li a {
    font-size: 18px;
    padding: 10px 14px;
    color: #000000;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.main-navigation ul li a:hover {
    color: #e74c3c;
    background: #f8f9fa;
}

/* متون انگلیسی */
.english-text,
.ltr-text,
[lang="en"] {
    direction: ltr;
    text-align: left;
}

/* واکنش‌گرا - حفظ حالت قبلی */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .main-navigation ul li a {
        font-size: 17px;
        padding: 8px 16px;
    }

    body {
        font-size: 15px;
    }
}

/* ================================================================
   تنظیمات هدر و لوگو - بدون تداخل با منو
   ================================================================ */

/* تنظیمات هدر - فقط برای لوگو */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #ffffff;
    flex-wrap: wrap;
}

/* تنظیمات لوگو - فقط اندازه */
.site-branding {
    flex: 0 0 auto;
    max-width: 250px;
}

.custom-logo,
.site-logo img {
    max-width: 250px !important;
    width: auto !important;
    height: auto !important;
    max-height: 80px !important;
    display: block;
}

/* ================================================================
   واکنش‌گرایی لوگو - بدون تداخل با منو
   ================================================================ */

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .site-branding {
        max-width: 180px;
        margin-bottom: 10px;
    }
    
    .custom-logo,
    .site-logo img {
        max-width: 180px !important;
        max-height: 60px !important;
    }
}

/* ================================================================
   پشتیبانی RTL - بدون تداخل
   ================================================================ */

.rtl .site-branding {
    margin-left: auto;
    margin-right: 0;
}

.rtl .main-navigation {
    margin-right: auto;
    margin-left: 0;
}

/* ============================================
   Custom CSS for khatgram.com
   ============================================ */

/* Tablet Fix - جلوگیری از راست‌چین شدن */
@media (max-width: 1024px) and (min-width: 768px) {
    .elementor-section,
    .elementor-column,
    .elementor-widget-wrap {
        direction: inherit !important;
    }
    
    .elementor-widget-wrap {
        flex-wrap: wrap !important;
    }
    
    .elementor-column-wrap {
        flex-direction: row !important;
    }
    
    .elementor-widget {
        float: none !important;
    }
}

/* Mobile - RTL */
@media (max-width: 767px) {
    .elementor-section,
    .elementor-column,
    .elementor-widget-wrap {
        direction: rtl;
    }
}

/* Custom Styles */
body {
    /* استایل‌های سفارشی شما */
}