@media (min-width:320px)  { /* smartphones, iPhone, portrait 480x320 phones */ }
@media (min-width:481px)  { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px)  { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
@media (min-width:961px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }


:root {
    --navbar-line-height: 50px; /*check if 40px is better*/
    --cgiar-corporate-green: #427730;
    --cgiar-leaf-green: #7ab800;
    --cgiar-darker-leaf-green: #739600;
    --cgiar-green: #3aa877;
    --cgiar-bright-blue: #0065bd;
    --cgiar-medium-blue: #0039a6;
    --cgiar-yellow: #fdc82f;
    --cgiar-orange: #e37222;
    --cgiar-light-orange: #f7941d;
    --cgiar-light-gray-bg: #f6f6f6;
}

body {
    padding-top: 100px;
    font-family:"Montserrat";
}

p {
    font-family: "Montserrat";
    line-height: 2em;
    font-size: 1.6rem;
    color:black;
    font-weight:500;
}

a, a:hover, a:visited, a:link, a:active, [data-link]
{
    text-decoration: none;
    cursor:pointer;
    color: var(--cgiar-corporate-green);
    font-weight: 800;
}

.navbar {
    background: rgba(255,255,255,1);
    box-shadow: 0 0.2rem 0.2rem rgba(0,0,0,0.1); /* CGIAR */
    border-bottom-width: 0;
    margin-bottom:0px;
}

.navbar-nav>li>a {
    padding-left:9px;
    padding-right:9px;
}

.navbar > .container-fluid {
    max-width: 920px;
    padding-left: 20px;
    padding-right: 20px;
}

.navbar-collapse {
    background: rgba(255,255,255,1);
}

.navbar-default .navbar-nav > li > a {
    line-height:var(--navbar-line-height);
    font-size:1.3rem;
    font-weight:800;
    color: black;
    text-transform: uppercase;
}

.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover {
    color: var(--cgiar-corporate-green);
    background-color:white;
}

@media (min-width: 920px) {
    .navbar-default .navbar-nav {
        float:right;
    }

}


.navbar-toggle {
    margin-top: 24px;
}

#navbar-logo img{
    height:72px;
    margin-right: 6px;
    padding: 4px;
}

#navbar-logo > a:hover, #navbar-logo > a:focus {
    text-decoration: none;
}

#navbar-logo {
    margin-right: 32px;
}

@media (min-width: 920px) {

    #navbar-logo {
        font-size: 1.4rem;
    }
}

.navbar-brand {
    padding-top:4px;
    padding-bottom:4px;
    font-size: 1.8rem;
    line-height:var(--navbar-line-height);
    height:80px;
}

/* Hide tabs */
a[data-value="portfolio"], a[data-value="dialogue"] {
    display:none !important;
}

body > .container-fluid{
    position:fixed;
    top: 80px;
    width:100vw;
    overflow-x:hidden;
    max-height:calc(100vh - 80px)
}

.intro {
    position:relative;
    width:calc(100vw - 45px);
}


.intro-content h1 {
    margin:0;
    font-size: 3.2rem;
    color: var(--cgiar-yellow);
    line-height:1.3;
    font-weight:800;
    font-family:"Montserrat",sans-serif;
}

.intro-content h2 {
    display:none;
    color: white;
    font-weight: 500;
    font-size: 2.6rem;
    line-height:1.3;
    max-width:500px;
}

@media (min-width:641px)  {
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
    .intro-content h1 {
        font-size: 4.6rem;
    }
}

@media (min-width: 920px) {

    .intro-content h2 {
        display:block;
        line-height:1.5em;
    }
}

@media (min-width:961px)  {
    /* tablet, landscape iPad, lo-res laptops ands desktops */
    .intro-content h1 {
        font-size: 4.6rem;
    }
}

@media (min-width:1281px) {
    /* hi-res laptops and desktops */
    .intro-content h1 {
        font-size: 5.2rem;
    }

    .intro-content h2 {
        font-size: 3rem;
    }
}

footer {
    background-color:#2d2d2d;
    color:white;
    margin-left: -15px;
    width:calc(100% + 30px);
}

footer > div {
    padding: 48px 32px 60px 32px;
    max-width:101rem;
    margin:auto;
    display:flex;
}

.footer-logo {
    box-sizing:border-box;
    width:60px;
}

.footer-logo > a {
    position:relative;
}

.footer-content {
    display:flex;
    flex-flow: row wrap;
    margin: -10px -20px -10px -20px;
    padding-left: 20px;
}

@media (min-width: 768px){
    .footer-content {
        padding-left: 40px;
    }

}

@media (min-width: 960px){
    .footer-content {
        padding-left: 60px
    }

}

.footer-content h4 {
    font-weight: 800;
    margin-top: 0;
}

.footer-content h6 {
    font-weight: 600;
    margin-top: 0;
    font-size: 1.6rem;
}

.footer-content p {
    font-family: "Montserrat";
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8;
    color:white;
}

.footer-content a {
    font-weight: 400;
    color: white
}

.footer-content>*{
    margin:12px 32px 12px 32px;
}

.footer-description {
    max-width:400px;
    padding:0;
    line-height:1.8;
}

@media (min-width: 946px){
    .footer-description {
        max-width:280px;
        margin-right: 48px;
    }
}

.intro-image {
    width:calc(100% + 75px);
    margin-left: -15px;
    position:relative;
}

.intro-image > img {
    width:100%;
    max-height:calc(100vh - 80px);
    object-fit: cover;
}

#home .intro-image > img {
    object-position: 0 0;
}

.intro-content {
    max-width:100%;
    position:absolute;
    z-index:1;
    top:50%;
    text-align:center;
    transform: translateY(-50%);
    width:100%;
    margin-right: 30px;
    box-sizing:border-box;
}

.overlay {
    background-color:rgba(0,0,0,0.5);
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    backdrop-filter: blur(0px);
}

.image-copyright {
    position:absolute;
    bottom:0;
    right:45px;
    color:white;
    background:black;
    font-size:10px;
    padding: 5px 10px 5px 10px;
}

@media (min-width: 920px) {

    .intro-content {
        text-align:left;
        margin-left: 30px;
        /* left:50%; */
        top:auto;
        bottom:0;
        transform:translateY(0);
        width:auto;
        /* transform: translate(-50%,0%); */
    }

    #news-events .intro-content {
        bottom:200px;
        left:100px;
        transform:translateX(0);
        text-align:center;
    }

    .intro-content-inner {
        box-sizing: border-box;
        padding: 8px 24px 8px 24px;
        /* width:100%; */
        max-width: 640px;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
    }

    .overlay {
        display: none;
    }

}

@media (min-width: 1200px) {
    .intro-content {
        max-width: 1200px;
        margin:auto;
        bottom: 100px;
        left:100px;
        transform:translateX(0);
    }

}

.main-content h1 {
    font-weight:800;
    color: var(--cgiar-yellow);
}

.main-content h2 {
    font-weight:600;
}

.main-content {
    padding: 20px 28px 80px 28px;
    font-size: 1.6rem;
    font-weight:400;
    line-height:2em;
    color:black;
    max-width:940px;
    margin:auto;
}

.main-content > .row {
    margin-top:28px;
}

#main-links .row {
    color: var(--cgiar-corporate-green);
}

.text-image {
    max-width:calc(100%);
}

.info-title {
    color: var(--cgiar-yellow);
    font-weight: 800;
}

.main-content.cards {
    margin-top:40px;
    max-width: 1200px;
}

.blog-title {
    font-weight:600;
    line-height:3rem;
    font-size:2rem;
    color: black;
}

.blog-timestamp {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 32px;
    font-weight:400;
    color: #636363;
}

.blog-timestamp > i {
    margin-right:8px;
    color: var(--cgiar-corporate-green);
}

.main-content.cards .row {
    margin-top: 40px;
}

.main-content.cards div[class^="col-"] {
    margin-bottom: 30px;
}

.blog-box{
    padding:12px;
    padding-top:0;
    margin-bottom: 32px;
    display: block;
    transition: all .2s ease-in-out;
}

.blog-box:hover {
    transform: scale(1.05);
}

.blog-box > img {
    width:100%;
    margin-left: -12px;
    width:calc(100% + 24px);
    height: 200px;
    object-fit: cover;
}

@media (min-width: 920x) {
    .row.equal {
        display: flex;
        flex-wrap: wrap;
    }

    .blog-box{
        position:relative;
        padding-bottom:124px;
        margin-bottom: 0;
        height:100%;
    }


    .blog-info {
        position:absolute;
        bottom:12px;
    }

  }

#blogs {
    padding-bottom:40px;
}

#webinar-series > h2 {
    color:#666;
}

#webinar-series {
    background: #f1f1f1f1;
    padding:40px 32px 40px 32px;
    margin:40px -48px -40px -48px;
}

#webinar-series > p {
    max-width:640px;
    margin-top:20px;
}


.leaflet-container {
    /* position:relative; */
    /* background-color:rgba(255,0,0,0.0); */
    /* height: 520px; */
    /* padding-left: 12px; */
    /* padding-right: 12px; */
    font-family: "Montserrat";
}

/* #map_numbers {
    margin-top: -20px;
    margin-left: -15px;
} */
#webinar-series > h4 {
    margin-top:48px;
    text-align:center;
    font-size: 14px;
}

#webinar-series > h4 > a {
    transition: all .2s ease-in-out;
    padding:8px;
}

#webinar-series > h4 > a:hover {
    color:white;
    background: var(--cgiar-corporate-green);
}

#webinar-cards {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(1fr, 1fr);
    grid-auto-rows: 1fr;
    grid-column-gap: 24px;
    grid-row-gap: 24px;
    justify-content: center;
}

@media (min-width: 430px) {

    #webinar-series > h4 {
        font-size: 18px;
    }

    #webinar-cards {
        grid-template-columns: repeat(auto-fit, 360px);
    }
}


@media (min-width: 1240) {

    #webinar-series {
        margin-left: -32px;
        margin-right: -32px;
    }

}



#webinar-cards > a {
    transition:  all .2s ease-in-out;
    color:black;
    display:flex;
}

#webinar-cards > a:hover {
    transform:scale(1.05);
}

.webinar-card {
    display:flex;
    flex-direction:row;
    max-width:410px;
    width:100%;
}

.webinar-card-number {
    background: var(--cgiar-yellow);
    width:48px;
    font-size: 2.4rem;
    font-weight: 600;
    color: white;
    /* font-style:italic; */
    display:flex;
    align-items:center;
    justify-content: center;
}

.subpage,  #portfolio-usage > div {
    margin-left:30px;
    margin-right:30px;
    margin-bottom:30px;
}

.subpage > h1 {
    color: var(--cgiar-yellow);
    font-weight: 800;
    font-size: 3.6rem;
    margin-top:1em;
    margin-bottom:0.67em;
    line-height: 1em;
}

.subpage h2 {
    font-weight: 700;
    margin-top:0;
    margin-bottom: 20px;
    font-size:2.8rem;
    line-height:1.2em;
}

.subpage h3 {
    font-weight: 700;
    /* margin-top:0; */
    /* margin-bottom: 20px; */
    font-size:1.6rem;
    line-height:1.2em;
}

.subpage p {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.75;
    font-family: "Montserrat";
    color:black;
    margin-bottom: 30px;
}

@media (min-width: 920px) {
    .subpage > h1 {
        margin-top: 1.5em;
        font-size:4.6rem;
    }

    .subpage h2 {
        font-size: 3.6rem;
    }
}

@media (min-width: 1200px) {

    .subpage, #portfolio-usage > div {
        max-width: 1080px;
        margin: auto;
    }

}

#map_numbers {
    max-height: calc(100vh - 80px)
}

#portfolio {
    padding-bottom:80px;
}

#portfolio-info {
    padding-top: 30px;
    max-width:920px;
}

#interaction-map > img {
    width: 100%;
}

.subpage p.img-caption {
    margin:12px 0 40px 0;
    color:rgba(0,0,0,0.4);
    font-size: 1.4rem;
}

.subpage p.img-caption > a {
    color:rgba(0,0,0,0.3);
    font-weight: 800;
}

.subpage p.img-caption > a:hover {
    color:var(--cgiar-corporate-green);
}

#modal-dashboard .vue-modal-content {
    display:flex;
    justify-content: center;
    align-items: center;
    height:calc(100% - 50px);
}

#modal-dashboard .vue-modal-container {
    height:100%;
    width:100vw;
    max-width:100%;
}

#portfolio-data {
    margin:28px -45px 0 -45px;
}

#portfolio-usage {

  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin: 80px -50vw 0 -50vw;

    padding:24px;
    color:white;
    background: var(--cgiar-yellow);
}

#portfolio-usage i {
    margin-right:20px;
}

#portfolio-usage p {
    padding: 4px;
    margin-bottom:0;
    color:white;
    font-weight:600;
}

#portfolio-usage .portfolio-usage-extra
{
    margin-top: 24px;
    font-weight: 500;
}

#portfolio-usage .portfolio-usage-extra > a {
    color:white;
    font-weight:500;
    border-bottom: 1px solid white;
}

#portfolio-usage .portfolio-usage-extra > a:hover {
    font-weight:600;
}


@media (min-width: 920x) {

    #portfolio-info {
        padding-top: 60px;
    }

    #portfolio-usage p {
        font-size: 1.6rem;
    }

    #portfolio-data {
        margin-top:40px;
        margin-left:0;
        margin-right:0;
    }
/* 
    .leaflet-container {
        padding-left: 0;
        padding-right:0;
    } */
}

#portfolio-info img {
    width:100%;
    max-width:600px;
    margin:auto;
    display:block;
}

#portfolio-filter {
    margin-top:30px;
    margin-bottom:30px;
    padding: 12px 0 12px 0;
}

@media (max-width: 920px) {
    #portfolio-filter {
        padding: 12px;
    }
}

.webinar-card-details {
    width:100%;
    max-width:360px;
}

.webinar-card-timestamp {
    width:100%;
    padding: 12px;
    background: rgba(171,133,54,0.1);
    font-weight: 600;
    font-size:2.2rem;
}

.webinar-card-time {
    margin-top:-4px;
    color: var(--cgiar-green);
    font-size:2.8rem;
    font-weight: 600;
}

.webinar-card-title {
    padding: 20px 12px 20px 12px;
    font-weight: 600;
    font-size: 1.6rem;
    line-height:1.6;
}

 #filter-map-numbers.active {
     background: #e7e7e7;
 }


 .footer__socials {
    font: 1.6rem/1.6 "Open Sans",sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    color: #fff;
    box-sizing: inherit;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    justify-content: space-between;
    width: 16.8rem;
    fill: #fff;
 }

 .footer__social:hover svg, [class*='footer__social--']:hover svg {
    opacity: .6;
}

.footer__trade a:hover {
    opacity: .5;
}

.footer-contact {
    margin-bottom:32px;
    margin-right: 48px;
}

.footer__trade a {
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
}

 .footer__social svg, [class*='footer__social--'] svg {
     width: 50%;
     height: 50%;
     -webkit-transition: opacity .3s;
     transition: opacity .3s;
     fill: #fff !important;
 }

@media only screen and (min-width: 50em) {
    .footer__trade {
        margin-top: 4rem;
    }
}

.footer__trade {
    font: 1.6rem/1.6 "Open Sans",sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    color: #fff;
    box-sizing: inherit;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    margin-top: 4rem;
}

.foot-trade > li {

    font: 1.6rem/1.6 "Open Sans",sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    color: #fff;
    list-style-type: none;
    box-sizing: inherit;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.footer__trade li+li {
    margin-left: 1rem;
}

.footer__trade svg {
    width: 3rem;
    height: 3rem;
    fill: #636363;
}


 .footer__socials > li {
    font: 1.6rem/1.6 "Open Sans",sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    color: #fff;
    list-style-type: none;
    fill: #fff;
    box-sizing: inherit;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    margin-bottom: 2rem;
 }

 .footer__social, [class*='footer__social--'] {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 4.3rem;
    height: 4.3rem;
    background: #ececec;
    border-radius: .6rem;
}

.footer__social--dspace svg {
    fill: #77b233 !important;
}

.footer__social--flickr svg {
    color: #2083ff;
    fill: #ff3aa5 !important;
}

.footer__social--youtube {
    background-color: rgb(240, 68, 68);
}

.footer__social--linkedin {
    background-color: rgb(35, 118, 181);
}

.footer__social--twitter {
    background-color: rgb(125, 208, 255);
}

.footer__social--facebook {
    background: #4267b2;
}

/* Make breakpoint for collapse wider */
@media (max-width: 920px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
}


.spacer {
    width:960px;
}

.spacer-container:nth-child(odd) {
    background: var(--cgiar-light-gray-bg);
}


.spacer-container {
    width: 100vw;
    position: relative;
    display:flex;
    justify-content:center;
    left: 50%;
    right: 50%;
    margin: 80px -50vw 0 -50vw;
    padding:24px;
    color:white;
}
