/* disable sticky when Edit Mode */

html.sfPageEditorWrp header {position: initial;}

@media (max-width: 768px) {
    .container {
        padding-left:inherit;
        padding-right:inherit;
    }
}

html {
  width:100%;
  overflow-x:hidden; 
}

body {
  }

main {
  padding:0;
}

header {
  border-bottom: 3px solid #115376;
  z-index:300;
}

h3::before {
  content:"";
  width:100px;
  display:block;
  border-top: 0px !important;
  margin:0 auto 1rem auto;
}

#ContentplaceholderHeader_T40AE076C017_Col00 {
  display:flex;
  align-items:center;  
}

.header_scroll #ContentplaceholderHeader_T40AE076C017_Col00 {
  height:72px;
}

.header_scroll .py-2.shadow {
  padding:0 !important;
  }

@media (min-width: 1200px) {
  .header_scroll .image-widget {
    transform: scale(0.7);
    position: relative;
  }
}

.navbar-subsite .navbar-nav .nav-link {
  font-size: .75rem;
  padding-left:.5rem;
  padding-right:.5rem;  
}

.nav-item:last-child {
  display: inherit;
}

@media (max-width: 992px) {
  .navbar-collapse {
    top: 64px;
  }
}

.navbar-subsite .navbar-nav .nav-item:last-child .nav-link {
    background-color: initial;
    border-color: initial;
    border-radius: initial;
    color: #666666;
    padding-right: .75rem;
    padding-left: .75rem;
    text-align: initial;
    margin-top: initial;
    max-width: initial;
}

.navbar-subsite .navbar-nav .nav-item:last-child .nav-link {
  background-color:transparent;
  border:0;
  border-radius:0;
  padding-left:0;
  padding-right:0;
  color:#000;
  text-align:left;
  margin-top:0;
}

@media (min-width: 992px) {
  .navbar-subsite .navbar-nav .nav-item:last-child .nav-link {
    text-transform:uppercase;
    text-decoration:none;
    transition:0.3s;
    background-image: linear-gradient(90deg, #156b51, #5692c9);
    border-color: #5792ca;
    border-radius: 25px;
    color: #fff;
    padding-right: .75rem;
    padding-left: .75rem;
    text-align: center;
    max-width: 200px;
  }
}

#collapse-search {
  display:none;
  }

.flagship-first-block p {
  text-align:center;
}

.first-block-video {
  position:relative;
}

@media (min-width: 768px) {
  .first-block-video:before,
  .first-block-video:after {
    display: block;
    content: '';
    position: absolute;
    width:160px;
    height:129px;
    z-index: 1;
  }
}

@media (min-width: 1200px) {
  .first-block-video:before,
  .first-block-video:after {
    width:380px;
    height:311px;
  }
}

.first-block-video:before {
  position:absolute;
  left: 0;
  top: 0;
  background:url(https://www.fao.org/images/flagshipworldfoodforumlibraries/layout/bg-top-lx-yellow.png) no-repeat;
  background-size:cover;
}

.first-block-video:after {
  position:absolute;
  right: 0;
  bottom: 0;
  background:url(https://www.fao.org/images/flagshipworldfoodforumlibraries/layout/bg-top-rx-yellow.png) no-repeat;
  background-size:cover;
}

.first-block h1 {
  font-family:FuturaPTDemi;
  font-size:2.75rem;
  line-height:2.75rem;
  margin-bottom:2rem;
}

.first-block img {
  width: 475px
}

body .video-background {
  line-height:1px;
  margin:0 !important;
  width:100%;
}

body .video-background iframe {
  position:relative;
  transform:none;
  top:0;
  left:0;
  width:100vw;
}

body .youtube-video {
  height:0;
  overflow:hidden;
  padding-bottom:56.25%;
  padding-top:30px;
  position:relative;
}

body .youtube-video iframe,
body .youtube-video object,
body .youtube-videoembed {
  height:100%;
  left:0;
  position:absolute;
  top:0;
  width:100%;
}

.bg-top-rx-red {
  background: url(https://www.fao.org/images/flagshipworldfoodforumlibraries/layout/bg-top-rx-red-xl.png) top right no-repeat;
  padding:6rem 0;
}

.bg-top-lx-yel {
  background: url(https://www.fao.org/images/flagshipworldfoodforumlibraries/layout/bg-top-lx-yellow-xl.png) top left no-repeat;
}

@media (max-width: 992px) {
  .bg-top-rx-red {
    background-size:50%;
  }

  .bg-top-lx-yel {
    background-size:50%;
  }
}

@media (max-width: 1200px) and (min-width: 992px) {
  .bg-top-rx-red {
    background-size:60%;
  }

  .bg-top-lx-yel {
    background-size:60%;
  }
}

.accordion-button.collapsed {
  background:#fff;
  color:#000;
}

.accordion-button:not(.collapsed) {
  background: rgb(89,146,197);
  background: linear-gradient(90deg, rgba(89,146,197,1) 0%, rgba(29,107,86,1) 100%);  
  color:#fff;
  --bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
  box-shadow:none;
  }

.flagship-event .card-horizontal {
  border:0;
  }

.flagship-event .card-horizontal p[style="text-align: center"] {
 text-align:left !important;
 }

.flagship-event .card-horizontal a {
  color:#000;
  font-size:1.8rem;
  line-height:2.1rem;
  display:block;
  position:relative;
  z-index:20;
  }

.flagship-event .card-horizontal .fadeInLeft {
  position:relative;
  z-index:10;
  }

.flagship-event .card-horizontal .fadeInRight {
  position:relative;
  z-index:1;
  align-self:end;
  }

.flagship-event._hover-shadow .card::after {
  box-shadow:none;
  display:none;
}

.flagship-event .card-horizontal .card-body {
  border:2px solid transparent;
  background-image: linear-gradient(to right, rgb(29, 107, 84), rgb(89, 147, 199)), linear-gradient(to bottom, rgb(240, 201, 133), rgb(240, 201, 133)), linear-gradient(to left, rgb(240, 201, 133), rgb(240, 201, 133)), linear-gradient(to top, rgb(240, 201, 133), rgb(240, 201, 133));
  background-origin: border-box;
  background-size: 100% 8px, 2px 100%, 100% 2px, 2px 100%;
  background-position: top left, top right, bottom right, bottom left;
  background-repeat: no-repeat;
  box-shadow: 0 2rem 2.5rem -40px rgba(0, 0, 0, 0.3);
  align-content:center;
  min-height:100px;
    background-color: #ffffff;
  }

.flagship-event {
  padding:2rem;
  padding-bottom:0;
}

.flagship-event a {
  text-align:left;
  }

@media (min-width: 768px) {

  .flagship-event {
    padding:3rem;
  }

  .flagship-event .card-horizontal a {
    margin-left:145px;
    font-size:2.2rem;
    line-height:2.6rem;
  }

  .flagship-event .card-horizontal .card-body {
    background-image: linear-gradient(to right, rgb(29, 107, 84), rgb(89, 147, 199)), linear-gradient(to bottom, rgb(240, 201, 133), rgb(240, 201, 133)), linear-gradient(to left, rgb(240, 201, 133), rgb(240, 201, 133));
    border:2px 2px 2px 0 solid transparent;
    min-height:250px;
    margin-left:-170px;
    background-color: #ffffff;
  }

  .flagship-single-events .card-horizontal:nth-child(1) {
    margin-left:-100px;
    margin-right:100px;
  }

  .flagship-single-events .card-horizontal:nth-child(3) {
    margin-left:-100px;
    margin-right:100px;
  }
}

@media (min-width: 992px) {

  .flagship-event {
    padding:9rem;
  }

  .flagship-event .card-horizontal a {
    margin-left:100px;
    font-size:2.0rem;
    line-height:2.4rem;
}

  .flagship-event .card-horizontal .card-image {
    margin-left:60px;
  }

  .flagship-event .card-horizontal .card-body {
    min-height:280px;
    margin-left:-100px;
  background-color: #ffffff;
  }

  .flagship-single-events .card-horizontal:nth-child(1) {
    margin-left:-100px;
    margin-right:100px;
  }

  .flagship-single-events .card-horizontal:nth-child(3) {
    margin-left:-100px;
    margin-right:100px;
  }
}

@media (min-width: 1200px) {

  .flagship-event {
    padding:10rem 14rem;
  }

  .flagship-event .card-horizontal a {
    margin-left:150px;
  }

  .flagship-event .card-horizontal .card-body {
    margin-left:-150px;
    min-height:280px;
  background-color: #ffffff;
  }

  .flagship-single-events .card-horizontal:nth-child(1) {
    margin-left:-100px;
    margin-right:100px;
  }

  .flagship-single-events .card-horizontal:nth-child(3) {
    margin-left:-100px;
    margin-right:100px;
  }
}

.scroll-reveal {
  padding:0 1rem;
}

footer .bg-dark:first-child {
  /*background: rgb(90,147,200);*/
  /*background: linear-gradient(90deg, rgba(90,147,200,1) 0%, rgba(27,106,81,1) 100%) !important;*/
  background-image: linear-gradient(0deg, #000000, #6a6a6a) !important
  }

footer .border-top {
   background: hsla(207, 54%, 57%, 1);
   background: linear-gradient(0deg, hsla(207, 54%, 57%, 1) 0%, hsla(166, 70%, 24%, 1) 100%);
   background: -moz-linear-gradient(0deg, hsla(207, 54%, 57%, 1) 0%, hsla(166, 70%, 24%, 1) 100%);
   background: -webkit-linear-gradient(0deg, hsla(207, 54%, 57%, 1) 0%, hsla(166, 70%, 24%, 1) 100%);
   filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#5596CC", endColorstr="#126854", GradientType=1 );
   border-top: 3px solid #F8B903 !important;
}

/* TEMP */

.enlargeButton,
div[data-sf-role="form-container"] .form-group:last-child button {
  animation-delay: 1s;
}

.enlargeButton .btn-primary {
  border:2px solid #fff !important;
  color:#fff !important;  
}
  
.enlargeButton .btn-secondary,
.enlargeButton .btn-secondary:hover {
  color:#fff;
  background-image:url(/images/devworldfoodforumlibraries/layout/various/subscribe-bg.png)  !important;
  background-position:right 9px center  !important;
  background-repeat:no-repeat !important;
  background:rgb(123,173,219) !important;
  background:linear-gradient(90deg, rgba(123,173,219,1) 0%, rgba(86,146,201,1) 100%) !important;
  border:1px solid #fff !important;  
}

.enlargeButton .fadeIn {
  color:#5692c9 !important;
  animation-name: fadeInButton;
  animation-delay:1s;
  animation-duration: 0.8s;
}

.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed {
  border-radius:0;
  }

.accordion-item .accordion-header .accordion-button {
  background: rgb(79,144,195);
  background: linear-gradient(90deg, rgba(79,144,195,1) 0%, rgba(30,113,91,1) 100%);
  color:#fff;
--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-header button:before {
  content: "\f068";
  font-family: fontawesome;
  text-align: center;
  position: absolute;
  left:-20px;
  top: 10px;
  color:#fff;
  background-image: linear-gradient(90deg, #4f90c3, #186d58);
  border: 5px solid #fff;
  font-size: 15px;
  width: 40px;
  height:40px;
  line-height: 30px;
  border-radius: 50%;
  transition:all 0.3s ease 0s;
  z-index:20;
}

/* SEARCH RESULT - NEWS */

#search-results-holder {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

#search-results-holder .d-list-news {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  margin-bottom: 1.5rem;
  transition: transform .35s;
}

#search-results-holder .d-list-news h5 {
   border-top:5px solid transparent;
   border-image:linear-gradient(to right, #FF8989 1%, #FFBB00 
 100%) 10;  padding-top:1rem;
}

#search-results-holder .d-list-news>div {flex: 1;}

#search-results-holder .d-list-news .d-list-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#search-results-holder .d-list-news:hover {
  box-shadow: 0 .5rem 1rem -.25rem rgba(0, 0, 0, 0.3);
  transition: transform .35s ease;
  border-radius:20px;
  transform: translateY(-.35em) scale(1.02);
}  

#search-results-holder .d-list-news .d-list-content .title-link {font-size: 1rem;}
#search-results-holder .d-list-news .d-list-content .title-link a {color: #000000;}
#search-results-holder .d-list-news .d-list-content p {display: none;}

#search-results-holder .ratio>* {
  object-fit: initial;
  height: auto;
}
#search-results-holder .ratio-3x2:before {
  padding-top: 66%;
}


@media only screen and (min-width: 768px) {
  #search-results-holder {
    flex-direction: row;
    gap: 1.5rem;
  }

  #search-results-holder .d-list-news {
  flex-direction: row;
  flex: calc(50% - 1rem);
  max-width: calc(50% - 1rem);
  margin-bottom: 0;
  }
}

@keyframes fadeInButton {
  0% {
    opacity:0;
    -webkit-transform:translateY(3em);
    transform:translateY(3em);
  }

  80% {
    opacity:0;
    -webkit-transform:translateY(3em);
    transform:translateY(3em);
  }

  100% {
    opacity:1;
    -webkit-transform:translateY(0);
    transform:translateY(0);
  }
}

.grey-stripe {
  background: #f2f2f2;
}

.news-header {
  padding-bottom:2rem;
  margin-bottom:3rem;
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  }

.news-header .detail-title {
  font-size:2.2rem;
  line-height:2.4rem;
  padding-right:2rem;
  align-content:end;
  animation-name:fadeInLeft;
  animation-duration:1s;
  animation-fill-mode:backwards;  
}

.news-header .image-widget {
  animation-name:slideUp;
  animation-duration:1s;  
  animation-delay:.3s;  
  animation-fill-mode:backwards;
}

@media (min-width: 992px) {
  .news-header {
    display:flex;
    flex-wrap:wrap;
    flex-direction:row;
  }

  .news-header .detail-title {
    width:40%;
  }

  .news-header .image-widget {
    width:60%;
    height:60%;
  }
}
