/* Blog listing — WordPress-style cards with date badge + pagination */

/* Banner override (slight tweak hook) */
.page-banner--blog {
  /* base .page-banner styles apply; this is a hook for any blog-only tweak */
}

.blog-listing {
  padding: 60px 0 80px;
}

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

/* Card */
.blog-card {
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 240, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(0, 212, 240, 0.08);
}

/* Media (image link with date badge) */
.blog-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0b0b0b;
}
.blog-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.06);
}

/* Date badge — top-right corner */
.date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 10px 8px;
  background: #00d4f0;
  color: #0b0b0b;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  line-height: 1;
  z-index: 2;
}
.date-badge .d {
  font-family: "Anton", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.date-badge .m {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

/* Body */
.blog-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.blog-card h3 a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card h3 a:hover {
  color: #00d4f0;
}
.blog-card .body p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

/* "View here →" link */
.view-here {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d4f0;
  text-decoration: none;
  transition: gap 0.2s;
}
.view-here span {
  display: inline-block;
  transition: transform 0.2s;
}
.view-here:hover {
  gap: 12px;
}
.view-here:hover span {
  transform: translateX(4px);
}

/* Pagination */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s,
    transform 0.15s;
}
.blog-pagination a.page-numbers:hover {
  border-color: rgba(0, 212, 240, 0.55);
  color: #fff;
  background: rgba(0, 212, 240, 0.08);
  transform: translateY(-2px);
}
.blog-pagination .page-numbers.current {
  background: #00d4f0;
  border-color: #00d4f0;
  color: #0b0b0b;
  cursor: default;
}
.blog-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  min-width: auto;
  padding: 0 6px;
}
.blog-pagination .prev,
.blog-pagination .next {
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .blog-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  .date-badge {
    min-width: 50px;
    padding: 8px 6px;
  }
  .date-badge .d {
    font-size: 19px;
  }
}

/* Blog post body — applies to /blog/[slug] rendered markdown/HTML */
.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4 {
  color: #fff;
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 32px 0 14px;
}
.blog-body h1 {
  font-size: clamp(24px, 3vw, 32px);
}
.blog-body h2 {
  font-size: clamp(22px, 2.5vw, 28px);
}
.blog-body h3 {
  font-size: clamp(19px, 2vw, 23px);
}
.blog-body h4 {
  font-size: 18px;
}
.blog-body h1:first-child,
.blog-body h2:first-child {
  margin-top: 0;
}
.blog-body p {
  margin: 0 0 16px;
}
.blog-body a {
  color: #00d4f0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.blog-body a:hover {
  color: #fff;
}
.blog-body strong {
  color: #fff;
  font-weight: 600;
}
.blog-body ul,
.blog-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.blog-body li {
  margin: 0 0 8px;
}
.blog-body li::marker {
  color: #00d4f0;
}
.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 18px 0;
}
.blog-body blockquote {
  border-left: 3px solid #00d4f0;
  padding: 6px 0 6px 18px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}

/* ============================================================
   Single blog post — editorial layout (title → image → 2-col)
   ============================================================ */

.post-page {
  padding: 50px 0 60px;
}
.post-page-inner {
  max-width: 1180px;
}

.post-top {
  max-width: 880px;
  margin: 0 auto 32px;
  text-align: center;
}

.post-crumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.post-crumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.post-crumbs a:hover {
  color: #00d4f0;
}
.post-crumbs span {
  color: rgba(255, 255, 255, 0.3);
}

.post-category-pill {
  display: inline-block;
  padding: 6px 14px;
  background: #00d4f0;
  color: #0b0b0b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

.post-title {
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
}

.post-meta-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.post-meta-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4f0, #0093aa);
  color: #0b0b0b;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.post-meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.post-meta-author {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.post-meta-line {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.post-meta-line .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* Featured image */
.post-featured {
  margin: 0 auto 48px;
  max-width: 980px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
}
.post-featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

/* Two-column grid */
.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.post-main {
  min-width: 0;
}
.post-main .blog-body {
  font-size: 20px;
  line-height: 1.8;
  color: #dfe2e7;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 20px;
}
.sidebar-title {
  font-family: "Anton", "Inter", sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.sidebar-item:hover {
  transform: translateX(2px);
}
.sidebar-thumb {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b0b0b;
  flex-shrink: 0;
}
.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sidebar-cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d4f0;
  font-weight: 700;
}
.sidebar-item-title {
  font-size: 13.5px;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-item:hover .sidebar-item-title {
  color: #00d4f0;
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(160deg, #ff8a00 0%, #ff6b00 100%);
  border-color: transparent;
  color: #1a0e00;
  text-align: center;
}
.sidebar-cta-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.sidebar-cta-title {
  font-family: "Anton", "Inter", sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #1a0e00;
}
.sidebar-cta-body {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(26, 14, 0, 0.78);
  margin: 0 0 16px;
}
.sidebar-cta-btn {
  display: inline-block;
  background: #0b0b0b;
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.post-tags-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}
.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(0, 212, 240, 0.3);
  background: rgba(0, 212, 240, 0.06);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.post-share {
  margin: 30px 0 0;
}
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, gap 0.2s;
}
.back-to-blog:hover {
  color: #00d4f0;
  gap: 12px;
}

/* Related posts */
.related-posts {
  padding: 70px 0 80px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.related-head {
  text-align: center;
  margin-bottom: 36px;
}
.related-head .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00d4f0;
  font-weight: 700;
  margin: 0 0 8px;
}
.related-head h2 {
  font-family: "Anton", "Inter", sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* Bottom related — horizontal cards (image left, text right) */
.related-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.related-row-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.related-row-card:hover {
  border-color: rgba(0, 212, 240, 0.4);
  background: rgba(0, 212, 240, 0.03);
  transform: translateY(-2px);
}
.related-row-thumb {
  display: block;
  width: 110px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0b0b;
}
.related-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.related-row-cat {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00d4f0;
  font-weight: 700;
}
.related-row-title {
  font-size: 14.5px;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-row-card:hover .related-row-title {
  color: #00d4f0;
}
.related-row-date {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .post-sidebar {
    position: static;
  }
}
@media (max-width: 720px) {
  .post-page {
    padding: 30px 0 50px;
  }
  .post-featured {
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .related-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .related-row-card {
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 10px;
  }
  .related-row-thumb {
    width: 90px;
    height: 80px;
  }
}
