/* blog listing style */
.emts-post-listing.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.emts-post-listing .emts-posts .entry-title { font-size: 24px; /* 36px to 18px */ font-weight: 300; padding: 50px 50px 10px; }
.emts-post-listing .emts-posts .entry-title a { color: var(--accenttxtcolor); font-weight: 300; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; }
.emts-post-listing .emts-posts .entry-title a:hover { color: var(--linkhovercolor); }
/* .emts-post-listing .emts-posts:hover .entry-title a { color: var(--primarycolor); } */
.emts-posts>.post-image,
.emts-posts-single>.post-image { margin-bottom: 0; }
.emts-posts>.post-image>a>img,
.emts-posts-single>.post-image>img { width: 100%; height: auto; }
.emts-posts>.post-meta { margin-top: 0;  margin-bottom: 25px; }
.emts-posts-single>.post-meta { margin-bottom: 10px; }
.emts-post-listing .post-category { display: flex; }
.emts-post-listing .post-category a { border: 1px solid var(--bordercolor); border-radius: 50px; padding: 10px 44px; color: var(--secondarycolor); }
.emts-post-listing .post-meta:has(.post-category) { margin-bottom: 18px; }
.emts-post-listing p { margin: 3px 0 10px; color: var(--e-global-color-text); padding: 0px 50px 50px; -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; }
.emts-post-listing span.post-date { font-weight: var(--fontweight-base); }
.emts-posts>.post-image:has(a:empty) { display: none; }

/* .emts-post-listing .emts-posts:hover p { color: var(--primarycolor); } */

/* previous and next blog style */
.post-navigation { display: flex; justify-content: space-between; margin-top: 20px; padding: 10px 0; border-top: 1px solid #ddd; }
.post-navigation div { font-size: 16px; font-weight: bold; }
.post-navigation a { text-decoration: none; color: #0073aa; }
.post-navigation a:hover { color: #005177; }

/* comments style */
.comments-area > ol { padding: 0; display: flex; flex-wrap: wrap; width: 100%; gap: 20px;  border-radius: 10px; overflow: hidden; }
.comments-area ol.children { display: inline-flex; width: calc(100% - clamp(1.25rem, 0.9615rem + 1.2821vw, 2.5rem)); padding: 0; margin-left: auto; }
.comments-area ol li { list-style: none; width: 100%; border: 1px solid var(--bordercolor); padding: clamp(0.9375rem, 0.8654rem + 0.3205vw, 1.25rem); /* 20px */ border-radius: 10px; }
.comments-area ol li .comment-body { display: flex; align-items: flex-start; gap: 20px; position: relative; overflow: hidden; }
.comments-area ol li .comment-body .comment-content-wrap { width: 100%; }
.comments-area ol li .comment-body .comment-meta { display: inline-flex; flex-direction: column; width: 100%; text-align: end; position: relative; top: -25px; justify-content: end; }
.comments-area .comment-avatar { line-height: 0; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.comments-area .comment-avatar>img { border: 1px solid var(--bordercolor); border-radius: 50%; width: 30px; /* 40px to 60px */ height: 30px; /* 40px to 60px */ line-height: 0; margin: auto; }
.comments-area ol li .comment-body .comment-reply { position: absolute; bottom: 0; right: 0; }
.comments-area .comment-author a { pointer-events: none; font-size: 16px; }
.comments-area a { color: var(--headaltcolor); transition: all 0.3s ease-out; }
.comments-area a:hover { text-decoration: underline; }
.comments-area .comment-author { margin-bottom: 10px; }
.comments-area .comment-text > p { margin-top: 0; font-size: 16px; }
.comments-area .comment-text { margin-top: -20px; }
.comment-content { width: 100%; }
.comments-area ol li + ol { margin-top: 20px; }

@media screen and (max-width:767px) {
  .comments-area ol li .comment-body .comment-meta { text-align: start; top: 0; }
  .comments-area .comment-text { margin-top: 0; }
}

.comment-form .comment-form-rating { margin: 0 0 5px; }
.comment-form .comment-form-rating .stars { margin: 8px 0 0; }
.comment-form .comment-form-rating .stars a { color: goldenrod; }
.comments-area .comment-respond .comment-form-comment,
.comments-area .comment-respond .comment-form-author,
.comments-area .comment-respond .comment-form-email,
.comments-area .comment-respond .comment-form-url { display: inline-flex; flex-direction: column; width: 100%; margin: 0; }

.comments-area .comment-respond .comment-form-author,
.comments-area .comment-respond .comment-form-email,
.comments-area .comment-respond .comment-form-url { margin-top: 12px; }

.comments-area .comment-respond textarea,
.comments-area .comment-respond input:not(input[type="checkbox"]):not(input[type="submit"]) { margin-top: 10px; padding: 10px 16px; border-radius: 15px; background-color: transparent; border: 1px solid var(--bordercolor); outline: 0; }
/* .comment-reply-link { color: var(--secondarycolor); border: 1px solid var(--secondarycolor); display: inline-block; font-size: 0.8rem; font-weight: 400; line-height: normal; margin-top: 0; padding: 6px 15px 7px; position: relative; text-transform: capitalize; -webkit-border-radius: 4px; border-radius: 4px; transition: all 0.3s ease-out;}
.comment-reply-link:hover { border-color: var(--linkhovercolor); background-color: var(--linkhovercolor); color: var(--accenttxtcolor); } */
.comment-reply-title > a { color: red; }
#cancel-comment-reply-link { color: var(--secondarycolor); border: 1px solid var(--secondarycolor); display: inline-block; font-size: 0.8rem; font-weight: 400; line-height: normal; margin-top: 0; padding: 6px 15px 7px; position: relative; text-transform: capitalize; -webkit-border-radius: 4px; border-radius: 4px; transition: all 0.3s ease-out; }
#comments h3.comment-reply-title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media screen and (max-width:479px) { #comments ol .comment .comment-body { flex-direction: column; } }

/* blog sidebar style */
.ajax-post-filter-form,
.ajax-post-tag-filter-form,
.ajax-post-search-form { margin-bottom: 24px; }

.ajax-post-filter-form h4,
.ajax-post-tag-filter-form h4,
.ajax-post-search-form h4 { color: var(--accenttxtcolor); background: transparent; border: none; width: 100%; text-align: left; margin: 0 0 20px 0; font-size: clamp(1.125rem, 0.9783rem + 0.6522vw, 1.5rem); font-weight: var(--fontweight-ext); outline: none; line-height: 1; }
.ajax-post-search-form .ajax-post-search { position: relative; }
.ajax-post-search-form .ajax-post-search input { color: var(--accenttxtcolor); width: 100%; padding: 8px 10px; background-color: transparent; border-radius: 10px; border: 2px solid rgba(var(--accenttxtcolorRgba), 0.6); box-shadow: none; outline: 0; transition: all 0.3s ease-out; }
.ajax-post-search-form .ajax-post-search input:focus { border-color: rgba(var(--secondarycolorRgba), 1); }
.ajax-post-search-form .ajax-post-search button { cursor: pointer; position: absolute; top: 0; right: 0; bottom: 0; background-color: transparent; border: 0; box-shadow: none; font-size: 20px; padding: 9px; z-index: 1; line-height: 0; color: var(--accenttxtcolor); }
.ajax-post-search-form .ajax-post-search button svg path { stroke-width: 4px; stroke: var(--secondarycolor); }

.emts-secondary { background-color: var(--primarycolor); padding: 30px; border-radius: 20px; }
.emts-secondary .widget:has(img) .wp-block-image { margin: 0px; }
.emts-secondary .widget img { width: 100%; height: 100%; border-radius: 20px; }


/* List and Grid Style */

.emts-post-listing .emts-posts .post-meta,
.emts-post-listing .emts-posts .post-meta { display: none; }

.emts-post-listing .emts-posts {
  position: relative;
  padding: 0;
  border-radius: 0;
  border: 1px solid var(--primarycolor);
  background-color: transparent;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  border-radius: 20px;
  overflow: hidden;
}

.emts-post-listing .emts-posts:hover {
  background-color: transparent
}

.emts-post-listing .emts-posts img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.emts-post-listing .emts-posts .post-meta > a {
  display: inline-block;
  font-size: 14px;
  border: 1px solid var(--accenttxtcolor);
  padding: 10px 30px;
  border-radius: 10px;
  color: var(--accenttxtcolor);
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.emts-post-listing .emts-posts:hover .post-meta > a {
  color: var(--primarycolor);
  border-color: var(--primarycolor);
}

.emts-post-listing .post-button .read-more-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 15px;
  background-color: var(--accenttxtcolor);
  color: var(--primarycolor);
  position: relative;
  /* position: absolute;
  width: clamp(2.5rem, 1.9952rem + 2.2436vw, 4.6875rem);
  height: clamp(2.5rem, 1.9952rem + 2.2436vw, 4.6875rem);
  border-radius: clamp(0.625rem, 0.4808rem + 0.641vw, 1.25rem);
  font-size: 0;
  right: 60px;
  top: auto;
  bottom: 16%;
  left: auto; */
  margin: auto;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* .emts-post-listing .post-button .read-more-btn:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: calc(100% - clamp(1.5625rem, 1.4183rem + 0.641vw, 2.1875rem));
  height: calc(100% - clamp(1.5625rem, 1.4183rem + 0.641vw, 2.1875rem));
  background-color: currentColor;
  -webkit-mask-image: url("../Images/in-right-arrow.webp");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  -webkit-mask-size: cover;
  mask-image: url("../Images/in-right-arrow.webp");
  mask-repeat: no-repeat;
  mask-position: center center;
  mask-size: cover;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
} */

.emts-post-listing .emts-posts .post-button { display: none; padding-top: 20px; }
.emts-post-listing .emts-posts:hover .post-button .read-more-btn {
  background-color: var(--primarycolor);
  color: var(--accenttxtcolor);
}

@media screen and (min-width:480px) {
    .emts-post-listing .post-meta,
    .emts-post-listing .entry-title {
        padding-right: 8rem;
    }
}


.emts-post-listing.list.column-one { display: grid; grid-template-columns: repeat(1, 1fr); gap: 30px; }
.emts-post-listing.list.column-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.emts-post-listing.list.column-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.emts-post-listing.list.column-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.emts-post-listing.list .emts-posts { display: -ms-inline-grid; display: inline-grid; grid-template-columns: 300px 1fr; align-items: center; gap: 40px; }
.emts-post-listing.list .emts-posts:not(:has(.post-image)) { grid-template-columns: 1fr; }

@media screen and (max-width:1280px) {
  .emts-post-listing.list .emts-posts { grid-template-columns: 200px 1fr; }
}

@media screen and (max-width:767px) {
  .emts-post-listing.list .emts-posts { grid-template-columns: 1fr; gap: 20px; }
  .emts-post-listing.list .emts-posts .post-content { padding-right: 50px; }
}

.emts-post-listing.list .emts-posts .post-image { margin-bottom: 0; }
.emts-post-listing.list .emts-posts .post-content { position: relative; }
.emts-post-listing.list .post-button .read-more-btn { right: 0px; }
.emts-post-listing.list .post-meta { margin-bottom: 20px; }
.emts-post-listing.list .emts-posts { padding: clamp(1.25rem, 1.1058rem + 0.641vw, 1.875rem); }

.ajax-post-filter-form .ajax-post-filter-categories,
.ajax-post-tag-filter-form .ajax-post-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ajax-post-filter-form .ajax-post-filter-categories > h4,
.ajax-post-tag-filter-form .ajax-post-filter-tags > h4 { width: 100%; }

.ajax-post-filter-form .ajax-post-filter-categories>label,
.ajax-post-tag-filter-form .ajax-post-filter-tags>label {
  pointer-events: painted;
  width: fit-content;
  margin: 0;
  padding: 10px !important;
  border-radius: 10px;
  background-color: var(--accenttxtcolor);
  color: var(--primarycolor);
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.ajax-post-filter-form .ajax-post-filter-categories>label:has(input[type="checkbox"]:checked),
.ajax-post-tag-filter-form .ajax-post-filter-tags>label:has(input[type="checkbox"]:checked) {
  background-color: var(--secondarycolor);
  color: var(--primarycolor);
}
.ajax-post-filter-form .ajax-post-filter-categories>label:hover,
.ajax-post-tag-filter-form .ajax-post-filter-tags>label:hover {
  background-color: var(--secondarycolor);
}
.ajax-post-filter-form .ajax-post-filter-categories > label input[type="checkbox"],
.ajax-post-tag-filter-form .ajax-post-filter-tags > label input[type="checkbox"],
.ajax-post-filter-form .ajax-post-filter-categories > label:before,
.ajax-post-filter-form .ajax-post-filter-categories > label:after,
.ajax-post-tag-filter-form .ajax-post-filter-tags > label:before,
.ajax-post-tag-filter-form .ajax-post-filter-tags > label:after { display: none; }


/* Pagination Styles */
.emts-primary .emts-pagination,
.navigation .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}
.emts-primary .emts-pagination span,
.emts-primary .emts-pagination a,
.navigation .nav-links span,
.navigation .nav-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  border-radius: 50px;
  background-color: var(--primarycolor);
  color: var(--accenttxtcolor);
  border: 1px solid var(--primarycolor);
  -moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

.emts-primary .emts-pagination span.current,
.emts-primary .emts-pagination a:hover,
.navigation .nav-links span.current,
.navigation .nav-links a:hover {
  background-color: var(--accenttxtcolor);
  color: var(--primarycolor);
}

.emts-primary .emts-pagination a.next,
.emts-primary .emts-pagination a.prev,
.navigation .nav-links a.next,
.navigation .nav-links a.prev {
  position: relative;
  font-size: 0;
}

.emts-primary .emts-pagination a.next:after,
.emts-primary .emts-pagination a.prev:after,
.navigation .nav-links a.next:after,
.navigation .nav-links a.prev:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask-image: url("../Images/in-right-arrow.webp");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  -webkit-mask-size: cover;
  mask-image: url("../Images/in-right-arrow.webp");
  mask-repeat: no-repeat;
  mask-position: center center;
  mask-size: cover;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.emts-primary .emts-pagination a.prev:after,
.navigation .nav-links a.prev:after {
  transform: scaleX(-1);
}