/*=== Accordions ===*/
.accordion {
  padding-top: 0;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.accordion .item {
  margin-bottom: 1rem;
  border: 1px solid var(--brand_color);
}

.accordion .item-title {
  position: relative;
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: white;
  background-color: var(--brand_color);
  transition: background-color 150ms ease;
}

.accordion .item-title em {
  display: block;
  float: right;
  transition: transform 250ms ease;
  transform: rotate(0);
  font-size: 1rem;
  padding: 0.325rem;
}

.accordion .item-title em::before {
  position: relative;
  left: 2px;
}

.accordion .item-title.active em {
  transform: rotate(180deg);
}

.accordion .item-title:hover {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--brand_color);
}

.accordion .item-content {
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.accordion .item-content p:last-child {
  margin-bottom: 0;
}

/*=== Notes ===*/
.note {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 2rem;
  background-color: #dee2e6;
  border-left-style: solid;
  border-left-width: 5px;
  border-radius: 6px;
  font-size: 0.85rem;
}

@media (min-width: 400px) {
  .note {
    flex-wrap: nowrap;
  }
}

.note.info {
  color: #16687a;
  background-color: #a1e0ee;
  border-color: #26B1D0;
}

.note.success {
  color: #30731c;
  background-color: #67eb43;
  border-color: #28870E;
}

.note.warning {
  color: #8c4515;
  background-color: #fbc7a4;
  border-color: #FF7011;
}

.note.danger {
  color: #6f0000;
  background-color: #ffadad;
  border-color: #FF1414;
}

.note .note-icon {
  flex-basis: 80px;
  font-size: 24px;
  margin-right: 1rem;
}

.note .note-title {
  margin-bottom: 0;
}

/*=== Tabs ===*/
ul.tabs-menu {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
  border-color: transparent;
  border-bottom: 1px solid #e7eaf3;
}

@media (min-width: 400px) {
  ul.tabs-menu {
    flex-direction: row;
  }
}

ul.tabs-menu .tab-link {
  display: block;
  margin-bottom: -0.125rem;
  padding: 1rem 1.5rem;
  color: #77838f;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: 0.3s;
}

ul.tabs-menu .tab-link:hover {
  color: $brand_color;
}

ul.tabs-menu .tab-item.active .tab-link {
  color: $brand_color;
  border-bottom-color: $brand_color;
}

ul.tabs-menu .tab-item:not(:last-child) {
  margin-right: 0.25rem;
}

ul.tabs-menu .tab-item:not(:first-child) {
  margin-left: 0.25rem;
}

.tab-content .tab-panel {
  display: none;
  max-height: 700px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tab-content .active {
  display: block;
}

.tab-content .fade {
  transition: opacity 0.15s linear;
}

.tab-content .fade:not(.show) {
  opacity: 0;
}

/*=== Images ===*/
img.border {
  border: 1px solid #ddd;
  padding: 10px;
}

img.shadow {
  box-shadow: 0 5px 20px 4px rgba(0, 0, 0, 0.4);
}

/*=== Lists ===*/
ul ul li {
  list-style: circle;
}

ul.list-colored {
  list-style: none;
}

ul.list-colored li::before {
  content: "\2022";
  color: $brand_color;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

ul.list-colored ul {
  list-style: none;
}

ul.list-colored ul li {
  list-style: none;
}

ul.list-colored ul li::before {
  content: "\25CB";
}

ul.list-check {
  list-style: none;
}

ul.list-check li::before {
  font-family: 'Font Awesome 5 Free', Arial, sans-serif;
  content: "\f14a";
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.5rem;
}

ol.list-numbered {
  counter-reset: counter-name 0;
  list-style: none;
  padding-left: 0;
}

ol.list-numbered li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  counter-increment: counter-name;
}

ol.list-numbered li::before {
  content: counter(counter-name);
  counter-increment: counter-name1;
  position: absolute;
  top: -3px;
  left: 0;
  z-index: 1;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  line-height: 30px;
  color: #fff;
  text-align: center;
  background-color: $brand_color;
  border-radius: 50%;
}

ol.list-numbered ol.list-numbered {
  padding-top: 1rem;
}

dl.description-list {
  display: flex;
  flex-wrap: wrap;
}

dl.description-list dt {
  font-weight: 600;
  flex: 0 0 25%;
  max-width: 75%;
}

dl.description-list dd {
  flex: 0 0 75%;
  max-width: 75%;
  margin-bottom: .5rem;
  margin-left: 0;
}

/*=== Blockquotes ===*/
blockquote.blockquote {
  padding: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  font-style: italic;
  background-color: $background_color;
  border-left: 5px solid #cccccc;
}

blockquote.blockquote .footer {
  background: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.85rem;
}

blockquote.blockquote .footer::before {
  content: '-';
}

blockquote.blockquote.colored {
  border-left-color: $brand_color;
}

/*=== Videos ===*/
.embed {
  position: relative;
  z-index: 1;
  display: block;
  height: 0;
  padding: 0 0 56.25%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.embed iframe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/***** Tables *****/
.table.table-striped tbody tr:nth-of-type(odd) {
  background: linear-gradient(0, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), $brand_color;
}

.table.table-hover tbody tr:hover {
  background: linear-gradient(0, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), $brand_color;
}

.table.table-bordered,
.table.table-bordered th,
.table.table-bordered td {
  border: 1px solid #e7eaf3;
}

.table thead.thead-color {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), $brand_color;
  color: $brand_text_color;
}

.table thead.thead-color tr th {
  color: white;
}
