/* ---------------------------------------------------------------------------
   Blog & News - listing and article.
   Both sections share one design, so everything here is used by /blogs/,
   /news/ and every article page.

   Site tokens reused: .my__container, .fs_* scale, .manrope, .themeBtn,
   .arrow_circle, .btnText, .light / .dark.
   --------------------------------------------------------------------------- */

:root {
  --blog-surface: #f4f4f4;
  --blog-line: #e3e3e3;
  --blog-muted: #6b6b6b;
  --blog-pill: #ffffff;
}

/* =========================================================================
   1. Listing - hero
   ========================================================================= */
.blog_hero_head { padding: 10px 0 60px; background: #fff; }

.blog_big_title {
  font-size: clamp(44px, 13.2vw, 250px);
  line-height: .82;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.blog_head_row { margin-top: 34px; }

.blog_strapline { line-height: 1.25; max-width: 22ch; }

.blog_head_intro {
  font-size: 15px;
  line-height: 1.6;
  color: #3a3a3a;
  margin: 0 0 22px;
}

/* =========================================================================
   2. Listing - toolbar (search + category pills)
   ========================================================================= */
.blog_index_wrap { background: var(--blog-surface); padding: 60px 0 90px; }

.blog_toolbar { margin-bottom: 34px; }

.blog_search input {
  width: 100%;
  border: 1px solid var(--blog-line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 40px 11px 18px;
  font-size: 14px;
  color: #2b2b2b;
  outline: none;
}
.blog_search input:focus { border-color: #000; }
.blog_search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.blog_search_icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8a8a;
  pointer-events: none;
}

.blog_cat_filter .filter_pill,
.case_filter .filter_pill {
  border: 1px solid var(--blog-line);
  background: #fff;
  color: #2b2b2b;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.blog_cat_filter .filter_pill:hover { border-color: #000; }
.blog_cat_filter .filter_pill.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* =========================================================================
   3. The article card - listing grid and the article-page carousel
   ========================================================================= */
.post_card { margin-bottom: 46px; }

.post_card_media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #e9e9e9;
}
.post_card_media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 2;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.post_card:hover .post_card_media img { transform: scale(1.05); }

.post_card_meta { margin: 18px 0 14px; }

.meta_pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blog-pill);
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  font-size: 13px;
  color: #2b2b2b;
  white-space: nowrap;
}
.meta_pill img,
.meta_pill svg { flex: 0 0 auto; }
.meta_pill:not(.author_pill) { padding-left: 14px; }
.meta_pill svg { color: #6b6b6b; }

.author_pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post_card_title {
  font-size: 21px;
  line-height: 1.32;
  font-weight: 500;
  margin: 0;
  /* the design caps every card at two lines so the grid stays even */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post_card_title a {
  color: #111;
  text-decoration: none;
  transition: opacity .3s ease;
}
.post_card_title a:hover { opacity: .6; }

.blog_more_wrap { margin-top: 14px; }
.load_more_btn { border: 0; background: none; padding: 0; cursor: pointer; }

/* =========================================================================
   4. Article - hero
   ========================================================================= */
.post_hero {
  background-color: #1b1b1b;
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  /* padding: 120px 0 46px; */
}
.post_hero_shade {
  position: absolute;
  inset: 0;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000000f7 10%, #000000 20%, transparent 100%);
  background: #000;
}
.post_hero_inner { z-index: 1; }

.hero_pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  letter-spacing: .04em;
  color: #fff;
  backdrop-filter: blur(5px);
}

.post_hero_title {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  font-weight: 700;
  margin: 22px 0 0 !important;
  max-width: 24ch;
}

.post_hero_desc {
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
  margin-top: 16px !important;
  color: rgba(255, 255, 255, .88);
}

/* =========================================================================
   5. Article - body
   ========================================================================= */
.post_body_wrap { background: var(--blog-surface); padding: 60px 0 80px; }

.post_rail_left { padding-right: 34px; }
.post_rail_right { padding-left: 34px; border-left: 1px solid var(--blog-line); }
.post_main { border-right: 1px solid var(--blog-line); padding-right: 34px; }

.author_box { margin-bottom: 30px; }
.author_avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.author_name { font-size: 16px; }
.author_role { font-size: 12px; color: var(--blog-muted); line-height: 1.4; }

.subscribe_copy { font-size: 13px; line-height: 1.6; margin-bottom: 16px !important; }

.subscribe_form input {
  width: 100%;
  border: 1px solid var(--blog-line);
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
}
.subscribe_form input:focus { border-color: #000; }

.subscribe_btn {
  width: 100%;
  border: 0;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 13px;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity .3s ease;
}
.subscribe_btn:hover { opacity: .82; }

.post_tools { margin-bottom: 34px; }
.post_tools .blog_search { max-width: 300px; }

.share_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--blog-line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  color: #2b2b2b;
  cursor: pointer;
  transition: border-color .3s ease;
}
.share_btn:hover { border-color: #000; }

/* right rail */
.latest_head { font-size: 13px; letter-spacing: .06em; margin-bottom: 18px; }

.latest_card { text-decoration: none; color: inherit; display: block; margin-bottom: 26px; }
.latest_card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 2;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.latest_title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  color: #111;
  margin: 10px 0 8px;
}
.latest_card:hover .latest_title { opacity: .6; }
.latest_meta .meta_pill { font-size: 11px; padding: 4px 11px; gap: 6px; }

/* =========================================================================
   6. Article body typography (ported WordPress markup)
   ========================================================================= */
.blog_content { font-size: 15.5px; line-height: 1.78; color: #3a3a3a; }
.blog_content > *:first-child { margin-top: 0; }

.blog_content h2 { font-size: clamp(20px, 2.1vw, 25px); font-weight: 700; color: #000; margin: 2em 0 .7em; line-height: 1.3; text-transform: uppercase; }
.blog_content h3 { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; color: #000; margin: 1.7em 0 .6em; line-height: 1.35; }
.blog_content h4 { font-size: 17px; font-weight: 600; color: #000; margin: 1.5em 0 .5em; }

.blog_content p { margin: 0 0 1.35em; }

.blog_content a { color: #000; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.blog_content a:hover { opacity: .65; }

.blog_content ul, .blog_content ol { margin: 0 0 1.5em; padding-left: 1.2em; }
.blog_content li { margin-bottom: .5em; font-size: 14.5px; }
.blog_content ul li::marker { color: #9a9a9a; }

.blog_content strong, .blog_content b { font-weight: 600; color: #000; }

.blog_content img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 2em auto; }

/* the pull quote from the design: blue quote glyph, uppercase, no rule */
.blog_content blockquote {
  position: relative;
  margin: 2.2em 0;
  padding-left: 46px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.45;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
}
.blog_content blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 54px;
  line-height: 1;
  color: #2563eb;
  font-family: Georgia, "Times New Roman", serif;
}
.blog_content blockquote p:last-child { margin-bottom: 0; }

.blog_content figure { margin: 2em 0; }
.blog_content figcaption { font-size: 13px; color: var(--blog-muted); text-align: center; margin-top: .6em; }

/* Wide tables scroll inside their own box - they must never widen the page. */
.blog_content .table_scroll { overflow-x: auto; margin: 2em 0; }
.blog_content table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; background: #fff; }
.blog_content th, .blog_content td { border: 1px solid var(--blog-line); padding: 11px 14px; text-align: left; vertical-align: top; }
.blog_content thead th { background: #efefef; font-weight: 600; color: #000; }

.blog_content hr { border: 0; border-top: 1px solid var(--blog-line); margin: 2.4em 0; }

.blog_content code { background: #ececec; padding: .15em .4em; border-radius: 4px; font-size: .92em; }
.blog_content pre { background: #ececec; padding: 1em 1.2em; border-radius: 10px; overflow-x: auto; margin: 1.8em 0; }
.blog_content pre code { background: none; padding: 0; }

/* =========================================================================
   7. Article - "more articles" carousel
   ========================================================================= */
.post_more_wrap { background: #fff; padding: 70px 0 80px; }
.post_more_head { margin-bottom: 40px; }
.post_more_head h2 { line-height: 1.25; max-width: 26ch; }

.more_watermark {
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: -0.02em;
}

.more_blogs_btn {
  border: 1px solid var(--blog-line);
  border-radius: 999px;
  padding: 10px 10px 10px 24px;
  font-size: 13px;
  letter-spacing: .04em;
  color: #111;
  text-decoration: none;
  transition: border-color .3s ease;
}
.more_blogs_btn:hover { border-color: #000; color: #111; }
.more_arrow { width: 34px; height: 34px; background: #f0f0f0; }
.more_arrow img { width: 13px; height: 13px; }

.post_more_slider .post_card { margin-bottom: 0; }

.post_more_nav { margin-top: 34px; }

.slider_nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .3s ease;
}
.slider_nav:hover { opacity: .8; }

.post_more_pager { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #b0b0b0; }
.post_more_pager span.is-current { color: #111; position: relative; padding-right: 26px; }
.post_more_pager span.is-current::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: #111;
}

/* =========================================================================
   8. Responsive
   ========================================================================= */
@media (max-width: 1199px) {
  .post_rail_left { padding-right: 20px; }
  .post_main { padding-right: 20px; }
  .post_rail_right { padding-left: 20px; }
}

@media (max-width: 991px) {
  .blog_head_row { margin-top: 24px; }
  .blog_index_wrap { padding: 44px 0 66px; }

  .post_hero { min-height: 400px; padding: 100px 0 36px; }

  /* the rails stack under the article once there is no room beside it */
  .post_main,
  .post_rail_left,
  .post_rail_right {
    border: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .post_rail_left { margin-bottom: 36px; }
  .post_rail_right { margin-top: 44px; border-top: 1px solid var(--blog-line); padding-top: 30px; }

  .post_more_head h2 { max-width: none; }
  .post_hero_shade {mask-image: linear-gradient(to right, #000000e0 0%, #000000e0 50%, #000000e0 60%, #000000e0 100%); }

}

@media (max-width: 767px) {
  .blog_cat_filter { justify-content: flex-start !important; }
  .blog_cat_filter .filter_pill { font-size: 12px; padding: 8px 16px; }
  .post_card { margin-bottom: 34px; }
  .post_card_title { font-size: 19px; }
  .post_hero { min-height: 340px; padding: 90px 0 30px; }
  .post_hero_title { max-width: none; }
  .blog_content { font-size: 15px; }
  .post_tools .blog_search { max-width: none; }

}

@media (max-width: 575px) {
  .blog_hero_head { padding-bottom: 40px; }
  .blog_content img { margin: 1.5em auto; }
  .blog_content blockquote { padding-left: 34px; }
  .blog_content blockquote::before { font-size: 42px; }
}

/* ---------------------------------------------------------------------------
   Case studies listing (/case-study/)
   Reuses .work_clm / .work_img_wrap / .content_hover / .tag from style.css,
   and only adds what this page needs on top.
   --------------------------------------------------------------------------- */

.case_listing_title {
  line-height: .9;
  letter-spacing: -0.02em;
  margin-bottom: .2em !important;
}

/* filter pills */
.case_filter .filter_pill {
  border: 0;
  background: #F6F6F6;
  color: #2b2b2b;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.case_filter .filter_pill:hover { background: #e6e6e6; }
.case_filter .filter_pill.is-active { background: #000; color: #fff; }

/* grid */
.case_grid .work_img_wrap { border-radius: 6px; }
.case_grid .work_img_wrap img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease;
}
.case_grid .case_item:hover .work_img_wrap img { transform: scale(1.04); }

.case_grid .case_name_link { color: inherit; text-decoration: none; transition: opacity .3s ease; }
.case_grid .case_name_link:hover { opacity: .6; }

.case_grid .heading_tags .tag { font-size: 13px; white-space: nowrap; }

.case_studies_listing .content_hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(transparent, transparent, #0000008c);
  opacity: 0;
  transition: .5s;
}
.case_studies_listing .case_item:hover .content_hover { opacity: 1; }

/* reponsive.css loads after this file and re-sizes .fs_190px per breakpoint,
   so the listing title needs the extra specificity to keep its own scale. */
.case_studies_listing h1.case_listing_title { font-size: clamp(34px, 9.5vw, 190px); }

@media (max-width: 767px) {
  .case_studies_listing h1.case_listing_title { font-size: clamp(30px, 10.5vw, 60px); }
}
@media (max-width: 767px) {
  .case_grid .heading_tags {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .case_grid .heading_tags > div { justify-content: flex-start !important; }
  .case_filter { justify-content: flex-start !important; }
  .case_filter .filter_pill { font-size: 13px; padding: 8px 16px; }
}

.latest_meta .meta_pill img {width: auto; height: auto !important; aspect-ratio: unset; }
button.load_more_btn span img {transform: rotate(132deg) !important; }


.subscribe_box {position: sticky; top: 125px; background-color: #f4f4f4; }
.author_box {margin-bottom: 30px; position: sticky; top: 50px; }