.footer-blog-link {
  display: inline-block;
  margin-top: 18px;
  color: #d2e7d9;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-blog-link:hover,
.blog-breadcrumbs a:hover,
.blog-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-page {
  min-height: 100vh;
}

.blog-page .navbar-wrapper {
  position: absolute;
}

.blog-main {
  padding-top: 104px;
}

.blog-hero {
  display: flex;
  min-height: 340px;
  align-items: center;
  padding: 20px 0 28px;
  color: #fff;
}

.blog-main > .section {
  padding: 30px 0 88px;
}

.blog-hero h1 {
  margin: 10px auto;
  max-width: 900px;
  font-size: clamp(2.3rem, 5.5vw, 4.3rem);
  line-height: 1.07;
}

.blog-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
}

.blog-hero .badge {
  margin-top: 8px;
  color: #e0f0e4;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
}

.blog-breadcrumbs {
  padding: 8px 0 0;
  color: #d1e7d9;
  font-size: .88rem;
}

.blog-breadcrumbs a {
  color: #d1e7d9;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.blog-category-group {
  display: contents;
}

.blog-category-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-card-image {
  display: block;
  width: calc(100% + 48px);
  height: 205px;
  margin: -24px -24px 20px;
  border-radius: var(--radius-xl) var(--radius-xl) 12px 12px;
  object-fit: cover;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e3e9e2;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(9, 34, 24, .09);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 107, 77, .28);
  box-shadow: 0 20px 42px rgba(9, 34, 24, .15);
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.blog-pagination.top {
  margin: 0 0 30px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #176b4d;
  background: #fff;
  border: 1px solid #d7e3d8;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.blog-pagination [aria-current="page"] {
  color: #fff;
  background: #176b4d;
  border-color: #176b4d;
}

.blog-pagination a:hover,
.blog-pagination a:focus-visible {
  border-color: #176b4d;
  outline-offset: 3px;
}

.blog-card-category,
.blog-post-category {
  color: var(--text-accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 12px 0;
  color: var(--text-heading);
  font-size: 1.32rem;
  line-height: 1.35;
}

.blog-card p {
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.blog-card a {
  margin-top: auto;
  color: var(--text-accent);
  font-weight: 800;
  text-decoration: none;
}

.blog-post {
  max-width: 850px;
  margin: 0 auto;
  padding: 42px;
  background: #fff;
  border: 1px solid #e3e9e2;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(34, 57, 41, .045);
}

.blog-post h1 {
  margin: 12px 0 18px;
  color: var(--text-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
}

.blog-post .blog-intro {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-post h2 {
  margin: 34px 0 12px;
  color: var(--text-heading);
  font-size: 1.55rem;
}

.blog-post p,
.blog-post li {
  color: var(--text-muted);
  line-height: 1.85;
}

.blog-post p + p {
  margin-top: 14px;
}

.blog-post ul,
.blog-post ol {
  margin: 14px 0 20px 24px;
}

.blog-related {
  margin-top: 34px;
  padding: 22px;
  background: #edf3ed;
  border-radius: 14px;
}

.blog-related a {
  color: #145a40;
  font-weight: 700;
}

.blog-post-cta {
  margin-top: 38px;
  padding: 30px;
  color: #fff;
  background: #173d30;
  border-radius: 18px;
}

.blog-post-cta h2 {
  margin-top: 0;
  color: #fff;
}

.blog-post-cta p {
  margin-bottom: 18px;
  color: #d1e7d9;
}

.blog-footer {
  padding: 26px 0;
  color: #c5d2c9;
  background: #17352a;
  text-align: center;
}

.blog-footer a {
  color: #d2e7d9;
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 300px;
    padding: 20px 0 26px;
  }

  .blog-main {
    padding-top: 80px;
  }

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .blog-category-title {
    font-size: 1.3rem;
  }

  .blog-card-image {
    height: 185px;
  }

  .blog-card {
    min-height: 360px;
  }

  .blog-post {
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  .blog-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card {
    min-height: 0;
  }

  .blog-card-image {
    height: 220px;
  }
}

.blog-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, .1);
  color: #10b981;
}

.blog-card-icon svg {
  width: 22px;
  height: 22px;
}

body.adblock-wall-active {
  overflow: hidden;
}

body.adblock-wall-active > :not(#adblock-wall) {
  visibility: hidden;
}

#adblock-wall {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 30, 23, .96);
  visibility: visible;
}

.adblock-wall-panel {
  width: min(100%, 540px);
  padding: 44px;
  color: #17251e;
  background: #fff;
  border: 1px solid #dce7dd;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
  text-align: center;
}

.adblock-wall-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  place-items: center;
  color: #176b4d;
  background: #e8f3ec;
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 900;
}

.adblock-wall-panel h1 {
  margin-bottom: 12px;
  color: #17251e;
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.2;
}

.adblock-wall-panel p {
  margin-bottom: 24px;
  color: #627168;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .adblock-wall-panel {
    padding: 32px 24px;
  }
}
