/* Style for custom Articles page */

*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-padding: 1.5rem;
}
body strong,
body b {
  font-weight: 500;
}
body a {
  /* color: var(--main-button-color); */
  color: #000000;
  -webkit-transition: all 250ms ease-in-out;
  -moz-transition: all 250ms ease-in-out;
  transition: all 250ms ease-in-out;
}
body a:hover,
body a:focus {
  /* color: var(--main-button-hover-color); */
  color: var(--main-button-color);
}
div#main-wrapper {
  padding: 20px;
}
#ast-scroll-top.ast-scroll-top-icon {
  background-color: var(--main-theme-color);
}
.content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

/* Page title */
.page-title-wrapper {
  margin: 20px 20px 2px 10px;
  padding: 5px 0;
}
.page-title-wrapper p {
  margin-bottom: 0.8rem;
}
.page-title-wrapper .page-title {
  margin: 0;
}
.page-title-wrapper .page-title .title {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.page-title-wrapper .separator-parent {
  text-align: left;
  line-height: 0;
}
.page-title-wrapper .separator {
  text-align: left;
  margin: 1px 0 10px 0;
  border-top: 3px solid var(--main-theme-color);
  width: 10%;
  display: inline-block;
}
.page-title-wrapper .page-description p {
  line-height: 1.5em;
  font-size: 15px;
  padding-bottom: 1px;
}
.page-title-wrapper .page-description,
.page-title-wrapper .timezone,
.page-title-wrapper .timezone p {
  margin-bottom: 2px;
}

/* Article Posts */
.articles-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
article {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 3fr;
  margin-bottom: 2.5rem;
  background-color: var(--quvent-light-98, #f9f9f9);
}
article .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.5rem;
}
article .img-container {
  position: relative;
}
article .img-container > a {
  display: block;
}
article .img-container .post-date {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
}
article .img-container .post-date > a {
  color: #fff;
  background: #333;
  display: block;
  width: 70px;
  font-size: 18px;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
  padding: 15px 15px;
}
article .title {
  font-size: 1.529412rem;
  font-weight: 600;
  line-height: 1.3;
}
article .description {
  color: var(--quvent-dark-b-90);
  margin-top: 1rem;
  font-size: 0.88235rem;
  line-height: 1.9;
}
article .description .read-more {
  margin-top: 1rem;
  font-weight: 500;
}
article .description .read-more i {
  margin-left: 0.5rem;
  -webkit-transition: margin-left 250ms ease;
  -moz-transition: margin-left 250ms ease;
  transition: margin-left 250ms ease;
}
article .description .read-more:hover i {
  margin-left: 0.75rem;
}
article .post-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e1e1;
  margin-bottom: 0;
}
article .tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.375rem;
  letter-spacing: 0.4px;
}
article .tag-wrap {
  /* flex-shrink: 0; */
  display: flex;
  /* padding: 4px 7px; */
  border-radius: calc(var(--global-button-border-radius) * 0.75);
  line-height: 1;
  font-family: var(--heading-font-family, Lato, Sans-serif);
  font-weight: 600;
  font-size: 0.70588rem;
  /* text-transform: uppercase; */
  cursor: default;
  white-space: nowrap;
}
article .tag-wrap.category {
  /* background-color: var(--category-bg-color); */
  /* color: var(--category-text-color); */
  border-color: var(--category-text-color);
  border-width: 1px;
  border-style: solid;
}
article .tag-wrap.category a {
  color: var(--category-text-color);
  padding: 3px 7px;
}
article .tag-wrap.category a:hover,
article .tag-wrap.category a:focus {
  background-color: var(--category-text-color);
  color: #fff;
}
.filter-container {
  margin: 1rem 0 0.625rem;
  width: 100%;
}
/* SEARCH AND FILTER STYLE */
/* This is styling the dropdown filters which are vertically aligned by default*/

/*Fix dropdown arrow */
.searchandfilter select {
  background-position-y: 50%;
  background-image: none;
  -webkit-appearance: auto;
  appearance: auto;
}

form.searchandfilter > ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  width: 100%;
  margin-left: 0;
}
form.searchandfilter ul li {
  margin: 2px 10px;
  max-width: 100%;
}

/* SEARCH BAR */
form.searchandfilter .sf-field-search {
  /* display:inline-block; */
  clear: both;
  /* flex-basis: 100%; */
  flex-basis: 40rem;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  justify-content: end;
  text-align: right;
  white-space: nowrap;
  align-self: center;
}
form.searchandfilter .sf-field-search label {
  width: 100%;
}
.searchandfilter .sf-field-search INPUT {
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  -khtml-border-radius: 0px;
  border-radius: 40px;
  border: 1px solid #999;
  width: 100%;
}
.searchandfilter .sf-field-search INPUT:focus-visible {
  outline: #4a4a4a auto 1px;
}
.sf-field-search .sf-input-text {
  background-color: #ffffff;
  padding: 0.6rem 0.8rem;
  /* height: 22px; */
}

/* This is styling the search placeholder text*/
.searchandfilter INPUT.sf-input-text::placeholder {
  color: #999;
}

/* This is adding the magnifying glass to the search box*/
.searchandfilter .sf-field-search::after {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #030506;
  font-size: 16px;
  z-index: 10;
  position: relative;
  left: -36px;
  top: 0px;
}

/* TRACKS STYLING AS BUTTONS */

form.searchandfilter .sf-field-category ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem 0.375rem;
}

form.searchandfilter .sf-field-category ul li {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}
form.searchandfilter .sf-field-category {
  padding: 0;
  margin-right: auto;
  margin-left: auto;
  flex-basis: 100%;
}
.sf-field-category input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}
form.searchandfilter .sf-field-category label {
  display: inline-block;
  /* background-color: #000000; */
  border-color: #000000;
  border-width: 1px;
  border-style: solid;
  padding: 4px 8px;
  border-radius: calc(var(--global-button-border-radius) * 0.75);
  font-family: var(--heading-font-family, Lato, Sans-serif);
  font-size: 0.764706rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #000000;
  cursor: pointer;
  line-height: 1;
  transition: all 200ms linear;
  /* opacity: 0.4; */
}
/* form.searchandfilter .sf-field-category input[type="radio"]:checked + label {
  opacity: 1;
} */
form.searchandfilter
  .sf-field-category
  input[type="radio"]:checked
  + label::after {
  content: "\f00c";
  font-family: FontAwesome;
  margin-left: 6px;
}
form.searchandfilter
  .sf-field-category
  .sf-item-0
  input[type="radio"]:checked
  + label {
  /* background-color: var(--main-button-color); */
  /* border-color: #000000; */
  background-color: #000000;
  color: #fff;
}
form.searchandfilter
  .sf-field-category
  .sf-item-0
  input[type="radio"]:focus
  + label,
form.searchandfilter
  .sf-field-category
  .sf-item-0
  input[type="radio"]:focus-visible
  + label {
  /* background-color: var(--main-button-color); */
  background-color: #000000;
  color: #fff;
  /* outline: thin dotted #000000;
  outline-offset: 1px; */
}
/* form.searchandfilter .sf-field-category input[type="radio"]:focus + label,
form.searchandfilter
  .sf-field-category
  input[type="radio"]:focus-visible
  + label {
  opacity: 1;
} */
form.searchandfilter .sf-field-category .sf-item-0 label:hover,
form.searchandfilter .sf-field-category .sf-item-0 label:focus {
  /* background-color: var(--main-button-color); */
  background-color: #000000;
  color: #fff;
}
/* form.searchandfilter .sf-field-category label:hover {
  opacity: 1;
} */

/* DROPDOWN Style */
form.searchandfilter li[data-sf-field-input-type="select"] {
  /* margin-top: 8px;
  margin-bottom: 5px; */
  /* padding: 10px 0 0; */
  padding: 0;
  /* margin: 8px 5px 5px; */
  margin: 2px 10px;
}

form.searchandfilter
  li[data-sf-field-input-type="select"]
  select.sf-input-select {
  border-radius: var(--global-button-border-radius);
  border: 1px solid #999;
  max-width: 15rem;
}
form.searchandfilter
  li[data-sf-field-input-type="select"]
  select.sf-input-select:focus-visible {
  outline: #4a4a4a auto 1px;
}
form.searchandfilter li[data-sf-field-input-type="select"] select {
  padding: 0.15em 1.8em 0.15em 0.5em;
  background-color: #fff;
  height: auto;
  font-size: 16px;
}
/*Styling for a special "heading" option in a dropdown */
form.searchandfilter select option.heading {
  background: #f9f9f9;
  color: var(--quvent-dark-50);
}

/* SEARCH & FILTER RESPONSIVE */

@media only screen and (max-width: 768px) {
  .content {
    margin-top: 1.2rem;
  }
  /* Search bar */
  form.searchandfilter .sf-field-search {
    flex-basis: 100%;
    margin-left: 5px;
    text-align: left;
  }
}

/* END OF SEARCH FILTER */

/* Responsive */

@media screen and (max-width: 992px) {
  .title-time-track-wrap .title {
    font-size: 1.3rem;
    line-height: 1;
  }
}
@media screen and (max-width: 768px) {
  article {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}
@media screen and (max-width: 768px) and (orientation: portrait) {
  div#main-wrapper {
    padding: 1.2rem 1rem;
  }
}
