/* ===================== BLOG PAGE CSS ===================== */

/* Hero */
.blog-hero {
  padding: 56px 0 32px;
  text-align: center;
  background: #fff;
}
.blog-hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
}
.blog-hero-desc {
  font-size: 15px;
  color: #888;
  margin: 0 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.blog-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 16px;
  background: #fafafa;
}
.blog-search-wrap .fas { color: #aaa; font-size: 14px; }
.blog-search-input {
  border: none;
  background: none;
  font-size: 14px;
  color: #333;
  font-family: 'Manrope', sans-serif;
  width: 100%;
}
.blog-search-input:focus { outline: none; }

/* ===================== FEATURED POSTS ===================== */
.blog-featured { padding: 32px 0 48px; background: #fff; }
.blog-featured-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: flex-start;
}

.blog-featured-main { position: relative; }
.blog-featured-link { display: block; text-decoration: none; }
.blog-featured-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.blog-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-featured-link:hover .blog-featured-img-wrap img { transform: scale(1.03); }

.blog-featured-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-tag {
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.blog-tag-cat { background: #b01733; }

.blog-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 40px 20px 20px;
  color: #fff;
}
.blog-featured-overlay h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
}
.blog-featured-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.5;
}

/* Side featured posts */
.blog-featured-side { display: flex; flex-direction: column; gap: 16px; }
.blog-featured-side-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}
.blog-side-list { display: flex; flex-direction: column; gap: 12px; }
.blog-side-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.blog-side-item:hover { opacity: 0.8; }
.blog-side-item img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.blog-side-text h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin: 0;
  line-height: 1.4;
}

/* ===================== RECENT POSTS ===================== */
.blog-recent { padding: 48px 0; background: #fff; border-top: 1px solid #f0f0f0; }
.blog-section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin: 0 0 24px;
}
.blog-recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.blog-recent-left { display: flex; flex-direction: column; gap: 20px; }
.blog-recent-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  align-items: flex-start;
  transition: opacity 0.2s;
}
.blog-recent-item:hover { opacity: 0.85; }
.blog-recent-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.blog-recent-text { flex: 1; }
.blog-recent-cats { font-size: 11px; color: #b01733; font-weight: 600; margin-bottom: 4px; }
.blog-recent-text h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.4;
}
.blog-recent-text p { font-size: 12px; color: #888; line-height: 1.5; margin: 0 0 6px; }
.blog-recent-date { font-size: 11px; color: #aaa; display: flex; align-items: center; gap: 5px; }

.blog-recent-right { }
.blog-recent-large { display: block; text-decoration: none; }
.blog-recent-large-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 220px;
}
.blog-recent-large-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-recent-large-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-recent-large-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 40px 20px 20px;
  color: #fff;
}
.blog-recent-large-overlay h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.blog-recent-large-overlay p { font-size: 12px; color: rgba(255,255,255,0.85); margin: 0; }

/* ===================== ALL BLOG POSTS ===================== */
.blog-all { padding: 48px 0; background: #fff; border-top: 1px solid #f0f0f0; }
.blog-all-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.blog-all-header .blog-section-title { margin: 0; }

.blog-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.blog-filter-tab {
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.blog-filter-tab:hover { border-color: #b01733; color: #b01733; }
.blog-filter-tab.active {
  background: #b01733;
  border-color: #b01733;
  color: #fff;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #f0f0f0;
  transition: box-shadow 0.2s;
  background: #fff;
}
.blog-post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.blog-post-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-post-card:hover .blog-post-img-wrap img { transform: scale(1.04); }
.blog-post-date-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.blog-post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.blog-post-cats { font-size: 11px; color: #b01733; font-weight: 600; }
.blog-post-body h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.4;
}
.blog-post-body p {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.blog-read-more {
  font-size: 12px;
  color: #b01733;
  font-weight: 600;
  margin-top: 4px;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page-btn:hover { border-color: #b01733; color: #b01733; }
.page-btn.active { background: #b01733; border-color: #b01733; color: #fff; }
.page-prev, .page-next { font-size: 12px; }
.page-dots { font-size: 14px; color: #aaa; padding: 0 4px; }

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .blog-hero-title { font-size: 28px; }

  /* Featured grid: stack to single column */
  .blog-featured-grid {
    grid-template-columns: 1fr;
  }

  /* Recent grid: stack to single column */
  .blog-recent-grid {
    grid-template-columns: 1fr;
  }
  .blog-recent-large-img {
    height: 220px;
    min-height: unset;
  }

  /* All posts grid: 2 columns */
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Filter tabs: allow wrapping neatly */
  .blog-all-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-filter-tabs { gap: 6px; }
  .blog-filter-tab { font-size: 12px; padding: 6px 12px; }
}
