/* =========================================================
   BLOG - THE CAMPOS LAW FIRM
   Astra Child / blog.css
========================================================= */

.campos-blog,
.campos-single-post {
  background: #f7f3ed;
  color: #221c17;
}

/* Base layout */
.campos-blog .site-main,
.campos-single-post .site-main,
.campos-blog #primary,
.campos-single-post #primary {
  width: 100%;
}

.blog-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================================================
   HERO / LISTADO
========================================================= */

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 34px;
  background:
    linear-gradient(180deg, #fbf8f3 0%, #f4efe8 100%);
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 237, 0.96) 0%, rgba(247, 243, 237, 0.78) 22%, rgba(247, 243, 237, 0.52) 45%, rgba(247, 243, 237, 0.82) 100%),
    radial-gradient(circle at 18% 18%, rgba(201, 168, 76, 0.14), transparent 26%);
  pointer-events: none;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/wp-content/themes/astra-child/assets/images/lady_justice_law.png");
  background-repeat: no-repeat;
  background-position: center 46%;
  background-size: 520px auto;
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: center;
}

.blog-kicker,
.blog-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a84c;
}

.blog-kicker::before,
.blog-section-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(201, 168, 76, 0.9);
}

.blog-hero-title {
  margin: 12px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.65rem, 4.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #1d1713;
  max-width: 16ch;
}

.blog-hero-text {
  max-width: 760px;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #5a5149;
}

.blog-hero-text p:last-child {
  margin-bottom: 0;
}

.blog-hero-card {
  justify-self: end;
  max-width: 320px;
  padding: 20px 20px 18px;
  background: rgba(13, 27, 42, 0.96);
  color: #f7f1e7;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(13, 27, 42, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.16);
}

.blog-hero-card-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  color: #e7c76d;
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero-card p {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(247, 241, 231, 0.88);
}

.blog-hero-archive .blog-hero-title {
  max-width: none;
}

.blog-feed-section {
  padding: 48px 0 84px;
}

.blog-feed-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.blog-section-title {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #1d1713;
}

.blog-section-text {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #625950;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 20, 16, 0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  backdrop-filter: blur(2px);
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c 0%, rgba(201, 168, 76, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(13, 27, 42, 0.1);
  border-color: rgba(201, 168, 76, 0.28);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #eae3d8 0%, #d8ccb8 100%);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.2), transparent 28%),
    linear-gradient(135deg, #efe6d8 0%, #ddd2bf 100%);
}

.blog-card-placeholder span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1.1;
  color: rgba(29, 23, 19, 0.82);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 24px 22px;
  flex: 1;
}

.blog-card-meta,
.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: #8a7d70;
}

.blog-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9a84c;
  display: inline-block;
}

.blog-card-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #1d1713;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #7f6625;
}

.blog-card-excerpt {
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #5f564e;
}

.blog-card-excerpt p:last-child {
  margin-bottom: 0;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
}

.blog-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3ecdf;
  color: #7c6530;
  border: 1px solid rgba(201, 168, 76, 0.2);
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0d1b2a;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.blog-read-more:hover {
  color: #b7922d;
  transform: translateX(2px);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.blog-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(13, 27, 42, 0.09);
  color: #1f1914;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: #0d1b2a;
  color: #fff;
  border-color: #0d1b2a;
}

.blog-cta-section {
  padding: 0 0 88px;
}

.blog-cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.98) 0%, rgba(19, 36, 54, 0.96) 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.16);
}

.blog-cta-box::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 65%);
  pointer-events: none;
}

.blog-cta-box .blog-section-title,
.blog-cta-box .blog-section-text {
  color: #fff;
}

.blog-cta-box .blog-section-text {
  color: rgba(255, 255, 255, 0.82);
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  transition: all 0.28s ease;
}

.blog-btn-primary {
  background: #c9a84c;
  color: #1d1713;
  box-shadow: 0 10px 24px rgba(201, 168, 76, 0.22);
}

.blog-btn-primary:hover {
  background: #d7b65b;
  color: #1d1713;
  transform: translateY(-2px);
}

.blog-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.blog-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.blog-empty {
  padding: 56px 32px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(13, 27, 42, 0.08);
}

/* =========================================================
   SINGLE POST
========================================================= */

.campos-single-post {
  padding-top: 190px;
  padding-bottom: 220px;
  background: #f7f3ed;
}

.campos-single-post .blog-shell {
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
}

.single-post-basic {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.single-post-header {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 46px;
  padding: 0;
}

.single-post-title {
  width: 100%;
  max-width: 920px;
  margin: 18px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.15rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #1d1713;
}

.single-post-meta {
  margin-top: 6px;
}

.single-post-thumb {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 72px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(13, 27, 42, 0.08);
  background: #e9e1d5;
  aspect-ratio: 16 / 6;
}

.single-post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 40px;
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  line-height: 1.95;
  color: #3d352f;
}

.single-post-content > *:first-child {
  margin-top: 0;
}

.single-post-content > *:last-child {
  margin-bottom: 0;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin: 2.3em 0 0.6em;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1d1713;
  font-weight: 600;
}

.single-post-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.single-post-content h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.single-post-content h4 {
  font-size: 1.5rem;
}

.single-post-content p {
  margin-bottom: 1.35em;
}

.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
  margin-bottom: 1.2em;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 1.4em;
}

.single-post-content a {
  color: #8b6d1e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-content a:hover {
  color: #5f4a12;
}

.single-post-content blockquote {
  margin: 2em 0;
  padding: 18px 22px;
  border-left: 3px solid #c9a84c;
  background: rgba(201, 168, 76, 0.08);
  border-radius: 0 18px 18px 0;
  color: #342c26;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.single-post-content figure {
  margin: 1.8em 0;
}

.single-post-content figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #7a7066;
  text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
  .blog-hero-inner,
  .blog-feed-head,
  .blog-cta-box {
    grid-template-columns: 1fr;
  }
  
  .blog-hero::after {
  background-position: center 42%;
  background-size: 420px auto;
  opacity: 0.13;
}

  .blog-hero-card {
    justify-self: start;
    max-width: 100%;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-cta-actions {
    justify-content: flex-start;
  }

  .campos-single-post {
    padding-top: 170px;
    padding-bottom: 180px;
  }

  .campos-single-post .blog-shell {
    width: min(100%, calc(100% - 72px));
  }

  .single-post-basic,
  .single-post-header,
  .single-post-title,
  .single-post-thumb,
  .single-post-content {
    max-width: 100%;
  }

  .single-post-title {
    font-size: clamp(2.8rem, 6vw, 4.1rem);
  }

  .single-post-thumb {
    aspect-ratio: 16 / 7;
    margin-bottom: 58px;
  }

  .single-post-content {
    max-width: 820px;
  }
}

@media (max-width: 767px) {
  .blog-shell {
    width: min(100%, calc(100% - 28px));
  }
  
  .blog-hero::before {
  background:
    linear-gradient(180deg, rgba(247, 243, 237, 0.92) 0%, rgba(247, 243, 237, 0.78) 38%, rgba(247, 243, 237, 0.9) 100%);
}

.blog-hero::after {
  background-position: center 34%;
  background-size: 300px auto;
  opacity: 0.12;
}

  .blog-hero {
    padding: 72px 0 42px;
  }

  .blog-hero-inner {
    gap: 24px;
  }

  .blog-hero-title {
    max-width: none;
    font-size: clamp(2.45rem, 12vw, 4.1rem);
  }

  .blog-hero-text,
  .blog-section-text,
  .blog-card-excerpt,
  .single-post-content {
    font-size: 0.98rem;
  }

  .blog-feed-section {
    padding: 36px 0 64px;
  }

  .blog-feed-head {
    margin-bottom: 26px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-card-body {
    padding: 20px;
  }

  .blog-card-title {
    font-size: 1.8rem;
  }

  .blog-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-cta-section {
    padding-bottom: 64px;
  }

  .blog-cta-box {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .blog-btn {
    width: 100%;
    text-align: center;
  }

  .campos-single-post {
    padding-top: 128px;
    padding-bottom: 130px;
  }

  .campos-single-post .blog-shell {
    width: min(100%, calc(100% - 32px));
  }

  .single-post-header {
    margin-bottom: 28px;
  }

  .single-post-title {
    max-width: none;
    margin: 14px 0 14px;
    font-size: clamp(2.25rem, 11vw, 3.3rem);
    line-height: 1;
  }

  .single-post-thumb {
    margin-bottom: 36px;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
  }

  .single-post-content {
    max-width: 100%;
    padding-bottom: 26px;
  }
}