/* EPC Near Me — blog listing, archives and single posts */

/* ---------- listing / archive cards ---------- */
body.blog article.ast-article-post,
body.archive article.ast-article-post {
  background: #fff;
  border: 1px solid #dcebe2;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(4, 61, 36, 0.10);
  overflow: hidden;
  margin-bottom: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.blog article.ast-article-post:hover,
body.archive article.ast-article-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(4, 61, 36, 0.16);
}
body.blog .ast-article-inner,
body.archive .ast-article-inner {
  padding: 0 0 22px;
}
body.blog .post-thumb img,
body.archive .post-thumb img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
body.blog .post-content > *:not(.ast-blog-featured-section),
body.archive .post-content > *:not(.ast-blog-featured-section) {
  padding-left: 24px;
  padding-right: 24px;
}
body.blog .entry-title,
body.archive .entry-title {
  font-size: 19px !important;
  font-weight: 800;
  line-height: 1.35;
  margin: 16px 0 8px !important;
}
body.blog .entry-title a,
body.archive .entry-title a {
  color: #16241d !important;
  text-decoration: none;
}
body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
  color: #0a5233 !important;
}
body.blog .entry-meta,
body.archive .entry-meta {
  font-size: 12.5px !important;
  letter-spacing: 0.3px;
  color: #4b5f55 !important;
  text-transform: uppercase;
}
body.blog .entry-meta a,
body.archive .entry-meta a {
  color: #0a5233 !important;
  font-weight: 700;
}
body.blog .ast-excerpt-container p,
body.archive .ast-excerpt-container p {
  font-size: 15px;
  line-height: 1.65;
  color: #4b5f55;
}
body.blog .ast-the-content > p,
body.archive .ast-the-content > p {
  font-size: 15px;
  line-height: 1.65;
  color: #4b5f55;
}
body.blog .read-more .menu-link,
body.blog .ast-the-content .more-link,
body.archive .read-more .menu-link,
body.archive .ast-the-content .more-link {
  display: inline-block;
  background: #25C146;
  border: 1px solid #25C146;
  border-radius: 10px;
  padding: 9px 20px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(4, 61, 36, 0.16);
}
body.blog .read-more .menu-link:hover,
body.archive .read-more .menu-link:hover {
  background: #31D957;
  border-color: #31D957;
}

/* pagination */
body.blog .ast-pagination,
body.archive .ast-pagination {
  padding: 10px 0 30px;
}
body.blog .page-numbers,
body.archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 3px;
  border: 1px solid #dcebe2;
  border-radius: 10px;
  background: #fff;
  color: #16241d !important;
  font-weight: 700;
  text-decoration: none !important;
}
body.blog .page-numbers.current,
body.archive .page-numbers.current {
  background: #043D24;
  border-color: #043D24;
  color: #fff !important;
}
body.blog .page-numbers:hover:not(.current),
body.archive .page-numbers:hover:not(.current) {
  border-color: #25C146;
  color: #0a5233 !important;
}

/* ---------- news hero ---------- */
.enm-news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 38px;
  align-items: center;
  background: #043D24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  padding: 36px 40px;
  margin: 26px 0 34px;
}
.enm-news-hero .enm-kicker {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 6px;
}
.enm-news-hero h1 {
  font-size: 32px !important;
  font-weight: 800;
  line-height: 1.15;
  color: #fff !important;
  margin: 0 0 12px !important;
}
.enm-news-hero p {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.enm-news-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* ---------- single post ---------- */
body.single-post .site-main article {
  max-width: 860px;
  margin: 0 auto;
}
body.single-post .entry-title {
  font-size: 34px !important;
  font-weight: 800;
  line-height: 1.2;
  color: #16241d !important;
}
body.single-post .entry-meta {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #4b5f55 !important;
}
body.single-post .entry-meta a {
  color: #0a5233 !important;
  font-weight: 700;
}
body.single-post .post-thumb img,
body.single-post .entry-content img {
  border-radius: 18px;
  max-width: 100%;
  height: auto;
}
body.single-post .entry-content p,
body.single-post .entry-content li {
  font-size: 17px;
  line-height: 1.75;
  color: #3d4f46;
}
body.single-post .entry-content h2 {
  font-size: 25px !important;
  font-weight: 800;
  color: #16241d !important;
  margin-top: 36px;
  padding-bottom: 12px;
  position: relative;
}
body.single-post .entry-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: #4ade80;
}
body.single-post .entry-content h3 {
  font-size: 20px !important;
  font-weight: 800;
  color: #16241d !important;
  margin-top: 26px;
}
body.single-post .entry-content a {
  color: #0a5233;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #4ade80;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
body.single-post .entry-content a:hover {
  color: #043D24;
}
body.single-post .entry-content blockquote {
  border-left: 4px solid #25C146;
  background: #f2faf5;
  border-radius: 0 14px 14px 0;
  padding: 16px 22px;
  margin: 24px 0;
}
body.single-post .post-navigation .nav-links a {
  color: #0a5233;
  font-weight: 700;
}

@media (max-width: 900px) {
  .enm-news-hero {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
  .enm-news-hero h1 {
    font-size: 25px !important;
  }
  body.blog .post-thumb img,
  body.archive .post-thumb img {
    height: 190px;
  }
}

/* read-more as button (broader match) */
body.blog .ast-article-post .read-more a,
body.archive .ast-article-post .read-more a {
  display: inline-block;
  background: #25C146;
  border: 1px solid #25C146;
  border-radius: 10px;
  padding: 9px 20px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(4, 61, 36, 0.16);
}
body.blog .ast-article-post .read-more a:hover,
body.archive .ast-article-post .read-more a:hover {
  background: #31D957;
  border-color: #31D957;
}

/* sidebar widgets as cards */
body.blog .widget,
body.archive .widget,
body.single-post .widget {
  background: #fff;
  border: 1px solid #dcebe2;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(4, 61, 36, 0.10);
  padding: 22px 24px !important;
  margin-bottom: 22px !important;
}
body.blog .widget .widget-title,
body.archive .widget .widget-title,
body.single-post .widget .widget-title {
  font-size: 17px !important;
  font-weight: 800;
  color: #16241d !important;
  margin-bottom: 12px;
  padding-bottom: 10px;
  position: relative;
}
body.blog .widget .widget-title::after,
body.archive .widget .widget-title::after,
body.single-post .widget .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: #4ade80;
}
body.blog .widget a,
body.archive .widget a,
body.single-post .widget a {
  color: #0a5233 !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
}
body.blog .widget a:hover,
body.archive .widget a:hover,
body.single-post .widget a:hover {
  color: #043D24 !important;
  text-decoration: underline !important;
}
body.blog .widget li,
body.archive .widget li,
body.single-post .widget li {
  margin-bottom: 8px;
}
body.blog .widget input[type="search"],
body.archive .widget input[type="search"] {
  border: 2px solid #dcebe2;
  border-radius: 10px;
  padding: 10px 12px;
}
body.blog .widget .search-submit,
body.archive .widget .search-submit {
  background: #25C146 !important;
  border: 1px solid #25C146 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* Replace the legacy theme lime (#9dca00) with brand colours */
.ast-article-post .ast-date-meta .posted-on,
.ast-article-post .ast-date-meta .posted-on *,
.ast-article-single .ast-date-meta .posted-on,
.ast-article-single .ast-date-meta .posted-on * {
  background: #043D24 !important;
  color: #fff !important;
  border-radius: 10px;
}
.ast-article-post .ast-date-meta .posted-on .date-month,
.ast-article-post .ast-date-meta .posted-on .date-year,
.ast-article-single .ast-date-meta .posted-on .date-month,
.ast-article-single .ast-date-meta .posted-on .date-year {
  color: rgba(255, 255, 255, 0.85) !important;
}
.entry-meta,
.entry-meta * {
  color: #4b5f55 !important;
}
.entry-meta a:not(.ast-button),
.entry-meta a:not(.ast-button) * {
  color: #0a5233 !important;
  font-weight: 700;
}
.ast-taxonomy-container a,
.ast-terms-link,
.cat-links a {
  color: #0a5233 !important;
}
.single .nav-links .nav-previous,
.single .nav-links .nav-next,
.single .nav-links a {
  color: #0a5233 !important;
}

/* Related posts: dates and meta in brand colours (no legacy lime) */
.ast-single-related-posts-container .entry-meta,
.ast-single-related-posts-container .entry-meta *,
.ast-related-post-content .entry-meta,
.ast-related-post-content .entry-meta *,
.ast-related-post-meta,
.ast-related-post-meta * {
  color: #4b5f55 !important;
}
.ast-single-related-posts-container .entry-meta a,
.ast-related-post-content .entry-meta a,
.ast-single-related-posts-container .published,
.ast-related-post-content .published {
  color: #0a5233 !important;
  font-weight: 700;
}
.ast-single-related-posts-container .ast-date-meta .posted-on,
.ast-single-related-posts-container .ast-date-meta .posted-on * {
  background: #043D24 !important;
  color: #fff !important;
}
