.single-post,
.single-post body {
  background: #ffffff;
}

.single-post .woocommerce-breadcrumb {
  margin-bottom: 0;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  background: #ffffff;
  color: #4f8c08 !important;
}

.single-post .woocommerce-breadcrumb a {
  color: #757575 !important;
}

.epal-post-detail {
  background: #ffffff;
  color: #151515;
}

.epal-post-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(306px, 0.48fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 80px;
}

.epal-post-article,
.epal-post-detail__sidebar {
  min-width: 0;
}

.epal-post-article__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.epal-post-article__heading {
  width: 100%;
}

.epal-post-article__title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 24px;
  line-height: 135%;
  letter-spacing: 1%;
  color: #111111;
}

.epal-post-article__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.epal-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.epal-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: 1%;
  color: #757575;
}

.epal-post-meta__item a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.epal-post-meta__item + .epal-post-meta__item::before {
  content: "•";
  color: #c8c8c8;
  font-size: 12px;
  line-height: 1;
}
.epal-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 10px;
  column-gap: 12px; /* khoảng cách trước separator */
}

.epal-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* khoảng cách icon - text */
}

.epal-post-meta__item + .epal-post-meta__item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8c8c8;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 4px; /* 8px gap + 4px = 12px từ separator tới nội dung */
}

.epal-post-share {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

.epal-post-share:empty {
  display: none;
}

.epal-post-share__link {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.epal-post-share__link:hover,
.epal-post-share__link.is-copied {
  color: #ffffff;
  background: #5d8e00;
  border-color: #5d8e00;
}

.epal-post-share__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.epal-post-share__icon img,
.epal-post-share__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.epal-post-share__icon img {
  object-fit: contain;
}

.epal-post-social-platform-icon {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.epal-post-article__summary {
  margin-bottom: 28px;
}

.epal-post-article__summary p {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.9rem;
  line-height: 1.8;
  color: #444a52;
}

.epal-post-content {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  line-height: 1.85;
  color: #262a2f;
}

.epal-post-content > *:first-child {
  margin-top: 0;
}

.epal-post-content > *:last-child {
  margin-bottom: 0;
}

.epal-post-content p,
.epal-post-content ul,
.epal-post-content ol,
.epal-post-content blockquote,
.epal-post-content table,
.epal-post-content figure {
  margin: 0 0 28px;
}

.epal-post-content h2,
.epal-post-content h3,
.epal-post-content h4,
.epal-post-content h5,
.epal-post-content h6 {
  margin: 42px 0 18px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  line-height: 1.32;
  color: #111111;
}

.epal-post-content h2 {
  font-size: 3rem;
}

.epal-post-content h3 {
  font-size: 2.5rem;
}

.epal-post-content a {
  color: #5d8e00;
  text-decoration: underline;
}

.epal-post-content strong {
  color: #111111;
}

.epal-post-content ul,
.epal-post-content ol {
  padding-left: 24px;
}

.epal-post-content li + li {
  margin-top: 8px;
}

.epal-post-content blockquote {
  border-left: 4px solid #7aac15;
  background: #f5f8ee;
  padding: 18px 20px;
  border-radius: 0 16px 16px 0;
  color: #2b3138;
}

.epal-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.epal-post-content .wp-caption,
.epal-post-content .aligncenter {
  max-width: 100%;
}

.epal-post-content__featured-media {
  margin: 28px 0 32px;
}

.epal-post-content__featured-image {
  width: 100%;
  display: block;
  border-radius: 24px;
}

.epal-post-content #ez-toc-container {
  width: 100%;
  border: 1px solid var(--primary-grey-200, #eeeeee);
  border-radius: 8px;
  background: #fafafa;
  color: #222222;
  padding: 12px 16px;
  margin: 0 0 24px;
}

.epal-post-content #ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.epal-post-content #ez-toc-container .ez-toc-title {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 1%;
  color: #212121;
}

.epal-post-content #ez-toc-container nav,
.epal-post-content #ez-toc-container ul,
.epal-post-content #ez-toc-container ol {
  margin: 0;
}

.epal-post-content #ez-toc-container li {
  margin: 0 0 4px;
  color: #212121;
}

.epal-post-content #ez-toc-container a {
  text-decoration: none;
}

.epal-post-content #ez-toc-container a:hover {
  color: #5d8e00;
}

.epal-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.epal-post-tags__item {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--primary-grey-200, #eeeeee);
  border-radius: 24px;
  color: #9e9e9e;
  background: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  letter-spacing: 1%;
}

.epal-post-tags__item:hover {
  background: #5d8e00;
  border-color: #5d8e00;
  color: #ffffff;
}

.epal-post-author-box {
  margin-top: 32px;
  border: 1px solid var(--primary-grey-200, #eeeeee);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #ffffff;
}

.epal-post-author-box__avatar {
  width: 40px;
  height: 40px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eefffe 0%, #e6f6f8 100%);
}

.epal-post-author-box__content {
  min-width: 0;
}

.epal-post-author-box__avatar-image {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: block;
}

.epal-post-author-box__eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 400;
  font-size: 12px;
  line-height: 146%;
  letter-spacing: 1%;
  color: #93d500;
}

.epal-post-author-box__name {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 18px;
  line-height: 146%;
  letter-spacing: 1%;
  color: #212121;
}

.epal-post-author-box__description {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 1%;
  color: #616161;
}

.epal-post-author-box__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.epal-post-author-box__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7cb100;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.epal-post-author-box__social-link:hover {
  color: #5d8e00;
  transform: translateY(-1px);
}

.epal-post-author-box__social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.epal-post-author-box__social-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.epal-post-related {
  margin-bottom: 96px;
}

.epal-post-related__title {
  margin: 0 0 48px;
  font-weight: 600;
  font-size: 24px;
  line-height: 135%;
  letter-spacing: 1%;
  color: #212121;
}

.epal-post-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.epal-post-related__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.epal-post-related__image-wrap {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 306 / 229;
}

.epal-post-related__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.epal-post-related__image-wrap:hover .epal-post-related__image {
  transform: scale(1.04);
}

.epal-post-related__image--empty {
  background: linear-gradient(135deg, #f5f7f0 0%, #e7ebde 100%);
}

.epal-post-related__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.epal-post-related__meta {
  display: flex;
  flex-wrap: wrap;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  letter-spacing: 1%;
  gap: 16px;
  color: #9e9e9e;
}

.epal-post-related__meta-item {
  color: inherit;
  text-decoration: none;
}

.epal-post-related__meta-item + .epal-post-related__meta-item::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d0d0d0;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.epal-post-related__meta-item--accent {
  color: #8aaa2c;
}

.epal-post-related__card-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 1%;
  color: #212121;
}

.epal-post-related__card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.epal-post-related__card-title a:hover {
  color: #437127;
}

.epal-post-related__excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  letter-spacing: 1%;
  color: #757575;
}

.epal-post-sidebar {
  border: 1px solid var(--primary-grey-100, #f5f5f5);
  border-radius: 8px;
  padding: 20px;
}

.epal-post-sidebar__sticky {
  position: sticky;
  top: 24px;
}

.epal-post-sidebar__section + .epal-post-sidebar__section {
  margin-top: 42px;
}

.epal-post-sidebar__title {
  margin: 0 0 16px;
  font-weight: 700;
  font-style: Bold;
  font-size: 18px;
  line-height: 146%;
  letter-spacing: 1%;
  color: #111111;
}

.epal-post-sidebar__recent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.epal-post-sidebar__recent-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.epal-post-sidebar__recent-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #ecefe7;
  aspect-ratio: 72 / 48;
}

.epal-post-sidebar__recent-thumb img,
.epal-post-sidebar__recent-thumb--empty {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.epal-post-sidebar__recent-thumb--empty {
  background: linear-gradient(135deg, #f5f7f0 0%, #e7ebde 100%);
}

.epal-post-sidebar__recent-title {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  letter-spacing: 0.01em;
}

.epal-post-sidebar__recent-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #262a2f;
  text-decoration: none;
}

.epal-post-sidebar__recent-title a:hover {
  color: #5d8e00;
}

.epal-post-sidebar__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.epal-post-sidebar__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--primary-grey-200, #eeeeee);
  border-radius: 24px;
  color: #9e9e9e;
  background: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  letter-spacing: 1%;
}

.epal-post-sidebar__tag:hover {
  background: #5d8e00;
  color: #ffffff;
}

.epal-post-sidebar__social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.epal-post-sidebar__social-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dce1d3;
  color: #2a2f35;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  line-height: 1.4;
  transition: 0.2s ease;
}

.epal-post-sidebar__social-card:hover {
  background: #5d8e00;
  border-color: #5d8e00;
  color: #ffffff;
}

.epal-post-sidebar__social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.epal-post-sidebar__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.epal-post-sidebar__banner {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.epal-post-sidebar__banner img {
  width: 100%;
  display: block;
  aspect-ratio: 0.78 / 1;
  object-fit: cover;
}

@media (max-width: 1268px) {
  .epal-post-detail__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  }

  .epal-post-author-box__name {
    font-size: 1.8rem;
  }

  .epal-post-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .epal-post-detail {
    padding-bottom: 64px;
  }

  .epal-post-detail__layout {
    grid-template-columns: 1fr;
  }

  .epal-post-article__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .epal-post-detail__sidebar {
    margin-top: 18px;
  }

  .epal-post-sidebar__sticky {
    position: static;
  }

  .epal-post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .epal-post-detail {
    padding-bottom: 48px;
  }

  .epal-post-article__title {
    font-size: 2.8rem;
  }

  .epal-post-meta__item {
    font-size: 1.4rem;
  }

  .epal-post-content {
    font-size: 1.6rem;
  }

  .epal-post-content h2 {
    font-size: 2.4rem;
  }

  .epal-post-content h3 {
    font-size: 2rem;
  }

  .epal-post-author-box {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .epal-post-author-box__avatar {
    display: flex;
    justify-content: flex-start;
  }

  .epal-post-related {
    margin-top: 34px;
  }

  .epal-post-related__title {
    font-size: 2rem;
  }

  .epal-post-sidebar {
    padding: 18px 16px;
  }

  .epal-post-sidebar__social-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .epal-post-related__grid {
    grid-template-columns: 1fr;
  }
}
