/* Section styling */

.card-text-and-button {
  min-height: 100%;
  justify-content: space-between;
  display: flex;
  flex-direction: column; 
  align-items: center;
}

.hubDB_cards .page-center {
 margin-right: auto !important;
  margin-left: auto !important;
  width: 100% !important;;
}

@media screen and (min-width: 1000px) {
.hubDB_cards .single-card {
 min-height: 360px; 
}
}

@media screen and (max-width: 999px) {
.hubDB_cards .single-card {
   min-height: 422px;
  }
}

@media screen and (max-width: 767px) {
.hubDB_cards .single-card {
   min-height: 320px;
  }
}

@media screen and (max-width: 424px) {
.hubDB_cards .single-card {
   min-height: 380px;
  }
}


section.hubDB_cards {
  padding: 50px 0 20px;
}
section.hubDB_cards img.featured_image {
    border-radius: 20px 20px 0px 0px;
}

section.hubDB_cards div.page-center h3.section-title {
  color: #1b1a26;
  font-family: 'century-old-style-std',serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
  margin-bottom: 10px;
  text-align:center;
  padding-top:15px;
}

section.hubDB_cards ul {
 padding-left: 30px !important; 
 list-style-position: outside;
}

/* Display layout options */
section.hubDB_cards div.page-center div.wrapper {
  display:flex;
  text-align:center;
  padding:50px 0 50px;
  justify-content: space-evenly;
  align-items: stretch !important;
  row-gap: 25px; 
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hubDB_cards .single-card {
  border-radius:20px;
  max-width: 32%;
  padding-top: 25px;
  padding-bottom: 25px;
  position: relative;
  margin:5px;
  
}

.hubDB_cards a.cta {
   width: 90%;
}
.hubDB_cards .hubDB_cards-three .single-card {
  max-width: 30%;
}

.hubDB_cards .hubDB_cards-four .single-card {
  max-width: 23%;
  width: 23%;
  /* padding-bottom: 50px; */
}

.button-controller {
  position: absolute;
  width: 90%;
  left: 10%;
  bottom: 25px;
}

.button-controller a {
  padding: 15px !important; 
}

@media screen and (max-width: 1275px) {
  .hubDB_cards .hubDB_cards-four .single-card {
    width: 45%;
    max-width: 45%;
    margin-bottom: 25px;
  }
  section.hubDB_cards div.page-center div.wrapper {
    flex-wrap:wrap;
  }
}

@media screen and (max-width: 767px) {
  .hubDB_cards .single-card {
    display: block;
    width: 90% !important;
    max-width: 90% !important;
    margin-bottom: 25px;
  } 
}


/* Display layout end */
/* Card background dependant styling */
/* GREY */
section.hubDB_cards div.page-center div.wrapper div.single-card.grey {
  background-color:#EEF2F4;
}
section.hubDB_cards div.page-center div.wrapper div.single-card.grey h3, section.hubDB_cards div.page-center div.wrapper div.single-card.grey div {
  color:#1B1A26;
  padding:5px 10px;
  padding-top:15px;
  padding-bottom:5px;
}
section.hubDB_cards div.page-center div.wrapper div.single-card.grey div p {
  font-family: 'century-gothic', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 24px;
  text-align: center;
  color: #1B1A26;
  padding:5px 10px;
}
/* END - GREY */
/* WHITE */
section.hubDB_cards div.page-center div.wrapper div.single-card.white {
  background-color:#FFFFFF;
  color: #000 !important;
}
section.hubDB_cards div.page-center div.wrapper div.single-card.white h3, div.single-card.white p, section.hubDB_cards div.page-center div.wrapper div.single-card.white div {
  color:#000 !important;
  padding:5px 10px;
}
/* END - WHITE */
/* DARKBLUE */
section.hubDB_cards div.page-center div.wrapper div.single-card.darkblue {
  background-color:#1D3C70;
}
section.hubDB_cards div.page-center div.wrapper div.single-card.darkblue h3, section.hubDB_cards div.page-center div.wrapper div.single-card.darkblue div {
  color:#ffffff;
  padding:5px 10px;
}
/* END - DARKBLUE */
/* END of card colour options*/
/* Card content styling */
/* Curve hubDB_cards */
section.hubDB_cards div.page-center div.wrapper div.single-card img.curve {
   border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 100% !important;
  border-bottom-left-radius: 100% !important; 
}
section.hubDB_cards div.page-center div.wrapper div.single-card img.no-curve {
   border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important; 
}

section.hubDB_cards div.page-center div.wrapper h3 {
  font-style: normal;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
  color: #FFFFFF;
  padding:5px 10px;
}
section.hubDB_cards div.page-center div.wrapper div p {
  font-family: 'century-gothic', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 24px;
  text-align: center;
  color: #FFFFFF;
  padding:5px 10px;
  margin-bottom:15px;
}
/* END - card content */

/* Mobile */

@media (min-width: 767px) and (max-width: 1000px) {
/* .single-card div {
    padding: 5px 5px !important;
  }
*/  
.single-card p {
    padding: 5px !important;
  }
}

@media (max-width: 991px) {
  section.hubDB_cards div.page-center h3.section-title
    font-size:32px;
    line-height:38px;
  }
@media (max-width: 525px) {  
  section.hubDB_cards div.page-center div.wrapper.hubDB_cards-three div.single-card, section.hubDB_cards div.page-center div.wrapper.hubDB_cards-four div.single-card {

  }
  section.hubDB_cards div.page-center {
    padding:0px !important;
  }
  section.hubDB_cards div.page-center div.wrapper div.single-card img.curve {
   border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important; 
  }
  section.hubDB_cards div.page-center div.wrapper h3 {
    font-size:32px;
    line-height:36px;
  }
  section.hubDB_cards div.page-center h3.section-title {
    padding: 0px 20px;
  }
  section.hubDB_cards div.page-center div.wrapper div.single-card {
    padding-bottom: 25px !important;
  }
}

/* Pop-Up Styling */

.pop-up-background {
 background-color: rgba(29, 60, 112, 0.9);
  position: fixed;
  width: 100vw !important;
  height: 100vh !important;
  top: 0;
  left: 0;
  z-index: 9999;
}

.pop-up-card {
  background-color: #EEF2F4;
  max-width: 80%;
  width: 962px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
}

.pop-up-content-container {
  max-width: 80%; 
  width: 790px;
  height: 60%;
  margin: auto;
  padding: 67px 0;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
}

.close-popup {
  right: 4%;
  top: 4%;
  position: absolute;
}
 
.close-popup:hover {
 cursor: pointer; 
} 

.pop-up-left {
  float: left; 
  background-color: #fff;
  border-radius: 20px;
  width: 320px;
  max-width: 50%;
  padding-bottom: 25px;
}

.pop-up-title {
  font-family: century-old-style-std,serif;
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
  color: #1B1A26; 
  width: 90%;
  margin: 0 auto;
}

.pop-up-body {
  width: 90%;
  margin: 0 auto;
}

.pop-up-body p {
  font-family: 'century-gothic', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #1B1A26 !important; 
}

.pop-up-left img {
  max-width: 100%;
  width: 320px;
  border-radius: 20px 20px 100% 100% !important;
  padding-bottom: 15px;
}

.pop-up-right {
   float: right; 
   text-align: left;
   margin-left: 50px;
    max-width: 60%;
}

.pop-up-rich-text {
  margin-bottom: 50px; 
}

.pop-up-rich-text p {
  color: #000 !important; 
  margin: 0 0 20px 0;
  text-align: left !important;
  padding: 0 !important;
  font-family: 'century-gothic', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.pop-up-right img {
 
}

.popup-linkedin:hover {
  cursor: pointer; 
}

@media screen and (max-width: 850px) {
  /*
  .pop-up-card {
   height: 90%;  
  } */
  
  .pop-up-card {
    overflow-y:scroll;
    overflow-x:hidden; 
    height: 100vh;
  }
  
 .pop-up-content-container {
   display: block;
   margin: 25px auto;
   text-align: center;
   width: 100%;
   max-width: 100%;
  }
  
  .close-popup {
   top: 2%; 
  }
  
  .pop-up-left {
    margin: 0 auto 25px auto;
    float: none;
    max-width: 50%;
    width: 50%;
  }
  
  .pop-up-right {
   margin: 0 auto 25px auto;
    width: 80%;
    max-width: 80%;
   float: none;
   text-align: center !important;
  }
  
  .pop-up-right p {
    text-align: center !important; 
  }
  
}

@media screen and (max-width: 450px) {
    .pop-up-content-container {
      padding: 10px 0;   
      width: 95%;
      height: 95%;
  }
  
  
    .pop-up-left {
      margin: 0 auto 25px auto;
      float: none;
      max-width: 80%;
      width: 80%;
  }
  
  .pop-up-right {
    margin: 0 auto; 
    width: 95%;
    max-width: 95%;
  }
  
  .pop-up-rich-text {
    margin-bottom: 0; 
  }
}

