.site-header-section>*,
.site-header-section>div:first-child,
.site-header-section>div:last-child {
    padding: 0px;
}

.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-2 .menu-item > .menu-link {
  font-size: 16px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.ast-builder-menu-1 .sub-menu .menu-link,
.ast-builder-menu-2 .sub-menu .menu-link {
  font-size: 14px;
  border-radius: 0px;
  color: var(--ast-global-color-7);
  font-weight: 600;
}

.ast-builder-menu-1 .sub-menu .menu-link:hover,
.ast-builder-menu-2 .sub-menu .menu-link:hover {
  background: linear-gradient(135deg, #ffffff, #f2f5f7);
  color: var(--ast-global-color-1);
  padding-left: 20px;
  transform: translateX(2px);
  transition: all 0.3s ease;
}

html[dir="rtl"] .ast-builder-menu-1 .sub-menu .menu-link:hover,
html[dir="rtl"] .ast-builder-menu-2 .sub-menu .menu-link:hover {
  padding-left: 16px;
  padding-right: 20px;
  transform: translateX(-2px);
  transition: all 0.3s ease;
}

/*====================================*/
/* HubTrend SVG Icons System */
/*====================================*/

/*====================================*/
/*======== HubTrend Footer Styles =====*/
/*====================================*/
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row {
    max-width: 100%;
    padding-left: 5px;
    padding-right: 5px;
}

/* إصلاح المحاذاة للعناصر الداخلية */
.footer-widget-area[data-section="section-fb-html-1"] .ast-builder-html-element {
    text-align: left;
}

.rtl .footer-widget-area[data-section="section-fb-html-1"] .ast-builder-html-element {
    text-align: right;
}

/* تحسينات الفوتر الأساسية */
#hubtrend-footer {
    padding: 10px 20px;
    margin: 0;
    position: relative;
}

#hubtrend-footer .footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: end; 
    margin: 0;
    padding: 0;
    max-width: 1400px; /* إضافة حد أقصى متوافق مع Astra */
    margin-left: auto;
    margin-right: auto;
}

/* تحسين العناوين */
#hubtrend-footer .footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--ast-global-color-4);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.rtl #hubtrend-footer .footer-section h4 {
    letter-spacing: 0;
}
#hubtrend-footer .footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--ast-global-color-6);
    transition: width 0.3s ease;
}

#hubtrend-footer .footer-section:hover h4::after {
    width: 120px;
}

/* تحسين الروابط */
#hubtrend-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#hubtrend-footer .footer-section ul li {
    margin-bottom: 0px;
}

#hubtrend-footer .footer-section ul li a {
    font-size: 14px;
    font-weight: 400;
    color: var(--ast-global-color-4);
    text-decoration: none;
    padding: 0px 16px;
    display: block;
    line-height: 1.7;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#hubtrend-footer .footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--ast-global-color-6);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#hubtrend-footer .footer-section ul li a:hover {
    color: var(--ast-global-color-6);
    background-color: rgba(var(--ast-global-color-6-rgb), 0.1);
    padding-left: 24px;
}

#hubtrend-footer .footer-section ul li a:hover::before {
    transform: translateX(0);
}

/* RTL Support */
.rtl #hubtrend-footer .footer-section h4::after {
    left: auto;
    right: 0;
}

.rtl #hubtrend-footer .footer-section ul li a::before {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.rtl #hubtrend-footer .footer-section ul li a:hover {
    padding-left: 16px;
    padding-right: 24px;
}

.rtl #hubtrend-footer .footer-section ul li a:hover::before {
    transform: translateX(0);
}

/* تحسين الشعار والعنوان */
#hubtrend-footer .footer-section img {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1); /* تأكد من أن الشعار الأبيض يظهر جيدًا */
}

#hubtrend-footer .footer-address {
    font-size: 14px;
    font-weight: 400;
    color: var(--ast-global-color-4);
    margin: 0;
    line-height: 1.6;
    padding: 10px 16px 0;
    opacity: 0.9;
}

/* Footer Bottom */
#hubtrend-footer .footer-bottom {
    background-color: var(--ast-global-color-3);
    border-top: 1px double var(--ast-global-color-6);
    text-align: center;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--ast-global-color-4);
    margin-top: 10px;
    opacity: 0.8;
}

/* Responsive - تحسين الشاشات المتوسطة */
@media (max-width: 921px) {
    #hubtrend-footer .footer-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 30px;
        padding: 20px;
    }
}

/* Responsive - تحسين الشاشات الصغيرة */
@media (max-width: 545px) {
    #hubtrend-footer .footer-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 25px;
        padding: 15px;
        max-width: 300px; 
    }
    
        #hubtrend-footer .footer-section {
        text-align: center;
    }

    #hubtrend-footer .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .rtl #hubtrend-footer .footer-section h4::after {
        left: auto;
        right: 50%;
        transform: translateX(50%);
    }
}

/* طباعة */
@media print {
    #hubtrend-footer {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    #hubtrend-footer .footer-section ul li a:hover {
        background-color: transparent;
        padding: 0px 16px;
    }
    
    #hubtrend-footer .footer-section ul li a:hover::before {
        transform: translateX(-100%);
    }
    
    .rtl #hubtrend-footer .footer-section ul li a:hover::before {
        transform: translateX(100%);
    }
}