/*
Theme Name: EBI Academy
Theme URI: https://www.ebi.ac.uk/training-beta/online/courses/
Author: EBI Web-Development Team <www-dev@ebi.ac.uk>
Author URI: https://www.ebi.ac.uk/
Description: Wordpress theme for EBI Academy site
Text Domain: ebi-academy
*/


/* temporary override until https://github.com/visual-framework/vf-core/issues/399 is resolved */
.vf-sr-only {
    display: none; }

/* VF book-cover-navigation component */
.ebiacademy-book-cover-navigation-bar nav ul.vf-pagination__list li {
    border-right: 2px solid #d0d0ce;
    float: left;
    margin-left: 0;
    font-size: large;
    /* compliance compatibility */ }

.ebiacademy-book-cover-navigation-bar nav ul.vf-pagination__list li:last-child,
.ebiacademy-book-cover-navigation-bar nav ul.vf-pagination__list li.active {
    border-right: 0; }

.ebiacademy-book-cover-navigation-bar nav ul.vf-pagination__list li.float-right {
    border-right: none; }

.ebiacademy-book-cover-navigation-bar nav a, .ebiacademy-book-cover-navigation-bar a:visited {
    border: none; }


/* Target selected menu item */
.ebiacademy-book-page .vf-tree__list [aria-current]:not([aria-current=“page”]) {
  /* font-size: larger !important; */
  /* background-color: green; */
  color: #005700 !important;
  font-weight: bold !important;
}

/* Remove bold from Navigation selected items */
.ebiacademy-book-page  .vf-tree__list .vf-tree__item--selected>.vf-tree__link:first-of-type {
  font-weight: normal;
}


/*******************  Custom CSS  ************************/

/* Book Start container */
.ebiacademy-book-start {
    /* background-color: white; */
}

.ebiacademy-book-start--title a,
.ebiacademy-book-start--title a:visited {
    color: #222;
    border: none;
}

.ebiacademy-book-start--title a:hover {
    border-bottom: 1px solid #222;
}

/* Left Navigation */
.ebiacademy-book-page-left-nav {
    background-color: #fafafa;
    padding: .5em;
    line-height: 1em;
    width: 300px;
    border-right: 1px solid #ccc;
}

.ebiacademy-book-page-navigation {
    margin-top: 0;
    background-color: white;
}

.ebiacademy-book-page-navigation ul {
    margin-left: 0;
    border-bottom: 1px solid #d0d0ce;
}

.ebiacademy-book-page-navigation a, .ebiacademy-book-page-navigation a:visited {
    border-color: transparent;
    font-size: large;
    font-weight: bold;
}

.ebiacademy-book-page-navigation .vf-pagination__item  {
    text-align: left;
}

.ebiacademy-book-page-navigation li.vf-pagination__item:last-child  {
    text-align: right;
}

.ebiacademy-book-page-left-nav ul {
    list-style-type: none;
}

.ebiacademy-book-page-left-nav ul li,
.ebiacademy-book-page-left-nav ul li:last-child,
.ebiacademy-book-page-left-nav ul li.active {
    margin: .9em 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}


/* Misc */
.vf-u-type__text-body--1 {
    font-size: 24px;
}

.ebiacademy-book-start--button a,
.ebiacademy-book-start--button a:visited {
    color: #fff;
    background-color:#307fe2;
    border-color: none;
}

.vf-button--primary,
.vf-button--primary:visited {
    border-color: #307fe2;
}


.ebiacademy-book-page .row {
    padding: 0 20em 0 0;
}

/* Style Draft page with different background colour */
#content.draft {background-image:
  url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' \
  version='1.1' height='75px' width='75px'>\
  <text transform='translate(20, 75) rotate(-30)' fill='rgb(230,230,230)' font-size='20' font-family='IBM Plex Sans, Helvetica, Arial, sans-serif'>draft</text></svg>");
}

#wpadminbar {
  background-color: #444  !important;
  border-bottom: 1px solid #777 !important;
  /* padding: 3px 0; */
}

li#wp-admin-bar-ebiacademy-edit-links {
  /* border-right: 1px solid #bbb !important; */
  margin-right: 1em !important;
}

/* Custom Admin Menu items for Editing Pages */
#wpadminbar #wp-admin-bar-ebiacademy-manage-pages .ab-icon:before {
  /* background-color: #444  !important; */
  content: "\f105";
  top: 3px;
}

#wpadminbar #wp-admin-bar-ebiacademy-view-published .ab-icon:before {
  content: "\f177";
  top: 3px;
}

#wpadminbar #wp-admin-bar-ebiacademy-edit .ab-icon:before {
  content: "\f464";
  top: 3px;
}

#wpadminbar #wp-admin-bar-ebiacademy-create .ab-icon:before {
  content: "\f133";
  top: 3px;
}

#wpadminbar #wp-admin-bar-ebiacademy-view-linked-draft .ab-icon:before {
  content: "\f177";
  top: 3px;
}

/* From custom components at https://github.com/ebiwd/ebi-academy-book-cover */

.ebiacademy-book-start {
    margin: 0 0 0px 0;
    padding-bottom: 16px;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; }


.ebiacademy-book-start--title-container {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-start--title {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.547; }

.ebiacademy-book-start--subtitle {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421; }

.ebiacademy-book-start--duration {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-start--button {
  -ms-flex-item-align: center;
      align-self: center;
  margin-left: 10px; }

.ebiacademy-book-image {
  -ms-flex-item-align: center;
  align-self: center;
  margin-left: 10px; }

.ebiacademy-book-page-header {
  border-bottom: 1px solid #d0d0ce;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; }

.ebiacademy-book-page-header--container {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-page-header--title {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.547; }

.ebiacademy-book-page-header--subtitle {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421; }

.ebiacademy-book-page-header--summary {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-page-header--home {
  -ms-flex-item-align: center;
      align-self: center;
  margin-left: 10px; }

.ebiacademy-book-page-content--container {
  padding:0 5%; }

.book-summary ul.summary li a, .book-summary ul.summary li span {
    display: block;
    padding: 10px 15px;
    border-bottom: none;
    color: #364149;
    background: 0 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.current_page_item {
    font-weight: bold;
}
.current_page_item ul li {
    font-weight: normal;
}
.ebiacademy-book-page-left-nav ul li a, a:visited{
    border-bottom: none;
}

.wp-block-image figcaption {
    text-align: left;
}


/*  COpy from STYLES.CSS/////////
////////////////////////////////
/////////////////////////////////]
*/



.vf-pagination__item {
  align-self: center;
  /*border-width: 1px;
  border-style: solid;
  border-radius: 4px;*/
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 8px;
  /*padding: 16px;*/
  padding: 0px;
  position: relative;
  /*flex: 1 1 0;*/
  /*max-width: 50%;
  width: 50%;*/
  /*text-align: left;*/
}

.vf-pagination__item:last-of-type {
  margin-right: 0px;
  /*text-align: left;*/
  text-align: right;
}


.vf-pagination__item:first-of-type {
  margin-left: 16px;
  /*text-align: right;*/
  text-align: left;
}

.vf-pagination__item:hover:first-of-type {
  /*box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.25);*/
}
.vf-pagination__item:hover:last-of-type {
  /*box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);*/
}

/* .vf-pagination__link {
  padding: 0;
}
.vf-pagination__link:hover {
  background-color: unset;
  color: unset;
} */

.vf-link {
  text-decoration: none;
}

/* Banner */
.vf-banner--phase [class*=vf-text] .vf-link {
  text-decoration: underline;
}


.vf-custom-display-block {
  display: block;
}

.vf-pagination__item {
  flex-direction: row;
}

.vf-pagination__item a {
  padding-bottom: 0.5em;
}

.vf-pagination__item .vf-pagination__link {
  align-self: center;
  /*flex-grow: 3;*/
  display: table;
}
.vf-pagination__item svg {
  flex-grow: 1;
  fill: #d0d0ce;
  min-width: 40px;
  max-width: 40px;
  margin-left: 5px;
    margin-right: 5px;
    display: table-cell;
}
.vf-pagination__item:hover {
  color: #307fe2;
}
.vf-pagination__item:hover svg {
  fill: #307fe2;
}

.vf-pagination__item--previous-page {
  flex-direction: row-reverse;
}
  --vf-color--orange--dark: #be5400;
  --vf-color--orange--light: #efc06e;
  --vf-color--yellow: #ffcd00;
  --vf-color--yellow--dark: #ffb81c;
  --vf-color--yellow--light: #fdd757;
  --vf-color--bright-green: #a8c700;
  --vf-color--bright-green--dark: #84bd00;
  --vf-color--bright-green--light: #e2e868; }


  .ebiacademy-book-start {

  margin: 0 0 24px 0;
  padding-bottom: 16px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; }

.ebiacademy-book-start--title-container {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-start--title {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.547; }

.ebiacademy-book-start--subtitle {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421; }

.ebiacademy-book-start--duration {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-start--button {
  -ms-flex-item-align: center;
      align-self: center;
  margin-left: 10px; }

.ebiacademy-book-image {
  -ms-flex-item-align: center;
  align-self: center;
  margin-left: 10px; }

.ebiacademy-book-page-header {
  border-bottom: 1px solid #d0d0ce;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; }

.ebiacademy-book-page-header--container {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-page-header--title {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.547; }

.ebiacademy-book-page-header--subtitle {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421; }

.ebiacademy-book-page-header--summary {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.421;
  -ms-flex-item-align: center;
      align-self: center; }

.ebiacademy-book-page-header--home {
  -ms-flex-item-align: center;
      align-self: center;
  margin-left: 10px; }

/*.vf-pagination__item {
  box-sizing: border-box;
  background-color: #fff;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  position: relative;
}*/

/*.vf-pagination__item:first-of-type {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 48px;
  text-align: right;
}*/
.vf-pagination__item:first-of-type::before {
  border-bottom-left-radius: 4px;
  border-right: 0;
  border-top: 0;
  /*left: -31px;
  top: 12px;*/
  left: -24px;
  top: 11px;
  -webkit-transform: rotate(47deg);
          transform: rotate(47deg);
}
.vf-pagination__item:first-of-type::after {
  left: 0px;
  position: absolute;
  top: 1px;
}
.vf-pagination__item:first-of-type:hover {
  /*box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.3);*/
}
.vf-pagination__item:first-of-type:hover::before {
  /*box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.3);*/
}
/*.vf-pagination__item:last-of-type {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  margin-right: 48px;
  text-align: left;
}*/
.vf-pagination__item:last-of-type:before {
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 4px;
  /*right: -32px;
  top: 12px;*/
  right: -24px;
  top: 10px;
  -webkit-transform: rotate(47deg);
          transform: rotate(47deg);
}
.vf-pagination__item:last-of-type::after {
  right: 0px;
  position: absolute;
  top: 1px;
}
.vf-pagination__item:last-of-type:hover {
  /*box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);*/
}
.vf-pagination__item:last-of-type:hover::before {
  box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.3);
}

.vf-pagination__link {
  padding: 16px;
}
.vf-pagination__link:hover {
  background-color: unset;
  color: unset;
}

.vf-link {
  text-decoration: none;
}

/*.vf-custom-display-block {
  display: block;
}*/

/*.vf-pagination__list {
  display: block;
}*/

/*.vf-pagination__item {
  display: block !important;
  margin-bottom: 8px;
}*/

@media (min-width: 600px) {
  .vf-pagination__list {
    display: flex;
  }

  .vf-pagination__item:first-of-type {
    margin-right: 16px;
  }
  .vf-pagination__item:last-of-type {
    margin-left: 16px;
  }
}

.vf-link {
  text-decoration: none;
}

/*.vf-custom-display-block {
  display: block;
}*/

.vf-tree {
  display: flex;
  height: 100%;
}

.vf-tree__inner {
  background-color: #F4F3F0;
  border: solid #E3E3E3 1px;
  padding: 0;
  transition: translateX ease-in 200ms;
  width: 100%;
}

.vf-tree--collapsed {
  overflow: visible;
  /*width: 100%;*/
}


.vf-tree__list .vf-tree--collapsed{
  width: 100%;
}

.vf-tree--collapsed .vf-tree__inner {
  transform: translateX(calc(-100% + 30px));
  transition: translateX ease-in 200ms;
}

.vf-tree--collapsed .vf-tree__list {
  opacity: 0;
  transition: opacity ease-in 150ms;
}

.vf-tree--collapsed .vf-show-hide__button {
  transform-origin: center;
  transform: rotate(180deg);
}

.vf-tree--collapsed .vf-show-hide__button:hover {
  transform-origin: center;
  transform: rotate(180deg);
}

.vf-tree--collapsed .vf-show-hide {
  align-self: flex-start;
}

.vf-tree__list {
  margin-bottom: 0;
  transition: opacity ease-in 150ms;
}

.vf-tree__item {
  padding: 4px 8px;
  position: relative;
}

.vf-tree__item:hover {
  background-color: #E7E6E3;
}

.vf-tree__button {
  all: unset;
  cursor: pointer;
  float: right;
  margin-left: auto;
  margin-right: 15px;
}

.vf-tree__button svg {
  stroke: #979797;
}

.vf-tree__button:hover {
  all: unset;
  cursor: pointer;
  float: right;
  margin-left: auto;
  margin-right: 15px;
}

.vf-tree__button:hover svg {
  stroke: set-ui-color(vf-ui-color--black);
}

.vf-tree__link {
  color: black;
  padding: 8px 0;
  text-decoration: none;
}

.vf-tree__item--expanded {
  background-color: #fff;
  padding-bottom: 16px;
}

.vf-tree__item--expanded:hover,
.vf-tree__item--expanded .vf-tree__link:hover,
.vf-tree__item--expanded .vf-tree__item:hover {
  background-color: #fff;
}

.vf-tree__item--expanded > .vf-tree__button{
  transform-origin: center;
  transform: rotate(90deg);
}

.vf-tree__item--selected > .vf-tree__link:first-of-type:hover {
  text-decoration: none !important;
}

.vf-tree__list--additional {
  /*display: none;*/
}

.vf-tree__item--expanded > .vf-tree__list--additional {
  display: block;
}

.vf-tree__list--additional .vf-tree__item {
  margin-left: 16px;
  position: relative;
}

.vf-tree__list--additional .vf-tree__item::before {
  border-left: 1px solid #979797;
  content: '';
  height: 100%;
  left: -8px;
  position: absolute;
}

.vf-tree__list--additional .vf-tree__item:last-of-type {
  padding-bottom: 0;
}

.vf-tree__list--additional .vf-tree__item:hover > .vf-tree__link {
  text-decoration: underline;
}

.vf-show-hide {
  display: flex;
  padding: 0 8px;
}

.vf-tree .vf-show-hide {
  padding-top: 8px;
}

.vf-show-hide__button {
  all: unset;
  cursor: pointer;
  margin-left: auto;
}

.vf-show-hide__button svg {
  stroke: #979797;
}

.vf-show-hide__button:hover {
  all: unset;
  cursor: pointer;
  margin-left: auto;
}

.vf-show-hide__button:hover svg {
  stroke: set-ui-color(vf-ui-color--black);
}



@media (max-width: 1023px) {
  .vf-grid--small-screen__col-1 {
    display: block; } }

.vf-tree__item--selected .vf-tree__item a:visited {
  color:#000;
}

/* Redefine the same behavior from above 3447, it causes double underline in hover state */
/*.vf-tree__list--additional .vf-tree__item:hover > .vf-tree__link {
    text-decoration: none; }*/

.vf-tree__link:hover{
  border-bottom: none;
}

.vf-tree__item--selected .vf-tree__link:visited{
  color:#000;
}

/*.vf-tree__link:visited{
 color: #555;

}*/



.vf-tree__item--selected{
  background: #fff;
}


/*.vf-tree__item .vf-tree__list:before{
  border-left: 1px solid #979797;
  content: "";
  height: 100%;
  left: -8px;
  position: absolute
}*/

.vf-u-type__text-body--2{
  /*top: 5px;*/
  position: relative;
  vertical-align: top;
  display: table-cell;
}


/* Pagination Fixes */

ul.vf-pagination__list {
  margin-left: 0rem;
}

.vf-pagination__item:first-of-type {
  margin-left: 0px;
}