/* ============================================================
   healthplanscompared.com — Additional CSS
   Definitive version — replace entire contents with this
   ============================================================ */


/* ── 1. GLOBAL CONTENT WRAPPER RESETS ──────────────────────
   Removes Kadence's boxed container on standard pages.
   Do NOT apply to .blog or .archive — those need their
   own wrapper to contain the post grid correctly.
   ---------------------------------------------------------- */

.page article.content-bg,
.single article.content-bg {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page .content-wrap,
.single .content-wrap {
  padding: 0 !important;
  max-width: 100% !important;
}

.site-container {
  padding: 0 !important;
}

.page .entry-content-wrap,
.single .entry-content-wrap {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
}

.page .entry-content.single-content,
.single .entry-content.single-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Force Custom HTML blocks and direct children full width */
.page .entry-content .wp-block-html,
.single .entry-content .wp-block-html,
.page .entry-content > *,
.single .entry-content > * {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}


/* ── 2. BLOG & ARCHIVE — OUTER WRAPPER ─────────────────────
   On blog/archive pages, keep the content-bg wrapper but
   make it transparent and full-width so the posts-container
   inside can center itself.
   ---------------------------------------------------------- */

.blog article.content-bg,
.archive article.content-bg {
  background: #F8F5F0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.blog .content-wrap,
.archive .content-wrap {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.blog .entry-content-wrap,
.archive .entry-content-wrap {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: #F8F5F0 !important;
}

.blog .entry-content.single-content,
.archive .entry-content.single-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.blog .site-main,
.archive .site-main {
  background: #F8F5F0 !important;
  width: 100% !important;
}


/* ── 3. BLOG ARCHIVE HEADER ────────────────────────────────
   "Blog" title band — cream background, left-aligned,
   compact height, brand typography.
   ---------------------------------------------------------- */

.entry-hero {
  background: #F8F5F0 !important;
  min-height: 0 !important;
  padding: 2.5rem 0 1.5rem !important;
  width: 100% !important;
}

.entry-hero-container-inner {
  background: #F8F5F0 !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  width: 100% !important;
}

.archive-hero,
.archive-hero-inner {
  background: #F8F5F0 !important;
  width: 100% !important;
}

.archive-title,
.page-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  color: #1E1518 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
}

.archive-description {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #8A7E82 !important;
  text-align: left !important;
}

.kadence-breadcrumbs {
  display: none !important;
}


/* ── 4. POST GRID CONTAINER ────────────────────────────────
   Centers the post grid and sets consistent padding.
   ---------------------------------------------------------- */

.posts-container {
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem 4rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}


/* ── 5. POST CARDS ─────────────────────────────────────────
   Individual post card styling — border, background, radius.
   ---------------------------------------------------------- */

.posts-container article,
.posts-container .loop-entry,
article.loop-entry {
  background: #F8F5F0 !important;
  border: 0.5px solid #D5CCC8 !important;
  border-radius: 10px !important;
  padding: 1.25rem !important;
  box-shadow: none !important;
  overflow: hidden !important;
}


/* ── 6. POST CARD TYPOGRAPHY ───────────────────────────────
   Brand fonts and colors for each card element.
   ---------------------------------------------------------- */

/* Category label */
.loop-entry .entry-taxonomies,
.posts-container .entry-taxonomies {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.loop-entry .entry-taxonomies a,
.posts-container .entry-taxonomies a {
  color: #7A4A6A !important;
  text-decoration: none !important;
}

/* Post title */
.loop-entry .entry-title a,
.posts-container .entry-title a {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #1E1518 !important;
  text-decoration: none !important;
}

.loop-entry .entry-title a:hover,
.posts-container .entry-title a:hover {
  color: #7A4A6A !important;
}

/* Excerpt */
.loop-entry .entry-excerpt p,
.posts-container .entry-excerpt p {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #4E4448 !important;
  line-height: 1.65 !important;
}

/* Meta (author, date) */
.loop-entry .entry-meta,
.posts-container .entry-meta {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  color: #8A7E82 !important;
}

/* Read more */
.loop-entry .read-more-link,
.posts-container .read-more-link {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #7A4A6A !important;
  text-decoration: none !important;
}


/* ── 7. BLOG FONT LOAD ──────────────────────────────────────
   Load Lora on the blog since it's not in a Custom HTML block.
   ---------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500&family=Inter:wght@300;400;500;600&display=swap');


/* ── 8. BLOG GLOBAL BACKGROUND ─────────────────────────────
   Force cream background on all blog/archive surfaces.
   ---------------------------------------------------------- */

body.blog,
body.archive,
body.blog #page,
body.archive #page,
body.blog #content,
body.archive #content,
body.blog .site,
body.archive .site {
  background: #F8F5F0 !important;
}


/* ── 9. BLOG HEADER BAND — broader selectors ───────────────
   Catch whichever hero/header class Kadence actually uses.
   ---------------------------------------------------------- */

body.blog .entry-hero,
body.blog .hero-section,
body.blog .page-hero,
body.archive .entry-hero,
body.archive .hero-section,
body.archive .page-hero,
body.blog .site-main > header,
body.archive .site-main > header {
  background: #F8F5F0 !important;
  border-bottom: 0.5px solid #D5CCC8 !important;
  padding: 2rem 0 1.5rem !important;
}

body.blog .page-title,
body.archive .page-title,
body.blog h1.page-title,
body.archive h1.page-title,
body.blog .entry-title,
body.archive .archive-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: #1E1518 !important;
  letter-spacing: -0.01em !important;
}


/* ── 10. POST CARDS — aggressive selectors ──────────────────
   Broaden selectors to catch Kadence's actual article markup.
   ---------------------------------------------------------- */

body.blog article,
body.archive article,
body.blog .loop-entry,
body.archive .loop-entry {
  background: #fff !important;
  border: 0.5px solid #D5CCC8 !important;
  border-radius: 10px !important;
  padding: 1.25rem !important;
  box-shadow: none !important;
}


/* ── 11. POST CARD TITLE FONT ───────────────────────────────
   Override whatever font Kadence is loading for post titles.
   ---------------------------------------------------------- */

body.blog .entry-title,
body.archive .entry-title,
body.blog .entry-title a,
body.archive .entry-title a,
body.blog h2.entry-title,
body.archive h2.entry-title,
body.blog h2.entry-title a,
body.archive h2.entry-title a {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #1E1518 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
  color: #7A4A6A !important;
}


/* ── 12. POST CARD EXCERPT & META ───────────────────────────*/

body.blog .entry-excerpt,
body.archive .entry-excerpt,
body.blog .entry-excerpt p,
body.archive .entry-excerpt p {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #4E4448 !important;
  line-height: 1.65 !important;
}

body.blog .entry-meta,
body.archive .entry-meta,
body.blog .entry-meta *,
body.archive .entry-meta * {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  color: #8A7E82 !important;
}

body.blog .entry-taxonomies,
body.archive .entry-taxonomies,
body.blog .entry-taxonomies a,
body.archive .entry-taxonomies a {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #7A4A6A !important;
  text-decoration: none !important;
}

body.blog .more-link,
body.archive .more-link,
body.blog .read-more-link,
body.archive .read-more-link,
body.blog a.more-link,
body.archive a.more-link {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #7A4A6A !important;
  text-decoration: none !important;
}


/* ── 13. BLOG TITLE — left-aligned, Lora, bordered band ────*/

body.blog .page-header,
body.archive .page-header,
body.blog .archive-hero,
body.archive .archive-hero {
  background: #F8F5F0 !important;
  border-bottom: 0.5px solid #D5CCC8 !important;
  padding: 2rem 2rem 1.5rem !important;
  text-align: left !important;
}

body.blog .page-title,
body.archive .page-title,
body.blog .page-header .page-title,
body.archive .page-header .page-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: #1E1518 !important;
  text-align: left !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}


/* ── 14. 3-COLUMN GRID ───────────────────────────────────── */

body.blog .posts-container,
body.archive .posts-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem 4rem !important;
  align-items: start !important;
}

@media (max-width: 900px) {
  body.blog .posts-container,
  body.archive .posts-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  body.blog .posts-container,
  body.archive .posts-container {
    grid-template-columns: 1fr !important;
  }
}


/* ── 15. CARD SIZE CONTROL ───────────────────────────────── */

body.blog article,
body.archive article,
body.blog .loop-entry,
body.archive .loop-entry {
  background: #fff !important;
  border: 0.5px solid #D5CCC8 !important;
  border-radius: 10px !important;
  padding: 1.25rem !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Limit excerpt to 3 lines */
body.blog .entry-excerpt,
body.archive .entry-excerpt {
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

body.blog .entry-excerpt p,
body.archive .entry-excerpt p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #4E4448 !important;
  margin: 0.5rem 0 0 0 !important;
}


/* ── 16. READ MORE — lighter weight ─────────────────────── */

body.blog .more-link,
body.archive .more-link,
body.blog .read-more-link,
body.archive .read-more-link {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #7A4A6A !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  margin-top: auto !important;
  padding-top: 0.75rem !important;
}


/* ── 17. NUCLEAR FONT OVERRIDE — catches any Kadence heading class ── */

body.blog h1,
body.blog h2,
body.blog h3,
body.archive h1,
body.archive h2,
body.archive h3 {
  font-family: 'Lora', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
}

body.blog h1 {
  font-size: 28px !important;
  text-align: left !important;
  color: #1E1518 !important;
  padding: 0 2rem !important;
}

body.blog h2,
body.archive h2 {
  font-size: 17px !important;
  color: #1E1518 !important;
  line-height: 1.35 !important;
}


/* ── 18. EXCERPT CLAMP — target every possible wrapper ──── */

body.blog .entry-summary,
body.archive .entry-summary,
body.blog .entry-summary p,
body.archive .entry-summary p,
body.blog .entry-excerpt,
body.archive .entry-excerpt,
body.blog .entry-excerpt p,
body.archive .entry-excerpt p {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #4E4448 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: 6.2em !important;
}


/* ── 19. BLOG TITLE BAND — target every Kadence header variant ── */

body.blog .wp-block-post-template,
body.blog .kadence-blog-header,
body.blog .archive-header,
body.archive .archive-header {
  background: #F8F5F0 !important;
}

/* Force the h1 container to look like a proper title band */
body.blog .content-bg > h1,
body.blog article > h1,
body.blog .site-main > h1,
body.blog > h1 {
  text-align: left !important;
  padding-left: 2rem !important;
}


/* ════════════════════════════════════════════════════════════
   SINGLE BLOG POST STYLING
   body.single-post targets individual post pages
   ════════════════════════════════════════════════════════════ */

/* ── Background & page shell ── */
body.single-post,
body.single-post #page,
body.single-post #content,
body.single-post .site {
  background: #F8F5F0 !important;
}

body.single-post .site-main {
  background: #F8F5F0 !important;
  max-width: 100% !important;
}

/* ── Article wrapper ── */
body.single-post article,
body.single-post .entry-content-wrap,
body.single-post article.content-bg {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

body.single-post .entry-content-wrap,
body.single-post .content-wrap {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── Post header band ── */
body.single-post .entry-hero,
body.single-post .page-hero,
body.single-post .hero-section {
  background: #F8F5F0 !important;
  border-bottom: 0.5px solid #D5CCC8 !important;
  padding: 3rem 0 2rem !important;
}

/* ── Post title ── */
body.single-post h1.entry-title,
body.single-post .entry-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 34px !important;
  font-weight: 400 !important;
  color: #1E1518 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

/* ── Post meta (date, author, category) ── */
body.single-post .entry-meta,
body.single-post .entry-meta *,
body.single-post .entry-taxonomies,
body.single-post .entry-taxonomies a {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  color: #8A7E82 !important;
  text-decoration: none !important;
}

body.single-post .entry-taxonomies {
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 10px !important;
}

body.single-post .entry-taxonomies a {
  color: #7A4A6A !important;
}

/* ── Post body content — constrained, readable column ── */
body.single-post .entry-content,
body.single-post .entry-content.single-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem 4rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #4E4448 !important;
}

/* ── Body paragraphs ── */
body.single-post .entry-content p {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #4E4448 !important;
  margin-bottom: 1.25rem !important;
  max-width: 100% !important;
}

/* ── Headings inside post ── */
body.single-post .entry-content h2 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: #1E1518 !important;
  line-height: 1.3 !important;
  margin: 2.5rem 0 0.75rem !important;
  letter-spacing: -0.01em !important;
}

body.single-post .entry-content h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1E1518 !important;
  margin: 2rem 0 0.5rem !important;
  line-height: 1.4 !important;
}

body.single-post .entry-content h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1E1518 !important;
  margin: 1.5rem 0 0.4rem !important;
  letter-spacing: 0.01em !important;
}

/* ── Links ── */
body.single-post .entry-content a {
  color: #7A4A6A !important;
  text-decoration: none !important;
  border-bottom: 0.5px solid #E0CEDC !important;
}

body.single-post .entry-content a:hover {
  color: #4A1E40 !important;
  border-bottom-color: #7A4A6A !important;
}

/* ── Lists ── */
body.single-post .entry-content ul,
body.single-post .entry-content ol {
  padding-left: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

body.single-post .entry-content li {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #4E4448 !important;
  margin-bottom: 0.4rem !important;
}

/* ── Blockquote ── */
body.single-post .entry-content blockquote {
  border-left: 3px solid #7A4A6A !important;
  background: #EBE5DB !important;
  padding: 1rem 1.25rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: italic !important;
  color: #4E4448 !important;
  font-size: 15px !important;
}

/* ── Tables ── */
body.single-post .entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
  margin-bottom: 1.5rem !important;
  border: 0.5px solid #D5CCC8 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

body.single-post .entry-content th {
  background: #1E1518 !important;
  color: #F8F0F5 !important;
  padding: 9px 12px !important;
  text-align: left !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  font-family: 'Inter', sans-serif !important;
}

body.single-post .entry-content td {
  padding: 9px 12px !important;
  border-bottom: 0.5px solid #D5CCC8 !important;
  border-right: 0.5px solid #D5CCC8 !important;
  color: #4E4448 !important;
  vertical-align: top !important;
  line-height: 1.5 !important;
}

body.single-post .entry-content td:last-child {
  border-right: none !important;
}

body.single-post .entry-content tr:last-child td {
  border-bottom: none !important;
}

/* ── Category label above title ── */
body.single-post .entry-hero .entry-taxonomies,
body.single-post .entry-taxonomies {
  display: block !important;
  max-width: 760px !important;
  margin: 0 auto 0.5rem !important;
  padding: 0 2rem !important;
}

/* ── Post date ── */
body.single-post .entry-meta {
  max-width: 760px !important;
  margin: 0.5rem auto 0 !important;
  padding: 0 2rem !important;
}


/* ── SINGLE POST — top spacing ───────────────────────────────
   Adds breathing room between nav bar and post title/category
   ---------------------------------------------------------- */

body.single-post .entry-taxonomies,
body.single-post .entry-header .entry-taxonomies {
  padding-top: 3rem !important;
}

body.single-post .entry-header {
  padding-top: 3rem !important;
}

/* Fallback — if taxonomies aren't in entry-header */
body.single-post article > .entry-taxonomies:first-child,
body.single-post .entry-content-wrap > .entry-taxonomies:first-child {
  padding-top: 3rem !important;
}

body.single-post h1.entry-title {
  padding-top: 0.75rem !important;
}


/* ── SINGLE POST — tighten spacing & center column ───────── */

/* Remove excess gap between date and first paragraph */
body.single-post .entry-content,
body.single-post .entry-content.single-content {
  padding-top: 1.5rem !important;
}

body.single-post .entry-header {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem 0 !important;
}

/* Center the whole post column */
body.single-post .site-main,
body.single-post #primary {
  max-width: 100% !important;
}

body.single-post .entry-content,
body.single-post .entry-content.single-content {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1.5rem 2rem 4rem !important;
}

/* Kill excess top margin WordPress adds after the header */
body.single-post .entry-content > p:first-child,
body.single-post .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Title — one more push */
body.single-post h1.entry-title,
body.single-post .entry-title {
  font-family: 'Lora', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 34px !important;
  color: #1E1518 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
}


/* ── SINGLE POST — padding before content starts ─────────── */

body.single-post .entry-content,
body.single-post .entry-content.single-content {
  padding-top: 2.5rem !important;
}


/* ── SINGLE POST — featured image sizing ─────────────────────
   Prevent featured image from going full-width hero.
   Contain it to the content column, rounded, with spacing.
   ---------------------------------------------------------- */

body.single-post .post-hero-section,
body.single-post .entry-hero,
body.single-post .hero-section {
  max-height: none !important;
  overflow: visible !important;
}

body.single-post .featured-image-wrap,
body.single-post .post-thumbnail,
body.single-post .entry-thumbnail,
body.single-post .wp-post-image-wrap {
  max-width: 760px !important;
  margin: 0 auto 2rem !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: block !important;
}

body.single-post .post-thumbnail img,
body.single-post .featured-image-wrap img,
body.single-post .entry-thumbnail img,
body.single-post img.wp-post-image {
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
}

/* If Kadence puts the image inside entry-content */
body.single-post .entry-content .wp-post-image,
body.single-post .entry-content img.featured {
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  margin-bottom: 2rem !important;
}

/* Kill any full-bleed hero wrapper Kadence adds */
body.single-post .kadence-post-hero,
body.single-post .single-hero-section {
  display: none !important;
}


/* ── FOOTER — kill Kadence widget padding ────────────────── */

.site-footer .widget,
.site-footer .widget-area,
.footer-widget-area .widget,
#colophon .widget {
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .footer-widget-area,
#colophon .footer-widget-area {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}