/*
 Theme Name: GMO Free Regions
 Theme URI: https://www.gmo-free-regions.org
 Description: Custom child theme
 Author: GMO Free Regions
 Template: astra
 Version: 1.0
*/

/* RESET */
.entry-content[ast-blocks-layout] > ol,
.entry-content[ast-blocks-layout] > ul,
.entry-content[data-ast-blocks-layout] > ol.wp-block-list,
.entry-content[data-ast-blocks-layout] > ul.wp-block-list {
    margin-left: 1.5em;
}
.entry-content[ast-blocks-layout] > ol li,
.entry-content[data-ast-blocks-layout] > ol.wp-block-list > li {
    margin-bottom: 1em;
}
.entry-content[ast-blocks-layout] > ol > li::marker,
.entry-content[data-ast-blocks-layout] > ol.wp-block-list > li::marker {
    font-weight: bold;
  }

/* GENERAL */
header.entry-header h1.entry-title,
h1.wp-block-heading,
h1.page-title,
h1.ast-archive-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--ast-global-color-2);
}
.entry-content h2 {
    padding-top: 20px;
}
.entry-content h3 {
    padding-top: 10px;
}
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-bottom: 10px;
}

/* MENU */
body.ast-theme-transparent-header header .custom-logo-link img {
    background: #fff;
    padding: 10px;
    border-radius: 100%;
    max-width: 180px;
    width: 180px;
}

.main-header-menu .menu-link {
    font-size: 18px;
    font-family: 'Outfit',sans-serif;
    font-weight: 500;
}
.main-header-menu .menu-item.current-menu-item > .menu-link
.main-header-menu .current-conferences-ancestor > .menu-link {
    color: var(--ast-global-color-1);
}

.main-header-menu .sub-menu {
    width: 300px;
    padding: 0.5em 0;
}
.main-header-menu .sub-menu .menu-link {
    padding: .4em 1em;
    font-size: 16px;
    font-weight: 400;
}
.ast-theme-transparent-header .main-header-menu .sub-menu .menu-item > .menu-link {
    color: var(--ast-global-color-2);
}
.ast-theme-transparent-header .main-header-menu .sub-menu .menu-item > .menu-link:hover {
    color: var(--ast-global-color-1);
}

.ast-icon.icon-search svg {
    fill: rgba(255,255,255,0.8);
}
.ast-dropdown-active .ast-icon.icon-search svg {
    fill: var(--ast-global-color-1);
}

@media (max-width: 768px) {
    body.ast-theme-transparent-header header .custom-logo-link img,
    header .custom-logo-link img {
        padding: 5px;
        width: 80px;
    }
}

/* CONTENT */
.ast-separate-container .site-content .hentry {
    background: none;
    padding: 0;
}
body.ast-separate-container.ast-two-container.ast-right-sidebar #secondary {
    padding-left: 0;
}

@media (min-width: 922px) {
    .site-content .ast-container {
        gap: 50px;
    }
}

/* STARTPAGE */
.loop-articles {
    display: grid;
    grid-template-columns: repeat(3 , minmax(0, 1fr));
    gap: 40px;
}
.loop-articles article {
    background: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.loop-articles .la-inner {
    padding: 20px;
}
.loop-articles h4 {
    margin-bottom: 15px;
}
.ast-single-post .loop-articles h4 a,
.loop-articles h4 a {
    display: flex;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}
.loop-articles h4 img {
    width: 20px;
    margin-right: 5px;
}
.loop-articles .la-byline {
    padding-bottom: 15px;
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 500;
    line-height: 23px;
    text-decoration: none;
}
.loop-articles .la-byline .la-date {
    padding-right: 10px;
}
.loop-articles .la-byline .dashicons {
    font-size: inherit;
    line-height: inherit;
    width: inherit;
    height: inherit;
    margin-right: 4px;
    vertical-align: bottom;
}
.loop-articles a.la-readmore {
    display: inline-block;
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    border-radius: 6px;
    padding: 6px 16px;
    margin: 20px 0;
    font-family: 'Inter',sans-serif;
    font-weight: 600;
    font-size: 15px;
    font-size: 0.9375rem;
    text-decoration: none;
}
.loop-articles a.la-readmore:hover {
    background: var(--ast-global-color-8);
}
#loop-countries.loop-articles a.la-readmore {
    display: inline-flex;
    gap: 10px;
    background: none;
    margin: 0;
    padding: 0;
    color: var(--ast-global-color-2);
}
#loop-countries.loop-articles a.la-readmore:hover {
    color: var(--ast-global-color-1);
}
#loop-countries.loop-articles a.la-readmore span {
    align-content: center;
}
#loop-countries.loop-articles a.la-readmore svg {
    display: flex;
    width: 15px;
}

@media (max-width: 768px) {
    .loop-articles {
        grid-template-columns: repeat(2 , minmax(0, 1fr));
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .loop-articles {
        grid-template-columns: repeat(1 , minmax(0, 1fr));
    }
}

/* CPT & TAXONOMY ARCHIVES */
body.post-type-archive .ast-archive-description {
    margin-bottom: 40px;
}
.archive-description p {
    font-size: 100%;
    margin-top: 20px;
}

#cpttax {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    gap: 40px;
    margin: 50px 0;
}
#cpttax li a {
    display: block;
    height: 100%;
    background: #fff;
}
#cpttax li a:hover {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
#cpttax li a div {
    padding: 30px;
}
#cpttax li a div h3 {
    margin: 0 0 15px;
}
#cpttax li a div p {
    margin: 0;
}

.single-conferences #cpt-subpages ul li.current_page_item a,
.single-conferences #cpt-subpages ul li.current-menu-ancestor a,
.single-conferences #cpt-subpages ul li a:hover {
    font-weight: 600;
}
.single-conferences #cpt-subpages ul li ul {
    display: none;
    margin-left: 20px;
}
.single-conferences #cpt-subpages ul li.current_page_item ul,
.single-conferences #cpt-subpages ul li.current-menu-ancestor ul {
    display: block;
}
.single-conferences #cpt-subpages ul li ul li {
    list-style: disc;
}
.single-conferences #cpt-subpages ul li.current_page_item ul li a,
.single-conferences #cpt-subpages ul li.current-menu-ancestor ul li a,
.single-conferences #cpt-subpages ul li ul li a {
    font-weight: 400;
}
.single-conferences #cpt-subpages ul li.current-menu-ancestor ul li.current_page_item a,
.single-conferences #cpt-subpages ul li.current-menu-ancestor ul li a:hover,
.single-conferences #cpt-subpages ul li.current_page_item ul li a:hover,
.single-conferences #cpt-subpages ul li ul li.current_page_item a {
    font-weight: 600;
}

/* CAMPAIGNS */
.entry-content > ul.list-campaigns {
    list-style: none;
    margin-left: 0;
}
.entry-content > ul.list-campaigns li {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.entry-content > ul.list-campaigns li::after {
    position: absolute;
    content: '';
    flex: 1;
    width: 50px;
    left: 0;
    bottom: 0;
    border-bottom: 1px dashed #eee;
}
.entry-content > ul.list-campaigns li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
.entry-content > ul.list-campaigns li:last-child::after {
    content: none;
}

/* SIDEBAR */
.ast-separate-container.ast-two-container.ast-right-sidebar #secondary {
    padding-left: 30px;
    padding-right: 0;
    margin: 4em 0 2.5em;
    word-break: break-word;
    line-height: 2;
}
.ast-separate-container.ast-two-container #secondary .widget {
    background-color: var(--ast-global-color-5);
    background-image: none;
    padding: 2em;
}

aside#cpt-subpages ul ul {
    margin-left: 15px;
    font-size: 0.9rem;
    line-height: 1.5rem;
}

/* CONFERENCES & COUNTRIES ARCHIVES */
.wp-block-columns.logos {
    padding: 30px 0 50px;
}
.wp-block-columns.logos .wp-block-column {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.wp-block-columns.logos .wp-block-column figure {
    display: flex;
    align-items: center;
    margin: 0;
}

.countries-google-map {
    background: #fff;
    margin: 0 0 40px;
    padding: 10px;
}
.countries-google-map .wpgmp_map_parent {
    margin: 0;
}
.countries-google-map .wpgmp_map_parent .wpgmp_map div div div div div div img[src*="uploads"],
.countries-google-map .wpgmp_map_parent .wpgmp_map div div div div div div img[src*="themes/gmo"] {
    width: 24px !important;
    height: 24px !important;
}

@media (min-width:922px) {
    .single-conferences #primary,
    .single-countries #primary {
        width: 70%;
    }
    .single-conferences #secondary,
    .single-countries #secondary {
        width: 30%;
    }
}

/* COUNTRIES */
.single-countries .entry-title {
    display: inline-flex;
    align-items: start;
    gap: 15px;
}
.single-countries .entry-title img {
    margin-top: 10px;
    width: 40px;
    border-radius: 20px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
#country-update {
    background: #fff;
    margin: 50px 0 20px;
    padding: 20px 25px;
}

/* SEARCH */
body.search #main {
    background: #fff;
    margin-top: 5px;
    padding: 3rem;
}

/* FOOTER */
.site-primary-footer-wrap {
    padding-bottom: 20px;
}
.site-footer-section .widget {
    margin: 0 0 1em 0;
}
.site-footer-section .wp-block-list li {
    position: relative;
    display: inline-block;
    list-style: none;
    margin: 0 5px 0 0;
    padding: 0 10px 0 0;
}
.site-footer-section .wp-block-list li:after { 
    position: absolute;
    content: '\b7\a0';
    font-size: 30px;
    line-height: 5px;
    top: 12px;
    right: -10px;
}
.site-footer-section .wp-block-list li:last-child:after { 
    content: '';
}
.site-footer-section .wp-block-list li a:hover {
    text-decoration: underline;
}

.site-below-footer-wrap {
    padding-top: 10px;
    padding-bottom: 10px;
}
.site-below-footer-wrap[data-section="section-below-footer-builder"],
.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
    min-height: initial;
}

.ast-footer-copyright,
#astra-footer-menu {
    font-size: 0.8em;
}
.site-footer-below-section-2 {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
#astra-footer-menu {
    justify-content: flex-end;
}
.site-footer-section>* {
    margin: 0;
}
.site-footer-focus-item {
    width: auto;
}
#astra-footer-menu > .menu-item > a.menu-link {
    color: var(--ast-global-color-2);
}
#astra-footer-menu > .menu-item > a.menu-link:hover {
    color: var(--ast-global-color-1);
    text-decoration: underline;
}
.footer-social-inner-wrap {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
        grid-row-gap: 20px;
    }
    .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
        padding-bottom: 30px;
    }
    #astra-footer-menu {
        justify-content: center;
    }
}


/* BLOCK - CORE - IMAGE */
.wp-block-image :where(figcaption) {
    margin-top: 0.2em;
    font-size: 0.8rem;
}

/* BLOCK - CORE - LIST */
.entry-content[ast-blocks-layout] > ol,
.entry-content[ast-blocks-layout] > ul {
    margin-left: 1.5em;
}

/* BLOCK - CORE - TABLE */
.wp-block-table.programme-2010 td {
    padding: 3px 25px 3px 0;
}
.wp-block-table.programme-2010 td:first-child {
    white-space: nowrap;
    vertical-align: top;
}
.wp-block-table.programme-2010 td:nth-child(2) {
    width: 100%;
}
.wp-block-table.programme-2010 td:last-child {
    padding-right: 0;
}

/* BLOCK - SPECTRA - SEPARATOR */
.wp-block-uagb-separator {
    margin-bottom: 1em;
}

/* BLOCK - SPECTRA - TEAM */
.wp-block-uagb-team {
    margin-bottom: 30px;
}
.wp-block-uagb-team h3.uagb-team__title,
.wp-block-uagb-team h4.uagb-team__title {
    margin-bottom: 0;
}
.wp-block-uagb-team h3.uagb-team__title a,
.wp-block-uagb-team h4.uagb-team__title a {
    color: var(--ast-global-color-2);
}
.wp-block-uagb-team h3.uagb-team__title a:hover,
.wp-block-uagb-team h4.uagb-team__title a:hover {
    text-decoration: underline;
}
.wp-block-uagb-team.uagb-team__image-position-left > img {
    margin-left: 0;
}
.wp-block-uagb-team p.uagb-team__desc {
    margin-bottom: 0;
}
.wp-block-uagb-team p.uagb-team__desc a[href$=".pdf"] {
    position: relative;
    padding-left: 25px;
}
.wp-block-uagb-team p.uagb-team__desc a[href$=".pdf"]::after {
    content: url('data:image/svg+xml,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 309.267 309.267" xml:space="preserve" fill="%23000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path style="fill:%23E2574C;" d="M38.658,0h164.23l87.049,86.711v203.227c0,10.679-8.659,19.329-19.329,19.329H38.658 c-10.67,0-19.329-8.65-19.329-19.329V19.329C19.329,8.65,27.989,0,38.658,0z"></path><path style="fill:%23B53629;" d="M289.658,86.981h-67.372c-10.67,0-19.329-8.659-19.329-19.329V0.193L289.658,86.981z"></path><path style="fill:%23FFFFFF;" d="M217.434,146.544c3.238,0,4.823-2.822,4.823-5.557c0-2.832-1.653-5.567-4.823-5.567h-18.44 c-3.605,0-5.615,2.986-5.615,6.282v45.317c0,4.04,2.3,6.282,5.412,6.282c3.093,0,5.403-2.242,5.403-6.282v-12.438h11.153 c3.46,0,5.19-2.832,5.19-5.644c0-2.754-1.73-5.49-5.19-5.49h-11.153v-16.903C204.194,146.544,217.434,146.544,217.434,146.544z M155.107,135.42h-13.492c-3.663,0-6.263,2.513-6.263,6.243v45.395c0,4.629,3.74,6.079,6.417,6.079h14.159 c16.758,0,27.824-11.027,27.824-28.047C183.743,147.095,173.325,135.42,155.107,135.42z M155.755,181.946h-8.225v-35.334h7.413 c11.221,0,16.101,7.529,16.101,17.918C171.044,174.253,166.25,181.946,155.755,181.946z M106.33,135.42H92.964 c-3.779,0-5.886,2.493-5.886,6.282v45.317c0,4.04,2.416,6.282,5.663,6.282s5.663-2.242,5.663-6.282v-13.231h8.379 c10.341,0,18.875-7.326,18.875-19.107C125.659,143.152,117.425,135.42,106.33,135.42z M106.108,163.158h-7.703v-17.097h7.703 c4.755,0,7.78,3.711,7.78,8.553C113.878,159.447,110.863,163.158,106.108,163.158z"></path></g></g></svg>');
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 20px;
}