/*
Theme Name: Ahmad Bin Zayed Foundation
Theme URI: https://www.ahmadfoundation.org/
Author: Ahmad Bin Zayed Foundation
Description: A bilingual English and Arabic WordPress theme preserving the foundation's original visual design.
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ahmad-foundation
*/

@font-face {
    font-family: "ABZF Helvetica";
    src: url("assets/fonts/348175049-Helvetica.woff") format("woff"),
         url("assets/fonts/348175049-Helvetica.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "ABZF Helvetica Light";
    src: url("assets/fonts/406158448-HELVETICA-LIGHT_0.woff") format("woff"),
         url("assets/fonts/406158448-HELVETICA-LIGHT_0.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "GE Dinar Two";
    src: url("assets/fonts/579193116-GE-Dinar-Two-Medium.ttf?ver=1.0.5") format("truetype"),
         url("assets/fonts/579193116-GE-Dinar-Two-Medium.woff?ver=1.0.5") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

:root {
    --abzf-green: #a4af4e;
    --abzf-gold: #ad8f6b;
    --abzf-text: #111;
    --abzf-shell: 1024px;
    --abzf-arabic-font: "GE Dinar Two", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    color: var(--abzf-text);
    background: #fff;
    font-family: "ABZF Helvetica", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

body.abzf-lang-ar {
    direction: rtl;
    font-family: var(--abzf-arabic-font);
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: #000;
    background: #fff;
}

.site-shell {
    width: var(--abzf-shell);
    max-width: calc(100% - 40px);
    margin-inline: auto;
}

.site-header {
    position: relative;
    width: 100%;
}

.header-top {
    position: relative;
    display: flow-root;
    height: 258px;
}

.site-branding {
    width: 612px;
    height: 183px;
    padding-top: 15px;
    margin: 45px auto 30px 0;
    background: url("assets/images/logo.png") center center / contain no-repeat;
}

.site-branding a {
    display: block;
    width: 100%;
    height: 100%;
}

.language-switch {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 200px;
    color: var(--abzf-green);
    font-size: 15px;
}

.abzf-lang-en .language-switch {
    font-family: var(--abzf-arabic-font);
}

.abzf-lang-ar .language-switch {
    direction: ltr;
    font-family: "ABZF Helvetica", Arial, sans-serif;
}

.language-switch a:hover,
.language-switch a:focus-visible {
    text-decoration: underline;
}

.navigation-bar {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 27px;
    background: var(--abzf-green);
}

.menu-toggle {
    display: none;
    width: 100%;
    padding: 8px 0;
    color: #fff;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.primary-navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-navigation > div > ul {
    display: flex;
    align-items: stretch;
}

.abzf-lang-ar .primary-navigation > div > ul {
    justify-content: flex-end;
}

.primary-navigation li {
    position: relative;
}

.primary-navigation a {
    display: block;
    padding: 4px 25px;
    color: #fff;
    font-size: 15px;
    line-height: 19px;
    white-space: nowrap;
}

.abzf-lang-ar .primary-navigation a {
    padding-inline: 15px;
    font-size: 18px;
    line-height: 21px;
}

.primary-navigation > div > ul > li:hover > a,
.primary-navigation > div > ul > li:focus-within > a,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
    color: var(--abzf-green);
    background: #fff;
}

.primary-navigation .sub-menu {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    display: none;
    min-width: 245px;
    padding: 5px 0;
    background: #fff;
    border: 1px solid #d9deae;
    box-shadow: 0 8px 20px rgb(0 0 0 / 14%);
}

.abzf-lang-ar .primary-navigation .sub-menu {
    right: 0;
    left: auto;
    min-width: 280px;
    text-align: right;
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
    display: block;
}

.primary-navigation .sub-menu a {
    padding: 7px 14px;
    color: #666;
    background: #fff;
    white-space: normal;
}

.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus-visible,
.primary-navigation .sub-menu .current-menu-item > a {
    color: var(--abzf-green);
    background: #f6f7ee;
}

.site-main {
    width: 100%;
}

.foundation-layout {
    display: grid;
    grid-template-columns: 612px 412px;
    min-height: 330px;
}

.abzf-lang-ar .foundation-layout {
    direction: ltr;
}

.content-panel {
    grid-column: 1;
    width: 586px;
    padding: 71px 6px 6px 0;
}

.abzf-lang-ar .content-panel {
    direction: rtl;
    padding-right: 6px;
    padding-left: 0;
}

.page-heading {
    margin: 0 0 10px;
    color: var(--abzf-green);
    font-family: "ABZF Helvetica", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
}

.abzf-lang-ar .page-heading {
    font-family: var(--abzf-arabic-font);
    font-size: 18px;
    text-align: right;
}

.entry-content {
    width: 450px;
    max-width: 100%;
    color: #000;
    text-align: justify;
}

.abzf-lang-ar .entry-content {
    margin-left: auto;
    direction: rtl;
    font-family: var(--abzf-arabic-font);
    text-align: justify;
}

.abzf-lang-ar .entry-content * {
    font-family: var(--abzf-arabic-font) !important;
}

.abzf-lang-ar .entry-content big {
    font-size: inherit;
    line-height: inherit;
}

.entry-content p {
    margin: 0 0 14px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 20px 0 6px;
    color: var(--abzf-green);
    font-family: "ABZF Helvetica Light", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
}

.abzf-lang-ar .entry-content h2,
.abzf-lang-ar .entry-content h3,
.abzf-lang-ar .entry-content h4 {
    font-family: var(--abzf-arabic-font);
    font-size: 18px;
}

.entry-content ul,
.entry-content ol {
    padding-inline-start: 22px;
    margin: 0 0 14px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content img:not(.gallery-item img) {
    display: block;
    margin-bottom: 12px;
}

.visual-panel {
    position: relative;
    z-index: 20;
    grid-column: 2;
    width: 412px;
}

.abzf-lang-ar .visual-panel {
    direction: ltr;
}

.portrait-stack {
    position: absolute;
    z-index: 20;
    top: -280px;
    left: 0;
    width: 485px;
    pointer-events: none;
}

.abzf-lang-ar .portrait-stack {
    right: auto;
    left: 0;
}

.portrait-stack img {
    display: block;
    width: 400px;
    max-width: 400px;
}

.hero-title {
    width: 485px;
    margin: 22px 0 0;
    color: var(--abzf-green);
    font-family: "ABZF Helvetica Light", Arial, sans-serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.05;
}

.abzf-lang-ar .hero-title {
    direction: rtl;
    width: 415px;
    margin: 22px 0 0 70px;
    font-family: var(--abzf-arabic-font);
    font-size: 45px;
    text-align: right;
}

.home-tagline {
    margin: 4px 0 0;
    color: var(--abzf-gold);
    font-family: "ABZF Dinar", Georgia, serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 1.15;
}

.abzf-lang-ar .home-tagline {
    direction: rtl;
    width: 450px;
    max-width: 100%;
    margin: 0 0 0 auto;
    font-family: var(--abzf-arabic-font);
    text-align: right;
}

.section-navigation {
    width: 690px;
    max-width: 100%;
    margin-top: 20px;
}

.section-navigation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.section-navigation li {
    min-height: 24px;
    padding-inline-start: 20px;
    color: var(--abzf-green);
    background: url("assets/images/arrow.png") left 4px no-repeat;
    font-size: 17px;
}

.abzf-lang-ar .section-navigation li {
    padding-right: 20px;
    padding-left: 0;
    background-position: right 4px;
    font-size: 18px;
    text-align: right;
}

.section-navigation a:hover,
.section-navigation a:focus-visible,
.section-navigation .is-current a {
    color: #666;
}

.gallery-group {
    margin: 0 0 18px;
}

.gallery-group h3 {
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 107px);
    gap: 10px 5px;
}

.gallery-item {
    display: block;
    width: 107px;
    height: 101px;
    overflow: hidden;
}

.gallery-item img {
    display: block;
    width: 107px;
    height: 101px;
    object-fit: cover;
}

.site-footer {
    min-height: 150px;
    padding: 8px 0;
    margin-top: 22px;
    color: #fff;
    background: url("assets/images/footer_bg.jpg") center top repeat-x;
    font-size: 13px;
}

.abzf-lang-ar .site-footer {
    font-size: 14px;
    text-align: right;
}

.site-footer ul {
    padding: 0;
    margin: 0 0 3px;
    list-style: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.layout-home .site-footer {
    display: none;
}

.not-found {
    min-height: 320px;
    padding-top: 70px;
}

.not-found h1 {
    margin: 0 0 10px;
    color: var(--abzf-green);
    font-family: "ABZF Helvetica Light", Arial, sans-serif;
    font-size: 44px;
    font-weight: 400;
}

.lightbox-dialog {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 40px;
    background: rgb(0 0 0 / 78%);
}

.lightbox-dialog[hidden] {
    display: none;
}

.lightbox-frame {
    position: relative;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgb(0 0 0 / 45%);
}

.lightbox-dialog img {
    display: block;
    max-width: calc(100vw - 110px);
    max-height: calc(100vh - 110px);
}

.lightbox-close {
    position: absolute;
    z-index: 2;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    color: #fff;
    background: #222;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 45%);
    font-size: 28px;
    font-family: Arial, sans-serif;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 1050px) {
    .foundation-layout {
        grid-template-columns: minmax(0, 58%) minmax(360px, 42%);
    }

    .content-panel,
    .visual-panel,
    .portrait-stack {
        width: 100%;
    }

    .primary-navigation a {
        padding-inline: 18px;
    }
}

@media (max-width: 800px) {
    .site-shell {
        max-width: calc(100% - 30px);
    }

    .header-top {
        height: 178px;
    }

    .site-branding {
        width: min(520px, 100%);
        height: 135px;
        padding: 0;
        margin: 34px auto 9px;
    }

    .language-switch {
        width: auto;
    }

    .menu-toggle {
        display: block;
    }

    .primary-navigation > div {
        display: none;
    }

    .primary-navigation.is-open > div {
        display: block;
    }

    .primary-navigation > div > ul {
        display: block;
        padding-bottom: 8px;
    }

    .primary-navigation a,
    .abzf-lang-ar .primary-navigation a {
        padding: 7px 10px;
    }

    .primary-navigation .sub-menu,
    .abzf-lang-ar .primary-navigation .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 16px;
        background: rgb(255 255 255 / 10%);
        border: 0;
        box-shadow: none;
    }

    .abzf-lang-ar .primary-navigation .sub-menu {
        padding-right: 16px;
        padding-left: 0;
    }

    .primary-navigation .sub-menu a {
        color: #fff;
        background: transparent;
    }

    .foundation-layout {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .content-panel,
    .abzf-lang-ar .content-panel {
        width: 100%;
        padding: 36px 0 20px;
    }

    .entry-content {
        width: 100%;
    }

    .visual-panel {
        order: -1;
        min-height: 300px;
    }

    .portrait-stack {
        position: relative;
        top: 0;
        width: 100%;
        padding-top: 14px;
        text-align: center;
    }

    .portrait-stack img {
        width: min(320px, 82vw);
        margin: 0 auto;
    }

    .hero-title,
    .abzf-lang-ar .hero-title {
        width: 100%;
        margin: 12px 0 0;
        font-size: clamp(30px, 9vw, 44px);
        text-align: center;
    }

    .home-tagline {
        margin-top: 0;
        font-size: clamp(34px, 10vw, 45px);
        text-align: center;
    }

    .abzf-lang-ar .home-tagline {
        text-align: center;
    }

    .section-navigation {
        margin-top: 0;
        padding-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 107px);
        max-width: 100%;
    }
}

@media (max-width: 390px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 107px);
    }
}
