/* ============================================================
   Blog Page - Dedicated Styles
   ============================================================ */

/* ---- Hero ---- */
.bp-hero {
  background: var(--clr-white);
  padding: 160px 0 80px;
}

.bp-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.bp-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-gray-400);
  display: block;
  margin-bottom: var(--sp-4);
}

.bp-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--clr-dark);
  margin-bottom: var(--sp-5);
}

.bp-hero-muted {
  color: var(--clr-gray-400);
}

.bp-hero-desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--clr-gray-600);
  line-height: 1.7;
  max-width: 520px;
}

/* ---- Shared Inner ---- */
.bp-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* ---- Featured Post ---- */
.bp-featured {
  background: var(--clr-white);
  padding: 0 0 var(--section-py);
}

.bp-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.bp-featured-thumb {
  width: 100%;
  height: 400px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
}

.bp-featured-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.bp-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  background: var(--clr-dark);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.bp-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--clr-dark);
  line-height: 1.2;
}

.bp-featured-excerpt {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--clr-gray-600);
  line-height: 1.7;
}

.bp-featured-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--clr-gray-400);
}

/* ---- All Posts Section ---- */
.bp-posts {
  background: var(--clr-gray-50);
  padding: var(--section-py) 0;
}

.bp-section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: var(--sp-12);
}

/* ---- Masonry Grid ---- */
.bp-grid {
  columns: 3;
  column-gap: 32px;
}

.bp-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 32px;
  text-decoration: none;
  color: inherit;
  break-inside: avoid;
  transition: transform var(--transition-springy);
}

.bp-card:hover {
  transform: translateY(-4px);
  color: inherit;
}

.bp-card-thumb {
  width: 100%;
  border-radius: 28px;
  margin-bottom: var(--sp-5);
  background-size: cover;
  background-position: center;
}

.bp-card-thumb--tall {
  height: 320px;
}

.bp-card-thumb--medium {
  height: 260px;
}

.bp-card-thumb--short {
  height: 200px;
}

.bp-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-card-cat {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-dark);
}

.bp-card-title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--clr-dark);
  line-height: 1.25;
  transition: color var(--transition-std);
}

.bp-card:hover .bp-card-title {
  color: var(--clr-primary);
}

.bp-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--clr-gray-600);
  line-height: 1.6;
  margin-top: 4px;
}

.bp-card-meta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--clr-gray-400);
  margin-top: 4px;
}

/* ---- Article Content ---- */
.bp-articles {
  background: var(--clr-white);
  padding: var(--section-py) 0;
}

.bp-article {
  max-width: 720px;
  margin: 0 auto var(--sp-16);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--clr-gray-150);
}

.bp-article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bp-article-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}

.bp-article-meta {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--clr-gray-400);
  margin-bottom: var(--sp-8);
}

.bp-article-body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-gray-700);
  line-height: 1.8;
}

.bp-article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin: var(--sp-8) 0 var(--sp-4);
}

.bp-article-body p {
  margin-bottom: var(--sp-4);
}

.bp-article-body ul,
.bp-article-body ol {
  margin: 0 0 var(--sp-5) var(--sp-6);
}

.bp-article-body li {
  margin-bottom: var(--sp-2);
}

.bp-article-body a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-std);
}

.bp-article-body a:hover {
  color: var(--clr-primary-hover);
}

.bp-article-body strong {
  color: var(--clr-dark);
  font-weight: 600;
}

/* ---- CTA Banner ---- */
.bp-cta {
  background: var(--clr-white);
  padding: var(--section-py) 0;
}

.bp-cta-card {
  background: var(--grad-dark);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
}

.bp-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}

.bp-cta-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto var(--sp-8);
}

.bp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--clr-white);
  color: var(--clr-dark);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-std), transform var(--transition-springy), box-shadow var(--transition-std);
}

.bp-cta-btn:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* ---- Footer ---- */
.bp-footer {
  background: var(--clr-gray-50);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--clr-gray-150);
}

.bp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.bp-footer-logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--clr-navy);
  text-decoration: none;
}

.bp-footer-copy {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--clr-gray-500);
}

.bp-footer-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition-std);
}

.bp-footer-link:hover {
  color: var(--clr-primary-hover);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .bp-featured-card {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .bp-featured-thumb {
    height: 300px;
  }

  .bp-grid {
    columns: 2;
    column-gap: 24px;
  }
}

@media (max-width: 768px) {
  .bp-hero {
    padding: 120px 0 60px;
  }

  .bp-grid {
    columns: 1;
  }

  .bp-card {
    margin-bottom: 24px;
  }

  .bp-card-thumb--tall,
  .bp-card-thumb--medium,
  .bp-card-thumb--short {
    height: 220px;
  }

  .bp-featured-thumb {
    height: 240px;
  }

  .bp-cta-card {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .bp-card-thumb--tall,
  .bp-card-thumb--medium,
  .bp-card-thumb--short {
    height: 180px;
    border-radius: 18px;
  }

  .bp-featured-thumb {
    height: 200px;
    border-radius: 18px;
  }

  .bp-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .bp-hero { background: #0a0a0f; }
  .bp-hero-title { color: #f0f0f0; }
  .bp-hero-desc { color: #bbb; }

  .bp-featured { background: #0a0a0f; }
  .bp-featured-title { color: #f0f0f0; }
  .bp-featured-excerpt { color: #aaa; }
  .bp-pill { background: #e0e0e0; color: #0a0a0f; }

  .bp-posts { background: #0d0d15; }
  .bp-section-title { color: #f0f0f0; }

  .bp-card-cat { color: #ccc; }
  .bp-card-title { color: #f0f0f0; }
  .bp-card-excerpt { color: #aaa; }
  .bp-card-meta { color: #888; }

  .bp-articles { background: #0a0a0f; }
  .bp-article { border-bottom-color: #1e1e30; }
  .bp-article-title { color: #f0f0f0; }
  .bp-article-body { color: #ccc; }
  .bp-article-body h3 { color: #e0e0e0; }
  .bp-article-body strong { color: #f0f0f0; }

  .bp-cta { background: #0a0a0f; }

  .bp-footer { background: #0d0d15; border-top-color: #1e1e30; }
  .bp-footer-logo { color: #f0f0f0; }
  .bp-footer-copy { color: #888; }
}
