/* ═══════════════════════════════════════════════════════
   blog.css  –  Deck&Co Blog page styles
   Page-specific only; base/header/footer in homepage.css
   ═══════════════════════════════════════════════════════ */

/* ── Page Hero ── */
.page-hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  background: var(--forest-dark);
  overflow: hidden;
  background-image: url('../images/blog/hero.webp');
  background-size: cover;
  background-position: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,59,43,0.88) 0%, rgba(26,26,26,0.72) 50%, rgba(44,59,43,0.65) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.page-hero__breadcrumb a:hover {
  color: rgba(255,255,255,0.8);
}
.page-hero__breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.4;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.page-hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--sand-light);
}
.page-hero__subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
}

/* ── Category Filter Bar ── */
.blog-filters {
  background: var(--sand-pale);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.blog-filters__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Boosted specificity to beat WoodMart base.min.css :is(.btn, .button, button)
   and Elementor kit post-61.css font-family override */
.deckco-blog .blog-filters__pill {
  display: inline-flex !important;
  align-items: center;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 0.03em !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
  border: 1px solid var(--border) !important;
  color: var(--charcoal) !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-transform: none !important;
}
.deckco-blog .blog-filters__pill:hover {
  background: var(--forest) !important;
  color: #fff !important;
  border-color: var(--forest) !important;
}
.deckco-blog .blog-filters__pill.active {
  background: var(--forest) !important;
  color: #fff !important;
  border-color: var(--forest) !important;
}

/* ── Image Placeholder ── */
.img-placeholder {
  width: 100%;
  background: var(--sand-pale);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.img-placeholder__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}

/* ── Editor's Pick Banner ── */
.editors-pick {
  padding: 48px 0 0;
}
.editors-pick__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand-pale);
  border: 1px dashed var(--border);
}
.editors-pick__image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.editors-pick__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editors-pick__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.45) 40%, rgba(26,26,26,0.05) 70%, transparent 100%);
  z-index: 1;
}
.editors-pick__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(24px, 4vw, 56px);
  max-width: 720px;
}
.editors-pick__pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--sand);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.editors-pick__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.editors-pick__excerpt {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  max-width: 520px;
}
.editors-pick__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.editors-pick__link:hover {
  gap: 14px;
  color: #fff;
}
.editors-pick__link svg {
  width: 16px;
  height: 16px;
}

/* ── Pull Quote ── */
.pull-quote {
  padding: clamp(48px, 6vw, 80px) 0;
}
.pull-quote__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.pull-quote__rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}
.pull-quote__icon {
  display: block;
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  color: var(--sand);
  opacity: 0.6;
}
.pull-quote__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding: 0 16px;
}
.pull-quote__attribution {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── Popular Posts Strip ── */
.popular-posts {
  background: var(--sand-pale);
  padding: clamp(40px, 5vw, 64px) 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.popular-posts__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.01em;
}
.popular-posts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.popular-post {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: 3px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.popular-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.popular-post__image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--sand-pale);
  border: 1px dashed var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.popular-post__image .img-placeholder__label {
  font-size: 8px;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.3;
  padding: 4px;
}
.popular-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.popular-post__info {
  flex: 1;
  min-width: 0;
}
.popular-post__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-post__date {
  font-size: 12px;
  color: var(--muted);
}

/* ── Read Time Icon ── */
.blog-card__read-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 2px;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Blog Grid ── */
.blog-grid-section {
  padding: var(--section-pad) 0;
}

/* Featured row: 2/3 + 1/3 */
.blog-grid--featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
  align-items: start;
}

/* Regular rows: 3 equal columns */
.blog-grid--regular {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
  align-items: start;
}

/* ── Blog Card ── */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.blog-card__image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: var(--sand-pale);
  overflow: hidden;
}
.blog-card__image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
  transition: transform 0.6s var(--ease-out);
}
.blog-card:hover .blog-card__image-inner {
  transform: scale(1.03);
}
.blog-card__image-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__image-inner svg,
.blog-card__image-label {
  display: none;
}
.blog-card__body {
  padding: 24px;
}
.blog-card__category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(74, 99, 73, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.blog-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 10px;
  transition: color 0.3s var(--ease);
}
.blog-card:hover .blog-card__title {
  color: var(--forest);
}
.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}

/* Featured card overrides */
.blog-card--featured .blog-card__image {
  padding-top: 65%;
}
.blog-card--featured .blog-card__image-inner svg {
  width: 64px;
  height: 64px;
}
.blog-card--featured .blog-card__image-label {
  font-size: 13px;
}
.blog-card--featured .blog-card__body {
  padding: 32px;
}
.blog-card--featured .blog-card__title {
  font-size: clamp(24px, 2.2vw, 32px);
  margin-bottom: 14px;
}
.blog-card--featured .blog-card__excerpt {
  font-size: 15px;
  -webkit-line-clamp: 3;
}

/* ── Load More ── */
.blog-load-more {
  text-align: center;
  padding: 0 0 var(--section-pad);
}
.blog-load-more .btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.blog-load-more .btn:hover svg {
  transform: translateY(2px);
}

/* ── Newsletter CTA ── */
.newsletter-cta {
  background: var(--sand-pale);
  padding: var(--section-pad) 0;
  text-align: center;
}
.newsletter-cta__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.newsletter-cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.newsletter-cta__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--forest);
}
.newsletter-cta__subtitle {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  color: var(--charcoal-soft);
  max-width: 520px;
  margin: 0 auto 32px;
}
.newsletter-cta__form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}
.newsletter-cta__input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.newsletter-cta__input::placeholder {
  color: var(--muted);
}
.newsletter-cta__input:focus {
  border-color: var(--forest);
}
.newsletter-cta__privacy {
  font-size: 12px;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-grid--featured {
    grid-template-columns: 1fr;
  }
  .blog-grid--regular {
    grid-template-columns: repeat(2, 1fr);
  }
  .popular-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editors-pick__banner {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: clamp(60px, 10vw, 100px) 0 clamp(40px, 6vw, 60px);
  }
  .page-hero__title {
    font-size: clamp(30px, 8vw, 44px);
  }
  .page-hero__subtitle {
    font-size: 14px;
    line-height: 1.6;
  }
  .blog-grid--featured {
    grid-template-columns: 1fr;
  }
  .blog-grid--regular {
    grid-template-columns: 1fr;
  }
  .newsletter-cta__form {
    flex-direction: column;
  }
  .newsletter-cta__input {
    width: 100%;
  }
  .popular-posts__grid {
    grid-template-columns: 1fr;
  }
  .editors-pick__banner {
    aspect-ratio: 1.5 / 1;
  }
  .editors-pick__title {
    font-size: clamp(22px, 5vw, 36px);
  }
}

@media (max-width: 480px) {
  .blog-filters__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .blog-filters__inner::-webkit-scrollbar {
    display: none;
  }
  .popular-post {
    flex-direction: column;
  }
  .popular-post__image {
    width: 100%;
    height: 120px;
  }
}
