/**
 * ELREDA GROUP — Footer | Complete replacement, v6 — compact brand, RTL link alignment and bottom bar
 * ================================================================
 * REPLACE assets/css/footer.css. Do not append to older versions.
 * Keeps Elementor responsible for content; CSS only styles the footer.
 * Compatible with the footer.js accordion from the previous update.
 *
 * REQUIRED CSS CLASSES in Elementor > Advanced > CSS Classes:
 *   Full-width footer outer container:   elreda-footer
 *   Grid wrapping the three columns:     elreda-footer__grid
 *   Brand/details column container:      elreda-footer__about
 *   NEW logo + brand title container:    elreda-footer__brand
 *   Important links column container:   elreda-footer__links
 *   Categories column container:        elreda-footer__categories
 *   Each of the two menu widgets:       elreda-footer__menu
 *   Social icon-list widget:            elreda-footer__social
 *   Copyright row container:           elreda-footer__bottom
 *
 * NEW: Give the container holding the logo image + «الرضا جروب» heading
 *      the class elreda-footer__brand (not the Image or Heading widget).
 * Do NOT put elreda-footer__social on the phone/branches icon list.
 * The phone/branches list should be a separate Icon List widget.
 */

/* 01 — Theme variables and a full-width footer surface. */
.elreda-footer {
    --ef-blue: #102e67;
    --ef-deep: #031329;
    --ef-text: #dfe8f5;
    --ef-white: #ffffff;
    --ef-line: rgba(255, 255, 255, .19);
    --ef-pill: rgba(255, 255, 255, .075);
    --ef-hover: #bcdcff;
    direction: rtl;
    width: 100%;
    min-width: 0;
    background: var(--ef-blue) !important;
    color: var(--ef-text);
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    overflow: clip;
}

.elreda-footer, .elreda-footer * { box-sizing: border-box; }
.elreda-footer .elementor-widget { min-width: 0; }
.elreda-footer a { text-decoration: none; }

/* 02 — Main columns: right brand / center links / left departments. */
.elreda-footer .elreda-footer__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
    justify-items: stretch !important;
    gap: clamp(28px, 3vw, 48px) !important;
    direction: rtl;
    width: min(100%, 1240px) !important;
    max-width: 1240px !important;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 54px 24px 46px !important;
}

.elreda-footer .elreda-footer__grid > .e-con,
.elreda-footer .elreda-footer__about,
.elreda-footer .elreda-footer__links,
.elreda-footer .elreda-footer__categories {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

.elreda-footer .elreda-footer__about      { grid-column: 1; }
.elreda-footer .elreda-footer__links      { grid-column: 2; }
.elreda-footer .elreda-footer__categories { grid-column: 3; }

/* 03 — Store identity. Keep the logo and copy close together. */
/* The brand identity is now a separate Elementor container: logo + heading. */
.elreda-footer .elreda-footer__about > .elreda-footer__brand { order: 1; }
.elreda-footer .elreda-footer__about > .elementor-widget-image { order: 1; }
.elreda-footer .elreda-footer__about > .elementor-widget-text-editor { order: 2; }
.elreda-footer .elreda-footer__about > .elementor-widget-icon-list:not(.elreda-footer__social) { order: 3; }
.elreda-footer .elreda-footer__about > .elreda-footer__social { order: 4; }

.elreda-footer .elreda-footer__about .elementor-widget-image {
    margin: 0 0 16px !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__about .elementor-widget-image img {
    display: inline-block;
    width: 100px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 110px;
    object-fit: contain;
}
.elreda-footer .elreda-footer__about .elementor-widget-text-editor {
    width: 100%;
    margin: 0 0 15px !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__about .elementor-widget-text-editor p,
.elreda-footer .elreda-footer__about .elementor-widget-text-editor {
    color: var(--ef-text) !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    overflow-wrap: anywhere;
}
.elreda-footer .elreda-footer__about .elementor-widget-text-editor p {
    margin: 0 !important;
    text-align: right !important;
}

/* 03a — Compact logo + store name as ONE group.
 * Do not let Elementor assign half of the column to each widget.
 * This class belongs to the Container holding BOTH logo and name.
 */
.elreda-footer .elreda-footer__brand,
.elreda-footer .elreda-footer__brand > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
    direction: rtl !important;
    text-align: right !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.elreda-footer .elreda-footer__brand {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-bottom: 18px !important;
}
/* Important: no flex-grow, 50% width or space-between on brand children. */
.elreda-footer .elreda-footer__brand > .elementor-element,
.elreda-footer .elreda-footer__brand > .e-con-inner > .elementor-element {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.elreda-footer .elreda-footer__brand .elementor-widget-image,
.elreda-footer .elreda-footer__brand .elementor-widget-image .elementor-widget-container {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__brand .elementor-widget-image img {
    display: block !important;
    width: 86px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 92px !important;
    object-fit: contain !important;
}
.elreda-footer .elreda-footer__brand .elementor-widget-heading,
.elreda-footer .elreda-footer__brand .elementor-widget-heading .elementor-widget-container {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__brand .elementor-heading-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    text-align: right !important;
}

/* 04 — Phone and branch addresses (a separate Elementor Icon List). */
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) {
    width: 100%;
    margin: 0 0 14px !important;
}
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7 !important;
}
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-item > a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    width: 100%;
    padding: 0 !important;
    color: var(--ef-text) !important;
}
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-icon {
    display: inline-flex !important;
    flex: 0 0 18px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 3px;
    color: #ff4561 !important;
}
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-icon i,
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-icon svg {
    font-size: 17px !important;
    width: 17px !important;
    height: 17px !important;
    fill: currentColor;
}
.elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-text {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ef-text) !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.elreda-footer .elreda-footer__about a:hover,
.elreda-footer .elreda-footer__about a:hover .elementor-icon-list-text { color: var(--ef-hover) !important; }

/* 05 — Social icons: one tidy row. */
.elreda-footer .elreda-footer__social {
    width: 100% !important;
    margin: 3px 0 0 !important;
}
.elreda-footer .elreda-footer__social .elementor-icon-list-items,
.elreda-footer .elreda-footer__social .elementor-social-icons-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.elreda-footer .elreda-footer__social .elementor-icon-list-item,
.elreda-footer .elreda-footer__social .elementor-grid-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--ef-line);
    border-radius: 11px;
    background: var(--ef-pill);
    transition: background-color .18s ease, border-color .18s ease;
}
.elreda-footer .elreda-footer__social .elementor-icon-list-item > a,
.elreda-footer .elreda-footer__social .elementor-icon-list-icon,
.elreda-footer .elreda-footer__social .elementor-social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
}
.elreda-footer .elreda-footer__social svg,
.elreda-footer .elreda-footer__social i {
    width: 19px !important;
    height: 19px !important;
    font-size: 19px !important;
    color: #fff !important;
    fill: currentColor !important;
}
.elreda-footer .elreda-footer__social .elementor-icon-list-text { display: none !important; }
.elreda-footer .elreda-footer__social .elementor-icon-list-item:hover,
.elreda-footer .elreda-footer__social .elementor-grid-item:hover {
    background: #0a55a2;
    border-color: #1267c4;
}

/* 06 — Column headings. */
.elreda-footer .elreda-footer__links .elementor-heading-title,
.elreda-footer .elreda-footer__categories .elementor-heading-title {
    width: 100%;
    margin: 0 0 17px !important;
    padding: 0 !important;
    color: var(--ef-white) !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__links .elementor-widget-heading,
.elreda-footer .elreda-footer__categories .elementor-widget-heading {
    width: 100% !important;
    margin: 0 !important;
}

/* 06a — Force the title and links widgets to share the SAME right edge. */
.elreda-footer .elreda-footer__links > .elementor-widget,
.elreda-footer .elreda-footer__categories > .elementor-widget,
.elreda-footer .elreda-footer__links .elreda-footer__menu,
.elreda-footer .elreda-footer__categories .elreda-footer__menu {
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__links .elementor-widget-container,
.elreda-footer .elreda-footer__categories .elementor-widget-container,
.elreda-footer .elreda-footer__links .elementor-heading-title,
.elreda-footer .elreda-footer__categories .elementor-heading-title {
    text-align: right !important;
}

/* 07 — Both Elementor footer menus: reset REAL wrappers and list items.
   Some Elementor Menu widgets use .elementor-nav-menu, others use Icon List,
   WordPress Menu, or Elementor's newer .e-n-menu markup. A rule for only
   `.elementor-icon-list-item > a` does not cover all those variants. */
.elreda-footer .elreda-footer__menu {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__menu[hidden] { display: none !important; }
.elreda-footer .elreda-footer__menu .elementor-widget-container,
.elreda-footer .elreda-footer__menu nav,
.elreda-footer .elreda-footer__menu .elementor-nav-menu--main,
.elreda-footer .elreda-footer__menu .e-n-menu-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}
.elreda-footer .elreda-footer__menu ul,
.elreda-footer .elreda-footer__menu ol,
.elreda-footer .elreda-footer__menu .elementor-icon-list-items,
.elreda-footer .elreda-footer__menu .elementor-nav-menu,
.elreda-footer .elreda-footer__menu .e-n-menu-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.elreda-footer .elreda-footer__menu li,
.elreda-footer .elreda-footer__menu .elementor-icon-list-item,
.elreda-footer .elreda-footer__menu .menu-item,
.elreda-footer .elreda-footer__menu .e-n-menu-item,
.elreda-footer .elreda-footer__menu .wp-block-navigation-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: normal !important;
    white-space: normal !important;
}
.elreda-footer .elreda-footer__menu a,
.elreda-footer .elreda-footer__menu .elementor-item,
.elreda-footer .elreda-footer__menu .elementor-icon-list-item > a,
.elreda-footer .elreda-footer__menu .e-n-menu-title {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 32px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ef-text) !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}
.elreda-footer .elreda-footer__menu .elementor-icon-list-text,
.elreda-footer .elreda-footer__menu .elementor-item > span,
.elreda-footer .elreda-footer__menu .e-n-menu-title-text {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}
.elreda-footer .elreda-footer__menu .elementor-icon-list-icon { display: none !important; }
.elreda-footer .elreda-footer__menu a:hover,
.elreda-footer .elreda-footer__menu a:focus-visible,
.elreda-footer .elreda-footer__menu a:hover .elementor-icon-list-text {
    color: var(--ef-hover) !important;
}

/* 08 — Mobile accordion buttons inserted by the existing footer.js.
   CSS does not open menus by itself; JS controls [hidden]. */
.elreda-footer .elreda-footer__accordion-button {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: inherit;
    text-align: right;
    cursor: default;
}
.elreda-footer .elreda-footer__accordion-button::after { display: none; }
.elreda-footer .elreda-footer__menu[hidden] { display: none !important; }

/* 09 — Copyright row. Background can span viewport even when nested in
   the 1240px inner container. Keep the copyright ROW OUTSIDE the Grid. */
.elreda-footer .elreda-footer__bottom {
    position: relative;
    isolation: isolate;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 24px;
    width: min(100%, 1240px) !important;
    max-width: 1240px !important;
    min-width: 0;
    min-height: 58px !important;
    margin: 0 auto !important;
    padding: 16px 24px !important;
    border-top: 1px solid var(--ef-line);
    background: transparent !important;
    color: var(--ef-text);
}
.elreda-footer .elreda-footer__bottom::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--ef-deep);
}
.elreda-footer .elreda-footer__bottom p,
.elreda-footer .elreda-footer__bottom .elementor-widget,
.elreda-footer .elreda-footer__bottom .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: var(--ef-text) !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}
.elreda-footer .elreda-footer__bottom a { color: #fff; }

/* 10 — Tablet: retain balanced columns if space permits. */
@media (min-width: 768px) and (max-width: 1024px) {
    .elreda-footer .elreda-footer__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 20px !important;
        padding: 42px 20px !important;
    }
    .elreda-footer .elreda-footer__links .elementor-heading-title,
    .elreda-footer .elreda-footer__categories .elementor-heading-title { font-size: 18px !important; }
    .elreda-footer .elreda-footer__menu .elementor-icon-list-item > a,
    .elreda-footer .elreda-footer__menu .elementor-nav-menu > li > a,
    .elreda-footer .elreda-footer__menu ul.menu > li > a { font-size: 13.5px !important; }
}

/* 11 — Mobile: centered brand, right-aligned compact lists, accordion. */
@media (max-width: 767px) {
    .elreda-footer { overflow: clip; }
    .elreda-footer .elreda-footer__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 30px 20px 20px !important;
    }
    .elreda-footer .elreda-footer__grid > .e-con,
    .elreda-footer .elreda-footer__about,
    .elreda-footer .elreda-footer__links,
    .elreda-footer .elreda-footer__categories {
        grid-column: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .elreda-footer .elreda-footer__about {
        align-items: center !important;
        padding-bottom: 24px !important;
        text-align: center !important;
    }
    /* Standalone image fallback only; brand's nested logo is sized below. */
    .elreda-footer .elreda-footer__about > .elementor-widget-image {
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    .elreda-footer .elreda-footer__about > .elementor-widget-image img {
        width: 94px !important;
        max-height: 100px !important;
    }
    .elreda-footer .elreda-footer__about .elementor-widget-text-editor {
        margin-bottom: 18px !important;
        text-align: center !important;
    }
    .elreda-footer .elreda-footer__about .elementor-widget-text-editor p,
    .elreda-footer .elreda-footer__about .elementor-widget-text-editor {
        font-size: 14px !important;
        line-height: 1.82 !important;
        text-align: center !important;
    }
    /* Address rows remain right aligned so map pins line up correctly. */
    .elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) {
        margin-bottom: 16px !important;
    }
    .elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-items {
        gap: 10px !important;
    }
    .elreda-footer .elreda-footer__about .elementor-widget-icon-list:not(.elreda-footer__social) .elementor-icon-list-text {
        font-size: 13.5px !important;
        line-height: 1.72 !important;
        text-align: right !important;
    }
    .elreda-footer .elreda-footer__social {
        margin: 0 !important;
    }
    .elreda-footer .elreda-footer__social .elementor-icon-list-items,
    .elreda-footer .elreda-footer__social .elementor-social-icons-wrapper {
        justify-content: center !important;
    }

    .elreda-footer .elreda-footer__links,
    .elreda-footer .elreda-footer__categories {
        border-top: 1px solid var(--ef-line);
        padding: 0 !important;
    }
    .elreda-footer .elreda-footer__categories {
        border-bottom: 1px solid var(--ef-line);
    }
    .elreda-footer .elreda-footer__links .elementor-widget-heading,
    .elreda-footer .elreda-footer__categories .elementor-widget-heading {
        margin: 0 !important;
    }
    .elreda-footer .elreda-footer__links .elementor-heading-title,
    .elreda-footer .elreda-footer__categories .elementor-heading-title {
        margin: 0 !important;
        padding: 0 !important;
        color: #fff !important;
        font-size: 17px !important;
        line-height: 1.5 !important;
        text-align: right !important;
    }
    .elreda-footer .elreda-footer__accordion-button {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        gap: 14px;
        width: 100%;
        min-height: 58px;
        padding: 12px 0;
        border: 0 !important;
        background: transparent !important;
        color: #fff !important;
        font-family: inherit;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.5;
        text-align: right !important;
        cursor: pointer;
    }
    .elreda-footer .elreda-footer__accordion-button::after {
        content: "+";
        display: inline-flex !important;
        flex: 0 0 30px;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border: 1px solid var(--ef-line);
        border-radius: 9px;
        background: var(--ef-pill);
        color: #fff;
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
    }
    .elreda-footer .elreda-footer__accordion-button[aria-expanded="true"]::after {
        content: "−";
    }
    /* Mobile: every link gets its own natural-height row, even when its
       text wraps. CSS does not change footer.js accordion behavior. */
    .elreda-footer .elreda-footer__menu {
        padding: 3px 0 16px !important;
    }
    .elreda-footer .elreda-footer__menu[hidden] { display: none !important; }
    .elreda-footer .elreda-footer__menu ul,
    .elreda-footer .elreda-footer__menu ol,
    .elreda-footer .elreda-footer__menu .e-n-menu-wrapper {
        gap: 4px !important;
    }
    .elreda-footer .elreda-footer__menu li,
    .elreda-footer .elreda-footer__menu .elementor-icon-list-item,
    .elreda-footer .elreda-footer__menu .menu-item,
    .elreda-footer .elreda-footer__menu .e-n-menu-item {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .elreda-footer .elreda-footer__menu a,
    .elreda-footer .elreda-footer__menu .elementor-item,
    .elreda-footer .elreda-footer__menu .e-n-menu-title {
        display: block !important;
        min-height: 42px !important;
        height: auto !important;
        padding: 9px 0 !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        text-align: right !important;
        white-space: normal !important;
    }
    .elreda-footer .elreda-footer__bottom {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 6px !important;
        min-height: 66px !important;
        padding: 15px 20px 22px !important;
        text-align: center !important;
    }
    .elreda-footer .elreda-footer__bottom,
    .elreda-footer .elreda-footer__bottom * { text-align: center !important; }
}

/* 11a — Center the WHOLE brand group on mobile, never distribute the
 * logo and title across the full screen width. Works with Elementor Flexbox
 * and containers that contain an inner .e-con-inner wrapper.
 */
@media (max-width: 767px) {
    .elreda-footer .elreda-footer__about > .elreda-footer__brand {
        order: 1;
        align-self: center !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 0 auto 19px !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    .elreda-footer .elreda-footer__brand > .e-con-inner {
        justify-content: center !important;
        gap: 12px !important;
    }
    .elreda-footer .elreda-footer__brand .elementor-widget-image img {
        width: 67px !important;
        max-height: 74px !important;
    }
    .elreda-footer .elreda-footer__brand .elementor-heading-title {
        font-size: 21px !important;
        line-height: 1.4 !important;
        text-align: right !important;
    }
    /* Indent expanded links slightly while keeping them right-aligned. */
    .elreda-footer .elreda-footer__links .elreda-footer__menu:not([hidden]),
    .elreda-footer .elreda-footer__categories .elreda-footer__menu:not([hidden]) {
        padding: 4px 14px 17px 0 !important;
        text-align: right !important;
    }
}
@media (max-width: 390px) {
    .elreda-footer .elreda-footer__brand .elementor-widget-image img {
        width: 60px !important;
    }
    .elreda-footer .elreda-footer__brand .elementor-heading-title {
        font-size: 19px !important;
    }
}

/* 12 — Responsive touch devices and reduced-motion accessibility. */
@media (max-width: 390px) {
    .elreda-footer .elreda-footer__grid { padding-inline: 16px !important; }
    .elreda-footer .elreda-footer__social .elementor-icon-list-item,
    .elreda-footer .elreda-footer__social .elementor-grid-item {
        flex-basis: 42px !important;
        width: 42px !important;
        height: 42px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .elreda-footer .elreda-footer__social .elementor-icon-list-item,
    .elreda-footer .elreda-footer__social .elementor-grid-item { transition: none; }
}
.elreda-footer a:focus-visible,
.elreda-footer .elreda-footer__accordion-button:focus-visible {
    outline: 2px solid var(--ef-hover);
    outline-offset: 3px;
}

/* =========================================================
   ELREDA — Brand Logo + Title Alignment Fix
   ========================================================= */

/* Desktop: keep logo and title together on the right */
.elreda-footer .elreda-footer__about > .elreda-footer__brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: fit-content !important;
    max-width: 100% !important;
    gap: 14px !important;

    margin: 0 0 18px auto !important;
    padding: 0 !important;

    direction: rtl;
}

/* Stop Elementor from stretching the heading */
.elreda-footer .elreda-footer__brand > .elementor-widget-heading {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Keep logo at a consistent size */
.elreda-footer .elreda-footer__brand > .elementor-widget-image {
    flex: 0 0 76px !important;
    width: 76px !important;
    max-width: 76px !important;

    margin: 0 !important;
}

.elreda-footer .elreda-footer__brand .elementor-widget-image img {
    width: 76px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
}

/* Mobile: center the complete logo + title group */
@media (max-width: 767px) {

    .elreda-footer .elreda-footer__about > .elreda-footer__brand {
        width: fit-content !important;
        max-width: 100% !important;

        justify-content: center !important;
        gap: 12px !important;

        margin: 0 auto 20px !important;
    }

    .elreda-footer .elreda-footer__brand > .elementor-widget-image {
        flex: 0 0 64px !important;
        width: 64px !important;
        max-width: 64px !important;
    }

    .elreda-footer .elreda-footer__brand .elementor-widget-image img {
        width: 64px !important;
    }

    .elreda-footer .elreda-footer__brand .elementor-heading-title {
        font-size: 21px !important;
        white-space: nowrap;
    }
}
