/* ==========================================================================
   blog.css — Access Level Up | Blog Page
   Path: wp-content/themes/maaz-developer/css/blog.css
   ========================================================================== */

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
.alu-blog {
  --ba-purple:      #149a8e;
  --ba-purple-600:  #0f8579;
  --ba-purple-deep: #16313f;
  --ba-violet-band: #21465a;
  --ba-lav-50:      #f1f7f6;
  --ba-lav-100:     #e2efed;
  --ba-lav-200:     #c7e1dd;
  --ba-ink:         #173140;
  --ba-body:        #4a5b62;
  --ba-line:        #d8e8e5;
  --ba-radius:      14px;
  --ba-radius-sm:   10px;
  --ba-shadow:      0 18px 40px -18px rgba(20,49,63,.26);
  --ba-shadow-sm:   0 8px 22px -12px rgba(20,49,63,.18);
  --ba-font-head:   'Poppins', system-ui, sans-serif;
  --ba-font-body:   'Inter', system-ui, sans-serif;
  font-family: var(--ba-font-body);
  color: var(--ba-body);
}

/* ── Shared ────────────────────────────────────────────────────────────────── */
.blg-wrap  { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

.blg-eyebrow {
  font-family: var(--ba-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ba-purple);
  display: block;
  margin-bottom: 12px;
}
.blg-eyebrow-light { color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.blg-hero {
  position: relative;
  background: var(--ba-purple-deep);
  padding: 90px 0 72px;
  overflow: hidden;
}

.blg-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .15;
}
.blg-blob-1 {
  width: 500px; height: 500px;
  background: var(--ba-purple);
  top: -160px; left: -100px;
}
.blg-blob-2 {
  width: 380px; height: 380px;
  background: #0f8579;
  bottom: -80px; right: -60px;
}

.blg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.blg-hero .blg-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.blg-hero-inner { flex: 1; min-width: 280px; }

.blg-hero h1 {
  font-family: var(--ba-font-head);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.blg-hero h1 span { color: var(--ba-purple); }

.blg-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  max-width: 520px;
}

.blg-hero-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.blg-hstat {
  text-align: center;
  padding: 18px 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--ba-radius);
  min-width: 80px;
}
.blg-hstat strong {
  display: block;
  font-family: var(--ba-font-head);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.blg-hstat span {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════
   FILTER BAR
═══════════════════════════════════ */
.blg-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--ba-line);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px -4px rgba(20,49,63,.1);
}

.blg-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.blg-filters::-webkit-scrollbar { display: none; }

.blg-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--ba-font-head);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--ba-line);
  color: var(--ba-body);
  background: #fff;
  transition: all .18s ease;
}
.blg-filter-pill:hover {
  border-color: var(--ba-purple);
  color: var(--ba-purple);
}
.blg-filter-pill.active {
  background: var(--ba-purple);
  border-color: var(--ba-purple);
  color: #fff;
}

.blg-pill-count {
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
}
.blg-filter-pill.active .blg-pill-count {
  background: rgba(255,255,255,.2);
}

/* ═══════════════════════════════════
   POSTS SECTION
═══════════════════════════════════ */
.blg-posts-section {
  background: var(--ba-lav-50);
  padding: 72px 0 88px;
  min-height: 60vh;
}

/* ── Meta shared ─────────────────── */
.blg-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.blg-cat-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--ba-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ba-lav-100);
  color: var(--ba-purple);
  border: 1px solid var(--ba-lav-200);
  transition: background .15s, color .15s;
}
.blg-cat-badge:hover { background: var(--ba-purple); color: #fff; }
.blg-cat-featured {
  background: rgba(20,154,142,.12);
  border-color: rgba(20,154,142,.25);
}
.blg-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ba-body);
  opacity: .4;
}
.blg-time, .blg-read {
  font-size: 12.5px;
  color: var(--ba-body);
}

/* ── FEATURED POST ────────────────── */
.blg-featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ba-shadow);
  margin-bottom: 40px;
  border: 1px solid var(--ba-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blg-featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -20px rgba(20,49,63,.32);
}

.blg-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.blg-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.blg-featured-post:hover .blg-featured-img img { transform: scale(1.04); }
.blg-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,49,63,.08) 0%, transparent 60%);
}

.blg-featured-body {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blg-featured-title {
  font-family: var(--ba-font-head);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.blg-featured-title a {
  color: var(--ba-ink);
  text-decoration: none;
  transition: color .15s;
}
.blg-featured-title a:hover { color: var(--ba-purple); }

.blg-featured-excerpt {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ba-body);
  margin-bottom: 28px;
  flex: 1;
}

.blg-featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.blg-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ba-ink);
}
.blg-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.blg-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ba-purple);
  color: #fff;
  font-family: var(--ba-font-head);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.blg-read-btn svg { width: 15px; height: 15px; }
.blg-read-btn:hover { background: var(--ba-purple-600); transform: translateX(2px); }

/* ── POSTS GRID ───────────────────── */
.blg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── POST CARD ────────────────────── */
.blg-card {
  background: #fff;
  border: 1px solid var(--ba-line);
  border-radius: var(--ba-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ba-shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.blg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ba-shadow);
}

.blg-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ba-lav-100);
}
.blg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blg-card:hover .blg-card-img img { transform: scale(1.06); }

.blg-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,49,63,.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}
.blg-card:hover .blg-card-img-overlay { opacity: 1; }

.blg-card-img--placeholder { display: flex; align-items: center; justify-content: center; }
.blg-placeholder-inner {
  width: 60px; height: 60px;
  background: var(--ba-lav-200);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ba-purple);
}
.blg-placeholder-inner svg { width: 28px; height: 28px; }

.blg-card-body {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blg-card-title {
  font-family: var(--ba-font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  flex: 1;
}
.blg-card-title a {
  color: var(--ba-ink);
  text-decoration: none;
  transition: color .15s;
}
.blg-card-title a:hover { color: var(--ba-purple); }

.blg-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ba-body);
  margin-bottom: 18px;
}

.blg-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--ba-line);
  padding-top: 14px;
  margin-top: auto;
}
.blg-card-foot time {
  font-size: 12.5px;
  color: var(--ba-body);
  opacity: .7;
}
.blg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ba-font-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ba-purple);
  text-decoration: none;
  transition: gap .18s;
}
.blg-card-link svg { width: 13px; height: 13px; }
.blg-card-link:hover { gap: 8px; }

/* ── NO POSTS ─────────────────────── */
.blg-empty {
  text-align: center;
  padding: 80px 24px;
}
.blg-empty-icon {
  width: 72px; height: 72px;
  background: var(--ba-lav-100);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--ba-purple);
  margin: 0 auto 24px;
}
.blg-empty-icon svg { width: 36px; height: 36px; }
.blg-empty h2 {
  font-family: var(--ba-font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--ba-ink);
  margin-bottom: 10px;
}
.blg-empty p {
  font-size: 15.5px;
  color: var(--ba-body);
  margin-bottom: 28px;
}

/* ── PAGINATION ───────────────────── */
.blg-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.blg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-family: var(--ba-font-head);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ba-body);
  background: #fff;
  border: 1.5px solid var(--ba-line);
  transition: all .18s;
}
.blg-pagination .page-numbers:hover {
  border-color: var(--ba-purple);
  color: var(--ba-purple);
}
.blg-pagination .page-numbers.current {
  background: var(--ba-purple);
  border-color: var(--ba-purple);
  color: #fff;
}
.blg-pagination .prev,
.blg-pagination .next {
  width: auto;
  padding: 0 18px;
  font-size: 13px;
}

/* ═══════════════════════════════════
   CTA BAND
═══════════════════════════════════ */
.blg-cta {
  background: var(--ba-violet-band);
  padding: 80px 0;
}

.blg-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.blg-cta-copy { flex: 1; }
.blg-cta-copy h2 {
  font-family: var(--ba-font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.blg-cta-copy p {
  font-size: 15.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  max-width: 500px;
}
.blg-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  flex-shrink: 0;
}
.blg-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  font-family: var(--ba-font-head);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.blg-cta-link svg { width: 14px; height: 14px; }
.blg-cta-link:hover { color: #fff; border-color: rgba(255,255,255,.7); }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .blg-featured-post     { grid-template-columns: 1fr; }
  .blg-featured-img      { min-height: 280px; }
  .blg-featured-body     { padding: 32px 36px; }
  .blg-grid              { grid-template-columns: repeat(2, 1fr); }
  .blg-cta-inner         { flex-direction: column; align-items: flex-start; }
  .blg-hero .blg-wrap    { flex-direction: column; }
  .blg-hero-stats        { gap: 14px; }
}

@media (max-width: 680px) {
  .blg-hero              { padding: 70px 0 56px; }
  .blg-hero h1           { font-size: 32px; }
  .blg-grid              { grid-template-columns: 1fr; }
  .blg-featured-body     { padding: 26px 22px; }
  .blg-featured-foot     { flex-direction: column; align-items: flex-start; }
  .blg-posts-section     { padding: 48px 0 64px; }
  .blg-hstat             { padding: 12px 16px; }
  .blg-hstat strong      { font-size: 22px; }
  .blg-cta               { padding: 60px 0; }
  .blg-cta-actions       { width: 100%; }
  .blg-cta-actions .ba-btn { width: 100%; justify-content: center; }
  .blg-pagination .page-numbers { width: 36px; height: 36px; }
}
