/* ===== BLOG HERO ===== */
.blog-hero {
  padding: 140px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, #FDF5E6 0%, #fff 100%);
}

.blog-hero__title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 16px;
}

.blog-hero__sub {
  font-size: 1.15rem;
  color: #6B5E52;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CATEGORIES NAV ===== */
.blog-categories {
  padding: 24px 0;
  border-bottom: 1px solid #EDE0D0;
  background: #fff;
  position: sticky;
  top: 72px;
  z-index: 90;
}

.blog-categories__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.blog-categories__track::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #EDE0D0;
  background: #FAFAF8;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B5E52;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-pill:hover {
  border-color: #B8722A;
  color: #B8722A;
}

.cat-pill--active {
  background: #B8722A;
  color: #fff;
  border-color: #B8722A;
}

.cat-pill--active:hover {
  background: #a0642a;
  color: #fff;
}

/* ===== FEATURED POST ===== */
.blog-featured {
  padding: 48px 0;
  background: #fff;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  background: #FAFAF8;
  border: 1px solid #EDE0D0;
}

.featured-post__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.featured-post__body {
  padding: 32px 32px 32px 0;
}

.featured-post__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: #FDF5E6;
  border: 1px solid #EDE0D0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #B8722A;
  margin-bottom: 16px;
}

.featured-post__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-post__excerpt {
  font-size: 0.95rem;
  color: #6B5E52;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #A99E93;
}

.featured-post__author {
  font-weight: 600;
  color: #6B5E52;
}

.featured-post__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #A99E93;
}

/* ===== LATEST POSTS ===== */
.blog-latest {
  padding: 60px 0;
  background: #fff;
}

.blog-latest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FAFAF8;
  border: 1px solid #EDE0D0;
  border-radius: 12px;
  padding: 10px 16px;
  width: 280px;
}

.blog-search svg {
  flex-shrink: 0;
  color: #6B5E52;
}

.blog-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  width: 100%;
}

.blog-search input::placeholder {
  color: #A99E93;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #EDE0D0;
  background: #FAFAF8;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 26, 14, 0.1);
}

.post-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #EDE0D0, #FDF5E6);
}

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: #B8722A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: 0.85rem;
  color: #6B5E52;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #A99E93;
}

.post-card__author {
  font-weight: 600;
  color: #6B5E52;
}

.post-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #A99E93;
}

.posts-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6B5E52;
}

/* ===== POPULAR POSTS ===== */
.blog-popular {
  padding: 60px 0;
  background: #FAFAF8;
}

.blog-popular__header {
  margin-bottom: 32px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.popular-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #EDE0D0;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.popular-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 26, 14, 0.08);
}

.popular-card__img {
  width: 140px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #EDE0D0, #FDF5E6);
}

.popular-card__body {
  flex: 1;
  min-width: 0;
}

.popular-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-card__meta {
  font-size: 0.78rem;
  color: #A99E93;
}

.popular-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #B8722A;
  background: #FDF5E6;
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 6px;
}

/* ===== SEARCH BY GOAL ===== */
.blog-goals {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.blog-goals .section-title {
  margin-bottom: 32px;
}

.goals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.goal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1px solid #EDE0D0;
  background: #FAFAF8;
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.goal-chip:hover {
  border-color: #B8722A;
  color: #B8722A;
  background: #FDF5E6;
}

.goal-chip svg {
  color: #B8722A;
}

/* ===== TOOLS GRID ===== */
.blog-tools {
  padding: 80px 0;
  background: #FAFAF8;
}

.blog-tools .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #EDE0D0;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 26, 14, 0.08);
}

.tool-card__icon {
  margin-bottom: 20px;
}

.tool-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.tool-card__text {
  font-size: 0.92rem;
  color: #6B5E52;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #B8722A;
  text-decoration: none;
  transition: gap 0.2s;
}

.tool-card__link:hover {
  gap: 10px;
}

/* ===== COMMUNITY CTA ===== */
.blog-community {
  padding: 80px 0;
  background: #fff;
}

.community-card {
  text-align: center;
  padding: 60px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2C1A0E 0%, #4A2F1A 100%);
  color: #fff;
}

.community-card__title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.community-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.community-badge {
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  gap: 8px;
  display: inline-flex;
  align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 120px 0 40px;
  }
  .blog-hero__title {
    font-size: 2.2rem;
  }
  .blog-categories {
    top: 60px;
  }
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post__img {
    height: 240px;
  }
  .featured-post__body {
    padding: 24px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .popular-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .blog-latest__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-search {
    width: 100%;
  }
  .community-card {
    padding: 40px 24px;
  }
  .community-card__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .blog-hero__title {
    font-size: 1.8rem;
  }
  .popular-card {
    flex-direction: column;
  }
  .popular-card__img {
    width: 100%;
    height: 160px;
  }
  .goals-grid {
    gap: 8px;
  }
  .goal-chip {
    padding: 10px 16px;
    font-size: 0.82rem;
  }
}
