/*
Theme Name: Tribal Resilience Climate Actions
Theme URI: https://www.valice.com/
Author: Valice
Author URI: https://www.valice.com/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Template: whitespace
Text Domain: tribal-resilience
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Whitespace is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

body {
    font-family: nimbus-sans, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

h1,
.site-title {
    font-family: nimbus-sans, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 26px;
}

a {
    color: #a65e4e;
}


a:hover,
a:visited {
    color: #bf8f65;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    position: relative;
}

.site-header .site-branding {
    max-width: 400px;
}

.site-title {
    margin: 0;
    padding: 0;
}

.site-title a {
    color: #000;
    text-decoration: none;
}

.main-navigation ul {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.main-navigation ul li.menu-item {
    margin: 10px;
}

.main-navigation ul li.menu-item a {
    color: #a65e4e;
    font-size: 20px;
    font-weight: 400;
    padding: 8px 10px;
    border-bottom: 1px solid transparent;
}
    
.main-navigation ul li.menu-item a:hover,
.main-navigation ul li.menu-item.current_page_item a {
    border-bottom: 1px solid #29715e;
}

.main-navigation ul li.menu-item.button a {
    background-color: #0c6e6f;
    color: #fff;
    border-radius: 8px;
}

button.menu-toggle {
    background: none;
    margin: 0 auto;

}

button.menu-toggle .dashicons,
button.menu-toggle.dashicons-before::before {
    color: #a65e4e;
    width: 40px;
    height: 40px;
    font-size: 40px;
}

@media only screen and (max-width: 1140px) {
    .site-header {
        flex-direction: column;
    }

    .main-navigation ul {
        justify-content: center;
    }
}

.off-green-background {
    background-color: #d9ceb0;
    margin-bottom: 0;
    padding: 40px 10px;
}

.green-background {
    background: #29715e;
    color: #fff;
    margin-bottom: 0;
    padding: 40px 10px;
}

.page-content {
    margin: 0;
}

.wp-block-search {
    max-width: 800px;
    margin: 10px auto;
}

.wp-block-column p {
    max-width: 900px;
    margin: 10px auto;
}

.wp-block-columns > .wp-block-column > .wp-block-columns {
    max-width: 1350px;
    margin: 0 auto;
}

.wp-block-columns.off-white-background .wp-block-column {
    background: #f2f2f2;
    padding: 20px;
}

p.has-white-color.has-text-color > a,
p.has-white-color.has-text-color > a:visted {
    color: #fff !important;
}

.strategy {
    padding: 10px;
    margin: 10px auto;
    background: #f2f2f2;
    border: 1px solid #000;
}

.strategy-title {
    line-height: 1;
    text-transform: none;
}

.strategy-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.strategy-categories > div,
.strategy-categories .scores > div,
.stats > div {
    width: 30%;
    padding: 10px;
}

.strategy-categories .scores {
    display: flex;
    width: 100%;
}

.search-results-content {
    display: flex;
    flex-direction: row-reverse;
}

.search-widgets li {
    list-style-type: none;
}

.search-widgets ul {
    padding: 0;
    margin: 0;
}

.search-widgets {
    min-width: 300px;
    width: 300px;
    max-width: 300px;
    padding: 20px;
}

.site-main {
    max-width: 1350px;
    margin: 0 auto;
    padding: 10px;
}

.home .site-main {
    max-width: 100%;
    padding: 0;
}

.wp-block-search__input {
    padding: 10px;
    font-size: 20px;
}

.stats {
    display: flex;
    justify-content: center;
}

.examples-content {
    display: flex
}

.examples-content .filters {
    min-width: 350px;
    margin-right: 20px;
}

.facetwp-pager,
.nav-links {
    text-align: right;
}

.archive .strategy h3 {
    margin-top: 0;
    padding-top: 0;
}

.archive .strategy h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Home Page */

.home-top {
    background-image: url(images/pattern.png);
    background-size: 400px auto;
    background-repeat: repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.home-top .overlay-content {
    background: rgba(87,145,137,0.9);
    padding-bottom: 240px;
    padding-top: 40px;
    width: 100%;
}

.home-top h1 {
    color: #fff;
    font-size: 40px;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 1.1;
    text-transform: none;
}

.home-top .overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-top-columns {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 40px;
    flex-wrap: wrap;
}

.home-top-columns .home-top-column {
    background: #fff;
    border-radius: 16px;
    width: 25%;
    font-size: 18px;
    max-width: 500px;
}

.home-top-columns .home-top-column .home-top-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}

.home-top-columns .home-top-column .home-top-content {
    padding: 20px;
}

.home-top-columns .quote {
    font-size: 20px;
    font-style: italic;
}

.home-top-columns .count-number {
    display: inline;
}

.home-top-columns .image-row {
    display: flex;
    justify-content: center;
}

.home-top-columns .image-row img {
    max-width: 80px;
}

.home-top-columns .quote:before {
    content: '\0022';
    font-size: 30px;
    margin-right: 5px;
}

.home-top-columns .quote:after {
    content: '\0022';
    font-size: 30px;
    margin-left: 5px;
}


form.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

a.button,
input.search-submit,
button.simplefavorite-button,
input[type="submit"],
input[type="reset"],
button {
    padding: 5px 15px;
    border: 1px solid #fff;
    color: #fff;
    background-color: #90967f;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    border-radius: 10px;
    line-height: 1.5;
    font-size: 18px;
}

button.simplefavorite-button,
input.search-submit,
input[type="submit"] {
    background-color: #a65e4e;
    cursor: pointer;
}

input.search-field {
    text-align: center;
    margin-bottom: 10px;
    max-width: 100%;
}

.home-top a.button {
    margin-top: 40px;
}

.home-top:after {
    content: '';
    background-image: url(images/header-lower.svg);
    bottom: 0;
    position: absolute;
    width: 100%;
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: repeat-x;
}

@media only screen and (max-width:2000px) {
    .home-top:after {
        background-size: cover;
    }
}

@media only screen and (max-width: 1140px) {
    .home-top {

    }
}

@media only screen and (max-width: 800px) {
    input.search-field,
    form.search-form {
        width: 80%;
        margin: 10px auto;
    }

    form.search-form {
        flex-direction: column;
    }
}

.search-options {
    padding: 10px 10px 30px 10px;
    background-color: #f2f2f2;
    margin-top: -60px;
    position: relative;
    z-index: 999;
}

.search-option-columns {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}

.keyword-search-column input.search-field,
.overlay-content input.search-field {
    width: 350px;
    margin-top: 10px;
}

.quick-link-buttons {
    display: flex;
    justify-content: center;
    padding: 40px 10px;
    background: #0c6e6f;
}

.upper-callouts {
    display: flex;
    justify-content: center;
    align-items: top;
    flex-wrap: wrap;
    padding-top: 40px;
}

.upper-callouts .callout {
    margin: 20px;
    background-image: url(images/callout-bg.png);
    background-size: contain;
    width: 435px;
    height: 437px;
    padding: 20px;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
}

.upper-callouts .callout .callout-image {
    margin-top: -60px;
    position: relative;
    z-index: 99;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.lower-callouts {
    background-color: #d9ceb0;
}

.lower-callouts {
    display: flex;
    justify-content: center;
    padding: 40px 10px;
    flex-wrap: wrap;
}

.lower-callouts .callout {
    width: 450px;
    margin: 40px;
    display: flex;
}

.lower-callouts .callout img {
    min-width: 112px;
    margin-right: 20px;
}

.lower-callouts .callout h2 {
    color: #a65e4e;
    margin: 0;
    padding: 0;
}

.lower-callouts .callout p {
    padding: 0;
    margin: 0;
}

.lower-callouts .callout a.button {
    background-color: #a65e4e;
    border: none;
}

.about-section .about-background {
    padding: 40px 10px;
    height: 800px;
    background-size: cover;
    background-position: right;
}

.about-section .about-overlay-content {
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    margin-top: 100px;
}

.about-section .about-overlay-content p {
    max-width: 500px;
    font-weight: 300;
}

.about-section .about-overlay-content h2 {
    max-width: 500px;
}

.about-section .about-overlay-content h2:after {
    content: '';
    border-bottom: 2px solid #fff;
    display: block;
    margin-top: 10px;
}

.about-section {
    position: relative;
}

.site-footer:before {
    content: '';
    background-image: url(images/black-background.svg);
    top: 0;
    top: -60px;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: repeat-x;
}

@media only screen and (max-width:2000px) {
    .site-footer:before {
        background-size: cover;
    }
}

.site-footer {
    margin-top: 80px;
    background-color: #000;
    color: #fff;
    position: relative;
    padding-top: 200px;
}

.home .site-footer {
    margin-top: 0;
}

.site-footer .footer-logo {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.site-footer .footer-logo img {
    position: absolute;
    width: 200px;
    left: 0;
    top: -120px;
}

.site-footer .footer-copyright {
    font-weight: 300;
    font-size: 14px;
}

.post, .page {
    margin: 0;
}


.related-strategies,
.search-results-items {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    padding-bottom: 20px;
}

.related-strategies .related-strategy,
.search-results-items .community-example-result {
    padding: 10px 10px 140px 10px;
    background-color: #f5f5f5;
    box-shadow: 3px 3px 5px #ccc;
    display: flex;
    flex-direction: column;
    position: relative;
}

.community-example-result p.example-excerpt {
}

.community-example-result .example-icons {
    position: absolute;
    bottom: 40px;
    width: 100%;
    height:100px;
    overflow: hidden;
}

.related-strategies .related-strategy {
    width: 280px;
}

.related-strategies .related-strategy h3 {
    font-weight: 400;
    font-size: 20px;
}

h2.widget-title {
    font-size: 20px;
}

.example-content-information {

}

.example-content p {
    margin-bottom: 10px;
}

.example-content-information .example-content {
    margin-bottom: 20px;
}

.example-content-information .example-map {
    width: 20%;
}

.gform_wrapper {
    padding: 20px;
}

.page-header {
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
}
h1.page-title {
    text-align: center;
    color: #fff;
    font-size: 32px;
    text-transform: none;
    text-shadow: 3px 3px 3px #000;
}

h1.page-title:after {
    content: '';
    display: block;
    margin: 10px auto;
    border-bottom: 2px solid #bf8f65;
    max-width: 200px;
}

.strategy-results,
.search-results-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.community-example-result {
    background-color: #f5f5f5;
    padding: 10px 10px 140px 10px;
    border-radius: 10px;
    box-shadow: 0rem .2rem .3rem rgba(0,0,0,.16);
    display: flex;
    flex-direction: column;
    position: relative;
}

.community-example-result p {
    line-height: 1.1;
}

.community-example-result i.tribe {
    color: #a65e4e;
    display: block;
    line-height: 1.1;
    text-align: center;
}

.example-content-content {
    background-color: #f5f5f5;
    padding: 10px;
    font-size: 24px;
    border-radius: 10px;
    box-shadow: 0rem .2rem .3rem rgba(0,0,0,.16);
    margin-bottom: 20px;
}

.example-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    position: absolute;
    bottom: 10px;
    left: 5px;
    right: 5px;
}

.example-buttons > button,
.example-buttons a.button {
    font-size: 15px;
    padding: 5px;
    margin: 0;
}

.tribe-map-facet {
    text-align: center;
    width: 100%;
}

.tribe-map-facet .fs-wrap {
    width: 400px;
    text-align: left;
}

.tribe-map-facet .fs-dropdown {
    width: 800px;
}

.tribe-plan-facets {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.facetwp-map-filtering { 
    display: none; 
  }

  .random-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    width: 100%;
    margin-top: -110px;
    margin-bottom: 20px;
  }

  .back-button {
    position: fixed;
    right: 0;
    bottom: 0;
  }

  .toggleable .toggle-handle {
    width: 100%;
    cursor: pointer;
    padding: 10px;
    background-color: #90967f;
    color: #fff;
    text-align: center;
}

.toggleable .toggle-handle:before {
    content: '+';
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.toggleable.open .toggle-handle:before {
    content: '-';
}

.toggleable .toggle-body {
    display: none;
}
    
.toggleable.open .toggle-body {
    display: block;
}

/* Advanced Search */

.results-and-filters-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 20px;
}

.results-and-filters-grid .filters-grid {
    background-color: #f2f2f2;
    padding: 0;
    border-radius: 20px;
}

.filters-grid .sidebar-search-section {
    background-color: #0c6e6f;
    border-radius: 20px 20px 0 0;
    padding: 10px;
}

.selection-section {
    padding: 10px;
}

.selection-section .facets {
    margin: 0 auto;
}

.selection-section .facets > div {
   max-width: 300px;
}

.selection-section .facets .image-label {
    display: flex;
    align-items: center
}

.selection-section .facets .image-label label {
    display: block;
}

.selection-section .facets img {
    width: 50px;
    height: auto;
    display: block;
}
.strategy-categories img {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto;
}


.selection-section .facets select {
}

.selection-section .facets .facetwp-facet {
    margin-bottom: 10px;
}

.results-grid .facetwp-facet {
    margin-bottom: 10px;
}

.selection-section .facets .fs-wrap {
    width: 100%;
    max-width: 300px;
}

.selection-section .facets .fs-dropdown {
    width: 800px;
}

.selection-section .facets .fs-dropdown .fs-options {
    text-align: left;
}

.selection-section .facets .facetwp-dropdown {
    background: #fff;
    font-size: 20px;
    max-width: 100%;
    padding: 3px;
}

.selection-section .facets label {

}

a.tool-tip-link {
    text-decoration: none;
}

a.tool-tip-link em {
	font-style: normal;
}

a.tool-tip-link strong {
	font-weight: normal;
}

a.tool-tip-link {
    color: #000;
}

.qtip-default {
	border: none !important;
	background: #fff !important;
	padding: 10px !important;
	box-shadow: 3px 3px 5px #ccc !important;
}

.qtip-titlebar + .qtip-content {
    font-size: 20px;
    line-height: 1;
}

.qtip-default .qtip-titlebar {
    background-color: #90967f !important;
}

.qtip-icon .ui-icon {
    font-size: 20px;
}

.qtip-titlebar {
    height: 28px;
}

.sort-and-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.sort-and-filter .facetwp-facet {
    margin-bottom: 0;
}

h2.tribe-map-name {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 5px;
    padding-bottom: 5px
}

h2.tribe-map-name:after {
    content: '';
    border-bottom: 2px solid #29715e;
    max-width: 100px;
    display: block;
    margin-top: 5px;
}

.strategy-categories .assets {
    border-radius: 10px;
    background-color: #d9ceb0;
}

.strategy-categories .hazards {
    border-radius: 10px;
    background-color: #6c2805;
    color: #fff;
}

.strategy-categories .types {
    border-radius: 10px;
    background-color: #0c6e6f;
    color: #fff;
}

.strategy-categories .hazards a,
.strategy-categories .types a {
    color: #fff;
}

.strategy-categories .assets a {
    color: #333;
}

.strategy-categories p {
    margin: 0;
}

.tribe-label:before,
.tribe:before {
    content: '';
    display: inline-block;
    background-image: url(images/tribe-black.png);
    background-size: contain;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.region-label:before {
    content: '';
    display: inline-block;
    background-image: url(images/region-black.png);
    background-size: contain;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.source-label:before {
    content: '';
    display: inline-block;
    background-image: url(images/plan.png);
    background-size: contain;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.topic-label:before {
    content: '';
    display: inline-block;
    background-image: url(images/topic.png);
    background-size: contain;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.timeframe-label:before {
    content: '';
    display: inline-block;
    background-image: url(images/timeframe-black.png);
    background-size: contain;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.year-label:before {
    content: '';
    display: inline-block;
    background-image: url(images/year.png);
    background-size: contain;
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

@media only screen and (max-width: 1060px ){
    .strategy-results, .search-results-items {
        grid-template-columns: 1fr 1fr;
    }

    .home-top-columns .home-top-column {
        width: 30%;
    }
}

@media only screen and (max-width: 600px ){
    .strategy-results, .search-results-items {
        grid-template-columns: 1fr;
    }

    .results-and-filters-grid {
        grid-template: 1fr 1fr;
    }

    .home-top-columns .home-top-column {
        width: 80%;
        margin: 0 auto;
    }

    .home-top-columns {
        flex-direction: column;
        width: 100%;
    }
}

/* Block Editing */

.wp-block-group.home-group {
    padding: 10px 20px 40px 20px;
}

.wp-block-group.home-group .wp-block-columns {
    max-width: 1200px;
    margin: 0 auto;
}

.wp-block-column.radius {
    border-radius: 16px;
    padding: 10px;
}

h3 {
    line-height: 1.2;
}

/* Slider */

.slick-slider button.slick-prev,
.slick-slider button.slick-next {
   background: none;
   border: none;
   color: transparent;
   position: absolute;
   z-index: 999;
   padding: 0;
   margin: 0;
}


.slick-slider button.slick-prev {
       top: 45%;
       left: 0;
}


.slick-slider button.slick-next {
       top: 45%;
       right: 0;
}


.slick-slider button.slick-prev:before {
   content: "\f341";
   font-family: 'dashicons';
   color: #a65e4e;
   font-size: 40px;
}


.slick-slider button.slick-next:after {
   content: "\f345";
   font-family: 'dashicons';
   color: #a65e4e;
   font-size: 40px;
}

.home-top-column .slick-slider img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Media Queries */

@media only screen and (max-width: 1400px) {
    .strategy-items, .search-results-items {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 1000px) {
    .results-and-filters-grid {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media only screen and (max-width: 890px) {
    .main-navigation ul li.menu-item a {
        font-size: 16px;
    }
}

@media only screen and (max-width: 600px) {
    .strategy-items, .search-results-items {
        grid-template-columns: 1fr;
    }
}