/* ==========================================================================
   MASTER FOOTER STYLESHEET (css-footer.css)
   Organized: Footer Polish, Newsletter Form, Notices, and RTL Support
   ========================================================================== */

/* ==========================================================================
   MODULE 1: GLOBAL FOOTER POLISH
   ========================================================================== */

.site-footer a:hover { 
    color: #88B437 !important; 
    transition: color 0.3s ease; 
}

.site-footer .gb-button-wrapper a.gb-button:hover { 
    color: #88B437 !important; 
    background-color: transparent !important; 
}


/* ==========================================================================
   MODULE 2: FOOTER INLINE FORM (NEWSLETTER)
   ========================================================================== */

.footer-inline-form { 
    display: flex !important; 
    width: 100%; 
    max-width: 400px; 
}

/* Email Input Field */
.footer-inline-form input[type="email"] { 
    flex-grow: 1; 
    height: 50px !important; 
    background-color: #000000 !important; 
    border: 1px solid #333 !important; 
    border-right: none !important; 
    color: #ffffff !important; 
    border-radius: 4px 0 0 4px !important; 
    padding-left: 15px; 
}

.footer-inline-form input::placeholder { 
    color: #888888 !important; 
    opacity: 1; 
}

/* Submit Button */
.footer-inline-form input[type="submit"] { 
    width: auto !important; 
    height: 50px !important; 
    background-color: #88B437 !important; 
    color: #000000 !important; 
    font-weight: 700 !important; 
    border: none !important; 
    border-radius: 0 4px 4px 0 !important; 
    padding: 0 25px !important; 
    cursor: pointer; 
    transition: background 0.3s ease; 
}

.footer-inline-form input[type="submit"]:hover { 
    background-color: #ffffff !important; 
    color: #000000 !important; 
}

/* Newsletter Mobile View */
@media (max-width: 767px) {
    .footer-inline-form { 
        flex-direction: column !important; 
        align-items: center !important; 
    }
    .footer-inline-form input[type="email"], 
    .footer-inline-form input[type="submit"] { 
        width: 100% !important; 
        border-radius: 4px !important; 
        text-align: center; 
    }
    .footer-inline-form input[type="email"] { 
        margin-bottom: 10px !important; 
        border-right: 1px solid #333 !important; 
    }
}


/* ==========================================================================
   MODULE 3: MC4WP FORM NOTICES
   ========================================================================== */

.mc4wp-form { 
    position: relative; 
    margin-bottom: 25px; 
}

.mc4wp-response { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    z-index: 50; 
    padding-top: 5px; 
}

.mc4wp-response, 
.mc4wp-response p, 
.mc4wp-alert { 
    color: #88B437 !important; 
    font-size: 13px; 
    line-height: 1.4; 
    margin: 0 !important; 
    font-weight: bold; 
}

.mc4wp-alert-error, 
.mc4wp-alert-error p { 
    color: #ff4444 !important; 
}


/* ==========================================================================
   MODULE 4: FOOTER ARABIC (RTL) SUPPORT
   ========================================================================== */

/* RTL Newsletter Form Flip */
.rtl .footer-inline-form { 
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
}

.rtl .footer-inline-form input[type="email"] { 
    border-radius: 0 4px 4px 0 !important; 
    border-left: 0 !important; 
    border-right: 1px solid #ffffff33 !important; 
    margin-left: 0 !important; 
}

.rtl .footer-inline-form input[type="submit"] { 
    border-radius: 4px 0 0 4px !important; 
    margin-right: -1px !important; 
}

/* RTL Footer Navigation Spacing */
html[dir="rtl"] ul.wp-block-navigation {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important; /* Perfect even spacing between links */
    row-gap: 10px !important; /* Spacing for mobile stacking */
    justify-content: center !important;
}

/* Fallback margin for older browsers */
html[dir="rtl"] ul.wp-block-navigation .wp-block-navigation-item {
    margin-left: 15px !important;
}

html[dir="rtl"] ul.wp-block-navigation .wp-block-navigation-item:last-child {
    margin-left: 0 !important;
}