/*---------------SINGLE POST---------------------------*/
@media (max-width: 1024px) {
  .post-content-wrapper {
    padding-top: 70px !important;
  }
}
/*---------- 1 BREADCRUMB -----------*/
.post-content-wrapper .post-breadcrumb {
  margin-bottom: 2rem auto 1rem auto !important;
}
.post-breadcrumb p {
  text-align: left;
  font-size: 0.875rem !important;
  font-weight: 300 !important;
}

.post-breadcrumb a {
  color: var(--wp--preset--color--hwb-dark);
}

/*----Post excerpt------*/
.post-content-wrapper .single-post-excerpt p {
  font-size: 0.875rem !important;
}

/*------- 2. COLUMNS -------------------*/
@media (max-width: 1024px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .wp-block-columns .wp-block-column {
    flex-basis: 100% !important;
  }

  .wp-block-columns .wp-block-column.middle {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .wp-block-column.middle .wp-block-post-title {
    font-size: 2rem !important;
  }

  .post-content-wrapper .wp-block-columns .left .post-share {
    display: none;
  }
}

.post-content-wrapper .wp-block-columns .left .post-share,
.post-content-wrapper .left .post-share__buttons {
  flex-direction: column;
}

.post-content-wrapper .left .post-share {
  height: 300px;
  position: sticky;
  position: -webkit-sticky;
  top: 220px;
}

/*-----ENTRY CONTENT----------*/
.entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
}

.entry-content p {
  margin-bottom: 1rem;
  margin-top: 6px;
  line-height: 1.5 !important;
  font-size: 1.25rem !important;
}

.entry-content h2 {
  font-size: clamp(1.75rem, 1.6667rem + 0.9259vw, 2.5rem) !important;
}
.entry-content h3 {
  font-size: clamp(1.5rem, 1.3333rem + 0.7407vw, 2rem) !important;
}
.entry-content h4 {
  font-size: clamp(1.25rem, 1.3333rem + 0.7407vw, 1.875rem) !important;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-weight: 600;
}

.entry-content .wp-block-quote {
  margin-left: 2rem !important;
  padding: 1rem 1rem 1rem 2rem !important;
  border: 2px solid var(--hwb-light-border-color);
  border-radius: var(--hwb-layout-elements-border-radius);
  background-color: var(--wp--preset--color--hwb-secondary-white);
  color: var(--wp--preset--color--hwb-dark);
  position: relative;
}

@media screen and (max-width: 540px) {
  .entry-content .wp-block-quote {
    margin-left: 1rem !important;
    width: 95%;
  }
}

.entry-content .wp-block-quote::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--hwb-layout-elements-border-radius);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-bookmark-fill" viewBox="0 0 16 16"><path d="M2 2v13.5a.5.5 0 0 0 .74.439L8 13.069l5.26 2.87A.5.5 0 0 0 14 15.5V2a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.entry-content p.has-drop-cap::first-letter {
  font-size: 3rem;
  font-weight: 600;
  color: var(--wp--preset--color--hwb-dark);
}

.entry-content p a {
  color: var(--wp--preset--color--dark-dark);
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  transition: all 0.35s ease-in-out;
}

.entry-content a:hover {
  color: var(--wp--preset--color--hwb-secondary-dark);
}

.entry-content figure {
  border-radius: var(--hwb-layout-elements-border-radius);
  margin: 1.5rem auto !important;
  width: 100%;
  overflow: hidden;
}
.entry-content figure img {
  width: 100%;
  height: 100%;
}

.entry-content figure .wp-element-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.5rem !important;
}

.entry-content iframe {
  width: 100% !important;
  height: 400px !important;
  margin: 1rem auto;
  border-radius: var(--hwb-layout-elements-border-radius) !important;
}

.entry-content ul,
.entry-content ol {
  margin-left: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.entry-content ul li,
.entry-content ol li {
  line-height: 1.5 !important;
}

@media (max-width: 767px) {
  .entry-content iframe {
    height: 300px !important;
  }
}

/*--NEXT POST---*/
.next-post-container {
  width: 280px;
  height: fit-content;
  background-color: var(--wp--preset--color--hwb-secondary-white);
  padding: 0.5rem;
  border-radius: 10px;
  position: fixed;
  display: none;
  right: 6rem;
  bottom: 8rem;
  z-index: 99999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10%);
}

@media screen and (max-width: 1024px) {
  .next-post-container {
    right: 2rem;
  }
}
.next-post-container.in-view {
  display: flex;
  animation: showNext 1.5s forwards;
  transition: all 0.5s ease-in-out;
}

.next-post-container::after {
  content: "Next Post";
  position: absolute;
  right: 0;
  padding: 0.125rem 0.25rem;
  bottom: 0;
  background-color: var(--wp--preset--color--hwb-dark);
  color: var(--wp--preset--color--hwb-white);
  font-size: 0.875rem;
}

@keyframes showNext {
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

.next-post-container .next-post-details {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.next-post-container .next-post-details img {
  width: 60px;
  height: 60px;
  flex: 1;
  border-radius: 10px;
}

.next-post-container .next-post-details h2 {
  font-size: 1rem;
  margin-top: 0;
}
.next-post-container .next-post-details h2 a {
  color: var(--wp--preset--color--hwb-dark);
  transition: color 0.35s ease-in-out;
}
.next-post-container .next-post-details h2 a:hover {
  color: var(--wp--preset--color--hwb-secondary-dark);
}

/*--POST COMMENT---*/

.comment-box h3 {
  font-weight: 600;
}

.comment-box form .logged-in-as {
  font-size: 0.875rem !important;
}

.comment-box form .logged-in-as a {
  color: var(--wp--preset--color--hwb-dark);
  font-weight: 600;
}

.comment-box input:not([type="submit"]) {
  border-radius: var(--hwb-layout-elements-border-radius);
}

.comment-box .form-submit input {
  background-color: var(--wp--preset--color--hwb-dark);
  color: var(--wp--preset--color--hwb-secondary-white);
  border-radius: var(--hwb-layout-elements-border-radius);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

/* SIDEBAR RECENT POSTS */
.post-content-wrapper .right .sidebar-recent .wp-block-query li figure {
  flex-basis: 30%;
  flex-shrink: 0 !important;
  width: 100px !important;
  height: 90px !important;
}

@media (max-width: 1024px) {
  .post-content-wrapper .right {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}
.post-content-wrapper .right .sidebar-recent figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
}

@media (min-width: 1024px) {
  .post-content-wrapper .right .sidebar-ad {
    min-height: 400px;
    position: sticky;
    top: 190px;
  }
}

/*-------------------RELATED POSTS---------------------------*/
.related-posts {
  max-width: 100% !important;
  overflow: hidden;
  position: relative;
  display: flex;
}
@media (width <= 767px) {
  .related-posts h3 {
    font-size: 1.675rem !important;
  }
}
/* Single course card */
.related-posts .swiper-slide {
  min-height: 300px;
  flex-grow: 1 !important;
  flex-shrink: 0 !important;
  border-radius: var(--hwb-layout-elements-border-radius);
  border-color: var(--hwb-light-border-color);
  background-color: var(--wp--preset--color--hwb-secondary-white);
}

.related-posts .swiper-slide .post-thumbnail {
  overflow: hidden !important;
  width: 100%;
  height: 200px;
  border-radius: var(--hwb-layout-elements-border-radius);
}

.related-posts .swiper-slide a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  -o-object-fit: cover;
  -o-object-position: top;
  transition: scale 0.5s ease-in-out;
}

.related-posts .swiper-slide:hover a img {
  scale: 1.095;
}

.related-posts .swiper-slide h4 {
  font-size: clamp(1.125rem, 10vw, 1.5rem);
  margin-top: 1rem;
  padding: 0 1rem;
}

.related-posts .swiper-slide h4 a {
  width: 100%;
  transition: color 0.35s ease-in-out;
}

.related-posts .swiper-slide:hover h4 a,
.related-posts .swiper-slide:focus h4 a {
  opacity: 0.6;
}

.related-posts .swiper-button-next {
  margin-right: 2rem;
}

.related-posts .swiper-button-prev {
  margin-left: 2rem;
}

.related-posts .swiper-button-next,
.related-posts .swiper-button-prev {
  position: absolute;
  background-color: var(--wp--preset--color--hwb-dark);
  color: var(--wp--preset--color--hwb-white);
  margin-top: -3rem;
  padding: 4px;
  border-radius: 50%;
  height: 35px;
  width: 35px;
  transition: background-color 0.35s ease-in-out;
}

.related-posts .swiper-button-next:hover,
.related-posts .swiper-button-prev:hover {
  background-color: var(--wp--preset--color--hwb-white);
  color: var(--wp--preset--color--hwb-dark);
}

.related-posts .swiper-button-next {
  right: -0.5rem;
}

.related-posts .swiper-button-prev {
  left: -0.5rem;
}
