/* =========================================
   ANCHOR BLOG PAGE
   Custom template: page-anchor-blog.php
   ========================================= */

:root {
  --anchor-green-dark: #1D3A1E;
  --anchor-green: #2C5134;
  --anchor-green-medium: #5B7E51;
  --anchor-green-muted: #ABC18F;
  --anchor-green-soft: #E9F4E6;
  --anchor-orange: #FF9900;
  --anchor-text: #28322B;
  --anchor-muted: #667069;
  --anchor-border: rgba(29, 58, 30, 0.14);
  --anchor-white: #ffffff;
}

/* =========================================
   PAGE BASE
   ========================================= */

.anchor-blog-page {
  background: #ffffff;
  color: var(--anchor-text);
  overflow: hidden;
}

.anchor-blog-page *,
.anchor-blog-page *::before,
.anchor-blog-page *::after {
  box-sizing: border-box;
}

.anchor-blog-page a {
  color: inherit;
  text-decoration: none;
}

.anchor-blog-container {
  width: min(1120px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   HERO
   ========================================= */

.anchor-blog-hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf6 58%, #eef7ec 100%);
  padding: 86px 0 124px;
  border-bottom: 1px solid rgba(29, 58, 30, 0.08);
}

.anchor-blog-hero .anchor-blog-container {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
}

.anchor-blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.anchor-blog-eyebrow {
  margin: 0 0 18px;
  color: var(--anchor-orange);
  font-family: "Albert Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.anchor-blog-hero h1 {
  margin: 0;
  color: var(--anchor-green-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(58px, 7.4vw, 104px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.anchor-blog-dek {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--anchor-muted);
  font-family: "Albert Sans", sans-serif;
  font-size: 20px;
  line-height: 1.65;
}

/* =========================================
   HERO WATERMARK
   Uses real Anchor logomark PNG from /assets/
   ========================================= */

.anchor-blog-hero-mark {
  position: absolute;
  right: -120px;
  top: 10px;
  width: 620px;
  height: 360px;
  background-image: url("../assets/anchor-mark-full-color-350c.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.075;
  pointer-events: none;
  z-index: 1;
}

.anchor-blog-hero-mark::before,
.anchor-blog-hero-mark::after {
  content: none;
  display: none;
}

/* =========================================
   FEATURED ARTICLE
   ========================================= */

.anchor-blog-featured {
  position: relative;
  z-index: 3;
  margin-top: -72px;
  padding: 0 0 74px;
}

.anchor-featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 58px;
  align-items: center;
}

.anchor-featured-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--anchor-green-soft);
  box-shadow: 0 18px 44px rgba(29, 58, 30, 0.12);
}

.anchor-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anchor-featured-image:empty {
  min-height: 420px;
  background:
    linear-gradient(rgba(29, 58, 30, 0.18), rgba(29, 58, 30, 0.18)),
    linear-gradient(135deg, var(--anchor-green-soft), var(--anchor-green-muted));
}

.anchor-featured-content {
  padding: 104px 0 34px;
}

.anchor-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--anchor-green);
  font-family: "Albert Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.anchor-post-meta span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--anchor-orange);
  display: inline-block;
}

.anchor-featured-content h2 {
  margin: 0 0 22px;
  color: var(--anchor-green-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 3.4vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.anchor-featured-content h2 a {
  color: var(--anchor-green-dark);
}

.anchor-featured-content h2 a:hover {
  color: var(--anchor-green);
}

.anchor-featured-excerpt {
  max-width: 510px;
  margin: 0 0 30px;
  color: var(--anchor-muted);
  font-family: "Albert Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.anchor-blog-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--anchor-orange);
  color: #ffffff !important;
  padding: 15px 24px;
  border-radius: 6px;
  font-family: "Albert Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  box-shadow: 0 10px 22px rgba(255, 153, 0, 0.22);
}

.anchor-blog-button:hover {
  transform: translateY(-2px);
  background: #e78900;
  box-shadow: 0 14px 28px rgba(255, 153, 0, 0.26);
}

/* =========================================
   RECENT ARTICLES
   ========================================= */

.anchor-blog-recent {
  padding: 0 0 94px;
}

.anchor-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 0 36px;
}

.anchor-section-divider::before,
.anchor-section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--anchor-border);
}

.anchor-section-divider span {
  position: relative;
  width: 46px;
  height: 32px;
  display: block;
  background-image: url("../assets/anchor-mark-full-color-350c.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.anchor-section-divider span::before,
.anchor-section-divider span::after {
  content: none;
  display: none;
}

.anchor-section-header {
  margin: 0 0 30px;
}

.anchor-section-header h2 {
  margin: 0;
  color: var(--anchor-green-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

/* =========================================
   ARTICLE GRID
   ========================================= */

.anchor-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.anchor-article-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--anchor-border);
  box-shadow: 0 14px 34px rgba(29, 58, 30, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.anchor-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 58, 30, 0.22);
  box-shadow: 0 20px 44px rgba(29, 58, 30, 0.09);
}

.anchor-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--anchor-green-soft);
}

.anchor-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.anchor-article-card:hover .anchor-card-image img {
  transform: scale(1.035);
}

.anchor-card-image:empty {
  background:
    linear-gradient(rgba(29, 58, 30, 0.1), rgba(29, 58, 30, 0.1)),
    linear-gradient(135deg, var(--anchor-green-soft), var(--anchor-green-muted));
}

.anchor-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 24px;
}

.anchor-card-content .anchor-post-meta {
  margin-bottom: 14px;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.anchor-card-content h3 {
  margin: 0 0 14px;
  color: var(--anchor-green-dark);
  font-family: "Albert Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.anchor-card-content h3 a {
  color: var(--anchor-green-dark);
}

.anchor-card-content h3 a:hover {
  color: var(--anchor-green);
}

.anchor-card-excerpt {
  margin: 0 0 24px;
  color: var(--anchor-muted);
  font-family: "Albert Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.anchor-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--anchor-green-dark) !important;
  font-family: "Albert Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.anchor-card-link:hover {
  color: var(--anchor-orange) !important;
}

.anchor-card-link span {
  transition: transform 0.2s ease;
}

.anchor-card-link:hover span {
  transform: translateX(4px);
}

/* =========================================
   PAGINATION
   ========================================= */

.anchor-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 54px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--anchor-border);
}

.anchor-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--anchor-border);
  color: var(--anchor-green-dark);
  background: #ffffff;
  font-family: "Albert Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.anchor-blog-pagination .page-numbers.current {
  background: var(--anchor-green-dark);
  color: #ffffff;
  border-color: var(--anchor-green-dark);
}

.anchor-blog-pagination .page-numbers:hover {
  border-color: var(--anchor-green-dark);
}

.anchor-blog-empty {
  padding: 40px 0;
  color: var(--anchor-muted);
  font-family: "Albert Sans", sans-serif;
  font-size: 18px;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 1000px) {
  .anchor-blog-hero {
    padding: 62px 0 98px;
  }

  .anchor-blog-hero .anchor-blog-container {
    min-height: 210px;
  }

  .anchor-blog-hero-mark {
    right: -190px;
    top: 28px;
    width: 560px;
    height: 320px;
    opacity: 0.065;
  }

  .anchor-featured-article {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .anchor-featured-content {
    padding: 0;
  }

  .anchor-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anchor-blog-featured {
    margin-top: -56px;
  }
}

@media (max-width: 690px) {
  .anchor-blog-container {
    width: min(100% - 32px, 1120px);
  }

  .anchor-blog-hero {
    padding: 46px 0 76px;
  }

  .anchor-blog-hero .anchor-blog-container {
    min-height: 0;
  }

  .anchor-blog-eyebrow {
    font-size: 11px;
  }

  .anchor-blog-hero h1 {
    font-size: 52px;
    line-height: 0.95;
  }

  .anchor-blog-dek {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.6;
  }

  .anchor-blog-hero-mark {
    right: -260px;
    top: 40px;
    width: 520px;
    height: 300px;
    opacity: 0.055;
  }

  .anchor-blog-featured {
    margin-top: -44px;
    padding-bottom: 58px;
  }

  .anchor-featured-content h2 {
    font-size: 34px;
  }

  .anchor-featured-excerpt {
    font-size: 16px;
  }

  .anchor-article-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .anchor-card-content h3 {
    font-size: 23px;
  }

  .anchor-blog-recent {
    padding-bottom: 68px;
  }

  .anchor-section-divider {
    margin-bottom: 28px;
  }

  .anchor-section-divider span {
    width: 40px;
    height: 28px;
  }
}