.blogs-page {
  padding-top: 92px;
}

/* BANNER SECTION */
/* ============================================= */

.blogs-page .banner-section {
  position: relative;
}

.blogs-page .banner-section img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  filter: brightness(0.7);
  display: block;
}

.blogs-page .banner-section .heading-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

/* ============================================= */

/* SOCIAL BAR SECTION */
/* ============================================= */
.blogs-page .social-bar {
  display: flex;
  width: 100%;
}

.blogs-page .social-bar .social-item {
  width: calc(100% / 3);
  text-decoration: underline;
  display: block;
  padding: 1.5rem;
  text-align: center;
  line-height: 150%;
}

@media (max-width: 768px) {
  .blogs-page .social-bar {
    flex-direction: column;
  }

  .blogs-page .social-bar .social-item {
    width: 100%;
    padding: 1.5rem 0;
  }
}
/* ============================================= */

/* NEWS SECTION */
/* ========================== */
.blogs-page .news-section {
  display: flex;
  margin: 8rem 0;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 0.75rem;
}

.blogs-page .news-section .list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.blogs-page .news-section .card {
  display: flex;
  flex-direction: column;
  width: calc(100% / 3 - (1rem + (1rem / 3)));
  background-color: var(--primary-cream);
}

.blogs-page .news-section .card.alt {
  background-color: var(--grey-white);
}

.blogs-page .news-section .thumbnail {
  width: 100%;
  aspect-ratio: 1.45;
  height: auto;
  object-fit: cover;
}

.blogs-page .news-section .info {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  padding: 1.5rem;
}

.blogs-page .news-section .text-paragraph {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blogs-page .news-section .text-title-2 {
  min-height: 4.125rem;
  line-height: 125%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blogs-page .news-section a {
  margin-left: auto;
  width: fit-content;
  text-decoration: underline;
  margin-top: 0.5rem;
}

.blogs-page .see-more {
  margin-left: auto;
  display: block;
  margin-top: 2rem;
}

.blogs-page .knowledge-section {
  background-color: var(--primary-cream);
  padding: 4rem 0;
  margin: 8rem 0;
}

.blogs-page .knowledge-section .news-section {
  margin: 0;
}

@media (max-width: 992px) {
  .blogs-page .news-section .list {
    gap: 0.5rem;
  }

  .blogs-page .news-section .text-title-2 {
    min-height: 3.125rem;
  }
}

@media (max-width: 768px) {
  .blogs-page .news-section .list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
  }

  .blogs-page .news-section .card {
    width: calc(50% - 0.25rem);
  }

  .blogs-page .knowledge-section,
  .blogs-page .news-section {
    margin: 3rem 0;
  }

  .blogs-page .knowledge-section {
    padding: 2rem 0;
  }
}

@media (max-width: 572px) {
  .blogs-page .news-section .card {
    width: 100%;
    max-width: 400px;
  }
}

/* ============================================= */

/* FAQ SECTION */
/* ========================== */

.blogs-page .qa-section {
  display: flex;
  margin: 8rem 0;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 0.75rem;
}

.blogs-page .qa-section .heading-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
  width: calc(100% - 1.5rem);
  max-width: 800px;
  margin: auto;
}

.blogs-page .qa-section .form-wrapper {
  display: flex;
  width: 100%;
}

.blogs-page .qa-section .title-wrapper {
  background-color: var(--primary-red);
  width: calc(100% / 3);
  padding: 2rem;
  text-align: right;
}

.blogs-page .qa-section .textarea-wrapper {
  width: calc(100% / 3 * 2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  padding: 2rem;
  background-color: var(--primary-cream);
}

.blogs-page .qa-section textarea#client-question {
  width: 100%;
  resize: none;
  min-height: 120px;
  border: none;
  outline: none;
  background-color: transparent;
}

.blogs-page .qa-section .qa-list {
  max-height: 768px;
  padding: 1rem 2rem;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  background-color: var(--primary-cream);
  border-left: 4rem solid var(--primary-red);
  overflow: auto;
  margin-top: 2rem;
  min-width: calc(100% - 8rem);
}

.blogs-page .qa-section .qa-list .question {
  display: flex;
  gap: 2rem;
}

.blogs-page .qa-section .qa-list .avatar {
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  aspect-ratio: 1;
  object-fit: cover;
}

.blogs-page .qa-section .qa-list .content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blogs-page .qa-section .qa-list .question-wrapper {
  display: flex;
  flex-direction: column;
}

.blogs-page .qa-section .qa-list .action-wrapper {
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
}

.blogs-page .qa-section .qa-list .answer-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 4.5rem;
}

.blogs-page .qa-section .reply-input-wrapper {
  padding-left: 4.5rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.blogs-page .qa-section .reply-input-wrapper textarea {
  width: 100%;
  resize: none;
  border: none;
  border-bottom: 1px solid var(--grey-black);
  outline: none;
  background-color: transparent;
  min-height: 2.75rem;
}

.blogs-page .qa-section .reply-input-wrapper .send-btn {
  align-self: flex-end;
  cursor: pointer;
}

.blogs-page .qa-section .qa-list .answer {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .blogs-page .qa-section .qa-list .avatar {
    width: 3rem;
    height: 3rem;
  }
  .blogs-page .qa-section .qa-list .question {
    gap: 1.5rem;
  }
  .blogs-page .qa-section .qa-list .answer-list {
    padding-left: 3rem;
  }
}

@media (max-width: 768px) {
  .blogs-page .qa-section .qa-list {
    padding: 0.5rem 1rem;
    border-left: 3rem solid var(--primary-red);
    margin-top: 1rem;
  }

  .blogs-page .qa-section .qa-list .avatar {
    width: 2rem;
    height: 2rem;
  }

  .blogs-page .qa-section .qa-list .question {
    gap: 1rem;
  }

  .blogs-page .qa-section .qa-list .answer-list {
    padding-left: 2rem;
  }

  .blogs-page .qa-section {
    margin: 2rem 0;
  }
}

@media (max-width: 576px) {
  .blogs-page .qa-section .qa-list {
    margin-top: 0;
  }

  .blogs-page .qa-section .form-wrapper {
    flex-direction: column;
  }

  .blogs-page .qa-section .title-wrapper,
  .blogs-page .qa-section .textarea-wrapper {
    width: calc(100% - 4rem);
  }

  .blogs-page .qa-section .qa-list .question {
    flex-direction: column;
  }

  .blogs-page .qa-section .qa-list .answer-list {
    padding-left: 1rem;
  }
}

/* FAQ SECTION */
/* ============================================= */

.blogs-page .faq {
  margin: 8rem 0;
}

.blogs-page .faq .faq-heading {
  text-align: center;
}

.blogs-page .faq .faq-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  padding: 0 0.75rem;
}

.blogs-page .faq-list .faq-item .faq-question:hover {
  cursor: pointer;
}

.blogs-page .faq-active {
  color: var(--primary-red);
}

.blogs-page .divider {
  border-top: 1px solid #000;
  margin: 0.5rem 0;
}

.blogs-page .faq-answer {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.blogs-page .faq-answer .faq-answer-label {
  text-align: end;
}

.blogs-page .faq-answer .faq-answer-label p {
  margin-right: 2rem;
  padding: 27px 0;
}

.blogs-page .faq-answer .faq-answer-box {
  grid-column: span 2;
}

.blogs-page .faq-answer .faq-answer-box p {
  margin: 0 3rem;
  padding: 27px 0;
}

.blogs-page .faq .is-mobile {
  display: none;
}

@media (max-width: 768px) {
  .blogs-page .faq .faq-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blogs-page .faq {
    margin: 3rem 0;
  }

  .blogs-page .faq-answer {
    grid-template-columns: 1fr;
  }

  .blogs-page .faq-answer .faq-answer-label {
    text-align: start;
    padding-left: 0.75rem;
  }

  .blogs-page .faq-answer .faq-answer-label p {
    margin-right: 0;
  }

  .blogs-page .faq-answer .faq-answer-box {
    grid-column: span 1;
  }

.blogs-page .faq-answer .faq-answer-box p {
    margin: 0 1rem;
  }

  .blogs-page .faq .is-mobile {
    display: block;
  }
}

/* ============================================= */
