/* =====================================================================
   EREG Theme — blog.css
   Exclusive stylesheet for the Blog index (home.php).
   Ported from approved html-design/blog-index.html.
   Loaded ONLY on the blog posts page (functions.php). Global nav/footer
   are provided by the theme and excluded here.
   ===================================================================== */

/* PAGE HEADER */
.page-header{background:#490E6F;padding:24px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.ph-left{display:flex;align-items:center;gap:20px;flex:1;min-width:0}
.ph-accent{width:3px;height:52px;background:rgba(255,255,255,.35);flex-shrink:0;border-radius:2px}
.ph-kicker{font-size:9px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.62);margin-bottom:4px}
.ph-title{font-family:'Cormorant Garamond',serif;font-size:32px;font-weight:300;color:#fff;line-height:1}
.ph-title em{font-style:italic}
.ph-sub{font-size:12px;color:rgba(255,255,255,.72);font-weight:300;max-width:340px;line-height:1.5;text-align:right}

/* ── FEATURED ARTICLE — DARK near-black ── */
.featured{background:#0f0318;padding:48px 40px}
.feat-kicker{font-size:10px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.5);margin-bottom:24px;display:flex;align-items:center;gap:10px}
.feat-kicker::before{content:'';display:block;width:20px;height:1px;background:rgba(255,255,255,.35)}
.feat-inner{display:grid;grid-template-columns:1fr 1fr;gap:0}
.feat-inner:hover .feat-img-wrap{filter:brightness(1.1)}
.feat-img-wrap{background:linear-gradient(135deg,#c9a8e8 0%,#490E6F 55%,#2d0845 100%);min-height:320px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;transition:filter .3s}
.feat-img-wrap img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.feat-img-placeholder{opacity:.18;display:flex;flex-direction:column;align-items:center;gap:12px}
.feat-img-placeholder svg{width:56px;height:56px;fill:#fff}
.feat-img-placeholder span{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:#fff}
.feat-cat-badge{position:absolute;top:16px;left:16px;background:#490E6F;color:#fff;font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:5px 12px;border-radius:2px;z-index:1}
.feat-text{background:#1a0530;padding:40px 36px;display:flex;flex-direction:column;justify-content:center}
.feat-meta{font-size:10px;color:rgba(255,255,255,.45);letter-spacing:.06em;margin-bottom:14px}
.feat-title{font-family:'Cormorant Garamond',serif;font-size:30px;font-weight:300;color:#fff;line-height:1.2;margin-bottom:16px}
.feat-title em{font-style:italic}
.feat-title a{color:inherit;text-decoration:none}
.feat-title a:hover{color:#c49ee0}
.feat-excerpt{font-size:13px;color:rgba(255,255,255,.72);line-height:1.75;margin-bottom:24px}
.feat-author{display:flex;align-items:center;gap:12px;padding-top:20px;border-top:1px solid rgba(255,255,255,.1)}
.feat-av{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#c9a8e8,#490E6F);display:flex;align-items:center;justify-content:center;font-family:'Cinzel',serif;font-size:12px;color:#fff;font-weight:700;flex-shrink:0}
.feat-author-name{font-size:12px;color:rgba(255,255,255,.75);font-weight:600}
.feat-author-role{font-size:11px;color:rgba(255,255,255,.45)}
.feat-read{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#c49ee0;text-decoration:none;margin-top:20px}
.feat-read::after{content:'\2192';transition:transform .2s}
.feat-read:hover::after{transform:translateX(4px)}

/* ── BLOG GRID — LIGHT white ── */
.blog-section{padding:48px 40px;background:#fff}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;margin-top:32px}

/* POST CARD */
.post-card{border:1px solid #ede5f5;border-radius:4px;overflow:hidden;transition:border-color .2s,box-shadow .2s;display:flex;flex-direction:column}
.post-card:hover{border-color:#490E6F;box-shadow:0 4px 20px rgba(73,14,111,.08)}
.pc-img{height:160px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;flex-shrink:0}
.pc-img img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.pc-img-content{opacity:.22;display:flex;align-items:center;justify-content:center}
.pc-img-content svg{width:40px;height:40px;fill:#fff}
.pc-img-1{background:linear-gradient(135deg,#b89ad0,#490E6F 60%,#2d0845)}
.pc-img-2{background:linear-gradient(135deg,#7ab8d4,#1a5a7a)}
.pc-img-3{background:linear-gradient(135deg,#7ad4aa,#0a5a3a)}
.pc-img-4{background:linear-gradient(135deg,#d4c47a,#7a6a0a)}
.pc-img-5{background:linear-gradient(135deg,#d4907a,#7a2a0a)}
.pc-img-6{background:linear-gradient(135deg,#a87ad4,#3a0a7a)}
.pc-cat{position:absolute;top:10px;left:10px;background:rgba(73,14,111,.92);color:#fff;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:4px 10px;border-radius:2px;z-index:1}
.pc-body{padding:18px;display:flex;flex-direction:column;flex:1}
.pc-meta{font-size:10px;color:#aaa;letter-spacing:.04em;margin-bottom:8px}
.pc-title{font-family:'Cormorant Garamond',serif;font-size:19px;color:#1a1a1a;line-height:1.3;margin-bottom:8px;flex:1}
.pc-title a{color:inherit;text-decoration:none}
.pc-title a:hover{color:#490E6F}
.pc-excerpt{font-size:12px;color:#666;line-height:1.65;margin-bottom:14px}
.pc-footer{display:flex;align-items:center;justify-content:space-between;padding-top:12px;border-top:1px solid #ede5f5;margin-top:auto}
.pc-author{display:flex;align-items:center;gap:8px}
.pc-av{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Cinzel',serif;font-size:9px;color:#fff;font-weight:700;flex-shrink:0;background:linear-gradient(135deg,#c9a8e8,#490E6F)}
.pc-author-name{font-size:11px;color:#555;font-weight:600}
.pc-read-link{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#490E6F;text-decoration:none}

/* ── COMMUNITY GUIDES — LIGHT soft off-white ── */
.guides{padding:48px 40px;background:#faf8fc}
.guides-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-top:28px}
.guide-card{background:#fff;border:1px solid #ede5f5;border-radius:4px;overflow:hidden;transition:border-color .2s,box-shadow .2s;text-decoration:none;display:block}
.guide-card:hover{border-color:#490E6F;box-shadow:0 4px 16px rgba(73,14,111,.07)}
.gc-img{height:120px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:#1d0530}
.gc-img img{width:100%;height:100%;object-fit:cover;display:block}
.gc-img-1{background:linear-gradient(135deg,#c9a8e8,#490E6F)}
.gc-img-2{background:linear-gradient(135deg,#7ab8d4,#1a5a7a)}
.gc-img-3{background:linear-gradient(135deg,#a8d8c8,#1a6a5a)}
.gc-img-4{background:linear-gradient(135deg,#d4c47a,#7a6a0a)}
.gc-img-5{background:linear-gradient(135deg,#d4907a,#7a3a2a)}
.gc-img-6{background:linear-gradient(135deg,#b8d4a8,#3a6a2a)}
.gc-img svg{width:28px;height:28px;fill:rgba(255,255,255,.3)}
.gc-body{padding:14px 16px}
.gc-community{font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#490E6F;margin-bottom:5px}
.gc-title{font-family:'Cormorant Garamond',serif;font-size:16px;color:#1a1a1a;line-height:1.3}

/* PAGINATION (WordPress the_posts_pagination markup) */
.blog-pagination{padding:8px 40px 40px;background:#fff}
.blog-pagination .nav-links{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.blog-pagination .page-numbers{min-width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid #e0d0f0;background:#fff;font-size:13px;color:#555;border-radius:2px;font-weight:600;transition:all .2s;text-decoration:none;padding:0 8px}
.blog-pagination a.page-numbers:hover{border-color:#490E6F;color:#490E6F}
.blog-pagination .page-numbers.current{background:#490E6F;color:#fff;border-color:#490E6F}
.blog-pagination .page-numbers.dots{border:none}

/* EMPTY STATE */
.blog-empty{padding:64px 40px;text-align:center;color:#666;background:#fff;font-size:14px}

/* MOBILE */
@media(max-width:700px){
  .page-header,.featured,.blog-section,.guides,.blog-pagination{padding-left:16px;padding-right:16px}
  .ph-sub{text-align:left;max-width:none}
  .feat-inner{grid-template-columns:1fr}
  .feat-img-wrap{min-height:200px}
}

/* ============================================================
   FULLY CLICKABLE CARDS (company blog + agent pages)
   ============================================================
   Every link inside a post card — and inside the featured
   article — targets the same permalink, so a stretched-link
   overlay on the title link turns the whole block into one big
   click/tap target. Applies wherever these cards render
   (home.php company blog, single-entrepreneur.php Blog section).
   ============================================================ */
.post-card { position: relative; }
.post-card .pc-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.feat-inner { position: relative; }
.feat-inner .feat-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
