h1 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 3rem);
  color: var(--gray800);
  line-height: 160%;
}

h2 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem);
  margin-bottom: unset;
  color: var(--gray800);
  line-height: 160%;
}
h3 {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.875rem);
  margin-bottom: unset;
  color: var(--gray800);
  line-height: 160%;
}

h4 {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
  color: var(--gray800);
}
h6 {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.125rem);
  color: var(--gray700);
}

p {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 20px;
}

.grid-item {
  display: grid;
  gap: 1rem;
  line-height: 160%;
  max-width: 460px;
}
.grid-item img {
  height: 320px;
  object-fit: cover;
  width: 100%;
}
.grid-item .snippet__body {
  display: grid;
  gap: 1rem;
}

.snippet__category {
  display: inline;
  padding: 4px 0px;
  border-bottom: 1px solid var(--colors-success-500);
  font-weight: 600;
}
.snippet__body h4 {
  line-height: 160%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gray800, #1f2937);
  font-weight: 600;
  height: 74px;
  margin-bottom: 10px !important;
}
.snippet__body h4:hover {
  text-decoration: underline;
}

.snippet__description {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Number of lines to display in the card */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gray700, #374151);
  min-height: 78px;
}

.snippet__meta {
  display: flex;
  gap: 1.5rem;
  color: var(--gray-700, #374151);
}

.blog__wrapper {
  margin-top: 80px;
  margin-bottom: 160px;
  line-height: 160%;
  color: var(--gray700);
}
.blog__header {
  display: grid;
  gap: 48px;
  padding: 0 24px;
}
.blog__header h1 {
  margin-bottom: 20px;
  font-weight: 600;
}

.blog__coverImg {
  display: flex;
  justify-content: center;
  max-height: 800px;
}
.blog__coverImg img {
  width: 100%;
  object-fit: cover;
}
.blog__body {
  padding: 0 24px;
}
.dot {
  height: 5px;
  width: 5px;
  background-color: var(--gray700);
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}
.markdown__content {
  margin-bottom: 10rem;
}

.markdown__content blockquote > p {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1.875rem);
  font-style: italic;
  font-weight: 400;
  color: var(--gray500, #6b7280);
  line-height: 160%;
}

.markdown__content img {
  width: 100%;
}
.markdown__content a {
  word-wrap: break-word;
}
.markdown__content p {
  margin-top: 16px !important;
}

.blog__meta {
  margin-top: 32px;
  margin-bottom: 80px;
}
.blog__meta_author,
.blog__meta_published_date {
  /* font-size: 18px; */
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.blog__meta_socials > a,
.blog__meta_socials > button {
  position: relative;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background-color: var(--gray-100, #f3f4f6);
  transition: background-color 0.1s ease;
}
.copyLink::after {
  content: "Copied!";
  position: absolute;
  top: 175%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 10px;
  background-color: var(--gray100, #f3f4f6);
  border-radius: 10px;
  font-size: 14px;
  color: var(--gray700);
  display: none;
  font-weight: 500;
}

.copyLink::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 34%;
  width: 10px;
  height: 10px;
  background-color: var(--gray100, #f3f4f6);
  transform: rotate(45deg);
  display: none;
}

.copyLink.active::before,
.copyLink.active::after {
  display: block;
}
.blog__meta_socials > button:active {
  background-color: #ced2da;
}
/* Community styles starts here */
.community__header {
  text-align: center;
  background-color: var(--primaryternary);
  padding: 170px 0 121px 0;
  color: var(--gray500);
  font-weight: 500;
  margin-top: -80px;
}
.community__header h1 {
  color: var(--gray800);
  line-height: 160%;
}

.community__body {
  margin: 160px 0;
}

.explore_list {
  display: grid;
  gap: 2.5rem;
}
.explore_list__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.explore_list__item img {
  height: 340px;
  width: 340px;
  min-width: 340px;
  object-fit: cover;
}
.explore_list__item .snippet__body {
  display: grid;
  gap: 10px;
}
.explore_list__item .snippet__body h3 {
  height: unset;
}
.explore_list__item .snippet__meta {
  margin-top: 15px !important;
}
.explore_list__item .snippet__description {
  min-height: unset;
}

.featured_list {
  margin-bottom: 40px;
}
.featured_list .snippet__description {
  -webkit-line-clamp: 4; /* Number of lines to display in the card */
}
.featured_list .owl-carousel .owl-item img {
  min-width: 50%;

  height: 420px;
}

.view_more_btn__mobile {
  display: none;
}

.community__recent-blogs {
  margin-top: 80px;
}

/* Community styles ends here */

@media screen and (max-width: 568px) {
  .explore_list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .explore_list__item img {
    width: 100%;
    min-width: unset;
  }

  .snippet__body h4,
  .snippet__description {
    height: unset;
    min-height: unset;
  }

  .community__body {
    margin: 80px 0;
  }
  .community__recent-blogs {
    margin-top: 40px;
  }
  .view_more_btn {
    display: none;
  }
  .view_more_btn__mobile {
    display: flex;
    justify-content: center;
    color: var(--primaryOrange);
    margin-bottom: 80px;
  }
  .view_more_btn__mobile:active,
  .view_more_btn__mobile:hover {
    color: var(--primaryOrange);
  }
  .featured_list .owl-carousel .owl-item img {
    width: 100% !important;
    min-width: unset;
    height: 200px;
  }

  .blog__coverImg img {
    object-fit: contain;
  }
  .markdown__content p > img {
    width: 100% !important;
    object-fit: contain;
    margin-top: 16px !important;
  }
  .blog__wrapper {
    margin-top: 40px;
    margin-bottom: 80px;
  }
  .blog__header {
    gap: 24px;
  }
  .blog__meta {
    margin-bottom: 40px;
  }
  .markdown__content p {
    margin-top: 8px !important;
  }
  .markdown__content {
    margin-bottom: 5rem;
  }
}

@media screen and (max-width: 768px) {
  .featured_list .explore_list__item {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media screen and (min-width: 768px) {
  .blog__header,
  .blog__body {
    padding: 0 calc(8px + 24vw);
  }

  .blog__header h1 {
    margin-bottom: 40px;
  }
}
