/* ==========================================
1. تنسيق الشعار (Logo)
   ========================================== */
.logo, .site-logo, .header .logo {
    display: flex !important;
    flex-direction: row-reverse !important; 
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important; 
}

/* إجبار حاوية الشعار على الانتقال إلى أقصى اليسار (متوافق مع RTL و Flex) */
.header .container > .logo,
.header .row > .logo,
.header .header-inner > .logo,
.logo, .site-logo, .site-branding, .navbar-header {
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 99 !important;
    float: none !important;
}

/* تكبير حجم اللوغو قليلاً والحفاظ على تناسقه */
.logo img, .site-logo img {
    max-height: 82px !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
}

.logo h1, .logo h2, .logo p, .site-title {
    margin: 0 !important;
    line-height: 1 !important;
}


/* ==========================================
2. تطبيق اللون الكحلي الشفاف على النافبار العلوي فقط (الكلاسات الفعلية لقالبك)
   ========================================== */
.header-top,
.header {
    background-color: rgba(0, 123, 206, 1) !important;
    background-image: none !important;
}


/* ==========================================
3. عزل عنوان صفحة "من نحن" والبانر الداخلي ليبقى أبيض ونظيفاً تماماً
   ========================================== */
.innerbanner,
.page-header, 
.entry-header {
    background-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}


/* ==========================================
4. ضبط المسافات ومباعدة عناصر الـ Navbar وتجنب الفراغات الزائدة
   ========================================== */
.header, .header-top, .header .container {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.header .container,
.header .row,
.header .header-inner,
.header .navbar-collapse {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.logo, .site-logo, .logo h1, .logo p {
    padding: 0 !important;
    margin-bottom: 0px !important;
}

.header .navigation,
.main-navigation ul,
.header-menu ul,
.navbar-nav,
.nav-menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
    column-gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation ul li,
.header .navigation li,
.navbar-nav li,
.nav-menu li {
    margin: 0 6px !important;
    padding: 0 !important;
    float: none !important;
}

.main-navigation ul li a,
.header .navigation a,
.navbar-nav li a,
.nav-menu li a,
.header a {
    color: #ffffff !important;
    padding: 8px 10px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

.main-navigation ul li a:hover,
.header .navigation a:hover,
.navbar-nav li a:hover,
.nav-menu li a:hover {
    opacity: 0.85;
}

.header ul li:empty,
.header .empty {
    display: none !important;
}

.header, .header-main, .main-navigation, .site-navigation {
    min-height: unset !important;
    height: auto !important;
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

.main-navigation ul, .site-title, .logo {
    line-height: 1 !important;
    padding-bottom: 0px !important;
}


/* ==========================================
5. تنسيق البانر الداخلي والسلايدر ومنع فراغات الصور
   ========================================== */
html,
body,
.sitewrapper,
.slider-main,
.nivoSlider {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.innerbanner {
    max-height: 600px !important;
    overflow: hidden !important;
}

.innerbanner img {
    height: 400px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.nivoSlider img,
.main-slider img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 700px !important;
    object-fit: cover !important;
}

.whothumbbx img {
    max-height: 450px; 
    height: 450px !important;
    object-fit: cover;
}


/* ==========================================
6. معالجة الشاشات الضيقة والموبايل
   ========================================== */
@media (max-width: 991px) {
    .header .container,
    .header-top .container,
    .header .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* إبقاء زر القائمة في أقصى اليمين وتثبيت اللوغو في أقصى اليسار */
    .header .toggle,
    .header .menu-toggle,
    .header .slicknav_menu,
    .header .nav-toggle,
    .header button.navbar-toggle {
        order: 1 !important;
        margin-right: 0 !important;
        margin-left: 8px !important;
        flex-shrink: 0 !important;
    }

    .header .container > .logo,
    .header .row > .logo,
    .header .header-inner > .logo,
    .logo, .site-logo, .site-branding, .navbar-header {
        order: 2 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        flex-shrink: 0 !important;
    }

    .logo img,
    .site-logo img {
        max-height: 64px !important;
        width: auto !important;
        height: auto !important;
    }

    .header .navigation,
    .main-navigation ul,
    .header-menu ul,
    .navbar-nav,
    .nav-menu {
        gap: 12px !important;
        column-gap: 12px !important;
    }

    .header a,
    .header button,
    .menu-toggle,
    .slicknav_btn {
        color: #ffffff !important;
    }
}


/* ==========================================
7. تأثيرات الحركة (Hover Effects)
   ========================================== */
.wp-hover-card {
    transition: transform 0.3s ease !important;
    transform: translateY(0) scale(1) !important;
}

.wp-hover-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(0, 115, 170, 0.15) !important;
    border-color: #0073aa !important;
    background-color: #ffffff !important;
}

.wp-hover-box {
    transition: transform 0.3s ease !important;
    transform: translateX(0) !important;
}

.wp-hover-box:hover {
    transform: translateX(8px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: #0073aa !important;
}

.dev-service-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    transform: translateY(0) !important;
}

.dev-service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 18px 35px rgba(0, 115, 170, 0.18) !important;
    border-left-color: #0073aa !important;
    background-color: #ffffff !important;
}

.dev-banner-box {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    transform: scale(1) !important;
}

.dev-banner-box:hover {
    transform: scale(1.01) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    background-color: #141c24 !important;
}

.about-section-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    transform: translateY(0) !important;
}

.about-section-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 115, 170, 0.15) !important;
    border-color: #0284c7 !important;
}

.about-grid-card {
    transition: all 0.3s ease !important;
    transform: translateY(0) !important;
}

.about-grid-card:hover {
    transform: translateY(-5px) !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 132, 199, 0.08) !important;
    border-color: #0284c7 !important;
}

.about-img-zoom {
    overflow: hidden !important;
}

.about-img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform: scale(1) !important;
}

.about-img-zoom:hover img {
    transform: scale(1.04) !important;
}


/* ==========================================
8. تخصيص ألوان وخطوط مربعات Category و Archives والفوتر
   ========================================== */

/* تخصيص عناوين الـ Widgets في الشريط الجانبي */
#sidebar .widget-title {
    background-color: #000056 !important;
    color: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 18px !important;
    font-style: normal !important;
    padding: 12px 15px !important;
}

/* تخصيص محتوى مربعات التصنيفات والأرشيف */
#sidebar .widget {
    background-color: #f9f9f9 !important;
    border: 1px solid #e0e0e0 !important;
    margin-bottom: 20px !important;
}

/* تنسيق الروابط بداخلها */
#sidebar .widget ul li a {
    color: #333333 !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 15px !important;
}

/* لون الروابط عند تمرير الفأرة عليها */
#sidebar .widget ul li a:hover {
    color: #007bce !important;
}

/* تغيير لون روابط شريط التنقل في الفوتر */
#nav_menu-2 #menu-footer-menu li a,
.widget-column-2 .menu-footer-menu-container ul li a {
    color: #ffffff !important;
    transition: color 0.25s ease;
}

/* تغيير لون الرابط عند تمرير الفأرة عليه (Hover) */
#nav_menu-2 #menu-footer-menu li a:hover,
.widget-column-2 .menu-footer-menu-container ul li a:hover {
    color: #ffd166 !important;
}

/* توحيد لون النقاط البيضاء بجانب الروابط */
#nav_menu-2 #menu-footer-menu li::marker {
    color: #ffffff !important;
}

/* إخفاء عناوين وصناديق Category و Archives داخل Sidebar */
#sidebar h3.widget-title,
#sidebar #categories,
#sidebar #archives,
aside#categories.widget,
aside#archives.widget {
    display: none !important;
}

/* إصلاح اتجاه رقم الهاتف بدقة داخل عمود معلومات التواصل */
.widget-column-4 .contactdetail p a[href^="tel"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
}

/* إخفاء العمود الثالث وإعادة توزيع الأعمدة الثلاثة المتبقية بالتساوي */
#footer-wrapper .cols-4 .widget-column-3,
#footer-wrapper .widget-column-3:has(> ul.recent-post) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 768px) {
    #footer-wrapper .container.footer .cols-4 {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 24px !important;
    }

    #footer-wrapper .container.footer .cols-4 > div:not(.widget-column-3):not(.clear) {
        flex: 1 1 0 !important;
        width: auto !important;
        float: none !important;
        margin: 0 !important;
    }

    #footer-wrapper .container.footer .cols-4 .clear {
        display: none !important;
    }
}

/* تنسيق أيقونات الفوتر وفق البنية الفعلية في widget-column-4 */
footer div.cols-4 div.widget-column-4 a[class*="fa-"],
#footer-wrapper div.widget-column-4 a[class*="fa-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 4px !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background-color: transparent !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
    position: relative !important;
}

/* إظهار رمز تيك توك بوضوح للرابط المحتوي على tiktok */
footer div.cols-4 div.widget-column-4 a[href*="tiktok"],
#footer-wrapper div.widget-column-4 a[href*="tiktok"] {
    font-size: 0 !important;
}

footer div.cols-4 div.widget-column-4 a[href*="tiktok"]::before,
#footer-wrapper div.widget-column-4 a[href*="tiktok"]::before {
    content: "♪" !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    display: inline-block !important;
}

#welcomearea .whothumbbx::after,
#welcomearea .whothumbbx::before,
#welcomearea .whothumbbx img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

i.fas.fa-fax {
  display: none !important;
}

/* أيقونة واتساب: تكبير الأيقونة الداخلية بشكل أوضح + إطار مربع أخضر + أقصى اليسار */
#footer-wrapper a.fab.fa-whatsapp,
#footer-wrapper .widget-column-4 a.fab.fa-whatsapp,
a.fab.fa-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%) !important;
  border: 2px solid #169c49 !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 34px !important;
  line-height: 1 !important;
  float: left !important;
  margin: 0 auto 0 0 !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#footer-wrapper a.fab.fa-whatsapp::before,
#footer-wrapper .widget-column-4 a.fab.fa-whatsapp::before,
a.fab.fa-whatsapp::before {
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 34px !important;
  line-height: 1 !important;
}

#footer-wrapper a.fab.fa-whatsapp:hover,
#footer-wrapper .widget-column-4 a.fab.fa-whatsapp:hover,
a.fab.fa-whatsapp:hover {
  background: linear-gradient(135deg, #2be070 0%, #17a850 100%) !important;
  border-color: #12823d !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.5);
}

/* إلغاء الارتفاع الثابت للحاوية لتتكيف مع حجم الصورة */
.fourbox .thumbbx {
    height: auto !important;
    overflow: visible !important;
}

/* جعل الصورة تظهر بالكامل وبشكل متجاوب مع جميع الشاشات */
.fourbox .thumbbx img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
}

/* ==========================================
   تثبيت النافبار بالأعلى وامتداده لكامل العرض يميناً ويساراً
   ========================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.sitewrapper,
.header,
.header-top {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* توسيع حاوية الهيدر لتأخذ كامل عرض الشاشة مع حواف جانبية نظيفة */
.header .container,
.header-top .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* تثبيت عناصر اليمين واليسار على الأطراف بدقة */
.header .header_right {
    margin-right: 0 !important;
    margin-left: auto !important;
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
}

.header .container > .logo,
.header .logo {
    margin-left: 0 !important;
    margin-right: auto !important;
    order: 2 !important;
}

/* ضبط الحواف الجانبية للشاشات المتوسطة والصغيرة */
@media (max-width: 991px) {
    .header .container,
    .header-top .container,
    .header .row {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .header .header_right,
    .header .toggle,
    .header .menu-toggle,
    .header .slicknav_menu,
    .header .nav-toggle,
    .header button.navbar-toggle {
        margin-right: 0 !important;
        margin-left: auto !important;
    }
}

/* ==========================================
   تصميم قسم "من نحن" (#welcomearea) كـ Component عصري واحترافي
   ========================================== */
#welcomearea {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%) !important;
    padding: 70px 20px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* البطاقة الرئيسية (Component Card) */
#welcomearea .welcomebx {
    max-width: 1180px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 45px !important;
    box-shadow: 0 20px 60px rgba(0, 58, 112, 0.08) !important;
    border: 1px solid rgba(0, 123, 206, 0.12) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 45px !important;
    position: relative !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

#welcomearea .welcomebx:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 28px 70px rgba(0, 58, 112, 0.12) !important;
}

/* شريط علوي جمالي خفيف يميز البطاقة */
#welcomearea .welcomebx::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 45px !important;
    left: 45px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #007bce, #000056, #007bce) !important;
    border-radius: 0 0 8px 8px !important;
}

#welcomearea .welcomebx .clear {
    display: none !important;
}

/* توزيع العمودين بالتساوي */
#welcomearea .welcomebx > .one_half,
#welcomearea .welcomebx > .one_half.last_column {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* تنسيق حاوية الصورة مع إطار جمالي */
#welcomearea .welcomebx .whothumbbx {
    position: relative !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0, 0, 86, 0.14) !important;
    height: 480px !important;
    max-height: 480px !important;
    background: #eaf3fa !important;
}

#welcomearea .welcomebx .whothumbbx img {
    width: 100% !important;
    height: 480px !important;
    max-height: 480px !important;
    min-height: 480px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 18px !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#welcomearea .welcomebx .whothumbbx:hover img {
    transform: scale(1.04) !important;
}

/* تنسيق عمود المحتوى النصي */
#welcomearea .welcomebx > .one_half.last_column {
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

/* عنوان "من نحن" مع خط سفلي متدرج */
#welcomearea .welcomebx h2,
#welcomearea .welcomebx h3,
#welcomearea .welcomebx .section_title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #000056 !important;
    margin: 0 0 22px 0 !important;
    padding-bottom: 14px !important;
    position: relative !important;
    text-align: right !important;
    line-height: 1.3 !important;
}

#welcomearea .welcomebx h2::after,
#welcomearea .welcomebx h3::after,
#welcomearea .welcomebx .section_title::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 65px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #007bce, #000056) !important;
    border-radius: 4px !important;
}

/* الفقرة النصية */
#welcomearea .welcomebx p {
    font-size: 16.5px !important;
    line-height: 1.95 !important;
    color: #475569 !important;
    text-align: justify !important;
    margin: 0 0 28px 0 !important;
}

/* زر READ MORE بتصميم بارز وتفاعلي */
#welcomearea .welcomebx a.button,
#welcomearea .welcomebx a.readmore,
#welcomearea .welcomebx .btn,
#welcomearea .welcomebx > .one_half.last_column a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #007bce 0%, #000056 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    padding: 13px 34px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0, 123, 206, 0.28) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

#welcomearea .welcomebx a.button:hover,
#welcomearea .welcomebx a.readmore:hover,
#welcomearea .welcomebx .btn:hover,
#welcomearea .welcomebx > .one_half.last_column a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 28px rgba(0, 123, 206, 0.4) !important;
    background: linear-gradient(135deg, #008ce8 0%, #00127a 100%) !important;
}

/* ==========================================
   تجاوب البطاقة على التابلت والموبايل
   ========================================== */
@media (max-width: 991px) {
    #welcomearea {
        padding: 40px 14px !important;
    }

    #welcomearea .welcomebx {
        flex-direction: column !important;
        padding: 28px 22px !important;
        gap: 28px !important;
        border-radius: 20px !important;
    }

    #welcomearea .welcomebx::before {
        right: 22px !important;
        left: 22px !important;
    }

    #welcomearea .welcomebx > .one_half,
    #welcomearea .welcomebx > .one_half.last_column {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    #welcomearea .welcomebx .whothumbbx,
    #welcomearea .welcomebx .whothumbbx img {
        height: 320px !important;
        max-height: 320px !important;
        min-height: 320px !important;
    }

    #welcomearea .welcomebx h2,
    #welcomearea .welcomebx h3,
    #welcomearea .welcomebx .section_title {
        font-size: 26px !important;
    }

    #welcomearea .welcomebx p {
        font-size: 15.5px !important;
        line-height: 1.85 !important;
    }
}