/* =========================================================
   Publicity Resources Shortcodes — CSS (v1.3.0)
   =========================================================
   Notes:
   - We intentionally reuse your existing "pill" styles (style.css).
   - This CSS focuses on layout + card spacing + lane behavior.
   - Each section is isolated so you can replace chunks easily.
   ========================================================= */

/* =========================================================
   00) Variables
   ========================================================= */
:root{
  --earned: #f05126;
  --paid:   #f7e009;
  --shared: #4fc4ca;
  --owned:  #92c848;

  --pub-radius: 4px;
  --pub-gap: 18px;
}

/* =========================================================
   10) Shared layout helpers
   ========================================================= */
.pub-res-section{ padding:56px 0; }
.pub-res-inner{ max-width:1200px; margin:0 auto;}

.pub-eyebrow{ margin:0 0 8px 0; font-weight:800; }
.pub-h2{ margin:0 0 10px 0; }
.pub-h3{ margin:0; }
.pub-helper{ margin:0 0 18px 0; opacity:.85;  }

.pub-view-blog{ margin-top: 18px; }
.pub-view-blog a{ font-weight:800; text-decoration:none; }

/* Small pills on cards: just tighten spacing a bit */
.pub-card-pills{ margin-bottom: 10px; }

/* =========================================================
   20) Search
   ========================================================= */
.pub-search__wrap{ margin-top: 8px; }
.pub-search__form{ display:flex; gap:10px; align-items:center; }
.pub-search__input{
  flex:1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.2);
}
.pub-search__btn{
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  font-weight: 800;
  background: var(--accent, #111827);
  color:#fff;
}

/* =========================================================
   30) Pillars grid
   ========================================================= */
.pub-pillars-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pub-gap);
}
.pub-pillar-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  text-decoration:none;
  border-radius: var(--pub-radius);
  padding:22px;
  background: var(--base-2, #f7f9fb);
  color:#111;
  border:1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pub-pillar-card h3{ margin:0; }
.pub-pillar-card p{ margin:0; opacity:.9; }
.pub-pillars-cta{ margin-top:auto; font-weight:800; opacity:.9; }
.pub-pillar-card:hover,
.pub-pillar-card:focus{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* =========================================================
   40) Shared card building blocks
   ========================================================= */
/* Wide featured-image ratio (your posts are ~768/274) */
.pub-card__thumb--wide{
  display:block;
  aspect-ratio: 760 / 280;
  overflow:hidden;
}
.pub-card__thumb--wide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:0;
}

.pub-card__body{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex: 1; /* ADD THIS - fills available space */
  min-height: 0; /* ADD THIS - prevents flex bugs */
}

.pub-card__title{ margin:0; font-size:1.3rem; }
.pub-card__title a{ text-decoration:none; color:inherit; }
.pub-card__excerpt{ margin:0; opacity:.9; }

/* Author mini (magazine feel) */
.pub-author-mini{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 2px;
}
.pub-author-mini__link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: inherit;
}
.pub-author-mini__avatar{
  border-radius: 999px !important;
}
.pub-author-mini__name{
  font-weight: 800;
}
.pub-author-mini__meta{
  font-size: .9rem;
  opacity: .75;
  white-space: nowrap;
}

/* =========================================================
   50) Start Here (top3) — 3 big cards
   ========================================================= */
.pub-start-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pub-gap);
}
.pub-start-card{
  border-radius: var(--pub-radius);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

/* =========================================================
   60) Service Areas grid + channel accent
   ========================================================= */
.pub-service-grid{ display:grid; gap: var(--pub-gap); }
.pub-service-grid.pub-cols-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.pub-service-grid.pub-cols-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.pub-service-grid.pub-cols-4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.pub-service-grid.pub-cols-5{ grid-template-columns:repeat(5, minmax(0, 1fr)); }
.pub-service-grid.pub-cols-6{ grid-template-columns:repeat(6, minmax(0, 1fr)); }

.pub-service-card{
  position: relative;
  overflow: hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
  text-decoration:none;
  border-radius: var(--pub-radius);
  padding:22px;
  background: var(--base-2, #f7f9fb);
  color:#111;
  border:1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 100%;
}
.pub-service-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:6px;
  background: var(--owned);
  opacity: .95;
}
.pub-service-card[data-channel="earned"]::before{ background: var(--earned); }
.pub-service-card[data-channel="paid"]::before{ background: var(--paid); }
.pub-service-card[data-channel="shared"]::before{ background: var(--shared); }
.pub-service-card[data-channel="owned"]::before{ background: var(--owned); }

.pub-service-top{ display:flex; gap:10px; align-items:center; }
.pub-service-top i{ font-size:22px; line-height:1; }
.pub-service-card h3{ margin:0; font-size: 1.05rem; }
.pub-service-card p{ margin:0; opacity:.9; }
.pub-service-cta{ margin-top:auto; font-weight:800; opacity:.9; }

.pub-service-card:hover,
.pub-service-card:focus{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* =========================================================
   70) Pillar Highlights (2 featured + 6 headlines)
   ========================================================= */
.pub-pillar-highlights-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--pub-gap) * 1.25);
}

/* Each pillar block */
.pub-pillar-block{
  background: rgba(0,0,0,0.02);
  border-radius: var(--pub-radius);
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.05);
}
.pub-pillar-block__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.pub-pillar-block__all{
  font-weight:800;
  text-decoration:none;
  white-space: nowrap;
}

/* Featured cards inside pillar block */
.pub-featured-mini-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.pub-featured-mini{
  border-radius: 12px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
}

/* Headlines list */
.pub-headlines{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pub-headline__title{
  font-weight: 900;
  text-decoration:none;
}
.pub-headline__meta{
  margin-top: 4px;
  font-size: .9rem;
  opacity: .75;
  display:flex;
  gap:8px;
  align-items:center;
}
.pub-headline__dot{ opacity: .6; }

/* =========================================================
   80) Topic lanes (horizontal scroll)
   ========================================================= */
.pub-lane{ margin-top: 28px; }
.pub-lane__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 14px;
}
.pub-lane__desc{ margin:6px 0 0 0; opacity:.85; max-width: 760px; }
.pub-lane__all{ font-weight:800; text-decoration:none; white-space:nowrap; }

.pub-scroll-row{
  display:flex;
  gap: var(--pub-gap);
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Thin scrollbar + bigger thumb (best-effort across browsers) */
.pub-scroll-row::-webkit-scrollbar{ height: 10px; }
.pub-scroll-row::-webkit-scrollbar-track{ background: rgba(0,0,0,0.06); border-radius: 999px; }
.pub-scroll-row::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.25); border-radius: 999px; }
.pub-scroll-row{ scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.35) rgba(0,0,0,0.08); }

.pub-card{
  border-radius: var(--pub-radius);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}
.pub-card--scroll{
  flex: 0 0 calc((100% - (var(--pub-gap) * 2)) / 3); /* ~3 visible */
  scroll-snap-align: start;
}

/* =========================================================
   90) Latest Resources grid
   ========================================================= */
.pub-post-grid{
  display:grid;
  gap: var(--pub-gap);
}
.pub-post-grid.pub-post-cols-1{ grid-template-columns:1fr; }
.pub-post-grid.pub-post-cols-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.pub-post-grid.pub-post-cols-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.pub-post-grid.pub-post-cols-4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }

.pub-post-card{
  border-radius: var(--pub-radius);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

/* =========================================================
   95) Industries index
   ========================================================= */
.pub-industries-grid{
  display:grid;
  gap:12px;
  margin-top: 10px;
}
.pub-industries-grid.pub-industries-cols-1{ grid-template-columns:1fr; }
.pub-industries-grid.pub-industries-cols-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.pub-industries-grid.pub-industries-cols-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.pub-industries-grid.pub-industries-cols-4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }

.pub-industry-link{
  padding: 12px;
  border-radius: 4px;
  text-decoration:none;
  background: #f7f9fb;
  font-weight: 700;
  color: #595959;
}
.pub-industry-link:hover{ background: rgba(0,0,0,0.07); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px){
  .pub-pillars-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-start-grid{ grid-template-columns: 1fr; }

  .pub-service-grid.pub-cols-5{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pub-pillar-highlights-grid{ grid-template-columns: 1fr; }
  .pub-featured-mini-grid{ grid-template-columns: 1fr; }

  .pub-card--scroll{
    flex: 0 0 calc((100% - var(--pub-gap)) / 2); /* ~2 visible */
  }
}

@media (max-width: 760px){
  .pub-pillars-grid{ grid-template-columns: 1fr; }

  .pub-service-grid.pub-cols-5,
  .pub-service-grid.pub-cols-4,
  .pub-service-grid.pub-cols-3,
  .pub-service-grid.pub-cols-2{ grid-template-columns: 1fr; }

  .pub-lane__head{ flex-direction:column; align-items:flex-start; }

  .pub-card--scroll{ flex: 0 0 85%; } /* nice swipe on mobile */

  .pub-author-mini{
    flex-direction: column;
    align-items:flex-start;
  }
  .pub-author-mini__meta{ white-space: normal; }
}
/* =========================================================
   PILLAR TABS (new)
   ========================================================= */

/* Tabs row */
.pub-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 16px;
}

.pub-tab{
  border:1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
}

.pub-tab.is-active{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* Panels */
.pub-tabpanel{
  display:none;
}
.pub-tabpanel.is-active{
  display:block;
}

/* Optional: a small “View all” link aligned right inside panel */
.pub-pillar-panel__toplink{
  display:flex;
  justify-content:flex-end;
  margin-bottom: 12px;
}
.pub-pillar-panel__toplink a{
  font-weight: 900;
  text-decoration:none;
}
/* =========================================================
   Pillar Tabs – readability fix + 3-column panel layout
   ========================================================= */

/* Tabs row */
.pub-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 16px;
}

/* Inactive tabs: readable */
.pub-tab{
  border:1px solid rgba(0,0,0,0.20);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
  color: #111827;
  opacity: 1;
}

/* Active tab */
.pub-tab.is-active{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* Panels */
.pub-tabpanel{ display:none; }
.pub-tabpanel.is-active{ display:block; }

/* “View all” inside panel */
.pub-pillar-panel__toplink{
  display:flex;
  justify-content:flex-end;
  margin-bottom: 12px;
}
.pub-pillar-panel__toplink a{
  font-weight: 900;
  text-decoration:none;
}

/* 3-column panel grid: 2 featured + headlines column */
.pub-pillar-panel__grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 18px;
  align-items:start;
}

/* Headlines column */
.pub-pillar-panel__headlines{
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 16px;
}
.pub-headlines{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
}
.pub-headline{
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pub-headline:last-child{ border-bottom:none; }

.pub-headline__title{
  font-weight: 900;
  text-decoration:none;
}
.pub-headline__meta{
  margin-top: 4px;
  font-size: .9rem;
  opacity: .75;
  display:flex;
  gap:8px;
  align-items:center;
}

/* Compact byline (no avatar), one line */
.pub-byline{
  font-size: 13px;
  opacity: .78;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.pub-byline__author{
  font-weight: 800;
  max-width: 160px;         /* prevents wrap */
  overflow:hidden;
  text-overflow:ellipsis;
}
.pub-byline__dot{ opacity:.6; }

/* If you later use a 4-column card grid, drop read time:
   We'll handle this by passing show_read_time=false in PHP for that view.
*/

/* Responsive */
@media (max-width: 1100px){
  .pub-pillar-panel__grid{
    grid-template-columns: 1fr;
  }
  .pub-pillar-panel__headlines{
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 12px;
  }
}


/* =========================================================
   Publicity Blog Grid - CSS
   Integrates with publicity-resources.css
   ========================================================= */

/* =========================================================
   Grid Wrapper Layout
   ========================================================= */
.pub-blog-grid-wrapper {
  background: #fff;
}

/* =========================================================
   Featured Section & Divider
   ========================================================= */
.pub-featured-section {
	background-color: var(--base-2);
    margin-left: auto;
    margin-right: auto;
    max-width: 1480px;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    width: calc(100vw - 64px);
	padding:5rem 2rem;
}

/* Divider between featured and main grid */
.pub-res-explore-section{
	padding:4rem 2rem;
}
.pub-divider-section {
  background: #111827;
  color: #fff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.pub-divider-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  z-index: 0;
}

.pub-divider-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto;
}

.pub-divider-content h3 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  font-weight: 900;
}

.pub-divider-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

/* Main grid section */
.pub-main-grid-section {
  padding: 0rem 2rem 2rem 2rem;
}

.pub-main-grid-section .pub-res-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* =========================================================
   Filters Sidebar
   ========================================================= */
.pub-filters-sidebar {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 24px;
}

.pub-filter-group {
  margin-bottom: 32px;
}

.pub-filter-group:last-of-type {
  margin-bottom: 24px;
}

.pub-filter-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px 0;
  opacity: 0.75;
}

/* SearchWP Input Styling */
.facetwp-facet.facetwp-type-search {
  margin-bottom: 0;
}

.facetwp-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 14px;
}

.facetwp-search:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.1);
}

/* Checkbox Facets */
.facetwp-facet.facetwp-type-checkboxes .facetwp-checkbox,
.facetwp-facet.facetwp-type-dropdown .facetwp-dropdown .facetwp-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
	
}

.facetwp-facet.facetwp-type-checkboxes .facetwp-checkbox {
	line-height: 1.25em;
    padding-left: 30px;
}

.facetwp-facet.facetwp-type-checkboxes .facetwp-checkbox:hover,
.facetwp-facet.facetwp-type-dropdown .facetwp-dropdown .facetwp-checkbox:hover {
  opacity: 0.8;
}

.facetwp-facet.facetwp-type-checkboxes input[type="checkbox"],
.facetwp-facet.facetwp-type-dropdown input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.facetwp-facet.facetwp-type-checkboxes .facetwp-counter,
.facetwp-facet.facetwp-type-dropdown .facetwp-counter {
  margin-left: 4px;
  opacity: 0.5;
  font-size: 13px;
	line-height: 1.25em;
    padding-left: 30px;
}

/* Dropdown Facets */
.facetwp-facet.facetwp-type-dropdown select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.facetwp-facet.facetwp-type-dropdown select:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.1);
}

/* Reset Button */
.pub-reset-btn {
  width: 100%;
  padding: 12px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.pub-reset-btn:hover {
  background: #1f2937;
}

.pub-reset-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================
   Grid Content Area
   ========================================================= */
.pub-grid-content {
  min-height: 600px;
}

/* Loading state */
.facetwp-template.facetwp-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* No results message */
.pub-no-results {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  opacity: 0.75;
}

/* =========================================================
   Pagination
   ========================================================= */
.pub-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.facetwp-pager {
  display: flex;
  gap: 8px;
  align-items: center;
}

.facetwp-page {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  transition: all 0.2s ease;
}

.facetwp-page:hover {
  background: #f7f9fb;
  border-color: #111827;
}

.facetwp-page.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.facetwp-page.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* =========================================================
   Pills (matching existing style with categories)
   ========================================================= */
.pub-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}

.pill i {
  font-size: 10px;
}

/* Category pills - outlined style like "INSIGHTS", "GUIDES" */
.pill-category {
  background: #fff;
  color: #111;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

/* Service pills - channel colors (earned, paid, shared, owned) */
.pill-earned {
  background: rgba(240, 81, 38, 0.15);
  color: #c43e20;
  border: 1px solid rgba(240, 81, 38, 0.3);
}

.pill-paid {
  background: rgba(247, 224, 9, 0.25);
  color: #8a7500;
  border: 1px solid rgba(247, 224, 9, 0.4);
}

.pill-shared {
  background: rgba(79, 196, 202, 0.15);
  color: #2a7a7e;
  border: 1px solid rgba(79, 196, 202, 0.3);
}

.pill-owned {
  background: rgba(146, 200, 72, 0.15);
  color: #5a7a2d;
  border: 1px solid rgba(146, 200, 72, 0.3);
}

/* Default service pill (if no channel) */
.pill-service {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Industry pills - gray/neutral */
.pill-industry {
  background: rgba(0, 0, 0, 0.06);
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-transform: none;
}

/* Industry count (when more than 2) */
.pill-industry-count {
  background: rgba(0, 0, 0, 0.06);
  color: #555;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-transform: none;
  font-size: 10px;
}

/* =========================================================
   Post Meta (Date + Read Time)
   ========================================================= */
.pub-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin: 8px 0 12px 0;
}

.pub-post-meta__date,
.pub-post-meta__read {
  line-height: 1;
}

.pub-post-meta__dot {
  opacity: 0.5;
}

/* =========================================================
   Author Mini (Simpler version)
   ========================================================= */
.pub-author-mini {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.pub-author-mini__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.pub-author-mini__link:hover {
  opacity: 0.7;
}

.pub-author-mini__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.pub-author-mini__name {
  font-weight: 700;
  font-size: 14px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .pub-main-grid-section .pub-res-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .pub-filters-sidebar {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .pub-filter-group {
    margin-bottom: 0;
  }
  
  .pub-reset-btn {
    grid-column: 1 / -1;
  }
  
  .pub-divider-content h3 {
    font-size: 1.75rem;
  }
  
  .pub-divider-content p {
    font-size: 1rem;
  }
}

@media (max-width: 760px) {
  .pub-filters-sidebar {
    grid-template-columns: 1fr;
  }
  
  .pub-filter-group {
    margin-bottom: 20px;
  }
  
  .pub-reset-btn {
    margin-top: 8px;
  }
  
  .pub-main-grid-section {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  
  .pub-divider-section {
    padding: 32px 0;
  }
  
  .pub-divider-content h3 {
    font-size: 1.5rem;
  }
  
  .pub-divider-content p {
    font-size: 0.95rem;
  }
  
  .pub-post-meta {
    flex-wrap: wrap;
  }
}

/* =========================================================
   FacetWP Live Ajax Spinner (optional polish)
   ========================================================= */
.facetwp-loading-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  font-weight: 800;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.facetwp-loading-overlay::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fwp-spin 0.8s linear infinite;
}

@keyframes fwp-spin {
  to { transform: rotate(360deg); }
}

.pub-card__excerpt {
  margin: 0;
  opacity: .9;
  display: -webkit-box;
  -webkit-line-clamp: 10; /* Limit to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile: Collapsible Filters */
@media (max-width: 760px) {
  /* Hide filters by default on mobile */
  .pub-filters-sidebar {
    position: relative;
    top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: none;
    padding: 0;
  }
  
  /* Show filters when expanded */
  .pub-filters-sidebar.is-expanded {
    max-height: 2000px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 20px;
  }
  
  /* Add a toggle button for mobile */
  .pub-filters-toggle {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 20px;
    cursor: pointer;
  }
  
  .pub-filters-toggle::after {
    content: ' ▼';
    float: right;
  }
  
  .pub-filters-toggle.is-active::after {
    content: ' ▲';
  }
  
  /* Keep search visible */
  .pub-filter-group:first-child {
    display: block !important;
  }
	/* Make filters stack in single column */
  .pub-filters-sidebar {
    grid-template-columns: 1fr;
  }
  
  /* Collapse filters by default */
  .pub-filters-sidebar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
    border: none;
    background: transparent;
  }
  
  /* Show when expanded */
  .pub-filters-sidebar.is-expanded {
    max-height: 2000px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    margin-bottom: 16px;
    background: #fff;
  }
  
  /* Toggle button */
  .pub-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #4fc4ca;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .pub-filters-toggle:active {
    transform: translateY(1px);
  }
  
  .pub-filters-toggle i {
    font-size: 16px;
  }
  
  /* Force 1 column grid */
  .pub-post-grid,
  .pub-start-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Checkboxes on mobile */
  .facetwp-facet.facetwp-type-checkboxes .facetwp-checkbox {
    padding: 10px 0;
  }

}

/* Hide toggle button on desktop */
@media (min-width: 761px) {
  .pub-filters-toggle {
    display: none;
  }
}

css/* =========================================================
   Mobile: Simplified Filters
   ========================================================= */
@media (max-width: 760px) {
  /* Make filters stack in single column */
  .pub-filters-sidebar {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  /* Optional: Collapse filters behind a button */
  .pub-filters-sidebar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
    border: none;
  }
  
  .pub-filters-sidebar.is-expanded {
    max-height: 2000px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 16px;
  }
  
  /* Add mobile filter toggle button */
  .pub-mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 16px;
    cursor: pointer;
  }
  
  .pub-mobile-filter-toggle i {
    font-size: 16px;
  }
  
  /* Checkboxes stay checkboxes, just styled for mobile */
  .facetwp-facet.facetwp-type-checkboxes .facetwp-checkbox {
    padding: 10px 0;
  }

  /* Force 1 column grid on mobile */
  .pub-post-grid,
  .pub-start-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hide mobile toggle on desktop */
@media (max-width: 761px) {
  .pub-filters-toggle {
    display: none!important;
  }
	.pub-res-inner { padding: 0; }	
	.pub-divider-content { padding: 0 20px; }
}

/* ====================================================================
   COPY-PASTE: Default Image Placeholder - CSS Gradient
   ==================================================================== */

/* -------------------- PHP CODE -------------------- */
/* Replace the thumbnail section in BOTH places:
   1. Featured posts (around line 910)
   2. Grid posts (around line 960)
*/

<a href="<?php the_permalink(); ?>" class="pub-card__thumb--wide">
    <?php if (has_post_thumbnail()) : ?>
        <?php the_post_thumbnail('large'); ?>
    <?php else : ?>
        <div class="pub-card__thumb-placeholder">
            <svg class="pub-placeholder-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                <path d="M12 19l7-7 3 3-7 7-3-3z"></path>
                <path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path>
                <path d="M2 2l7.586 7.586"></path>
                <circle cx="11" cy="11" r="2"></circle>
            </svg>
        </div>
    <?php endif; ?>
</a>


/* -------------------- CSS CODE -------------------- */
/* Add to publicity-resources.css (around line 800) */

/* Default Image Placeholder - Gradient */
.pub-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #4fc4ca 0%, #92c848 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.pub-card__thumb-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255,255,255,0.03) 10px,
      rgba(255,255,255,0.03) 20px
    );
}

/* Icon in center */
.pub-placeholder-icon {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Hover effect */
.pub-card__thumb--wide:hover .pub-card__thumb-placeholder {
  background: linear-gradient(135deg, #5fd4da 0%, #a2d858 100%);
}

.pub-card__thumb--wide:hover .pub-placeholder-icon {
  color: rgba(255, 255, 255, 0.7);
  transform: scale(1.05);
  transition: all 0.3s ease;
}


/* ====================================================================
   ALTERNATIVE GRADIENT OPTIONS (Pick one, replace background: line)
   ==================================================================== */

/* Option A: Red to Yellow (Earned → Paid) */
background: linear-gradient(135deg, #f05126 0%, #f7e009 100%);

/* Option B: All 4 Brand Colors */
background: linear-gradient(135deg, #f05126 0%, #f7e009 25%, #4fc4ca 50%, #92c848 100%);

/* Option C: Professional Gray */
background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);

/* Option D: Blue Corporate */
background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);