/* ══════════════════════════════════════════════════════
   BLOG — Listing & Detail  (matches site dark theme)
   ══════════════════════════════════════════════════════ */

/* ── Page Hero Banner ──────────────────────────────── */
.blog-hero {
  padding: 160px 40px 80px;
  text-align: center;
  background: #0d0d0d;
  position: relative;
}
.blog-hero::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #f5c200;
  margin: 22px auto 0;
  border-radius: 2px;
}
.blog-hero .label {
  font-family: 'M', sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f5c200;
  margin-bottom: 14px;
}
.blog-hero h1 {
  font-family: 'B', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.15;
}
.blog-hero p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Blog Listing Section ──────────────────────────── */
.blog-section {
  background: #0d0d0d;
  padding: 40px 40px 100px;
}
.blog-grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Search + Filter bar ───────────────────────────── */
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.blog-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 40px;
  padding: 10px 18px;
  gap: 10px;
  width: 280px;
}
.blog-search svg { flex-shrink: 0; opacity: .5; }
.blog-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'R', sans-serif;
  font-size: .9rem;
  width: 100%;
}
.blog-search input::placeholder { color: rgba(255,255,255,.35); }
.blog-count { font-size: .85rem; color: rgba(255,255,255,.4); }

/* ── Cards Grid ────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: #161616;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,194,0,.3);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #222;
}
.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img-placeholder svg { opacity: .2; }

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.blog-card-date {
  font-size: .75rem;
  color: #f5c200;
  font-family: 'M', sans-serif;
  letter-spacing: .05em;
}
.blog-card-title {
  font-family: 'B', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-read-more {
  font-family: 'M', sans-serif;
  font-size: .82rem;
  color: #f5c200;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.blog-card:hover .blog-read-more { gap: 10px; }

/* ── Empty / No Posts ──────────────────────────────── */
.blog-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,.3);
}
.blog-empty p { margin-top: 14px; font-size: 1rem; }

/* ── Pagination ────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-family: 'M', sans-serif;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.blog-pagination a:hover { background: rgba(245,194,0,.1); border-color: #f5c200; color: #f5c200; }
.blog-pagination span.active { background: #f5c200; border-color: #f5c200; color: #111; }

/* ══════════════════════════════════════════════════════
   BLOG DETAIL PAGE
   ══════════════════════════════════════════════════════ */
.blog-detail-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 40px 100px;
}

/* ── Breadcrumb ────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #f5c200; }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: rgba(255,255,255,.65); }

/* ── Post Header ───────────────────────────────────── */
.post-header { margin-bottom: 36px; }
.post-date {
  font-family: 'M', sans-serif;
  font-size: .8rem;
  letter-spacing: .1em;
  color: #f5c200;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-title {
  font-family: 'BB', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
}

/* ── Featured Image ────────────────────────────────── */
.post-featured-img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 44px;
  display: block;
}

/* ── Post Content ──────────────────────────────────── */
.post-content {
  font-family: 'R', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,.75);
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'B', sans-serif;
  color: #fff;
  margin: 2em 0 .75em;
  line-height: 1.3;
}
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content p  { margin-bottom: 1.4em; }
.post-content a  { color: #f5c200; text-decoration: underline; text-underline-offset: 3px; }
.post-content ul,
.post-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.post-content li { margin-bottom: .5em; }
.post-content blockquote {
  border-left: 3px solid #f5c200;
  padding: 12px 20px;
  margin: 2em 0;
  background: rgba(245,194,0,.06);
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,.6);
  font-style: italic;
}
.post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5em 0;
}
.post-content pre {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: .88rem;
  margin-bottom: 1.4em;
}
.post-content code {
  background: rgba(245,194,0,.1);
  color: #f5c200;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.post-content pre code { background: none; color: inherit; padding: 0; }

/* ── Post Footer ───────────────────────────────────── */
.post-footer {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5c200;
  text-decoration: none;
  font-family: 'M', sans-serif;
  font-size: .9rem;
  transition: gap .2s;
}
.post-back-link:hover { gap: 12px; }

/* ── Related Posts ─────────────────────────────────── */
.related-section {
  background: #111;
  padding: 60px 40px 80px;
}
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-heading {
  font-family: 'B', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 28px;
}
.related-heading span { color: #f5c200; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-hero       { padding: 130px 20px 60px; }
  .blog-section    { padding: 30px 20px 80px; }
  .blog-detail-wrap{ padding: 120px 20px 80px; }
  .related-section { padding: 50px 20px 60px; }
  .blog-controls   { flex-direction: column; align-items: flex-start; }
  .blog-search     { width: 100%; }
}
