/* ═══════════════════════════════════════════════════
   BLOG MODULE — blog.css
   Tredimez Digital | Outdoor Advertising Blog
   Matches existing design system: variables from style.css
═══════════════════════════════════════════════════ */

/* ── BLOG LISTING PAGE ── */
.blog-list-hero {
  text-align: center;
  padding: 80px 60px 40px;
  max-width: 760px;
  margin: 0 auto;
}
.blog-list-hero .sh2 {
  font-size: clamp(32px, 4.5vw, 60px);
  margin-bottom: 16px;
}
.blog-hero-sub {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ── CATEGORY FILTER BAR ── */
.blog-cat-bar {
  padding: 0 40px 32px;
  overflow: hidden;
}
.blog-cat-scroll {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-cat-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  color: var(--text-mid);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(108,43,217,0.25);
}

/* ── FEATURED BLOG CARD ── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 40px 52px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.blog-feat-img {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.blog-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.blog-featured:hover .blog-feat-img img {
  transform: scale(1.04);
}
.blog-feat-body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-feat-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
  margin: 12px 0 14px;
}
.blog-feat-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
}
.blog-feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.blog-read-btn {
  align-self: flex-start;
}

/* ── META ROW ── */
.blog-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.blog-meta-row.sm { gap: 10px; }
.blog-date, .blog-author, .blog-read {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}
.blog-meta-row.sm .blog-date,
.blog-meta-row.sm .blog-read {
  font-size: 10px;
}

/* ── CATEGORY BADGE ── */
.blog-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--purple);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.blog-cat-badge.sm {
  font-size: 9px;
  padding: 4px 10px;
  top: 12px;
  left: 12px;
}

/* ── TAGS ── */
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(108,43,217,0.08);
  border: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--purple);
}

/* ── BLOG GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 40px 52px;
}

/* ── BLOG CARD ── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border2);
}
.blog-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.blog-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.45;
  margin: 10px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-arrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  transition: transform 0.2s ease;
}
.blog-card:hover .blog-arrow {
  transform: translateX(4px);
}

/* ── BLOG CTA SECTION ── */
.blog-cta-sec {
  padding: 60px 40px 80px;
}
.blog-cta-inner {
  background: linear-gradient(135deg, rgba(108,43,217,0.12), rgba(0,148,204,0.08));
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(16px);
  max-width: 800px;
  margin: 0 auto;
}
.blog-cta-inner .sh2 {
  font-size: clamp(28px, 3.5vw, 48px);
  margin: 12px 0 16px;
}
.blog-cta-inner p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   BLOG DETAIL PAGE
═══════════════════════════════════════════════════ */
.blog-detail-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 40px 80px;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── BACK BUTTON ROW — full width block so button never overlaps title ── */
.blog-back-row {
  display: block;
  width: 100%;
  clear: both;
  overflow: hidden;
}
.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  color: var(--text-mid);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  margin: 24px 0 24px;
  backdrop-filter: blur(10px);
}
.blog-back-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* ── BLOG DETAIL BANNER ── */
.blog-banner {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  position: relative;
  max-height: 460px;
}
.blog-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 460px;
}
.blog-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,16,53,0.55) 0%, transparent 55%);
}

/* ── BLOG DETAIL HEADER ── */
.blog-detail-header {
  margin-bottom: 32px;
}
.blog-detail-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.blog-detail-cat {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--purple);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.blog-detail-cat:hover { opacity: 0.85; }
.blog-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 18px;
}
.blog-detail-intro {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 36px;
  font-style: italic;
}

/* ── BLOG BODY CONTENT ── */
.blog-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 36px 0 14px;
  position: relative;
  padding-bottom: 10px;
}
.blog-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--grad2);
  border-radius: 2px;
}
.blog-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.blog-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 18px;
}
.blog-body img {
  width: 100%;
  border-radius: 14px;
  margin: 24px 0;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ── KEY HIGHLIGHTS BOX ── */
.blog-highlights {
  background: linear-gradient(135deg, rgba(108,43,217,0.07), rgba(0,148,204,0.05));
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 32px 0;
}
.blog-highlights h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.blog-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-highlights li {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.blog-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
  font-size: 12px;
}

/* ── CONCLUSION BOX ── */
.blog-conclusion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 36px 0;
  backdrop-filter: blur(10px);
}
.blog-conclusion h2 {
  margin-top: 0;
}

/* ── BLOG TAGS SECTION ── */
.blog-tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.blog-tags-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}

/* ── RELATED BLOGS ── */
.blog-related {
  margin: 40px 0;
}
.blog-related-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.blog-related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  gap: 0;
  flex-direction: column;
}
.blog-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-related-card:hover img {
  transform: scale(1.05);
}
.blog-related-body {
  padding: 16px 18px 18px;
}
.blog-related-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.blog-related-t {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── BLOG DETAIL CTA ── */
.blog-detail-cta {
  background: linear-gradient(135deg, var(--purple), #0094CC);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  margin: 40px 0 20px;
  color: #fff;
}
.blog-detail-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}
.blog-detail-cta h2::after { display: none; }
.blog-detail-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 28px;
}
.blog-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-cta-w {
  padding: 13px 28px;
  border-radius: 100px;
  background: #fff;
  color: var(--purple);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
}
.blog-cta-w:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.blog-cta-ghost {
  padding: 13px 28px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.22s ease;
}
.blog-cta-ghost:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ── BLOG FILTERED OUT ── */
.blog-card.hidden {
  display: none;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — BLOG
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-list-hero { padding: 60px 40px 32px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-feat-img { min-height: 280px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-detail-wrap { max-width: 100%; }
}

@media (max-width: 768px) {
  .blog-list-hero { padding: 48px 20px 24px; }
  .blog-cat-bar { padding: 0 20px 24px; }
  .blog-cat-scroll { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .blog-cat-scroll::-webkit-scrollbar { height: 3px; }
  .blog-featured { margin: 0 20px 36px; }
  .blog-feat-body { padding: 28px 24px; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 20px 40px; gap: 18px; }
  .blog-cta-sec { padding: 40px 20px 60px; }
  .blog-cta-inner { padding: 40px 24px; }
  .blog-detail-wrap { padding: 16px 16px 60px; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-detail-cta { padding: 36px 24px; }
  .blog-highlights { padding: 22px 20px; }
  .blog-conclusion { padding: 22px 20px; }
}

@media (max-width: 480px) {
  .blog-feat-img { min-height: 220px; }
  .blog-detail-title { font-size: 20px; }
  .blog-back-btn { margin: 16px 0 16px; }
  .blog-banner { border-radius: 14px; }
  .blog-detail-wrap { padding: 16px 16px 48px; }
  .blog-cta-btns { flex-direction: column; align-items: center; }
  .blog-cta-w, .blog-cta-ghost { width: 100%; max-width: 280px; }
}