/*

Theme Name: MetaMax (Child Theme)
Description: SEO and Marketing WordPress Theme
Theme URI: http://metamax.cwsthemes.com/
Author: CWSthemes
Author URI: http://themeforest.net/user/creativews
Version: 1.0.0
License: Envato full licence agreement - https://themeforest.net/licenses/terms/regular
License URI: https://themeforest.net/licenses
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Text Domain: metamax
Template: metamax

*/ 

/*= Please add your custom styles using Customzer -> Custom CSS section.
--------------------------------------------------------------------- */

/* ===== الشعار الجديد (logo.png) =====
   الشعار أكبر، مع الحفاظ على نفس ارتفاع النافبار
   عبر هوامش سالبة تعوّض الزيادة في الارتفاع. */
.menu-logo-part,
.logo-default-wrapper,
.logo-nav-wrapper,
.logo-wrapper,
.side-panel-logo-wrapper { overflow: visible !important; }

/* شعار الهيدر الأساسي: +28px مع تعويض بالهوامش ليحافظ النافبار على ارتفاعه */
.menu-logo-part img.logo-default,
img.logo-default { height: 88px !important; width: auto !important; margin-top: -14px !important; margin-bottom: -14px !important; }

.menu-logo-part img.logo-navigation,
img.logo-navigation { height: 70px !important; width: auto !important; margin-top: -5px !important; margin-bottom: -5px !important; }

.menu-box .header-nav-part .logo-mobile-wrapper img.logo-mobile,
img.logo-mobile { height: 46px !important; width: auto !important; }

.side-panel-logo-wrapper img,
.side-panel-logo-wrapper .logo img { height: 82px !important; width: auto !important; }

.footer-logo img,
img.footer-logo { height: 70px !important; width: auto !important; }

.logo-wrapper img, .logo img { max-width: 100%; }

@media (max-width: 991px) {
  .menu-logo-part img.logo-default { height: 64px !important; margin-top: -6px !important; margin-bottom: -6px !important; }
  .menu-logo-part img.logo-navigation { height: 56px !important; margin-top: -4px !important; margin-bottom: -4px !important; }
  .side-panel-logo-wrapper img { height: 64px !important; }
}
@media (max-width: 767px) {
  img.logo-mobile { height: 40px !important; }
  .footer-logo img { height: 52px !important; }
}

/* ======================================================================
   نافبار احترافي: شعار بارز + ارتفاع مثالي + خلفية بيضاء صلبة + يبقى ظاهراً
   ====================================================================== */

/* الشعار أكبر وأوضح وبارز (يتجاوز النافبار بصرياً عبر هوامش سالبة) */
.menu-logo-part img.logo-default, img.logo-default { height: 106px !important; margin-top: -26px !important; margin-bottom: -26px !important; }
.menu-logo-part img.logo-navigation, img.logo-navigation { height: 82px !important; margin-top: -12px !important; margin-bottom: -12px !important; }
.menu-box .header-nav-part .logo-mobile-wrapper img.logo-mobile, img.logo-mobile { height: 60px !important; }
.menu-logo-part, .logo-default-wrapper, .logo-nav-wrapper, .logo-wrapper { overflow: visible !important; }

/* خلفية بيضاء صلبة — لا شفافية عند السكرول */
.site-header { background: #ffffff !important; }
.menu-box { background: #ffffff !important; }

/* ارتفاع مثالي احترافي */
.menu-box { padding-top: 12px !important; padding-bottom: 12px !important; transition: box-shadow .3s ease; }
.top-bar-wrapper .top-bar-inner-wrapper { padding-top: 5px !important; padding-bottom: 5px !important; }
.top-bar-icons { line-height: 1.2 !important; }
.top-bar-icons, .top-bar-links-wrapper, .side-panel-icon-wrapper, .side-panel-trigger, .top-bar-box-text { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.2 !important; }

/* نافبار ثابت أعلى الصفحة — يبقى ظاهراً ولا يختفي عند السكرول */
.site-header { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; z-index: 9000; }
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .13); }

@media (max-width: 991px) {
  .menu-logo-part img.logo-default, img.logo-default { height: 80px !important; margin-top: -12px !important; margin-bottom: -12px !important; }
  .menu-box { padding-top: 10px !important; padding-bottom: 10px !important; }
}
@media (max-width: 767px) {
  .menu-box .header-nav-part .logo-mobile-wrapper img.logo-mobile, img.logo-mobile { height: 60px !important; }
  .menu-box { padding-top: 11px !important; padding-bottom: 11px !important; }
}

/* سهم كاروسيل المنشورات لا يتجاوز عرض الشاشة */
@media (max-width: 1439px) {
  .news.posts-grid .cws-vc-shortcode-grid.slick-slider:not(.slick-vertical) .slick-arrow.slick-next { right: 10px; left: auto; }
  .news.posts-grid .cws-vc-shortcode-grid.slick-slider:not(.slick-vertical) .slick-arrow.slick-prev { left: 10px; right: auto; }
}
