/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
div[data-elementor-type="wp-page"]{
  width: 100%;
}

.ech-encyclopedia-container {
  margin: 20px auto;
}
.filter-container{
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-container .filter-category{
  max-width: 200px;
}

.encyclopedia-btn button{
  padding: 10px 20px;
  color: #fff;
  background-color: var(--e-global-color-primary);
}
.ech-encyclopedia-container .encyclopedia-list {
  display: flex;
  flex-wrap: wrap;
  gap: 35px 30px;
}

.ech-encyclopedia-container .encyclopedia-card {
  padding: 4%;
  flex-basis: calc((100% - 60px) / 3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  background-color: #fff;

}

.ech-encyclopedia-container .encyclopedia-card .featured-image {
  display: flex;
  height: 200px;
}

.ech-encyclopedia-container .encyclopedia-card .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ech-encyclopedia-container .encyclopedia-card .featured-image img.default-logo {
  object-fit: contain;
}

.ech-encyclopedia-container .encyclopedia-card .encyclopedia-info{
  padding-bottom: 20px;
}

.ech-encyclopedia-container .encyclopedia-card .encyclopedia-info>a {
  color: var(--e-global-color-secondary);
  text-decoration: underline;
}

.ech-encyclopedia-container .encyclopedia-card .encyclopedia-title {
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.ech-encyclopedia-container .encyclopedia-card .encyclopedia-title h2{
  margin-bottom: 0;
  line-height: 1.3em;
  font-size: 22px;
}


.ech-encyclopedia-container .encyclopedia-card .encyclopedia-cat{
  margin-bottom: 5px !important;
  display: flex;
  flex-wrap: wrap;
  gap:0 10px;
  align-items: center;
  color: #3e3e3e !important;
}
.encyclopedia-cat .category-list{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap:0 5px;
}
.category-list i, .category-list a{
	font-size: 15px !important;
	color: var(--e-global-color-secondary) !important;
}
.encyclopedia-overview {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    word-break: break-word;
}
.encyclopedia-overview p:last-child {
    margin-bottom: 0;
}
.ech-encyclopedia-container .loading-div {
  display: none;
  margin: 20px auto;
  text-align: center;
}
.ech-encyclopedia-container .encyclopedia-btn{
  padding: 20px;
  text-align: center;
}
/******* PAGINATION ********/

.ech-encyclopedia-container .ech-encyclopedia-pagination {
  margin: 20px auto;
  flex-basis: 100%;
  text-align: center;
}


.ech-encyclopedia-pagination  ul {
  margin: 0;
  list-style: none;
}

.ech-encyclopedia-pagination  ul li {
  display: inline-block;
  padding: 0px 7px;
}

.ech-encyclopedia-pagination  ul li,
.ech-encyclopedia-pagination  ul li a {
  font-family: "FuturaPT-Book", Sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2em;
  color: #666;
  text-decoration: none;
}

.ech-encyclopedia-pagination  ul li a:hover,
.ech-encyclopedia-pagination  ul li.active {
  color: var(--e-global-color-primary);
  text-decoration: underline;
}

/******* (END) PAGINATION ********/
.ech-encyclopedia-container .encyclopedia-btn {
  padding: 20px;
  text-align: center;
}

@media(max-width:1024px) {
  .ech-encyclopedia-container .encyclopedia-card {
    flex-basis: calc((100% - 30px) / 2);
  }
}


@media(max-width:767px) {
  .ech-encyclopedia-container .encyclopedia-card {
    flex-basis: 100%;
  }
}

/* encyclopedia content */

.site-content>.ast-container {
  max-width: 100%;
  padding: 0;
}

.ast-plain-container.ast-no-sidebar #primary {
  margin-top: 0;
}
.entry-content{
  justify-items: center;
}
.ech-encyclopedia-single-post-container {
  max-width: 1280px;
  display: flex;
  flex-wrap: nowrap;
}

.post-content-container {
  flex-basis: 70%;
  padding: 4%;
  margin: 0 auto;
  background-color: #fff;
}
.related-encyclopedia-container{
  flex-basis: 30%;
  padding: 4%;
  background-color: #ECF5FA;
}

.encyclopedia-heading-title{
  font-size: 30px !important;
  color: var(--e-global-color-primary) !important;
}
.ech-encyclopedia-single-post-container .post-info-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
}
.ech-encyclopedia-single-post-container .post-info {
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 5px;
}

.ech-encyclopedia-single-post-container .post-info > div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 5px;
  font-size: 15px;
  color: var(--e-global-color-secondary);
}
.ech-encyclopedia-single-post-container a {
  font-size: 15px !important;
}

.back-to-encyclopedia-list>a {
  color: #868686;
  font-weight: 600;
  text-decoration: none !important;
}

.encyclopedia-content-container {
  padding-top: 4%;
}

.encyclopedia-content-container .post-content h1 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.3;
}

.encyclopedia-content-container .post-content h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.encyclopedia-content-container .post-content h3 {
  margin-bottom: 10px;
  font-size: 24px
}

.encyclopedia-content-container .post-content a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  word-break: break-all;
  color: #3671b2;
  text-decoration: underline;
}

.related-encyclopedia-title{
  font-size: 24px !important;
}
.related-encyclopedia-list{
  margin: 0;
  list-style: none;

}
.related-encyclopedia-list li{
  margin-bottom: 20px;
}
.related-encyclopedia-list li> h6{
  margin-bottom: 5px !important;
}

@media (min-width: 768px) {
    .related-encyclopedia-list{
        position: sticky;
        top: 120px;
        overflow-y: auto;
        -ms-overflow-style: none;
    }
}

@media(max-width:767px) {
  .ech-encyclopedia-single-post-container,.ech-encyclopedia-single-post-container .post-info-container{
    flex-wrap: wrap; 
  }
  .post-content-container, .related-encyclopedia{
    flex-basis: 100%;
  }
  .ech-encyclopedia-single-post-container .post-info {
    order: 2;
  }

  .encyclopedia-content-container .post-content h1 {
    font-size: 28px;
  }

  .encyclopedia-content-container .post-content h2 {
    font-size: 24px
  }

  .encyclopedia-content-container .post-content h3 {
    font-size: 20px
  }
}

/* END encyclopedia content */