/*
 * LJB Marketing Agency — blog.css
 * Loads on /blog/, single posts, and category/tag archives
 * (see functions-blog-snippet.php). Same system as industries.css.
 */

.ljb-blog-hero *,
.ljb-blog-listing *,
.ljb-blog-final *,
.ljb-post *,
.ljb-post-related * {
  box-sizing: border-box;
}

/* ---------- SHARED DARK BACKGROUND ---------- */
.ljb-blog-hero,
.ljb-blog-final,
.ljb-post-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(18, 203, 196, .22), transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(0, 28, 65, .42), transparent 42%),
    linear-gradient(135deg, #07111f 0%, #0b1727 48%, #06101d 100%);
}

.ljb-blog-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .22;
}

/* ---------- BLOG HERO ---------- */
.ljb-blog-hero {
  padding: clamp(96px, 10vw, 146px) clamp(22px, 4vw, 54px) clamp(80px, 9vw, 126px);
}

.ljb-blog-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.ljb-blog-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 7vw, 96px);
  line-height: .95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.05em;
}

.ljb-blog-hero p,
.ljb-blog-hero-desc,
.ljb-blog-hero-desc p {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.ljb-blog-hero-desc p {
  margin: 0;
}

.ljb-blog-hero--archive h1 {
  font-size: clamp(42px, 6vw, 82px);
}

/* ---------- LISTING ---------- */
.ljb-blog-listing,
.ljb-post-related {
  padding: clamp(76px, 9vw, 126px) clamp(22px, 4vw, 54px);
  background: #f7f8f8;
}

.ljb-blog-listing-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.ljb-blog-listing-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.ljb-blog-listing-header h2 {
  margin: 0;
  color: var(--ljb-black-bg);
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.ljb-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ljb-blog-cats a {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 39, 45, .12);
  background: var(--ljb-white);
  color: var(--ljb-black-bg);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.ljb-blog-cats a:hover {
  border-color: var(--ljb-teal);
  color: #008f91;
}

.ljb-blog-cats a.is-active {
  background: var(--ljb-black-bg);
  border-color: var(--ljb-black-bg);
  color: #fff;
}

.ljb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ---------- CARD ---------- */
.ljb-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ljb-white);
  border: 1px solid rgba(0, 39, 45, .08);
  box-shadow: 0 14px 38px rgba(0, 39, 45, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ljb-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(0, 39, 45, .11);
}

.ljb-blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 203, 196, .25), transparent 50%),
    linear-gradient(135deg, #07111f, #0b1727);
}

.ljb-blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ljb-blog-card:hover .ljb-blog-card-media img {
  transform: scale(1.04);
}

.ljb-blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
}

.ljb-blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ljb-blog-card-meta span {
  color: #008f91;
}

.ljb-blog-card-meta time {
  color: rgba(42, 43, 47, .5);
}

.ljb-blog-card h3 {
  margin: 14px 0 10px;
  font-size: 21px;
  line-height: 1.22;
  font-weight: 900;
}

.ljb-blog-card h3 a {
  color: var(--ljb-black-bg);
  text-decoration: none;
}

.ljb-blog-card h3 a:hover {
  color: #008f91;
}

.ljb-blog-card p {
  margin: 0 0 22px;
  color: rgba(42, 43, 47, .66);
  font-size: 14px;
  line-height: 1.6;
}

.ljb-blog-card-link {
  margin-top: auto;
  color: var(--ljb-teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.ljb-blog-card-link:hover {
  color: #008f91;
}

.ljb-blog-empty {
  color: rgba(42, 43, 47, .7);
  font-size: 18px;
}

/* ---------- PAGINATION ---------- */
.ljb-blog-pagination {
  margin-top: 48px;
}

.ljb-blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ljb-blog-pagination .page-numbers {
  min-width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 39, 45, .12);
  background: var(--ljb-white);
  color: var(--ljb-black-bg);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ljb-blog-pagination a.page-numbers:hover {
  border-color: var(--ljb-teal);
  color: #008f91;
}

.ljb-blog-pagination .page-numbers.current {
  background: var(--ljb-teal);
  border-color: var(--ljb-teal);
  color: #fff;
}

.ljb-blog-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- FINAL CTA ---------- */
.ljb-blog-final {
  padding: clamp(76px, 8vw, 112px) clamp(22px, 4vw, 54px);
}

.ljb-blog-final-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.ljb-blog-final h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.ljb-blog-final p {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
}

/* ---------- SINGLE POST ---------- */
.ljb-post {
  background: var(--ljb-white);
  padding-bottom: clamp(70px, 8vw, 110px);
}

.ljb-post-hero {
  padding: clamp(80px, 9vw, 130px) clamp(22px, 4vw, 54px) clamp(150px, 15vw, 210px);
}

.ljb-post-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.ljb-post-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ljb-post-crumbs a {
  color: var(--ljb-teal);
  text-decoration: none;
}

.ljb-post-crumbs a:hover {
  color: #fff;
}

.ljb-post-crumbs span {
  color: rgba(255, 255, 255, .35);
}

.ljb-post-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.035em;
}

.ljb-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: rgba(255, 255, 255, .66);
  font-size: 14px;
  font-weight: 600;
}

.ljb-post-meta > * + *::before {
  content: "•";
  margin-right: 22px;
  color: var(--ljb-teal);
}

.ljb-post-featured {
  max-width: 1100px;
  margin: calc(-1 * clamp(100px, 11vw, 150px)) auto 0;
  padding: 0 clamp(22px, 4vw, 54px);
  position: relative;
  z-index: 2;
}

.ljb-post-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--ljb-shadow-dark);
}

/* ---------- POST BODY ---------- */
.ljb-post-content {
  max-width: 760px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: 0 clamp(22px, 4vw, 54px);
  box-sizing: content-box;
  color: var(--ljb-black-text);
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.8;
}

.ljb-post-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.ljb-post-content h2 {
  margin-top: 2.1em;
  margin-bottom: .6em;
  color: var(--ljb-black-bg);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.02em;
}

.ljb-post-content h3 {
  margin-top: 1.7em;
  margin-bottom: .5em;
  color: var(--ljb-black-bg);
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.25;
  font-weight: 800;
}

.ljb-post-content h2:first-child,
.ljb-post-content h3:first-child {
  margin-top: 0;
}

.ljb-post-content a {
  color: #008f91;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ljb-post-content a:hover {
  color: var(--ljb-black-bg);
}

.ljb-post-content strong {
  color: var(--ljb-black-bg);
  font-weight: 800;
}

.ljb-post-content ul,
.ljb-post-content ol {
  padding-left: 1.4em;
}

.ljb-post-content li {
  margin-bottom: .5em;
}

.ljb-post-content ul li::marker {
  color: var(--ljb-teal);
}

.ljb-post-content ol li::marker {
  color: #008f91;
  font-weight: 800;
}

.ljb-post-content figure {
  margin-left: 0;
  margin-right: 0;
}

.ljb-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 39, 45, .08);
}

.ljb-post-content figcaption {
  margin-top: 10px;
  color: rgba(42, 43, 47, .6);
  font-size: 14px;
  text-align: center;
}

.ljb-post-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--ljb-teal);
  color: var(--ljb-black-bg);
  font-size: 1.1em;
  font-weight: 600;
}

/* ---------- POST CTA ---------- */
.ljb-post-cta {
  max-width: 760px;
  margin: clamp(48px, 6vw, 70px) auto 0;
  padding: clamp(28px, 4vw, 40px);
  box-sizing: content-box;
  display: grid;
  gap: 24px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(18, 203, 196, .22), transparent 45%),
    linear-gradient(135deg, #07111f 0%, #0b1727 60%, #06101d 100%);
}

.ljb-post-cta span {
  color: var(--ljb-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ljb-post-cta strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.ljb-post-cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  line-height: 1.65;
}

.ljb-post-cta .ljb-btn {
  justify-self: start;
}

/* ---------- RELATED ---------- */
.ljb-post-related-all {
  color: var(--ljb-black-bg);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.ljb-post-related-all:hover {
  color: var(--ljb-teal);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .ljb-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ljb-blog-final-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ljb-blog-grid {
    grid-template-columns: 1fr;
  }

  .ljb-post-content,
  .ljb-post-cta {
    box-sizing: border-box;
  }

  .ljb-post-cta {
    margin-left: 22px;
    margin-right: 22px;
  }

  .ljb-blog-final .ljb-btn,
  .ljb-post-cta .ljb-btn {
    width: 100%;
    justify-content: center;
  }

  .ljb-post-meta > * + *::before {
    margin-right: 12px;
  }

  .ljb-post-meta {
    gap: 8px 12px;
  }
}
