/* Your custom css */

/*-------------------------------------------------
    [ ## Padding Element ]
*/

.ptb-80 {
  padding: 80px 0;
}

.ptb-120 {
  padding: 120px 0;
}

@media (max-width: 991px) {
  .ptb-120 {
    padding: 100px 0;
  }

  .ptb-80 {
    padding: 50px 0;
  }
}

@media (max-width: 575px) {
  .ptb-120 {
    padding: 80px 0;
  }
}


/*--------------------------------------------------------------
    [ ## Blog ]
--------------------------------------------------------------*/
.blog-content .title a {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  display: -webkit-box !important;
}

.blog-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box !important;
  margin-bottom: 6px;
}

.blog-item:hover .blog-content .title {
  color: hsl(var(--base));
}

.blog-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.blog-thumb .overlay-date {
  position: absolute;
  background-color: hsl(var(--base));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 70px;
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 991px) {
  .blog-thumb .overlay-date {
    font-size: 1rem;
    width: 90px;
    height: 65px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-thumb .overlay-date {
    width: 70px;
    height: 60px;
  }
}

.blog-thumb img {
  width: 100%;
  transition: all 0.7s;
}

.blog-content {
  margin-top: 1.5rem;
  transition: all 0.7s;
}

.blog-content .date {
  color: hsl(var(--base));
}

.blog-content .date i {
  margin-right: 6px;
}

.blog-content .title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

@media (max-width: 991px) {
  .blog-content .title {
    font-size: 1.2rem;
  }
}

.blog-content .blog-title {
  font-size: 1.8rem;
}

.blog-content .blog-post-meta {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.blog-content .blog-post-meta span i {
  color: #d41919;
  margin-right: 10px;
}

.blog-content .blog-post-meta .blog-date {
  position: relative;
  margin-right: 100px;
}

.blog-content .blog-post-meta .blog-date::after {
  position: absolute;
  content: '';
  top: 0;
  right: -40%;
  width: 1px;
  height: 30px;
  background-color: #e5e5e5;
}

.blog-content .blog-btn .trans-btn i {
  margin-left: 7px;
  transition: all 0.3s;
}

.blog-details-container {
  display: flex;
  gap: .8rem;
}

.blog-details {
  background-color: #fff;
  padding: 1.8rem;
  border-radius: 5px;
}

.blog-details__header {
  margin-bottom: 1.2rem;
}

.blog-details .blog-title {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.blog-details__sidebar {
  background-color: #fff;
  position: sticky;
  top: 100px;
  padding: 1.8rem;
  border-radius: 3px;
  flex-basis: 320px;
  flex-shrink: 0;
  height: max-content;
}


.blog-details__sidebar-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.latest-blog {
  display: flex;
  gap: 1rem;
}

.latest-blog__thumb {
  flex-shrink: 0;
  flex-basis: 100px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.latest-blog__thumb img {
  transition: all 0.3s;
}

.latest-blog__thumb:hover img {
  scale: 1.2;
}

.latest-blog__content .short_description {
  display: none;
}

.latest-blog__content .title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.latest-blog__content .title a {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box !important;
}

.latest-blog__content .title a:hover {
  color: hsl(var(--base));
}

.latest-blog__content .blog-date {
  font-size: 0.8125rem;
}

.latest-blog__content .blog-date,
.blog-details__header .blog-date {
  color: #a1a1a1;
}

.blog-details__header .blog-date {
  font-size: 1rem;
}

@media(max-width: 1399px) {
  .blog-details__header {
    margin-bottom: 1rem;
  }

  .blog-details .blog-title {
    font-size: 1.5rem;
  }

  .blog-details__header .blog-date {
    font-size: 0.875rem;
  }
}

@media(max-width: 991px) {
  .latest-blog__content .title {
    margin-bottom: 0;
  }

  .blog-details-container {
    flex-direction: column;
  }

  .blog-details__sidebar {
    flex-grow: 1;
  }

  .latest-blog__thumb {
    flex-basis: 215px;
  }

  .latest-blog__content .short_description {
    display: block;
  }

  .latest-blog__content .short_description p {
    margin-top: .5rem;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
    line-height: 1.5;
  }
}

@media(max-width: 767px) {
  .blog-details__header {
    margin-bottom: .5rem;
  }

  .blog-details .blog-title {
    font-size: 1.2rem;
    line-height: 1;
  }

  .latest-blog__thumb {
    flex-basis: 235px;
  }
}

@media(max-width: 575px) {
  .latest-blog__thumb {
    flex-basis: 160px;
  }

  .blog-details,
  .blog-details__sidebar {
    padding: 1.2rem;
  }

  .blog-content {
    margin-top: 1rem;
  }
}

@media(max-width: 480px) {
  .latest-blog {
    flex-direction: column;
  }

  .latest-blog__thumb {
    flex-basis: 100%;
  }
}



.social-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
}

.social-list__item {
  margin: 0 5px;
}

.social-list__link {
  width: 40px;
  height: 40px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
  color: #fff;
  background-color: hsl(var(--secondary));
}

@media (max-width: 575px) {
  .social-list__link {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
}

.social-list__link.active,
.social-list__link:hover {
  background-color: hsl(var(--base));
  ;
  color: #fff;
}

