/* ===== Blog Archive + Single (Theme-matched) ===== */

.blogs-container{
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

/* Archive hero */
.blogs-hero,
.single-blog-hero{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0 90px;
}

.blogs-hero::before,
.single-blog-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.22));
}

.blogs-hero .blogs-container,
.single-blog-hero .blogs-container{
  position: relative;
  z-index: 1;
}

.blogs-hero-kicker,
.single-blog-hero-kicker{
  margin: 0 0 12px 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blogs-hero-title,
.single-blog-hero-title{
  margin: 0;
  max-width: 900px;
  font-size: 64px;
  line-height: 1.06;
  font-weight: 900;
  color: #fff;
}

.blogs-hero-sub{
  margin: 14px 0 0 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.80);
}

.single-blog-hero-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 600;
}

.single-blog-hero-sep{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
}

/* Archive listing */
.blogs-sec{
  padding: 80px 0;
}

.blogs-sec--listing{
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2f6 100%);
}

.blogs-intro{
  max-width: 840px;
  margin: 0 auto 34px;
  text-align: center;
  color: rgba(16,19,25,.72);
  font-size: 15px;
  line-height: 1.9;
}

.blogs-intro > * + *{
  margin-top: 12px;
}

.blogs-grid{
  row-gap: 8px;
}

.blog-card{
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(16,19,25,.08);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(16,19,25,.08);
}

.blog-card__media{
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf4;
}

.blog-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.blog-card:hover .blog-card__media img{
  transform: scale(1.05);
}

.blog-card__content{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px;
}

.blog-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.blog-card__cat,
.blog-card__date{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.blog-card__cat{
  background: rgba(16,19,25,.07);
  color: #101319;
}

.blog-card__date{
  background: #eef2f6;
  color: rgba(16,19,25,.72);
}

.blog-card__title{
  margin: 0 0 12px 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
  color: #101319;
}

.blog-card__title a{
  color: inherit;
}

.blog-card__title a:hover{
  color: #2b313c;
}

.blog-card__excerpt{
  margin: 0 0 18px 0;
  color: rgba(16,19,25,.72);
  font-size: 14px;
  line-height: 1.85;
}

.blog-card__link{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #101319, #2b313c);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.blog-card__link:hover{
  background: linear-gradient(135deg, #0f1218, #252b35);
  color: #fff;
}

.blogs-empty{
  text-align: center;
  background: #fff;
  border: 1px solid rgba(16,19,25,.08);
  border-radius: 24px;
  padding: 46px 24px;
  box-shadow: 0 18px 45px rgba(16,19,25,.08);
}

.blogs-empty h2{
  margin: 0 0 10px 0;
  color: #101319;
  font-size: 32px;
  font-weight: 900;
}

.blogs-empty p{
  margin: 0;
  color: rgba(16,19,25,.70);
  font-size: 14px;
}

.blogs-pagination{
  margin-top: 34px;
}

.blogs-pagination .page-numbers{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.blogs-pagination .page-numbers a,
.blogs-pagination .page-numbers span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16,19,25,.10);
  background: #fff;
  color: #101319;
  font-size: 13px;
  font-weight: 800;
}

.blogs-pagination .page-numbers.current{
  background: linear-gradient(135deg, #101319, #2b313c);
  color: #fff;
  border-color: transparent;
}

.blogs-pagination .page-numbers a:hover{
  background: #eef2f6;
}

/* Single post */
.single-blog-sec{
  padding: 80px 0;
  background: #ffffff;
}

.single-blog-article{
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(16,19,25,.08);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 20px 55px rgba(16,19,25,.08);
}

.single-blog-content{
  color: rgba(16,19,25,.78);
  font-size: 15px;
  line-height: 1.95;
}

.single-blog-content > * + *{
  margin-top: 18px;
}

.single-blog-content h1,
.single-blog-content h2,
.single-blog-content h3,
.single-blog-content h4,
.single-blog-content h5,
.single-blog-content h6{
  color: #101319;
  font-weight: 900;
  line-height: 1.2;
}

.single-blog-content h2{
  font-size: 34px;
}

.single-blog-content h3{
  font-size: 26px;
}

.single-blog-content a{
  color: #101319;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.single-blog-content ul,
.single-blog-content ol{
  padding-left: 20px;
}

.single-blog-content blockquote{
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid #101319;
  background: #eef2f6;
  border-radius: 20px;
  color: #101319;
}

.single-blog-content img{
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.single-blog-content figure{
  margin: 28px 0;
}

.single-blog-content figcaption{
  margin-top: 10px;
  color: rgba(16,19,25,.60);
  font-size: 13px;
  text-align: center;
}

.related-posts{
  padding: 0 0 90px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
}

.related-posts-kicker{
  margin: 0 0 10px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(16,19,25,.55);
}

.related-posts-title{
  margin: 0 0 34px 0;
  text-align: center;
  color: #101319;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.12;
}

@media (max-width: 991.98px){
  .blogs-hero,
  .single-blog-hero{
    min-height: 360px;
    padding: 126px 0 74px;
  }

  .blogs-hero-title,
  .single-blog-hero-title{
    font-size: 46px;
  }

  .blogs-sec,
  .single-blog-sec,
  .related-posts{
    padding-top: 65px;
  }

  .related-posts{
    padding-bottom: 70px;
  }

  .blog-card__title{
    font-size: 24px;
  }

  .single-blog-article{
    padding: 26px;
  }

  .related-posts-title{
    font-size: 34px;
  }
}

@media (max-width: 575.98px){
  .blogs-container{
    width: calc(100% - 22px);
  }

  .blogs-hero,
  .single-blog-hero{
    min-height: 320px;
    padding: 118px 0 58px;
  }

  .blogs-hero-title,
  .single-blog-hero-title{
    font-size: 36px;
  }

  .blogs-hero-sub,
  .single-blog-hero-meta{
    font-size: 13px;
  }

  .blog-card__content{
    padding: 20px;
  }

  .blog-card__title{
    font-size: 22px;
  }

  .single-blog-article{
    padding: 20px 18px;
    border-radius: 22px;
  }

  .single-blog-content{
    font-size: 14px;
  }

  .single-blog-content h2{
    font-size: 28px;
  }

  .single-blog-content h3{
    font-size: 22px;
  }

  .related-posts-title,
  .blogs-empty h2{
    font-size: 28px;
  }
}
