@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400;1,600&display=swap');

body{
  background: #eaeaea;
}

#wrap {
  -webkit-box-shadow: 0px 0px 24px -1px rgba(255,255,255,1);
  -moz-box-shadow: 0px 0px 24px -1px rgba(255,255,255,1);
  box-shadow: 0px 0px 24px -1px rgba(255,255,255,1);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
#site-navigation {
  background: #005494;
}
#site-navigation #main-menu > ul a {
  color: #ffffff;
}
#site-navigation #main-menu > ul > li > a:hover, #site-navigation #main-menu > ul > li.sfHover > a, #site-navigation #main-menu > ul > li > a.active, #site-navigation #main-menu > ul > li > a.active:hover {
  background: #FFD339;
  color: #000000;
}
#footer-wrap {
  background: #005494;
}

#footer {
  display: flex;
  flex-direction: column-reverse;
}

#footer .region.region-footer {
  position: relative;
  padding-bottom: 15px;
}

#footer .region.region-footer h2 {
  color: #025494;
  font-size: 28px;
  margin: 0 0 15px;
  text-align: center;
  font-weight: 200;
}

#footer .region.region-footer:before {
  display: block;
  content: " ";
  position: absolute;
  background: white;
  left: -31px;
  top: -31px;
  right: -31px;
  bottom: 0px;
}

#footer .region.region-footer > div {
  position: relative;
}

#footer .footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

#footer .footer-partners  > div {
  width: 25%;
  text-align: center;
  margin-top: 7.5px;
  margin-bottom: 7.5px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

#footer .footer-partners  > div img {
  display: inline-block;
}

#footer .footer-partners .eit-digital img {
  width: 70%;
}

#footer .footer-partners .aioti img {
  width: 90%;
}

#footer .footer-partners .etp-hpc img {
  width: 65%;
}

#footer .footer-partners .effra img {
  width: 55%;
}

#footer .footer-partners .datsci img {
  width: 75%;
}

#footer .footer-partners .nessi img {
  width: 70%;
}

#footer .footer-partners .eu-robotics img {
  width: 44%;
}

#footer .footer-partners .adra img {
  width: 45%;
}

#footer .footer-partners .idsa img {
  width: 75%;
}

#footer .footer-partners .fiware img {
  width: 55%;
}

#footer .footer-partners .gaia-x img {
  width: 60%;
}

#copyright-wrap {
  background: #FFD339;
  -webkit-border-bottom-right-radius: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -moz-border-radius-bottomright: 5px;
  -moz-border-radius-bottomleft: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

/******************
 PAGES
 *****************/


/* Full width page */

body.node-type-full-width-page aside#secondary {
  display: none;
}

body.node-type-full-width-page #content {
  width: 100%;
}

/* Task forces
 */

.node-type-task-force-page aside#secondary {
  display: none;
}

.node-type-task-force-page #content {
  width: 100%;
}

.node-type-task-force-page .meta.clearfix li {
  display: none;
}

.node-type-task-force-page .field-name-field-header-image img {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  margin-bottom: 15px;
}

.node-type-task-force-page .field-name-field-tf-title-focus .field-item,
.node-type-task-force-page .field-name-field-title-mandate-don-t-edit- .field-item,
.node-type-task-force-page .field-name-field-title-contacts .field-item,
.node-type-task-force-page .field-name-field-title-outputs .field-item,
.node-type-task-force-page .field-name-field-title-tf-subgroups-title .field-item {
  font-size: 1.286em;
  color: black;
  line-height: 1.4em;
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  margin-bottom: 10px;
  min-width: 100%;
}

.node-type-task-force-page .field-name-field-tf-title-focus,
.node-type-task-force-page .field-name-field-title-mandate-don-t-edit-,
.node-type-task-force-page .field-name-field-title-contacts,
.node-type-task-force-page .field-name-field-title-outputs {
  min-width: 100%;
  clear: both;
}

.node-type-task-force-page .field-name-field-tf-subgroups table,
table.tf-list-table {
  border: none !important;
  display: block;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody,
table.tf-list-table tbody {
  display: grid;
  grid-auto-columns: 25, 3%;
  grid-template-columns: 33% 33% 33%;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr,
table.tf-list-table tbody tr {
  padding: 0;
  display: flex;
  position: relative;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr:hover td,
table.tf-list-table tbody tr:hover td {
  background: #0039A6;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr:hover td:last-child,
.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr:hover td:last-child a,
table.tf-list-table tbody tr:hover td:last-child,
table.tf-list-table tbody tr:hover td:last-child a {
  color: white;
}


.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr td,
table.tf-list-table tbody tr td {
  display: flex;
  align-items: center;
  border-top: solid 2px #0039A6;
  border-bottom: solid 2px #0039A6;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 64px;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr td:first-child,
table.tf-list-table tbody tr td:first-child {
  border-left: solid 2px #0039A6;
  border-right: none;
  color: #ffb612;
  font-weight: bold;
  font-size: 16px;
  min-width: 62px;
  padding-right: 0px;
  display: flex;
  justify-content: center;
  padding-left: 0px;
  border-right: dotted 1px #F3AE35;
  z-index: 1;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr td:last-child,
table.tf-list-table tbody tr td:last-child {
  flex-grow: 1;
  border-right: solid 2px #0039A6;
  padding-left: 10px;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr td:last-child,
.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr td:last-child a,
table.tf-list-table tbody tr td:last-child,
table.tf-list-table tbody tr td:last-child a {
  text-transform: uppercase;
  color: #0039a6;
  font-size: 13px;
  font-weight: 500;
  z-index: 100;
}

.node-type-task-force-page .field-name-field-tf-subgroups table tbody tr td:last-child a:after,
table.tf-list-table tbody tr td:last-child a:after {
  content: ' ';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
}

 .node-type-task-force-page .field-name-field-task-force-contacts > div > .field-item {
    width: 50%;
    display: inline-block;
    vertical-align: top;
 }

.paragraphs-items-field-task-force-contacts .content .field-name-field-bdva-role {
  width: 100%;
}

.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-picture {
  width: 26%;
  display: inline-block;
  vertical-align: top;
  float: left;
}
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-picture + div {
  margin-top: 15px;
}
.paragraphs-items-field-task-force-contacts .content .field-name-field-bdva-role,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-name,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-affiliation,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-contact,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-bio {
  float: right;
  width: 74%;
  max-width: 74%;
  display: inline-block;
}
.paragraphs-items-field-task-force-contacts .content .field-name-field-bdva-role .field-items,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-name .field-items,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-affiliation .field-items,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-contact .field-items,
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-bio .field-items {
  padding-left: 15px;
}
.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-name {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: #0039a6;
}

.paragraphs-items-field-task-force-contacts .content .field-name-field-bdva-role {
  font-weight: bold;
  color: #ffb612;
  font-size: 16px;
}

.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-affiliation .field-items {
  font-weight: bold;
  color: #888;
}

.paragraphs-items-field-task-force-contacts .content .field-name-field-profile-bio {
  margin-top: 15px;
}

/******************
 BRANDED BOX
 *****************/

table.brand-box,
table.brand-box tr,
table.brand-box tr td {
  border: none;
  border-right: none;
  border-bottom: none;
  border-top: none;
  border-left: none;
}

table.brand-box {
  display: inline-block;
}

table.brand-box thead {
  display: none;
}

table.brand-box > tbody {
  max-width: 100%;
  position: relative;
  display: grid;
  grid-gap: 15px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

table.brand-box > tbody > tr {
  margin: 0 !important;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  margin-bottom: 0px !important;
  border-radius: 3px;
  padding-top: 18px;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 170px;
  padding-top: 18px;
  padding-bottom: 15px;
  background-color: transparent;
  border: solid 1px #004a998c;
  overflow: hidden;
  position: relative;
  align-self: self-start;
}

table.brand-box > tbody > tr:hover {
  filter: drop-shadow(0px 4px 0px #F3AE35);
  border-color: #F3AE35 !important;
  background: white;
  cursor: pointer;
}

/* i-Space related mods to brand-box */

table.brand-box.i-space > tbody table {
  border: none;
}

table.brand-box.i-space > tbody > tr {
  height: 290px;
}

table.brand-box.i-space > tbody table tbody tr:nth-child(2) td {
  position: relative;
  margin-bottom: 2.5px;
  font-weight: 400;
  color: #2e3a64;
  vertical-align: middle;
  line-height: 31px;
}

table.brand-box.i-space > tbody table tbody tr:nth-child(2) td img {
  padding: 0 !important;
  margin: 0 !important;
  width: 35px;
  vertical-align: bottom;
}

table.brand-box.i-space > tbody tr:hover {
  filter: drop-shadow(0px 4px 0px #1C3797);
  border-color: #1C3797 !important;
}

table.brand-box.i-space.gold > tbody > tr {
  border-color: #ffcc00;
}

table.brand-box.i-space.silver > tbody > tr {
  border-color: #999999;
}

table.brand-box.i-space.bronze > tbody > tr {
  border-color: #993300;
}

table.brand-box.i-space > tbody > tr td:first-child {
  text-align: center;
  min-height: 45px;
}

table.brand-box.i-space > tbody > tr td:first-child img {
  height: auto;
  max-width: 80% !important;
  max-height: 96px;
  width: auto;
  margin: 0 0 0 0 !important;
}

table.brand-box.i-space > tbody > tr td:nth-child(2) {
  /* margin-bottom: 25px; */
  margin-bottom: auto;
  padding: 0;
  width: 100%;
}

table.brand-box.i-space > tbody > tr td:nth-child(3) {
  margin-top: 25px; /* ensure minimum margin */
}

table.brand-box.i-space > tbody > tr td:nth-child(3),
table.brand-box.i-space > tbody > tr td:nth-child(3) a {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

table.brand-box.i-space > tbody > tr td:nth-child(3) a {
  font-size: 0px;
  color: transparent;
}

table.brand-box.i-space > tbody > tr td:nth-child(4):before {
  content: " ";
  position: absolute;
  left: -20px;
  right: -200px;
  bottom: 0px;
  top: -15px;
  bottom: -100px;
  background-color: #f1f1f1;
}

table.brand-box.i-space > tbody > tr td:nth-child(4),
table.brand-box.i-space > tbody > tr td:nth-child(5),
table.brand-box.i-space > tbody > tr td:nth-child(6) {
  padding-left: 34px;
}

table.brand-box.i-space > tbody > tr td:nth-child(4) {  }
table.brand-box.i-space > tbody > tr td:nth-child(5) {  }
table.brand-box.i-space > tbody > tr td:nth-child(6) {  }
table.brand-box.i-space > tbody > tr td:nth-child(7) {  }

table.brand-box.i-space > tbody > tr td:nth-child(4),
table.brand-box.i-space > tbody > tr td:nth-child(5),
table.brand-box.i-space > tbody > tr td:nth-child(6),
table.brand-box.i-space > tbody > tr td:nth-child(7) {
  font-size: 0px; /* ATTENTION: this = if content inside td not wrapped to p, nothing is shown */ ;
  padding-top: 0;
  padding-bottom: 0;
  align-self: flex-start;
  position: relative;
}

table.brand-box.i-space > tbody > tr td:nth-child(4) p,
table.brand-box.i-space > tbody > tr td:nth-child(5) p,
table.brand-box.i-space > tbody > tr td:nth-child(6) p,
table.brand-box.i-space > tbody > tr td:nth-child(7) p {
  position: relative;
  font-size: 12px;
  margin-bottom: 2.5px;
  font-weight: 400;
  color: #2e3a64;
  vertical-align: middle;
}

table.brand-box.i-space > tbody > tr td:nth-child(4) img,
table.brand-box.i-space > tbody > tr td:nth-child(5) img,
table.brand-box.i-space > tbody > tr td:nth-child(6) img,
table.brand-box.i-space > tbody > tr td:nth-child(7) img {
  padding: 0 !important;
  margin: 0 !important;
  width: 18px;
  vertical-align: bottom;
  position: absolute;
  left: -22px;
}

table.brand-box.i-space > tbody > tr td:nth-child(5) img {
  width: 15px;
  left: -17px;
}

/******************
 PROFILE LIST
 *****************/

.site-content table.profile-list,
.site-content table.profile-list tr,
.site-content table.profile-list tr td {
  border: none;
  border-right: none;
  border-bottom: none;
  border-top: none;
  border-left: none;
  height: auto !important;
}

.site-content table.profile-list tr td,
.site-content table.profile-list tr td p {
  line-height: 1.25;
  margin: 0;
}

.site-content table.profile-list {
  display: inline-block;
}

.site-content table.profile-list thead {
  display: none;
}

.site-content table.profile-list > tbody {
  max-width: 100%;
  position: relative;
  display: grid;
  grid-gap: 15px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.site-content table.profile-list > tbody > tr {
  margin: 0 !important;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  margin-bottom: 0px !important;
  border-radius: 3px;
  padding-top: 18px;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto !important;
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: transparent;
  border: none;
  overflow: hidden;
  position: relative;
  align-self: self-start;
}

.site-content table.profile-list > tbody > tr img {
  width: 180px;
  height: auto;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.site-content table.profile-list > tbody > tr table {
  margin-top: 0px;
  margin-bottom: 5px;
  border: none !important;
}

.site-content table.profile-list > tbody > tr table td {
  text-align: center;
}

/* Mobile
 */

@media screen and (max-width: 720px) {
  .site-content table.profile-list > tbody {
    grid-gap: 7px;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 500px) {
  .site-content table.profile-list > tbody {
    grid-template-columns: 1fr;
  }
}

/******************
 TYPOGRAPHY
 *****************/

.lede {
  font-weight: 400;
  font-size: 18px;
  color: #143d8c;
  font-family: "Montserrat";
  line-height: 1.4;
}

/* Mobile
 */

@media screen and (max-width: 720px) {

  #footer .footer-partners  > div {
    width: 33.33%;
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 720px) {
  #footer .footer-partners  > div {
    width: 50%;
  }
}