/* ====================================================================
   Rodeo Graphics — blog.css
   (home.php blog index + shared sidebar widgets used by single.php too)
   ==================================================================== */

/* FEATURED POST */
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 3rem; }
.fp-img { aspect-ratio: 4/3; background: var(--gray-100); }
.fp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-body { padding: 1.5rem 2rem 1.5rem 0; }
.fp-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); background: var(--red-pale); padding: 0.25rem 0.7rem; border-radius: var(--r-pill); display: inline-block; margin-bottom: 0.75rem; }
.fp-body h2 { font-family: 'Sora', 'Sora Fallback', sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.6rem; }
.fp-body h2 a { text-decoration: none; color: var(--gray-900); }
.fp-meta { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.fp-body p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
.fp-link { font-size: 0.9rem; font-weight: 700; color: var(--red); text-decoration: none; }
.fp-link:hover { text-decoration: underline; }

/* BLOG LAYOUT */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }

/* POSTS GRID */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-bottom: 2.5rem; }
.post-card { border: 1px solid var(--gray-100); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.post-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pc-img { aspect-ratio: 16/10; background: var(--gray-100); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.pc-body { padding: 1.25rem; }
.pc-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); background: var(--red-pale); padding: 0.2rem 0.6rem; border-radius: var(--r-pill); display: inline-block; margin-bottom: 0.6rem; }
.pc-body h3 { font-family: 'Sora', 'Sora Fallback', sans-serif; font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.4rem; }
.pc-body h3 a { text-decoration: none; color: var(--gray-900); }
.pc-meta { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.6rem; }
.pc-body p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 0.6rem; }
.pc-link { font-size: 0.82rem; font-weight: 700; color: var(--red); text-decoration: none; }
.pc-link:hover { text-decoration: underline; }

/* PAGINATION (output of rg_pagination()) */
.rg-pagination { display: flex; justify-content: center; margin-top: 1rem; }
.rg-pagination ul { display: flex; gap: 0.4rem; list-style: none; }
.rg-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 0.5rem; border-radius: var(--r-md); border: 1.5px solid var(--gray-200); color: var(--gray-600); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.rg-pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }
.rg-pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.rg-pagination .page-numbers.dots { border: none; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { border: 1px solid var(--gray-100); border-radius: var(--r-lg); padding: 1.25rem; }
.sw-title { font-family: 'Sora', 'Sora Fallback', sans-serif; font-size: 0.95rem; font-weight: 800; margin-bottom: 1rem; }
.sw-search { display: flex; gap: 0.5rem; }
.sw-search input { flex: 1; border: 1.5px solid var(--gray-200); border-radius: var(--r-md); padding: 0.55rem 0.75rem; font-size: 0.875rem; font-family: inherit; }
.sw-search input:focus { outline: none; border-color: var(--red); }
.sw-search button { border: none; background: var(--red); color: #fff; border-radius: var(--r-md); padding: 0 0.85rem; cursor: pointer; }
.sw-cta { background: var(--gray-900); border-radius: var(--r-lg); padding: 1.5rem; color: #fff; }
.sw-cta h3 { font-family: 'Sora', 'Sora Fallback', sans-serif; font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.sw-cta p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 1.1rem; }
.cat-list { list-style: none; }
.cat-list li { margin-bottom: 0.1rem; }
.cat-list li a { display: flex; justify-content: space-between; padding: 0.55rem 0.25rem; font-size: 0.875rem; color: var(--gray-600); text-decoration: none; border-bottom: 1px solid var(--gray-50); }
.cat-list li a:hover { color: var(--red); }
.cat-count { color: var(--gray-400); font-size: 0.8rem; }
.recent-posts-list { display: flex; flex-direction: column; gap: 0.9rem; }
.recent-post-link { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; }
.recent-post-thumb { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.recent-post-thumb-ph { display: flex; align-items: center; justify-content: center; background: var(--gray-50); font-size: 1.4rem; }
.recent-post-title { display: block; font-size: 0.85rem; font-weight: 700; color: var(--gray-900); line-height: 1.4; }
.recent-post-date { display: block; font-size: 0.75rem; color: var(--gray-500); margin-top: 0.15rem; }

/* Custom RG_CTA_Widget output (inc/widgets.php) reuses the same look */
.rg-cta-widget { background: var(--gray-900); border-radius: var(--r-lg); padding: 1.5rem; color: #fff; }
.rg-cta-widget .rg-cta-widget-title { font-family: 'Sora', 'Sora Fallback', sans-serif; font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; }
.rg-cta-widget p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 1.1rem; }
.rg-cta-widget .btn-red { width: 100%; text-align: center; display: block; }

@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}
