/* Header Redesign Styles */
/* Note: CSS variables defined in base.css */

.redesigned-header,
.redesigned-header * {
    box-sizing: border-box;
    font-family: var(--font-main) !important;
}

.redesigned-header {
    width: 100%;
    min-height: 0;
    padding: 20px 0 60px;
    position: relative;
    overflow: hidden;
    background: var(--color-blue);
    border-bottom: 1px solid rgba(162, 148, 117, 0.9);
}

body.header-min .redesigned-header {
    padding-bottom: 0 !important;
}

body.hide-header-nav .redesigned-header .header-nav {
    display: none !important;
}

body.hide-header-nav .redesigned-header .header-shell {
    flex-direction: column;
    justify-content: center;
}

body.hide-header-nav .redesigned-header .header-logo-area {
    order: 1;
    flex: 0 0 auto !important;
    justify-content: center;
}

body.hide-header-nav .redesigned-header .header-title-box {
    order: 2;
    width: 100%;
}

/*body.menu-page-layout .redesigned-header {
    min-height: 0;
    padding: 26px 0 115px;
}*/

    .redesigned-header .header-shell {
        width: 100%;
        max-width: 1080px;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        direction: ltr;
        padding-bottom: 20px;
/* left right margin, only when less than 1080px*/
    }

.redesigned-header .header-logo-area {
    order: 3;
    flex: 0 1 240px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.redesigned-header .header-logo-area a {
    display: block;
    line-height: 0;
}

.redesigned-header .header-logo-area img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
}

 .redesigned-header .header-title-box {
        order: 2;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        min-width: 0;
        padding: 40px 0 40px 0;
    }

.header-sections-divider {
    background: rgba(242, 240, 239, 0.55);
    height: 1px;
}

.redesigned-header .header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-offwhite);
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    direction: rtl;
}

.redesigned-header .header-nav {
    order: 1;
    flex: 0 1 240px;
    display: flex;
    align-self: center;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    direction: ltr;
}

.redesigned-header .header-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    color: var(--color-offwhite);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    direction: rtl;
    transition: color 0.2s;
}

.redesigned-header .header-nav .header-nav-link-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.redesigned-header .header-nav .header-nav-link-content > span {
    order: 1;
}

.redesigned-header .header-nav .header-nav-link-content svg {
    order: 2;
    width: auto;
    height: 18px;
    display: block;
    color: currentColor;
}

.redesigned-header .header-nav a.active {
    color: var(--color-gold);
}

.redesigned-header .header-nav a:hover,
.redesigned-header .header-nav a:focus {
    color: var(--color-gold);
}

.redesigned-header .header-nav a.active:hover,
.redesigned-header .header-nav a.active:focus {
    color: var(--color-gold);
}

.redesigned-header .header-nav .header-nav-divider {
    width: 1px;
    height: 33px;
    background: rgba(242, 240, 239, 0.38);
    align-self: center;
}

@media (max-width: 1080px){

    .redesigned-header .header-shell {
        padding: 0px 20px 20px;
    }


}
/* ===== Responsive ===== */
/* Mobile/tablet compact layout: <=768px */
@media (max-width: 768px) {
    .redesigned-header {
        padding: 20px 0 60px;
    }

    .redesigned-header .header-shell {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 0 20px;
        padding-bottom: 20px;
    }

    .redesigned-header .header-logo-area {
        flex: none;
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .redesigned-header .header-logo-area img {
        width: 180px;
        height: auto;
    }

    .redesigned-header .header-title-box {
        position: static;
        transform: none;
        order: 2;
        width: 100%;
        padding: 10px 0;
    }

    .redesigned-header .header-title {
        width: 100%;
        max-width: 100%;
        font-size: 22px;
        min-height: auto;
        line-height: 1.3;
        padding: 6px 8px;
    }

    .redesigned-header .header-nav {
        flex: none;
        width: 100%;
        order: 3;
        gap: 18px;
        justify-content: center;
        flex-wrap: wrap;
        align-self: auto;
        align-items: center;
        padding-top: 10px;
    }

    .redesigned-header .header-nav .header-nav-divider {
        display: block;
        height: 24px;
    }

    .redesigned-header .header-nav a {
        font-size: 14px;
    }
}

/* Mobile phones: <=480px */
@media (max-width: 480px) {
    .redesigned-header {
        padding: 16px 0 60px;
    }

    .redesigned-header .header-shell {
        gap: 12px;
        padding: 0 16px;
        padding-bottom: 14px;
    }

    .redesigned-header .header-logo-area img {
        width: 150px;
    }

    .redesigned-header .header-title {
        font-size: 18px;
        padding: 4px 6px;
    }

    .redesigned-header .header-nav {
        gap: 12px;
    }

    .redesigned-header .header-nav a {
        font-size: 13px;
        padding: 0 0 4px;
    }
}

/* ===== Popup Header ===== */
.popup-header,
.popup-header * {
    box-sizing: border-box;
    font-family: var(--font-main) !important;
}

.popup-header {
    width: 100%;
    background: var(--color-blue);
    border-bottom: 1px solid rgba(162, 148, 117, 0.9);
    align-items: center;
}

.popup-header-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    direction: ltr;
    padding: 20px 0px;
}

.popup-header-title {
    color: var(--color-offwhite);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    direction: rtl;
}

.popup-header-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.popup-header-logo-img {
    height: 60px;
    width: auto;
    display: block;
}


@media (max-width: 1080px) {

    .popup-header-shell {
        padding: 20px 30px;
    }
}

@media (max-width: 800px) {

    .popup-header-shell {
        flex-direction: column-reverse;
        gap: 20px;
    }
}