:root {
  --heading-font-family: "Roboto Slab", "Acta", serif;
  --secondary-font-family: "PT Sans", sans-serif;
  --text-font-family: "Quicksand", serif;
  --primary-color: #4F6F52;
  --secondary-color: green;
  --hover-color: var(--secondary-color);
  --border-color: rgb(180, 180, 180);
  /* overrides */
  --bs-body-font-family: var(--secondary-font-family);
  --bs-link-hover-color-rgb: var(--hover-color);
}

html {
  height: 100%;
}

body {
  font-size: 16px;
  font-family: var(--secondary-font-family);
  background-color: rgba(230, 255, 230, 0.2509803922);
  height: inherit;
}

hr {
  width: 95%;
  border-color: var(--section-color, var(--border-color));
  margin-left: auto !important;
  margin-right: auto !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--heading-font-family);
}

p {
  margin-bottom: 0.6rem;
}

main {
  padding-top: 4.5em;
  min-height: 65%;
}

/* --------------------------- UTILITIES ----------------------- */
.font-heading {
  font-family: var(--heading-font-family);
}

.font-secondary {
  font-family: var(--secondary-font-family);
}

.font-text {
  font-family: var(--text-font-family);
}

.btn-reset { /* button with no default styles */
  border: 0;
  background-color: transparent;
}

.link-reset {
  text-decoration: none;
  color: inherit;
}

.link, article .post-title a, article .post-category,
article .post-category a {
  color: var(--section-color, var(--primary-color));
  text-decoration: none;
  transition: 0.4s ease-in-out;
}

.box-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  -webkit-box-shadow: 0px 5px 20px 0px rgba(69, 67, 96, 0.1);
  box-shadow: 0px 5px 20px 0px rgba(69, 67, 96, 0.1);
}

.styled-badge {
  background-color: var(--section-color, var(--primary-color));
  font-family: var(--text-font-family);
  color: #ffffff !important;
  padding: 2px 15px;
  display: inline-block;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 20px;
  font-weight: 800;
  text-transform: capitalize;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}

/* ---------------------------------- HEADER ---------------------------------- */
#site-header {
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 100;
  border-bottom: rgba(128, 128, 128, 0.0784313725) 1px solid;
  position: relative; /* Add position relative to allow absolute positioning inside */
  height: 4.5rem;
  /* --/site-header */
}
#site-header nav[data-menu-open=true] .fullscreen-menu {
  opacity: 1;
  pointer-events: auto;
  height: 100%;
}
#site-header nav[data-search-menu-open=true] .nav-menu-links {
  display: none;
}
#site-header nav[data-search-menu-open=true] .nav-search-menu {
  display: block;
}
#site-header nav[data-search-menu-open=false] .nav-menu-links {
  display: block;
}
#site-header nav[data-search-menu-open=false] .nav-search-menu {
  display: none;
}
#site-header .fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0fbee;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  height: 0;
  transition: height 0.4s ease;
  /* ------ Nav Categories */
}
#site-header .fullscreen-menu ul[data-category-for] {
  display: none;
}
#site-header .fullscreen-menu .nav-category-list {
  list-style: none;
}
#site-header .fullscreen-menu .nav-category-list > li {
  margin: 1.2rem auto;
  font-size: 2.5rem;
}
#site-header .fullscreen-menu .nav-category-list > li a {
  text-decoration: none;
}
#site-header .fullscreen-menu .nav-category-list > li a:hover {
  text-decoration: underline;
}
#site-header #search-results:empty {
  display: none !important;
}
#site-header #search-results .search-result {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-decoration: none;
  color: var(--bs-dark);
}
#site-header #search-results .search-result img {
  width: 100px;
  height: 70px;
  object-fit: cover;
}
#site-header #search-results hr:last-child {
  display: none;
}

/* --------- Category articles --------- */
.category-articles-container .item1 {
  order: var(--item1-order);
}
.category-articles-container .item2 {
  order: var(--item2-order);
}
.category-articles-container .item2 .articles-list-title {
  color: var(--section-color, var(--primary-color));
}
.category-articles-container .item2 article .post-category a, .category-articles-container .item2 article a.post-category {
  font-weight: 700;
  font-family: var(--secondary-font-family);
}
.category-articles-container .item2 article .post-title {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25rem;
}
.category-articles-container .item3 {
  order: var(--item3-order);
}
.category-articles-container .item3 .horizontal-posts article .post-title {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25rem;
}
/* ---------------------------------- ARTICLE ---------------------------------- */
article .post-title :hover {
  color: var(--section-color, var(--hover-color));
}
article .post-title a {
  color: inherit;
}
article .post-date {
  color: var(--bs-gray-500);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--bs-font-monospace);
}
article .post-author .author-link {
  color: var(--section-color, var(--primary-color));
  text-decoration: none;
}
article .post-author .author-link:hover {
  text-decoration: underline;
}
article .post-category {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}
article .post-category,
article .post-category a {
  transition: 0.5s ease;
}
article .post-category:hover,
article .post-category a:hover {
  text-decoration: underline;
}
article .post-img {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

/* -------------------------------- CATEGORY-ARTICLES ------------------------ */
.category-articles-container .category-title {
  font-size: 3rem;
  float: var(--title-align, right);
  color: var(--section-color, var(--primary-color));
}

article.post-long-card .post-title {
  line-height: 2.1rem;
}

/* ---------------------------------- MEDIA ---------------------------------- */
@media screen and (max-width: 576px) {
  .post-long-card .post-img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
  }
}
@media screen and (max-width: 768px) {
  .category-articles-container.ss2 .item3 .posts-container article:nth-child(2) {
    order: -1;
  }
  .category-articles-container.ss2 .item3 .posts-container article:nth-child(3) .post-title {
    font-size: 1rem;
  }
  .category-articles-container.ss2 .item3 .posts-container article:nth-child(3) .post-img {
    height: 18rem;
  }
}

@media screen and (min-width: 768px) {
  .posts-carousel .owl-carousel .owl-item .post-img {
    height: 280px;
  }
}

@media screen and (min-width: 992px) {
  .category-articles-container.ss1 .grid-articles .horizontal-posts article:nth-child(2) {
    margin-top: -2rem !important;
  }
  .category-articles-container.ss1 .grid-articles .horizontal-posts article:nth-child(2) img {
    height: 74% !important;
  }

  .category-articles-container.ss2 .item3 .posts-container article:nth-child(2) {
    margin-top: -2rem !important;
    order: 100; /* last */
  }
  .category-articles-container.ss2 .item3 .posts-container article:nth-child(2) .post-img {
    height: 70%;
  }
}
