:root {
  --canfin-blue: #3b3c66;
  --canfin-gold: #b8a757;

}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--canfin-blue);
}

.gold {
  color: #b8a757;
}
body {
  background-color: #ffffff;
}

header .advisor-profile {
  margin: 20px 0;
  text-align: right;
}
header .advisor-profile .name {
  font-size: 22px;
  line-height: 40px;
}
header .advisor-profile .credentials {
  line-height: 30px;
  font-size: 16px;
}
header .advisor-profile img.advisor-photo {
  max-height: 80px;
}

header img.photo {
  width: 42px;
  height: 42px;
}

@media (min-width: 992px) {
  header img.photo {
    z-index: 1;
    position: relative;
    width: 130px;
    height: 130px;
    margin-top: -30px;
  }
}

footer > .container-fluid {
  background-color: #455560;
  padding: 20px 0;
}

footer > .container-fluid p {
  color: #cccccc;
  font-size: 10px;
}

footer {
  margin-top: 2rem;
}
.carousel-caption {
  text-align: left;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  padding: 2rem;
}
.carousel-caption h5 {
  font-size: 1.5rem;
}
@media (min-width: 576px) {
  .carousel-caption h5 {
    font-size: 36px;
  }
}
@media (min-width: 768px) {
  .carousel-caption h5 {
    font-size: 46px;
  }
}

@media (min-width: 1200px) {
  .carousel-caption h5 {
    font-size: 72px;
  }
}

@media (min-width: 1400px) {
  .carousel-inner {
    height: 700px;
  }
  .carousel-caption {
    bottom: auto;
    top: 400px;
  }
}
.page {
  margin-top: 2rem;
}

.carousel-caption {
  font-family: "Sarabun", sans-serif;
}

.carousel-inner::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
}

.carousel-item img,
.carousel-item video {
  opacity: 0.6;
}

.page-enews {
  margin-top: 1em;
}

.page-enews .btn-default {
  border-color: #cccccc;
}
.page-enews .btn-default:hover {
  background-color: #eeeeee;
  color: #1c537d;
}
.page-enews .category {
  color: rgb(128, 128, 128);
  margin-bottom: 0;
  text-transform: uppercase;
}
.page-enews hr {
  margin-top: 3px;
}
.page-enews .row {
  margin-top: 2em;
}
.page-enews .article-image {
  max-height: 300px;
}
.page-enews .page-title {
  margin-bottom:5px;
  font-size: 36px;
  line-height:38px;
  color:black;
}
.page-enews .sub-text {
  font-size:18px;
}
@media only screen and(max-width: 768px) {
  .page-enews img {
    width: 100%;
  }
}

.social-media-icons {
  list-style: none;
  padding-left: 0;
}

.social-media-icons li {
  float: left;
  padding: 0.5em;
  font-size: 2em;
}

.calculator-card {
  background-color: #1c537d;
  text-align: center;
  color: white;
  display: block;
  padding: 0;
  width: 100%;
  margin: 0 0 2rem;
}
.calculator-card:hover {
  color: white;
}
.calculator-card img {
  margin: 0;
}
.calculator-card span {
  padding: 0.5rem;
  display: inline-block;
}

section.contact-widget {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 10000;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}
section.contact-widget .icon-container {
  padding: 10px;
  width: 50px;
  height: 50px;
  background-color: var(--canfin-gold);
  text-align: center;
  vertical-align: middle;
}
section.contact-widget .icon-container i {
  color: white;
  font-size: 28px;
  line-height: 30px;
}
section.contact-widget .inner {
  border: 5px solid var(--canfin-gold);
  padding: 20px;
  background-color: white;
  position: fixed;
  top: 40%;
  width: 250px;
  right: -250px;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}
section.contact-widget:hover {
  right: 250px;
}
section.contact-widget:hover .inner {
  right: 0;
}

.btn-gold {
  color: #ffffff;
  background-color: var(--canfin-gold);
  padding: 0.25em 0.5em;
  border-radius: 0.5em;
  transition-duration: 0.25s;
  border-style: solid;
  border-width: 1px;
  border-color: #ffffff00;
  text-decoration: none;
}

.btn-gold:hover {
  color: var(--canfin-gold);
  background-color: #ffffff00;
  border-color: var(--canfin-gold);
}

form h3 {
  padding-top: 1em;
}

form .row, form .form-group {
  margin-bottom: 1em;
}

form label input {
  margin-right: 0.5em;
}

form .btn {
  background-color: #1c537d;
  color: #ffffff;
}

form .btn:hover {
  background-color: var(--canfin-gold);
  color: #ffffff;
}

.financial-library .article img {
  margin-right: 20px;
  margin-bottom: 20px;
}

.financial-library .thumbnail2 {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  /*border:1px solid gray;*/
}
.financial-library h2.title {
  text-align:center;
  font-size:16px;
  font-weight:bold;
  line-height:18px;
  height:34px;
  overflow:hidden;
}
.financial-library .thumbnail2 a {
  text-decoration: none;
}

.education-circles {
  text-align: center;
  margin-bottom:20px;
}
.education-circles span {
  font-size: 22px;
}
.education-circles i {
  font-size: 50px;
  color: var(--canfin-gold);
}
.education-circles {
  text-align: center;
  margin: 20px auto;
}
.education-circles .education-icon {
  text-align: center;
  margin-bottom:18px;
}
.education-circles a,
.education-circles a span {
  font-size: 12px;
  line-height: 14px;
}
.education-circles i {
  font-size: 30px;
  color: var(--canfin-gold);
  margin-bottom: 5px;
}
.education-circles a {
  font-size: 11px;
  line-height: 13px;
}
.education-circles a span {
  text-transform: uppercase;
  background-color: #3b3c66;
  color:white;
  padding: 4px 6px;
}

.page-audio-library ul {
  padding: 0;
  list-style-type: none;
}
.page-audio-library ul li {
  padding: 0;
  list-style-type: none;
}

.debug {
  display:none;
}

.navbar-nav .nav-link.active, .navbar-nav .show>.nav-link {
  color: var(--canfin-blue);
  font-weight: bold;
}

.advisor-page img {
  margin-right: 24px;
}

.cookie-consent {
  box-sizing: border-box;
  position: fixed;
  right: 4em;
  bottom: 4em;
  background-color: #ffffff;
  padding: 2em;
  box-shadow: 0px 0px 1.5em #00000088;
  max-width: min(calc(100vw - 8em), 512px);
  border-radius: 8px;
}

.cookie-consent .consent-options {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
}

.cookie-consent .consent-options button {
  margin: 0px;
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .cookie-consent {
      overscroll-behavior: contain;
      left: 0px;
      right: 0px;
      bottom: 0px;
      max-width: none;
      box-shadow: 0px -0.75em 0.75em #00000055;
      border-radius: 0px;
  }
}

.hidden {
  display: none;
}
