
/* === FONTS === */
body.single-post,
body.single-post p, body.single-post li, body.single-post a, body.single-post span,
body.single-post h1, body.single-post h2, body.single-post h3, body.single-post h4,
body.single-post div, body.single-post td, body.single-post th,
body.single-post input, body.single-post textarea, body.single-post button, body.single-post label,
body.single-post .entry-title, body.single-post .entry-content,
body.single-post #secondary, body.single-post #secondary p, body.single-post #secondary a,
body.single-post #secondary h2, body.single-post #secondary h4,
.site-footer, .site-footer p, .site-footer a, .site-footer h4, .site-footer h5, .site-footer li {
  font-family: Montserrat, sans-serif !important;
}

/* === HERO BANNER === */
body.single-post .entry-header {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 0 !important;
}
body.single-post .post-thumb-img-content {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
body.single-post .post-thumb-img-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(42,42,78,0.6) 100%);
  z-index: 1;
}
body.single-post .post-thumb-img-content img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover !important;
  display: block;
}
body.single-post h1.entry-title {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff !important;
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 40px 8% 30px !important;
  margin: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}
body.single-post .entry-meta {
  position: absolute !important;
  bottom: 8px;
  left: 8%;
  z-index: 3;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.85rem !important;
}
body.single-post .entry-meta a {
  color: #ffb088 !important;
}

/* === CONTENT AREA === */
body.single-post .entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  padding-top: 30px;
}
body.single-post .entry-content p {
  margin-bottom: 1.2em;
  color: #444;
}

/* === H2 SECTION HEADINGS === */
body.single-post .entry-content h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  border-left: 4px solid #ff6b35;
  padding: 12px 0 12px 18px;
  margin: 2.5em 0 1em !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.single-post .entry-content h2:first-of-type {
  margin-top: 1.5em !important;
}

/* === H3 SUB-HEADINGS === */
body.single-post .entry-content h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
  font-weight: 700 !important;
  color: #ff6b35 !important;
  margin: 2em 0 0.8em !important;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffe8dc;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* === LISTS WITH GREEN CHECKS === */
body.single-post .entry-content ul {
  list-style: none !important;
  padding-left: 0 !important;
}
body.single-post .entry-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.7;
}
body.single-post .entry-content ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  color: #ff6b35;
  font-weight: 700;
  font-size: 1.1em;
}

/* === TABLE STYLING === */
body.single-post .entry-content table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  margin: 1.5em 0 2em;
}
body.single-post .entry-content thead tr,
body.single-post .entry-content table tr:first-child {
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%) !important;
}
body.single-post .entry-content thead th,
body.single-post .entry-content table tr:first-child td,
body.single-post .entry-content table tr:first-child th {
  color: #fff !important;
  font-weight: 700 !important;
  padding: 14px 16px !important;
  font-size: 0.95rem !important;
  border: none !important;
}
body.single-post .entry-content tbody td,
body.single-post .entry-content table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #eee !important;
  border-right: none !important;
  border-left: none !important;
  font-size: 0.92rem;
  vertical-align: top;
}
body.single-post .entry-content tbody tr:nth-child(even) {
  background: #fef9f7 !important;
}
body.single-post .entry-content tbody tr:hover {
  background: #fff0e8 !important;
}

/* === SIDEBAR MODERNIZATION === */
body.single-post #secondary {
  padding-top: 30px;
}
body.single-post #secondary .widget {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}
body.single-post #secondary .widget img {
  filter: none !important;
}
body.single-post #secondary .wp-block-image {
  filter: none !important;
}
body.single-post #secondary .wp-block-heading {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff6b35;
}
body.single-post #secondary .wp-block-latest-posts__list li,
body.single-post #secondary ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
body.single-post #secondary .wp-block-latest-posts__list li:last-child,
body.single-post #secondary ul li:last-child {
  border-bottom: none;
}
body.single-post #secondary a {
  color: #ff6b35 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s;
}
body.single-post #secondary a:hover {
  color: #e55a2b !important;
  text-decoration: underline !important;
}

/* === YARPP RELATED POSTS === */
body.single-post .yarpp-related {
  background: #fef5f0;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 2em 0;
}
body.single-post .yarpp-related h3 {
  border-bottom: none !important;
  color: #1a1a2e !important;
  margin-top: 0 !important;
}
body.single-post .yarpp-related ol {
  counter-reset: related;
  list-style: none !important;
  padding-left: 0 !important;
}
body.single-post .yarpp-related ol li {
  counter-increment: related;
  padding: 10px 0 10px 36px;
  position: relative;
  border-bottom: 1px solid rgba(255,107,53,0.15);
}
body.single-post .yarpp-related ol li:last-child { border-bottom: none; }
body.single-post .yarpp-related ol li::before {
  content: counter(related);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: #ff6b35;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 0.8rem;
  font-weight: 700;
}
body.single-post .yarpp-related a {
  color: #ff6b35 !important;
  font-weight: 600;
}

/* === BLOCKQUOTE / ITALIC NOTES === */
body.single-post .entry-content em {
  color: #555;
}

/* === BOLD TEXT ACCENT === */
body.single-post .entry-content strong {
  color: #1a1a2e;
}

/* === CTA BANNER (injected by JS) === */
.epn-blog-cta {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  color: #fff;
  text-align: center;
  padding: 40px 30px;
  border-radius: 16px;
  margin: 2.5em 0;
  box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}
body.single-post .entry-content .epn-blog-cta h3 {
  color: #fff !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
  border-bottom: none !important;
  padding: 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
  letter-spacing: 0.5px !important;
  opacity: 1 !important;
}
body.single-post .entry-content .epn-blog-cta p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.05rem;
  margin-bottom: 20px !important;
}
body.single-post .entry-content .epn-blog-cta a {
  display: inline-block;
  background: #fff;
  color: #ff6b35 !important;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none !important;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
body.single-post .entry-content .epn-blog-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* === STICKY CTA MOBILE === */
@media (max-width: 768px) {
  body.single-post .entry-header {
    border-radius: 0;
    margin: 0 -20px !important;
    width: calc(100% + 40px) !important;
  }
  body.single-post .post-thumb-img-content {
    min-height: 220px;
  }
  body.single-post .post-thumb-img-content img {
    height: 220px !important;
  }
  body.single-post h1.entry-title {
    font-size: 1.3rem !important;
    padding: 30px 5% 20px !important;
  }
  body.single-post .entry-content table {
    display: block;
    overflow-x: auto;
  }
  .epn-blog-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.2);
  }
  .epn-blog-sticky-cta span {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: Montserrat, sans-serif;
  }
  .epn-blog-sticky-cta a {
    background: #fff;
    color: #ff6b35 !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: Montserrat, sans-serif;
    white-space: nowrap;
  }
}
