/*
Move HOMEPAGE related styling here.
*/
.home-banner {
  background-size: cover; /* Makes sure the image covers the entire div */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
  width: 100%;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  flex-direction: column-reverse !important;
}
.home-banner .banner-top {
  padding: 10px 0;
  color: royalblue;
  font-weight: bold;
}
.home-banner .banner-title {
  padding: 10px 0;
}
.ecl-page-header {
  margin-bottom: 0 !important;
}
.knowsdgs_container {
  margin-top: 0 !important;
}
.tools-list.col-md-12 {
  width: 80%;
}
.main-sdgs-block.col-md-12 {
  width: 87%;
}

.tools-list.col-md-12 {
  margin: 0 auto;
}
.main-sdgs-block.col-md-12  {
  margin: 0 auto;
}
.main-sdgs-block .single-sdgs {
  /*width: calc(100% / 6);*/
  /*!*height: 100px;*!*/
  /*!*border: 1px solid #ccc;*!*/
  /*box-sizing: border-box;*/
  width: 172px;
  height: 172px;
  padding: 0;
  margin: 4px;
}

.main-sdgs-block .single-sdgs .sdgs-icon img {
  transition: transform 0.6s;
  backface-visibility: hidden;
}

.main-sdgs-block .single-sdgs .back-side {
  transform: rotateY(180deg);
  color: #fff;
  background-color: rgba(0,0,0,0.8);
  padding: 10px;
  transition: transform 0.6s;
  backface-visibility: hidden;
  z-index: 2;
  position: relative;
  top: -100%;
  height: 100%;
  width: 100%;
  font-size: 90%;
  display: none;
}

.main-sdgs-block .single-sdgs.turnable:hover .sdgs-icon img {
  transform: rotateY(180deg);
}

.main-sdgs-block .single-sdgs.turnable:hover .back-side {
  transform: rotateY(0deg);
  display: block;
}

.main-sdgs-block .single-sdgs.sdg1 .back-side {
  background-color: #e5243b;
}
.main-sdgs-block .single-sdgs.sdg2 .back-side {
  background-color: #DDA63A;
}
.main-sdgs-block .single-sdgs.sdg3 .back-side {
  background-color: #4C9F38
}
.main-sdgs-block .single-sdgs.sdg4 .back-side {
  background-color: #C5192D;
}
.main-sdgs-block .single-sdgs.sdg5 .back-side {
  background-color: #FF3A21;
}
.main-sdgs-block .single-sdgs.sdg6 .back-side {
  background-color: #26BDE2;
}
.main-sdgs-block .single-sdgs.sdg7 .back-side {
  background-color: #FCC30B;
}
.main-sdgs-block .single-sdgs.sdg8 .back-side {
  background-color: #A21942;
}
.main-sdgs-block .single-sdgs.sdg9 .back-side {
  background-color: #FD6925;
}
.main-sdgs-block .single-sdgs.sdg10 .back-side {
  background-color: #DD1367;
}
.main-sdgs-block .single-sdgs.sdg11 .back-side {
  background-color: #FD9D24;
}
.main-sdgs-block .single-sdgs.sdg12 .back-side {
  background-color: #BF8B2E;
}
.main-sdgs-block .single-sdgs.sdg13 .back-side {
  background-color: #3F7E44;
}
.main-sdgs-block .single-sdgs.sdg14 .back-side {
  background-color: #0A97D9;
}
.main-sdgs-block .single-sdgs.sdg15 .back-side {
  background-color: #56C02B;
  font-size: 77%;
}
.main-sdgs-block .single-sdgs.sdg16 .back-side {
  background-color: #00689D;
  font-size: 77%;

}
.main-sdgs-block .single-sdgs.sdg17 .back-side {
  background-color: #19486A;
}

.main-sdgs-block .single-sdgs .back-side .learn-more {
  display: none;
  border: 1px lightgrey solid;
  margin: 10px 20px 10px 10px;
  position: absolute;
  bottom: 10px;
  padding: 10px;
  font-size: 84%;
}

.tools-list .nocard {
  /*width: 90%;*/
}
.tools-list .home-card:hover {
  transform: scale(1.02);
}
.tools-list .card-body {
  display: none;
}

.blue-description {
  /* background-image: linear-gradient(to right, #004494 , lightblue); */
  background-image: linear-gradient(to right, #004494, #1a75cf);
  color: white;
  padding: 40px;
  margin-bottom: 20px;
}
.blue-description p a {
  color: white !important;
  text-decoration: underline !important;
  font-weight: bold;
}
.just-blue-description {
  /*text-align: justify;*/
}

.main-publications.col-md-12 {
  /*padding-top: 20px;*/
  margin: 0 auto;
  /*width: 80%;*/
}
.main-publications .views-col {
  padding-right: 12px;
}
.main-publications .views-field-title{
  font-size: 90%;
}
.main-publications .views-field-field-publication-image img {
  border: 1px solid lightgrey;
  margin-bottom: 7px;
  width: 100%;
  height: 100%;
  /*max-width: 220px;*/
}
.main-publications .views-field-field-publication-image img:hover {
  transform: scale(1.15);
}
.main-publications button {
  border: 1px solid #004494;
  margin-top: 8px;
}

.main-lower-text-block.col-md-12 {
  margin: 0 auto;
  width: 80%;
  padding-bottom: 15px;
}

.block-title {
  height: 40px;
  color: #004494;
  display: flex;
  margin: 25px 0;
}
.block-title.above-tools {
  height: 20px;
}
.block-title .anchor {
  flex: 1;
  margin-top: 4px;
}
.block-title .spill-hr {
  flex: 20;
}
.block-title .anchor span {
  border: 1px #004494 solid;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 15px;
  white-space: nowrap;
  margin-right: 10px;
}
.block-title hr {
  height: 2px;
  width: 100%;
  text-align: right;
  margin: 0 0 0 auto;
  display: inline-block;
  color: #004494;
}

.main-news-block {
  padding-top: 15px;
}
#promoted-news {
  margin-bottom: 35px;
}
#promoted-news > div > div {
  display: flex;
}
#promoted-news .promoted-left {
  flex: 2;
}
#promoted-news .promoted-right {
  flex: 1;
  padding: 0 15px 15px 15px;
}
#promoted-news .body {
  padding-top: 15px;
}
#promoted-news .date {
  font-size: 14px;
}
/* Slow-motion Zoom Container */
#promoted-news .promoted-left {
  display: inline-block;
  overflow: hidden;
}
#promoted-news:hover img {
  transform-origin: 50% 65%;
  transition: transform 5s, filter 3s ease-in-out;
  transform: scale(1.15);
}

#other-news {}
#other-news .other-news-area {
  display: flex;
  flex-wrap: wrap;
}
#other-news .other-news-item {
  flex: 1 0 50%;
  max-width: 50%;
}
#other-news .other-news-item h6 {
  margin: 6px 0;
}
#other-news .views-row {
  margin-bottom: 25px;
}
#other-news .views-field-title h4 {
  margin: 0;
}
#other-news .views-field-title a {
  font-size: 16px;
}
#other-news .created {
  font-size: 14px;
}
#other-news .other-news-item .field-content a {
  display: inline-block;
  overflow: hidden;
}
#other-news .other-news-item {
  padding-right: 20px;
}
#other-news .other-news-item:hover img {
  transform-origin: 50% 65%;
  transition: transform 5s, filter 3s ease-in-out;
  transform: scale(1.15);
}
#other-news .views-field-field-image {
  overflow: hidden;
}
#other-news .views-field-field-image img {
  display: block;
  width: auto;
  height: auto;
}

.news-mini-header {
  background-color: #004494;
  color: white;
  font-size: 13px;
  padding: 4px;
  margin-bottom: 5px;
}

#latest-feeds .item-list ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#latest-feeds .item-list ul li {
  padding: 12px 0;
  border-bottom: 1px solid gray;
  padding-left: 5px;
}
#latest-feeds .item-list ul li:hover, #latest-feeds .item-list ul li:hover a {
  color: white;
  background-color: #004494;
}
#latest-feeds .item-list ul li:hover a {
  color: white;
  font-weight: bold;
}
#latest-feeds .pager {
  margin-top: 15px;
}
#latest-feeds .views-field-field-feed-published-date {
  font-size: 14px;
}
#latest-feeds nav[role="navigation"] {
  text-align: center;
}

#latest-feeds .js-pager__items {
  margin-top: 15px;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
}

#latest-feeds .js-pager__items li {
  display: inline-block;
}

#latest-feeds .js-pager__items li:first-child {
  margin-right: auto; /* Push the first item to the left */
}

#latest-feeds .js-pager__items li:last-child {
  margin-left: auto; /* Push the last item to the right */
}

/* Optional: Style the links as needed */
#latest-feeds .js-pager__items a {
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#latest-feeds .js-pager__items a:hover {
  color: white;
  background-color: #004494;
}

/* KEEP MEDIA QUERIES AT THE END TO OVERRIDE */
/*Large devices (desktops, less than 1200px)*/
@media (max-width: 1199.98px) {
}

/*Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {
  .main-sdgs-block.col-md-12,
  .tools-list.col-md-12,
  .main-publications.col-md-12,
  .main-lower-text-block.col-md-12 {
    width: 100%;
  }
  #promoted-news .body {
    display: none;
  }
}

/*Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) {
  .row .col-md-3 {
    width: 33%;
  }

  .main-sdgs-block .single-sdgs {
    width: 100px;
    height: 100px;
    background-color: white;
  }

  .main-sdgs-block .single-sdgs .back-side {
    font-size: 54%;
  }
  .main-sdgs-block .single-sdgs.sdg15 .back-side {
    font-size: 40%;
  }
  .main-sdgs-block .single-sdgs.sdg16 .back-side {
    font-size: 40%;
  }
}

/* Really small devices - override as the last check on media */
@media (max-width: 575.98px) {
  .main-sdgs-block.col-md-12, .tools-list.col-md-12 {
    width: 100%;
  }
  .main-sdgs-block .single-sdgs {
    width: 80px;
    height: 80px;
  }
  .main-sdgs-block .single-sdgs .back-side {
    font-size: 42%;
  }
  .main-sdgs-block .single-sdgs.sdg15 .back-side {
    font-size: 30%;
  }
  .main-sdgs-block .single-sdgs.sdg16 .back-side {
    font-size: 30%;
  }
}

/* Don't write at the end of this file to leave @media queries for override */
