/* ==========================================================================
   PPCTrace - Blog Page Styles
   (Loads alongside common.css)
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.bl-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--bluelt) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.bl-hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 12px;
}
.bl-hero h1 span { color: var(--blue); }
.bl-hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.bl-main {
  padding: 52px 0 80px;
}

/* ==========================================================================
   Featured Post
   ========================================================================== */
.post-featured {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.post-featured-img {
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.post-img-icon { font-size: 48px; opacity: .18; }
.post-img-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.post-featured-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  background: var(--ba06);
  border: 1px solid var(--ba15);
  border-radius: 100px;
  padding: 3px 10px;
  width: fit-content;
}
.post-featured-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
.post-featured-body h2 a {
  color: inherit;
  transition: color .15s;
}
.post-featured-body h2 a:hover { color: var(--blue); }

.post-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted2);
}
.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted2);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 2px;
  transition: gap .15s;
}
.read-more:hover { gap: 8px; color: var(--blue); }

/* ==========================================================================
   Regular Post Items
   ========================================================================== */
.post-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.post-item:last-of-type { border-bottom: none; }

.post-thumb {
  background: var(--bluelt);
  border: 1px solid var(--border);
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.post-body h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
.post-body h3 a { color: inherit; transition: color .15s; }
.post-body h3 a:hover { color: var(--blue); }
.post-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.post-body .post-meta { margin-top: 2px; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.bl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 78px;
}

.sidebar-card {
  background: var(--bluelt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.sidebar-card.cta-card {
  border-color: rgba(24, 71, 194, .16);
  background: #fff;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--text);
  margin-bottom: 14px;
}

/* Categories */
.cat-list { display: flex; flex-direction: column; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  cursor: default;
  transition: color .15s;
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { color: var(--blue); }
.cat-item strong { color: var(--text); font-weight: 600; }
.cat-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--ba06);
  border: 1px solid var(--ba15);
  border-radius: 100px;
  padding: 2px 8px;
}

/* Newsletter card */
.nl-card {
  background: var(--blue);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.nl-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
}
.nl-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.nl-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.nl-input {
  width: 100%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.nl-input::placeholder { color: rgba(255, 255, 255, .4); }
.nl-btn {
  width: 100%;
  background: #fff;
  color: var(--blue);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background .15s;
}
.nl-btn:hover { background: #f0f4ff; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--ba06);
  border: 1px solid var(--ba15);
  border-radius: 100px;
  padding: 4px 12px;
  cursor: default;
  transition: background .15s;
}
.tag:hover { background: var(--ba10); }

/* Sidebar CTA card */
.cta-card-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.cta-card-btn {
  display: block;
  text-align: center;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  transition: background .15s;
}
.cta-card-btn:hover { color: #fff; background: var(--blue2); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
  transition: all .15s;
}
.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.page-btn.arrow { font-size: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .bl-sidebar { position: static; }
}
@media (max-width: 767px) {
  .bl-hero { padding: 36px 0 32px; }
  .bl-main { padding: 32px 0 60px; }
  .post-featured-body h2 { font-size: 20px; }
}
