.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 1) 100%
  );
}

.project-contact-section {
  position: relative;
  z-index: 1;
  color: var(--text-color);
  padding-block: 56px 120px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 72px;
}

.contact-info {
  width: 45%;
}


.sub-text {
  font-weight: 500;
  font-size: 24px;
  text-transform: uppercase;
  padding-block: 16px 24px;
}

.contact-form-wrapper {
  flex: 1;
}

/* Blog */

.blog .hero-title{
  text-align: center;
}
.blog-hero-subtitle{
  text-align: center;
  margin-inline: auto;
}
.blog .hero-title::after{
  margin-inline: auto;
}
 
.blog-hero-subtitle {
  font-weight: 500;
  font-size: 24px;
  padding-top: 32px;
  max-width: 792px;
}

.blog-latest .after::after {
  margin-left: auto;
}

.blog-latest .section-title {
  margin-left: auto;
  text-align: right;
}

.section-title {
  font-weight: 500;
  font-size: 32px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 24px;
}

.blog-grid {
  padding-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  row-gap: 56px;
}

.blog-grid--latest {
  grid-template-columns: repeat(2, 1fr);
  min-height: 446px;
}

.blog-latest .post-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.post-card__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-latest .post-card__image img {
  position: absolute;
  top: 0;
  left: 0;
}

.blog-latest .post-card__content {
  padding: 24px;
  z-index: 4;
  position: relative;
  display: flex;
  flex-direction: column;
  align-content: baseline;
  justify-content: flex-end;
  height: 100%;
}

.blog-latest .post-card__title {
  font-weight: 600;
  font-size: 32px;
}

.post-card__title {
  transition: var(--transition);
  cursor: pointer;
}

.post-card__title:hover {
  color: var(--primary-color);
}

.blog-latest .post-card time {
  font-weight: 500;
  font-size: 24px;
  padding-bottom: 8px;
}

.blog-all .post-card__image::before,
.blog-latest .post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.68) 100%
  );
}

.blog-all .post-card__image {
  position: relative;
  max-height: 294px;
}

.blog-all .post-card__image img {
  object-fit: cover;
  max-height: 294px;
  object-position: center;
  border-radius: 24px;
}

.blog-all .post-card__title {
  font-weight: 600;
  font-size: 24px;
  padding-top: 8px;
}

.blog-all .post-card time {
  font-weight: 500;
  font-size: 20px;
}

.blog-all .post-card__content {
  padding-top: 16px;
}

.pagination {
  margin-block: 56px 120px;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.page-numbers {
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-numbers:hover {
  border-radius: 100px;
  color: var(--primary-dark-color);
  background-color: var(--primary-color);
}

.page-numbers svg {
  color: var(--primary-light-color);
}

.page-numbers:hover svg {
  color: var(--primary-dark-color);
}

.page-numbers.current {
  border-radius: 100px;
  color: var(--primary-dark-color);
  background-color: var(--primary-color);
}

.prev.page-numbers {
  margin-right: 20px;
}

.next.page-numbers {
  margin-left: 20px;
}

@media (max-width: 998px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-info {
  width: 100%;
  }
  .blog-hero-subtitle {
    font-size: 16px;
    padding-top: 24px;
  }

  .section-title {
    font-size: 20px;
    padding-bottom: 16px;
  }

  .blog-grid {
    padding-top: 24px;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 24px;
  }

  .blog-grid--latest {
    grid-template-columns: repeat(1, 1fr);
    min-height: inherit;
  }

  .blog-latest .post-card__content {
    padding: 12px;
  }

  .blog-latest .post-card__title {
    font-weight: 700;
    font-size: 20px;
  }

  .blog-latest .post-card time {
    font-size: 16px;
  }

  .blog-all .post-card__image,
  .blog-all .post-card__image img {
    max-height: 200px;
  }

  .blog-latest .post-card {
    min-height: 200px;
  }

  .blog-all .post-card__title {
    font-weight: 700;
    font-size: 20px;
  }

  .blog-all .post-card time {
    font-weight: 500;
    font-size: 16px;
  }

  .pagination {
    margin-block: 32px 56px;
    font-size: 16px;
    gap: 0px;
  }

  .page-numbers {
    height: 40px;
    width: 40px;
  }

  .page-numbers svg {
    height: 24px;
    width: 24px;
  }

  .prev.page-numbers {
    margin-right: 12px;
  }

  .next.page-numbers {
    margin-left: 12px;
  }
}

/* Article */

.article-section {
  background-color: var(--primary-light-color);
  color: var(--text-dark-color);
}

.post-hero__meta {
  padding-block: 80px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 24px;
}

.article-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.article-socials {
  position: sticky;
  top: 120px;
  min-width: 78px;
  height: fit-content;
}
.article-author {
  position: sticky;
  top: 120px;
  min-width: 285px;
  height: fit-content;
}

.author-box {
  padding: 24px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  font-size: 16px;
}

.author-box .author-info span {
  font-size: 13px;
  opacity: 0.7;
}

.author-socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.author-socials li {
  background: var(--primary-dark-color);
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link {
  color: #aaa;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-dark-color);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.post-page-subtitle {
  display: flex;
  font-weight: 500;
  gap: 8px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-size: 32px;
}
.post-page-subtitle span {
  margin-left: 8px;
}
.post-img-content {
  border-radius: 24px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  min-height: 100%;
}
.post-img-content-container {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}
.article-grid .post-page-subtitle:not(:first-child) {
  margin-top: 40px;
}
.post-page-list-content {
  list-style: disc;
  padding-left: 25px;
  margin: 20px 0;
}
.article-grid p {
  font-size: 24px;
}
p.author-text {
  font-size: 20px;
}
.author-info {
  font-size: 24px;
}
.author-box .author-info span {
  font-size: 20px;
}
.author-box .author-info {
  flex-direction: column;
  align-items: start;
}
.author-text {
  display: inline-block;
  margin-top: 16px;
}
.container-author {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .post-hero__meta {
    padding-block: 32px 56px;
    font-size: 16px;
  }
  .article-grid {
    flex-direction: column;
    gap: 0;
  }
  .article-socials {
    position: static;
    order: 3;
  }
  .author-box {
    padding-left: 0;
    padding-top: 32px;
  }
  .author-socials {
    flex-direction: row;
    justify-content: start;
  }
  .post-page-subtitle {
    gap: 4px;
    font-size: 20px;
    margin-bottom: 8px;
  }
  .post-page-subtitle span {
    margin-left: 4px;
  }
  .post-img-content {
    min-height: 200px;
    max-height: 200px;
  }
  .post-img-content-container {
    gap: 16px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-top: 16px;
  }
  .post-page-list-content {
    padding-left: 20px;
  }
  .article-grid .post-page-subtitle:not(:first-child) {
    margin-top: 24px;
  }
  .article-grid p {
    font-size: 16px;
  }
  p.author-text {
    font-size: 16px;
  }
  .author-info {
    font-size: 16px;
  }
  .author-box .author-info span {
    font-size: 14px;
  }
}

/*--------------form comments-----------------*/
.single-post{
    background-color: #fff;
}
.post-hero{
    background-color: #000;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  position: relative;
  align-items: center;
  margin-bottom: 24px;
  margin-top: 56px;
  padding-top: 56px;
}
.comment-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 4px;        
    background-color: #000; 
    border-radius: 24px;   
}

.comment-title {
font-family: 'Poppins', sans-serif;
  font-size:24px;
  line-height: 32px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  color: #000;
}

/* --- КНОПКИ --- */
.btn-add {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 20px 40px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-add:hover {
  background-color: var(--primary-color);
  color: #000;
}

/* --- ФОРМА --- */
.comment-form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}


.comment-form.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none; 
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  color: #000;
}


.input-group input,
.input-group textarea {
font-family: 'Poppins', sans-serif;
  border: none;
  border-bottom: 4px solid #BEBEBE;
  padding: 24px 0;
  font-size: 20px;
  font-weight: 500;
  outline: none;
  background: transparent;
  transition: border-color 0.3s;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:focus,
.input-group textarea:not(:placeholder-shown) {
    font-weight: 600; 
    border-bottom-color: #000;
}

.input-group textarea {
  resize: none;
  min-height: 143px;
}

.form-footer {
  margin-top: 24px;
  margin-bottom: 40px;
}

.comment{
  color: var(--text-dark-color);
}

@media (max-width: 768px) {
  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .input-group input,
.input-group textarea {
    font-size: 14px;
}
.btn-add {
    font-size: 16px;
    padding: 16px 20px;
}
}
/*---NAVIGATION---*/
.post-nav{
    padding-bottom: 56px;
    margin-top: 56px;    
}
.post-nav .container--content{
display: flex;
justify-content: space-between;

}
.post-nav .prev,
.post-nav .next{
    color: #000;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}
.post-nav .prev a,
.post-nav .next a{
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.post-nav .next a::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.00024 11.0004H20.5002C21.0525 11.0004 21.5002 11.4481 21.5002 12.0004C21.5002 12.5527 21.0525 13.0004 20.5002 13.0004L3.00024 13.0004C2.44795 13.0004 2.00024 12.5527 2.00024 12.0004C2.00024 11.4481 2.44795 11.0004 3.00024 11.0004Z" fill="black"/><path d="M21.7756 11.3696C22.096 11.7623 22.0734 12.3413 21.7073 12.7074L14.7073 19.7074C14.3167 20.098 13.6837 20.098 13.2932 19.7074C12.9027 19.3169 12.9027 18.6839 13.2932 18.2934L19.5862 12.0004L13.2932 5.70744C12.9027 5.31692 12.9027 4.68391 13.2932 4.29338C13.6837 3.90286 14.3167 3.90286 14.7073 4.29338L21.7073 11.2934L21.7756 11.3696Z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}
.post-nav .prev a::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.9998 11.0004H3.49977C2.94748 11.0004 2.49977 11.4481 2.49977 12.0004C2.49977 12.5527 2.94748 13.0004 3.49977 13.0004L20.9998 13.0004C21.552 13.0004 21.9998 12.5527 21.9998 12.0004C21.9998 11.4481 21.552 11.0004 20.9998 11.0004Z" fill="black"/><path d="M2.22437 11.3696C1.90402 11.7623 1.92662 12.3413 2.29273 12.7074L9.29273 19.7074C9.68326 20.098 10.3163 20.098 10.7068 19.7074C11.0973 19.3169 11.0973 18.6839 10.7068 18.2934L4.41383 12.0004L10.7068 5.70744C11.0973 5.31692 11.0973 4.68391 10.7068 4.29338C10.3163 3.90286 9.68326 3.90286 9.29273 4.29338L2.29273 11.2934L2.22437 11.3696Z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}
@media (min-width: 767px) {
.post-nav .prev,
.post-nav .next{
    font-size: 24px;
    font-weight: 600;
}
.post-nav .prev a,
.post-nav .next a{
    gap: 16px;
}
.post-nav .prev a::before {
  width: 40px;
  height: 40px;
}
.post-nav .next a::after {
  width: 40px;
  height: 40px;
}
.post-nav{
    padding-bottom: 100px;
}
}


/* comment */ 


.comment-author {
    font-weight: 600;
    font-size: 24px;
}

.comment-actions{
font-weight: 500;
font-size: 20px;
}

.comment-middle {
    margin-bottom: 16px;
}

.comment-reply-link {
  font-weight: 500;
font-size: 20px;
}
.comment-date{
font-family: "Poppins", sans-serif;
font-weight: 500;
font-size: 20px;
color: var(--text-dark-color);
}
.comment-content {
  position: relative;
      padding-left: 72px;
}

.comment-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 56px;
  height: 56px;

  background-image: url("/wp-content/themes/backmut/assets/img/all/icon-comment.svg");
  background-repeat: no-repeat;
  background-size: contain;
}
.comment-content .comment-header::after{
  display: none;
}
.comment-content .comment-header{
  margin-top: 24px;
  padding-top: 0;
}
.cld-like-dislike-wrap {
    display: flex !important;
    margin-bottom: 20px;
    width: 100%;
    justify-content: end !important;
    margin-top: 16px !important;
}
.cld-like-dislike-wrap .cld-common-wrap {
    margin-right: 16px !important;
}
.comment-middle .fas {
    font-weight: 900;
    font-size: 24px;
}
span.cld-count-wrap{
  font-family: 'Poppins', sans-serif;
font-weight: 600;
font-size: 20px;
}
@media (max-width: 767px) {
  .comment-author {
    font-size: 20px;
  }
  .comment-actions{
    font-size: 16px;
  }
}