
/* =========================================
   1. Hide Search
   ========================================= */
.widget_search,
.search-form,
.header-search-btn,
.search-popup-overlay,
.gst-popup-search-box,
.mobile-menu .search-box,
.header-mobile-search {
    display: none !important;
}

/* =========================================
   2. Request Quote Form Design (Restored)
   ========================================= */
.mlseo-contact-cta {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 48px 24px;
}

.mlseo-contact-cta__grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.mlseo-contact-cta__hero {
    padding-inline-end: 0;
}

.mlseo-contact-cta__title {
    color: #1a202c;
    font-size: clamp(28px, 3.2vw, 40px);
}

.mlseo-contact-cta__description {
    color: #4a5568;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mlseo-contact-cta__card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.mlseo-contact-cta__number-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.mlseo-contact-cta__number-block strong {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    direction: ltr;
}

.mlseo-contact-cta__number-block span {
    font-size: 14px;
    color: #718096;
}

.mlseo-contact-cta__number-block::before {
    font-family: "Font Awesome 5 Brands";
    content: "\f232";
    font-size: 32px;
    color: #25D366;
}

.mlseo-contact-cta__card-description {
    color: #4a5568;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.mlseo-contact-cta__btn--primary {
    background: #25D366;
    color: #fff;
    border-radius: 999px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.mlseo-contact-cta__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.mlseo-contact-cta__privacy {
    color: #718096;
}

.mlseo-contact-cta__signal {
    display: none;
}

.mlseo-contact-cta__stats {
    justify-content: center;
    margin-top: 24px;
}

.mlseo-contact-cta__stats li {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.05);
}

.mlseo-contact-cta__stats strong {
    color: #1a202c;
}

.mlseo-contact-cta__stats span {
    color: #4a5568;
}

/* =========================================
   3. Custom Mobile Menu Styles (Restored)
   ========================================= */
.custom-mobile-toggle {
    margin-right: 15px;
}

.custom-mobile-toggle button {
    background: #0056b3;
    border: none;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background 0.3s;
}

.custom-mobile-toggle button:hover {
    background: #004494;
}

.custom-mobile-toggle button .line {
    width: 20px;
    height: 2px;
    background-color: #fff;
    display: block;
    border-radius: 2px;
}

.custom-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    visibility: hidden;
}

.custom-mobile-menu.active {
    pointer-events: auto;
    visibility: visible;
}

.custom-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-mobile-menu.active .custom-menu-backdrop {
    opacity: 1;
}

.custom-menu-panel {
    position: absolute;
    top: 0;
    right: -320px; 
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.custom-mobile-menu.active .custom-menu-panel {
    right: 0;
}

.custom-menu-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.custom-menu-header .logo-area img {
    max-height: 40px;
    width: auto;
}

#custom-close-menu {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#custom-close-menu:hover {
    background: #ff4d4d;
    color: #fff;
}

.custom-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.custom-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-menu-list li {
    border-bottom: 1px solid #f9f9f9;
    position: relative;
}

.custom-menu-list li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.custom-menu-list li a:hover {
    color: #0056b3;
    background: #fbfbfb;
}

.custom-menu-list li.menu-item-has-children > a {
    padding-left: 50px;
}

.submenu-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-right: 1px solid #f5f5f5;
    color: #888;
    font-size: 14px;
    transition: background 0.2s;
}

.submenu-toggle:hover {
    background: #f0f0f0;
    color: #333;
}

.submenu-open > .submenu-toggle i {
    transform: rotate(180deg);
}

.sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fcfcfc;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.submenu-open > .sub-menu {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

.sub-menu li a {
    padding-right: 35px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

.sub-menu li a:hover {
    color: #0056b3;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LTR Support */
body:not(.rtl) .custom-menu-panel {
    right: auto;
    left: -320px;
    transition: left 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

body:not(.rtl) .custom-mobile-menu.active .custom-menu-panel {
    left: 0;
}

body:not(.rtl) .custom-menu-list li.menu-item-has-children > a {
    padding-left: 20px;
    padding-right: 50px;
}

body:not(.rtl) .submenu-toggle {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid #f5f5f5;
}

body:not(.rtl) .sub-menu li a {
    padding-right: 20px;
    padding-left: 35px;
}

/* =========================================
   4. FAQ Section Design
   ========================================= */
.mlseo-faq-section {
    background-color: #f9fafb;
    padding: 60px 20px;
    margin-top: 40px;
    border-radius: 12px;
}

.mlseo-faq-section__inner {
    max-width: 800px;
    margin: 0 auto;
}

.mlseo-faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 40px;
}

.mlseo-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mlseo-faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.mlseo-faq-item:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.mlseo-faq-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: #fff;
    position: relative;
    border: none;
    width: 100%;
}

.mlseo-faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
    line-height: 1.5;
    text-align: right;
}

.mlseo-faq-toggle {
    background: #edf2f7;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* RTL Support for toggle margin */
body.rtl .mlseo-faq-toggle {
    margin-right: auto;
    margin-left: 0; /* أيقونة على اليسار */
}
body:not(.rtl) .mlseo-faq-toggle {
    margin-left: auto;
    margin-right: 0; /* أيقونة على اليمين */
}

/* حالة الفتح */
.mlseo-faq-item.is-open .mlseo-faq-toggle {
    background-color: #25D366; /* لون متناسق مع الواتساب */
    color: #fff;
    transform: rotate(180deg);
}

.mlseo-toggle-icon {
    position: relative;
    width: 14px;
    height: 2px;
    background-color: #4a5568;
    display: block;
    transition: all 0.3s ease;
}

.mlseo-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 14px;
    background-color: #4a5568;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.mlseo-faq-item.is-open .mlseo-toggle-icon {
    background-color: #fff;
}

.mlseo-faq-item.is-open .mlseo-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    background-color: #fff;
    opacity: 0; /* تحويل لعلامة ناقص */
}

.mlseo-faq-answer {
    padding: 0 24px 24px 24px;
    color: #4a5568;
    line-height: 1.8;
    font-size: 16px;
    display: none;
    border-top: 1px solid transparent;
}

.mlseo-faq-item.is-open .mlseo-faq-answer {
    display: block;
    border-top-color: #edf2f7;
    padding-top: 20px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   5. Mobile Adjustments for FAQ
   ========================================= */
@media (max-width: 768px) {
    .mlseo-faq-section {
        padding: 40px 15px;
        margin-top: 30px;
    }

    .mlseo-faq-title {
        font-size: 24px; /* تصغير العنوان الرئيسي */
        margin-bottom: 25px;
    }

    .mlseo-faq-item__header {
        padding: 15px; /* تقليل الحواف الداخلية */
    }

    .mlseo-faq-question {
        font-size: 15px; /* تصغير خط السؤال */
        line-height: 1.6;
        font-weight: 700;
    }

    .mlseo-faq-toggle {
        width: 28px; /* تصغير زر الفتح */
        height: 28px;
    }

    .mlseo-faq-answer {
        padding: 0 15px 20px 15px;
        font-size: 14px; /* تصغير خط الإجابة */
    }
}
