/*
 * Footer restyle. Loaded after style.css, so it only overrides — every link,
 * the newsletter form, the legal documents and the social links are unchanged.
 *
 * Main visual changes: gold section titles, gold outline contact icons (they were
 * filled teal), social links as round buttons, and a cleaner stacked layout on
 * mobile.
 */

#ed-footer5 {
    --ft-bg: var(--brand-primary, #1a3562);
    --ft-gold: #e8b84a;
    --ft-text: rgba(255, 255, 255, 0.86);
    --ft-muted: rgba(255, 255, 255, 0.62);
    --ft-line: rgba(255, 255, 255, 0.14);

    background-color: var(--ft-bg);
}

/* ===== Section titles ===== */

#ed-footer5 .ed-footer5-widget .widget-title {
    color: var(--ft-gold);
    font-size: 19px;
    font-weight: 700;
    padding-bottom: 18px;
    margin: 0;
}

/* ===== Link lists ===== */

#ed-footer5 .ed-footer5-widget .menu-widget li {
    margin-bottom: 14px;
}

#ed-footer5 .ed-footer5-widget .menu-widget li a {
    color: var(--ft-text);
    font-size: 16px;
    transition: color 0.15s ease;
}

#ed-footer5 .ed-footer5-widget .menu-widget li a:hover {
    color: var(--ft-gold);
}

/* ===== Contact rows: gold outline icons ===== */

#ed-footer5 .cta-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#ed-footer5 .ed-footer5-widget .cta-widget .cta-info-item {
    align-items: center;
    gap: 14px;
    margin: 0;
}

#ed-footer5 .ed-footer5-widget .cta-widget .cta-info-item .item-icon {
    width: 24px;
    flex: 0 0 24px;
    margin: 0;
    color: var(--ft-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

#ed-footer5 .cta-info-item .item-icon svg {
    width: 22px;
    height: 22px;
}

#ed-footer5 .ed-footer5-widget .cta-widget .cta-info-item .item-text,
#ed-footer5 .ed-footer5-widget .cta-widget .cta-info-item .item-text a {
    color: var(--ft-text);
    font-size: 16px;
}

#ed-footer5 .cta-info-item a:hover {
    color: var(--ft-gold);
}

/* ===== Newsletter ===== */

#ed-footer5 .ed-footer5-newsletter-form h3 {
    color: #fff;
}

/* Logical sides, not left/right: the button used to sit at `right` with the
   text padded on the `left`, so in Arabic the text started right under the
   button. inline-end puts the button on the left in RTL, clear of the text. */
#ed-footer5 .ed-footer5-newsletter-form form input {
    padding-left: 0;
    padding-inline-start: 18px;
    padding-inline-end: 130px;
    color: #fff;
}

#ed-footer5 .ed-footer5-newsletter-form form button {
    right: auto;
    inset-inline-end: 6px;
}

/* ===== Copyright bar ===== */

#ed-footer5 .ed-copyright5 {
    border-top: 1px solid var(--ft-line);
    padding: 24px 0;
}

#ed-footer5 .ed-copyright5 .ed-copyright5-content p {
    color: var(--ft-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* social links as round buttons */
#ed-footer5 .ed-copyright5 .copyright5-social {
    gap: 12px !important;
}

#ed-footer5 .ed-copyright5 .copyright5-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    margin: 0 !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#ed-footer5 .ed-copyright5 .copyright5-social a:hover {
    background-color: var(--ft-gold);
    border-color: var(--ft-gold);
    color: var(--ft-bg);
}

/* ===== Mobile: one clean column, generous spacing ===== */

@media (max-width: 767.98px) {
    #ed-footer5 .container-fluid {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Newsletter took most of a phone screen: a 40px title, a 60px field, and a
       button pushed onto its own row below. Compact all three, and keep the
       button inside the field so the block is one row shorter. */
    #ed-footer5 .ed-footer5-newsletter {
        gap: 18px;
    }

    #ed-footer5 .ed-footer5-newsletter .brand-logo img {
        max-width: 150px;
        height: auto;
    }

    #ed-footer5 .ed-footer5-newsletter-form {
        gap: 14px;
        margin-bottom: 24px !important;
        padding-bottom: 28px !important;
    }

    #ed-footer5 .ed-footer5-newsletter-form h3 {
        font-size: 20px;
        line-height: 1.4;
        max-width: none;
    }

    #ed-footer5 .ed-footer5-newsletter-form form {
        max-width: none;
    }

    #ed-footer5 .ed-footer5-newsletter-form form input {
        height: 48px;
        font-size: 14px;
        padding-inline-end: 112px;
    }

    #ed-footer5 .ed-footer5-newsletter-form form button {
        position: absolute;
        top: 5px;
        margin-top: 0;
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }

    #ed-footer5 .ed-footer5-widget-wrap {
        flex-direction: column;
        gap: 36px;
    }

    #ed-footer5 .ed-footer5-widget {
        width: 100%;
    }

    #ed-footer5 .ed-copyright5 .ed-copyright5-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 18px;
    }

    /* the CR and VAT line wraps under the copyright instead of trailing it */
    #ed-footer5 .ed-copyright5 .ed-copyright5-content p .ms-2 {
        display: block;
        margin: 6px 0 0 !important;
    }
}
