/*
Theme Name: COLLABORATIVE EXCHANGE FUND HUB
Theme URI: https://fundhub.co.za
Author: Neels Moller
Author URI: https://neelsmoller.com
Description: Custom Wordpress Theme
Version: 2.0.0
*/

/*
:root {
  --color-primary: #0d1e59;
  --color-secondary: #fc3b62; / #ee295e;
  --color-dark: #222;
  --color-light: whitesmoke;
  --color-accent: aqua;
}
*/

@import "assets/css/font.css";
@import "assets/css/reset.css";
@import "assets/css/menu.css";
@import "assets/css/utils.css";
@import "assets/css/slides.css";


/** { outline: 1px solid magenta; } */


/* -------------- */
/* Fund Hub Theme */
/* -------------- */

html {
  font-family: 'Gotham', sans-serif;
  line-height: 1.34rem;
  font-weight: 300;
  font-size: 16px;
}

body {
  background-color: #0d1e59;
  color: whitesmoke;
  min-height: 100vh;
  min-width: 320px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.67em;
  line-height: 1.25em;
}

h1 {
  font-size: 1.17em;
}

h2 {
  font-size: 1.34em;
}

p {
  margin-bottom: 1em;
}

small {
  font-weight: 200;
  font-size: 0.75em;
}

strong, b {
  font-weight: 700;
}

figure > a {
  display: inline-block;
}

.content {
  width: 100%;
}

.container {
  display: block;
  margin:  0 auto;
  max-width: 1500px;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-x: hidden;
  flex-grow: 1;
}

.content-left {
  float: left;
}

.content-right {
  float: right;
}


/* Slideshow */
.slideshow {
  position: absolute;
  overflow: hidden;
  height: 100%;
  width: 100%;
  z-index: -2;
  left: 0;
  top: 0;
}

.slideshow .slides {
  position: relative;
  max-width: 3840px; /*1920px*/
  max-height: 2160px; /*1080px*/
  margin: 0 auto;
  width: 100%;
}

.slideshow .slides::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, transparent 65%, #0d1e59 96%);
  background-repeat: no-repeat;
  z-index: 5;
}

.slideshow .slide {
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;    
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}


/* Site Header */
#site-header {
  background-color: #0d1e59a9; /*#0d1e59c9*/
  position: fixed;
  /*top: 0;*/
  left: 0;
  width: 100%;
  z-index:10;
}

.b2t-on #site-header {
  background-color: #0d1e59ee;
  transition: background-color 0.5s;
}

/*.b2t-on #site-header .brand img {*/
/*  max-height: 2rem;*/
/*  transition: max-height 0.5s;*/
/*}*/


/* Brand */
.brand {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  vertical-align: middle;
  font-size: 0;
}

.brand img {
  vertical-align: middle;
  display: inline-block;
  max-height: 3rem;
}

.brand img:first-of-type {
  margin-right: 1rem;
}


/* Primary Nav */
nav.primary {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  position: relative;
  /*overflow-x: hidden;*/
}

.b2t-on nav.primary {
  padding-top: 0;
  padding-bottom: 0;
  transition: padding 0.5s;
}

nav.primary .container {
  font-size: 0;
}

nav.primary::before {
  background-color: #0d1e59;
  opacity: 1;
}

nav.primary .toggle-mobile-menu-btn {
  top: 0.75rem;
}

nav.primary .brand {
  margin-right: 4.5rem;    
}


/* Primary Menu */
#menu-primary a {  
  padding: 0 0.5rem;
}


@media only screen and (min-width: 1000px) {
  #menu-primary {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

@media only screen and (min-width: 1079px) {
  #menu-primary a {  
    padding: 0 0.95rem;
  }
}

#menu-primary li {
  font-size: 1rem;
}

#menu-primary a {
  display: inline-block;
  /*font-weight: 500;*/
  line-height: 3rem;
  text-decoration: none;
  text-transform: uppercase;
  height: 3rem;
}

/*.b2t-on #menu-primary a {*/
/*  transition: font-size 0.5s, line-height 0.5s, height 0.5s;*/
/*  font-size: 0.9em;*/
/*  line-height: 2rem;*/
/*  height: 2rem;*/
/*}*/

#menu-primary a:hover {
  color: #ee295e;
}

#menu-primary .current_page_item a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-underline-offset: 0.15em;
  font-weight: 600;
  color: #ee295e;
}


/* Main Content */
#main-content {
  flex: 1;
  margin-top: 5rem;
}


/* Site Footer */
#site-footer {
  background-color: #0d1e59;
}

#site-footer .content {
  padding: 2rem 0;
}


/* Secondary Nav */
nav.secondary {
  display: inline-block;
  vertical-align: middle;
}


/* Secondary Menu */
#menu-secondary li:last-of-type a {
  text-decoration: none;
  font-size: 0.9em;
  color: silver;
}

#menu-secondary a {
  line-height: 1.5em;
}


/* Form */
/*form.wpcf7-form {*/
/*  margin-left: 1rem;*/
/*}*/

form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
}

input, form textarea, select {
  background-color: #eeeef097;
  border: 3px solid aqua;
  display: block;
  padding: 4px 7px;
  margin: 3px 0;
  width: 100%;
  max-width: 640px;
}

option {
  color: #0d1e59;
}

input[type="submit"] {
  background-color: teal;
  background-color: #00ffff42;
  border-radius: 1rem;
  padding: 4px 16px;
  cursor: pointer;
  width: auto;
}


/* Marquee */
.marquee-inner {
  position: relative;
  overflow-x: hidden;
}

.marquee-inner::before,
.marquee-inner::after {
  position: absolute;
  content: " ";
  width: 2.5rem;
  height: 100%;
  z-index: 1;
  top: 0;
}

.marquee-inner::before {
  left: 0;
}

.marquee-inner::after {
  right: 0;
}

.marquee ul {
  display: inline-block;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;  
  overflow-wrap: unset;
  white-space: nowrap;
  list-style: none;
  max-width: none;
  font-size: 0;
}

.marquee li {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
}


/* Ticker Tape */
.ticker-tape {
  background-color: #ee295e;
}

.ticker-tape .marquee-inner::before {
  background: -webkit-gradient(linear, left top, right top, color-stop(0%, #ee295e), color-stop(100%, #ee295e00)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(left,  #ee295e 0%, #ee295e00 100%); /* Chrome10+,Safari5.1+ */
  background-image: linear-gradient(90deg, #ee295e 0%, #ee295e00 100%);
}

.ticker-tape .marquee-inner::after {
  background: -webkit-gradient(linear, right top, left top, color-stop(0%, #ee295e), color-stop(100%, #ee295e00)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(right,  #ee295e 0%, #ee295e00 100%); /* Chrome10+,Safari5.1+ */    
  /*background-image: linear-gradient(270deg, #ee295e 0%, #ee295e00 100%);*/
}

.ticker-tape li {
  height: 3rem;
  line-height: 3rem;
  margin: 0 16px;
}

.ticker-tape i,
.ticker-tape p {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 400;
}

.ticker-tape i {
  margin-right: 0.5em;
}

.ticker-tape img {
  display: block;
  height: 2em;
  width: 2em;  
}


/* Sponsors Reel */
.sponsors-reel {
  background-color: white;
}

.sponsors-reel .marquee-inner::before {
  background: -webkit-gradient(linear, left top, right top, color-stop(0%, #ffffff), color-stop(100%, rgba(255,255,255,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(left,  #ffffff 0%, rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */    
  background-image: linear-gradient(90deg, white 0%, rgba(255,255,255,0) 100%);
}

.sponsors-reel .marquee-inner::after {
  background: -webkit-gradient(linear, right top, right bottom, color-stop(0%, #ffffff), color-stop(100%, rgba(255,255,255,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(right,  #ffffff 0%, rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */        
  background-image: linear-gradient(270deg, white 0%, rgba(255,255,255,0) 100%);
}

.sponsors-reel li {
  margin: 1rem 2rem;
}

.sponsors-reel a {
  display: inline-block;
}

.sponsors-reel img {
  max-height: 4rem;
  width: auto;
}


/* Grid Item */
.grid-item {
  display: inline-table;
  margin: 2% 1.5%;
}

.grid-item a {
  display: table-cell;
  height: 4.5rem;
  line-height: 0;
  font-size: 0.5em;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  width: 142px;
  padding: 0.5rem;
  /*border: 1px solid;*/
}

.grid-item img {
  width: auto;
  max-width: 100%;
  max-height: 3rem;
  line-height: 3rem;
}

.grid-item:hover a {
  box-shadow: 0 0 7px rgba(0,0,0,0.1);
}


/* Call to Action Button */
.cta-btn a {
  display: block;
  background-color: #00ffff42;
  border: 4px solid aqua;
  border-color: aqua;
  box-shadow: 2px 2px 12px 0 rgba(0, 92, 92, 0.3);
  font-size: 1.25rem;
  font-weight: 300;
  padding: 0.5rem 2rem 0.6rem;
  margin: 1.5rem 0;
  letter-spacing: 1px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  /*height: 3rem;*/
}


/* Back to Top Button */
#back-to-top {
  background-color: #fc3b62;
  border-radius: 50%;
  bottom: 1rem;
  box-shadow: 0 0 7px 0 rgba(0,0,0,0.25);
  color: white;
  cursor: pointer;
  display: none;
  height: 3rem;
  line-height: 2.67rem;
  opacity: 0.6;
  position: fixed;
  right: 1rem;
  text-align: center;
  width: 3rem;
  z-index: 100;
}

#back-to-top .arrow-up {
  width: 0;
  height: 0;
  font-size: 0;
  display: inline-block;
  border-bottom: 8px solid white;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
}

.b2t-on #back-to-top {
  display: block;
}


/* -- Home Page -- */
.home main {
  display: flex;
  align-items: center;
}

.home h2 {
  color: aqua;
  max-width: 42ch;
  font-size: 1.34rem;
  margin-top: 1em;
}

.home article {
  padding: 0 2rem;
}

@media only screen and (min-height: 500px) {
  .home main {
    min-height: calc(100vh - 5rem - 3rem - 6rem);
  }
}

@media only screen and (min-height: 920px) {
  .home main {
    min-height: calc(100vh - 5rem - 3rem - 6rem - 8rem);
  }
}


/* -- About Page -- */
.page-id-99 .wp-block-cover .has-background-dim-100 {
  background-color: #7781b940;
}

.page-id-99 .wp-block-column.is-vertically-aligned-center {
  background-color: #f925618f;
  color: white;
}

.page-id-99 .wp-image-203 {
  max-height: 7rem;
  width: auto;
}

.page-id-99 #main-content .has-backdrop,
.page-id-101 #main-content .has-backdrop {
  background-color: transparent;
  color: white;
}


/* --  Asset Managers Page -- */
.uagb-post-grid .uagb-post__image a {
 display: block;
 padding: 1rem;
}
.uagb-post-grid .uagb-post__image img {
  width: auto;
  height: 3.5rem;
  max-width: 100%;
}

/*.uagb-post__items {*/
/*  font-size: 0.9rem;*/
/*}*/

.uagb-post-grid .uagb-post__items {
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  height: 100%;
}

.uagb-post-grid article {
  position: relative;
  display: flex !important;
}

.uagb-post-grid .uagb-post__inner-wrap  {
  height: auto !important;
}

/*.uagb-post-grid .uagb-post__excerpt {*/
/*  margin-bottom: 42px;*/
/*}*/

.uagb-post-grid .uagb-post__cta {
  position: absolute;
  bottom: 16px;
  left: 27px;
}

.uagb-post__cta .wp-block-button__link {
  font-size: 0.9rem;
  padding: 0.2em 1.34em 0.3em;
  background-color: #0d1e59cc;
}


/* -- Asset Manager -- */
.single-asset_manager main .container {
  padding: 0 1rem 1rem;
}

.single-asset_manager .video-gallery {
  margin: 3em 0;
}

.asm-header-left .has-backdrop {
  background-color: white;
  display: inline-block;
  padding: 1rem;
}

.asm-header-left img {
  object-position: left;
  width: auto;
}

.asm-header-right {
  align-items: flex-end;
}

.wp-block-uagb-icon-list-child a[href=""] + div {
  display: none;
}

/*.asm-link-icon .uagb-icon-list__source-wrap {*/
/*  border: 2px solid transparent;*/
/*}*/

.asm-link-icon:hover .uagb-icon-list__source-wrap {
  outline: 2px solid #ffffffab;
}

.asm-link-icon:hover svg {
  fill: white !important;
}

.post-strategies {
  margin: 2em 0;
}

.awards {
  margin: 2em 0;
}

.awards img {
  max-height: 100px;
  max-width: 100%;
  width: auto !important;
}

.video-gallery {
  margin: 1em 0;
}

.content-right figure {
  margin: 0;
}

.video-gallery figure {
  display: inline-block;
  margin: 0.5% 0.67% 1.5%;
  vertical-align: top;
  width: 30%;
}

.video-gallery figure > .wp-block-embed__wrapper {
  position: relative;
  background-color: gainsboro;
}

.video-gallery figcaption {
  font-size: 0.8em;
  line-height: 1.1em;
  padding: 0.5em 0;
}

.video-gallery figure > div:before {
  content: "";
  display: block;
  padding-top: 54.15%; /*56.25%;*/
}

.video-gallery iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.user-notes {
  display: none;
}

.sidebar-panel {
  padding: 1em;
  margin-bottom: 1.5em;
}

.sidebar-panel h2 {
  margin-top: 0;
}

.sidebar-panel h3 {
  color: grey;
}

.sidebar-panel .wp-block-button {
  width: 100%;
}

.sidebar-panel a {
  border: 1px solid #333;
  border-radius: 4px;
  color: #333;
  display: block;
  font-size: 0.9em;
  font-weight: bold;
  line-height: 1.34em;
  margin-bottom: 0.67em;
  padding: 0.5em 1em 0.67em;
  text-align: left;
}

.sidebar-panel a:hover {
  background: black;
  border-radius: 5px;
  color: white;
  transition: background-color 0.5s;
}

.single-asset_manager .wp-block-columns {
  background-color: white;
  padding: 1rem;
}

.single-asset_manager .wp-block-button__link {
  color: #0d1e59;
}

.factsheets {
  background-color: aqua;
}

.factsheets .wp-block-button__link {
  background-color: aqua;
  border-color: #0d1e59;
}

.media {
  background-color: #ee295e;
}

.media .wp-block-button__link {
  background-color: #ee295e;
  border-color: whitesmoke;  
  color: whitesmoke;
}

.media h2 {
  color: whitesmoke;
}


@media only screen and (max-width: 640px) {
  .content-left {
    float: none;
  }
  .content-right {
    float: none;
  }
  .cta-btn a {
    font-size: 1.15em;
  }
}


@media only screen and (max-width: 1299px) {
  html {
    font-size: 15px;
  }
}

@media only screen and (min-width: 1921px) {
  html {
    font-size: 19px;
  }
  .container {
     max-width: 1900px;
  }
}
