/* ===== Blog home ===== */
.blog-home {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
}
.blog-home *,
.blog-home *::before,
.blog-home *::after { box-sizing: border-box; }
.blog-home ul { margin: 0; padding: 0; list-style: none; }
.blog-home li { margin: 0; }
.blog-home a { color: inherit; text-decoration: none; }
.blog-home img { display: block; max-width: 100%; }
.blog-home h1,
.blog-home h2,
.blog-home p { margin: 0; text-transform: none; }
.blog-home button {
  margin: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
  background: none;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}
.blog-home [hidden] { display: none !important; }

.blog-home .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-home .home-container {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 100%;
}
@media (min-width: 768px)  { .blog-home .home-container { padding: 0 64px; } }
@media (min-width: 1200px) { .blog-home .home-container { padding: 0 16px; max-width: 1232px !important; } }

/* secondary button (View more, Load more, View all in category) */
.blog-home .blog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--button-secondary-text-default);
  background: var(--button-secondary-fill-default);
  border-radius: var(--button-md-border-radius);
  transition: background 0.2s;
}
.blog-home .blog-btn:hover { background: var(--hover-overlay); }
.blog-home .blog-btn:focus-visible { outline: 2px solid var(--text-tetriary); outline-offset: 2px; }
.blog-home .blog-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.blog-home .blog-btn svg { width: 16px; height: 16px; color: var(--button-link-icon-default); }

/* View all in category: as wide as its content, centred under the grid (the design: 16px side padding) */
.blog-home .blog-browse__view-all {
  width: fit-content;
  padding: 11px 16px;
}

/* ===== Category navigation ===== */
.blog-hero__nav {
  position: relative;
}

.blog-hero__nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}
@media (min-width: 1200px) { .blog-hero__nav-toggle { display: none; } }

.blog-hero__nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.blog-home ul.blog-hero__categories {
  display: flex;
  flex-direction: column;
  margin: 0 0 0 6px;
  padding: 4px 0 8px;
}
@media (min-width: 1200px) {
  /* always visible on desktop, no JS needed */
  .blog-home ul.blog-hero__categories {
    display: flex !important;
    flex-direction: row;
    gap: 4px;
    margin: 0;
    padding: 0;
  }
}

.blog-hero__categories li { border-bottom: 1px solid var(--border-secondary); }
.blog-hero__categories li:last-child { border-bottom: 0; }
@media (min-width: 1200px) { .blog-hero__categories li { border-bottom: 0; } }

.blog-hero__categories li a {
  display: block;
  padding: 17px 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--segmentedTabs-button-text-default);
  text-overflow: ellipsis;
  transition: background-color 0.2s ease;
}
.blog-hero__categories li a:hover { color: var(--text-accent); }
@media (min-width: 1200px) {
  .blog-hero__categories li a { padding: 6px 12px; border-radius: 20px; }
  .blog-hero__categories li a:hover { color: inherit; background: var(--hover-overlay); }
}

/* ===== Featured post ===== */
.blog-featured-post {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 768px)  { .blog-featured-post { gap: 32px; margin-top: 26px;} }
@media (min-width: 1200px) { .blog-featured-post { flex-direction: row; gap: 0 48px; margin-top: 50px;} }

.blog-featured-post__wrapper { position: relative; width: 100%; }
@media (min-width: 1200px) { .blog-featured-post__wrapper { flex: none; width: 590px; } }

.blog-featured-post__image-wrapper {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--image-placeholder);
}
@media (min-width: 768px) { .blog-featured-post__image-wrapper { border-radius: 32px; } }

.blog-featured-post__image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 1200px) {
  .blog-featured-post__image-wrapper img { height: 427px; aspect-ratio: auto; }
}

.blog-featured-post__categories {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 4px;
}
@media (min-width: 768px) { .blog-featured-post__categories { top: 22px; left: 22px; right: 22px; } }

.blog-featured-post__categories li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 0 1 auto;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  color: var(--badge-Light-text-default);
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: 4px;
}
.blog-featured-post__categories li a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-featured-post__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
@media (min-width: 768px)  { .blog-featured-post__content { gap: 16px; } }
@media (min-width: 1200px) { .blog-featured-post__content { flex: 1; width: auto; min-width: 0; } }

.blog-featured-post__meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--input-text-default);
}

/* Likes counter in the meta line (shown only when > 0), same look as on the post cards */
.blog-featured-post__likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 5px;
  font-size: 12px;
  line-height: 16px;
}
.blog-featured-post__likes svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.blog-featured-post__content-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.5px;
  font-feature-settings: "liga" off, "clig" off;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .blog-featured-post__content-title { font-size: 34px; line-height: 40px; letter-spacing: -1.2px; }
}

.blog-featured-post__content-subtitle {
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.05px;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .blog-featured-post__content-subtitle { font-size: 17px; line-height: 22px; letter-spacing: -0.12px; }
}

.blog-featured-post__author { display: flex; align-items: center; gap: 8px; }
.blog-featured-post__author-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-featured-post__author-name { font-size: 14px; font-weight: 400; line-height: 21px; }

.blog-home .blog-featured-post__content-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--button-primary-text-default);
  background: var(--button-primary-fill-default);
  border-radius: var(--button-md-border-radius);
}
@media (min-width: 768px)  { .blog-home .blog-featured-post__content-button { width: 120px; margin-top: 4px; } }
@media (min-width: 1200px) { .blog-home .blog-featured-post__content-button { margin-top: 8px; } }

/* ===== Recent articles ===== */
.blog-recent { margin-top: 48px; }
@media (min-width: 768px)  { .blog-recent { margin-top: 64px; } }
@media (min-width: 1200px) { .blog-recent { margin-top: 80px; } }

.blog-recent__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .blog-recent__title { font-size: 28px; line-height: 32px; letter-spacing: -0.5px; }
}

.blog-recent__grid { margin-top: 32px; margin-bottom: 24px; }
@media (min-width: 768px)  { .blog-recent__grid { margin-bottom: 32px; } }
@media (min-width: 1200px) { .blog-recent__grid { margin-bottom: 40px; } }

/* ===== Browse by category ===== */
.blog-browse { margin-top: 48px; }

.blog-browse__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .blog-browse__title { font-size: 28px; line-height: 32px; letter-spacing: -0.5px; }
}

.blog-browse__tabs {
  margin-top: 20px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.blog-browse__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .blog-browse__tabs { margin-top: 32px; overflow: visible; } }

.blog-home .blog-browse__tab {
  flex-shrink: 0;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  color: var(--segmentedTabs-button-text-default);
  background: transparent;
  border-radius: var(--button-md-border-radius);
  transition: background 0.3s ease-in-out;
}
.blog-home .blog-browse__tab:hover { background: var(--hover-overlay); }
.blog-home .blog-browse__tab:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.4); outline-offset: 2px; }
.blog-home .blog-browse__tab[aria-pressed="true"] {
  color: var(--text-main);
  background: var(--segmentedTabs-button-fill-active);
}

.blog-browse__grid { margin: 16px 0 24px; transition: opacity 0.2s; }
.blog-browse__grid[aria-busy="true"] { opacity: 0.5; }
@media (min-width: 768px)  { .blog-browse__grid { margin: 24px 0 32px; } }
@media (min-width: 1200px) { .blog-browse__grid { margin-bottom: 40px; } }

/* ===== CTA "Stay connected wherever you go" ===== */
.blog-cta { margin: 48px 0; }
@media (min-width: 768px)  { .blog-cta { margin: 64px 0; } }
@media (min-width: 1200px) { .blog-cta { margin: 100px 0 80px; } }

.blog-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 16px 16px 0;
  background: var(--background-white-to-black2);
  border-radius: var(--ContentBox-border-radius);
}
@media (min-width: 768px)  { .blog-cta__inner { padding: 24px 24px 0; } }
@media (min-width: 1200px) {
  .blog-cta__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 0 48px;
    padding: 0 90px 0 60px;
  }
}

@media (min-width: 1200px) {
  .blog-cta__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
}

.blog-home .blog-cta__title {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .blog-home .blog-cta__title {
    max-width: 100%; font-size: 34px; line-height: 40px; letter-spacing: -1.2px;
  }
}
@media (min-width: 1200px) { 
  .blog-home .blog-cta__title { 
    margin-left: 0; margin-right: 0; text-align: left;
  }
}

.blog-home .blog-cta__subtitle {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.05px;
  color: var(--text-main);
}
@media (min-width: 768px)  { .blog-home .blog-cta__subtitle { font-size: 17px; line-height: 22px; letter-spacing: -0.12px; } }
@media (min-width: 1200px) { .blog-home .blog-cta__subtitle { margin-top: 8px; text-align: left; } }

.blog-home .blog-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.12px;
  text-align: center;
  color: var(--button-primary-text-default);
  background: var(--button-primary-fill-accent);
  border-radius: var(--button-lg-border-radius);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.blog-home .blog-cta__link:hover,
.blog-home .blog-cta__link:focus-visible { background: #e06e00; opacity: 0.92; }
@media (min-width: 768px) {
  .blog-home .blog-cta__link {
    max-width: 247px;
    margin-left: auto;
    margin-right: auto;
    background: var(--button-primary-fill-default);
  }
  .blog-home .blog-cta__link:hover,
  .blog-home .blog-cta__link:focus-visible { background: var(--button-primary-fill-default); opacity: 0.85; }
}
@media (min-width: 1200px) {
  .blog-home .blog-cta__link { margin: 32px 0 0; max-width: 274px; }
}

.blog-cta__image-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.blog-cta__image-wrapper img {
  display: block;
  width: 100%;
  max-width: 387px;
  height: auto;
}

/* ===== Search ===== */
.blog-home .blog-hero {
   padding-top: 22px;
}
@media (min-width:768px) {
  .blog-home .blog-hero {
   padding-top: 26px;
  }
}
@media (min-width:1200px) {
  .blog-home .blog-hero {
   padding-top: 30px;
  }
}
.blog-home .blog-hero__search-btn {
  position: absolute;
  right: -3px;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--text-main);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.blog-home .blog-hero__search-btn:hover { background-color: var(--hover-overlay); }
.blog-home .blog-hero__search-btn:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }
.blog-hero__search-icon { display: flex; }

.blog-hero__search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.blog-hero__search-bar::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
    background-color: var(--input-text-default);
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.92116 3.92116C6.29219 1.55012 10.1364 1.55013 12.5074 3.92116C14.7076 6.12132 14.8661 9.58992 12.983 11.9729L16.2194 15.2092C16.4983 15.4882 16.4983 15.9404 16.2194 16.2194C15.9404 16.4983 15.4882 16.4983 15.2092 16.2194L11.9729 12.983C9.58992 14.8661 6.12132 14.7076 3.92116 12.5074C1.55013 10.1364 1.55012 6.29219 3.92116 3.92116ZM11.4973 4.93129C9.68415 3.11815 6.74443 3.11814 4.93129 4.93129C3.11814 6.74443 3.11815 9.68415 4.93129 11.4973C6.74444 13.3104 9.68415 13.3104 11.4973 11.4973C13.3104 9.68415 13.3104 6.74444 11.4973 4.93129Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.92116 3.92116C6.29219 1.55012 10.1364 1.55013 12.5074 3.92116C14.7076 6.12132 14.8661 9.58992 12.983 11.9729L16.2194 15.2092C16.4983 15.4882 16.4983 15.9404 16.2194 16.2194C15.9404 16.4983 15.4882 16.4983 15.2092 16.2194L11.9729 12.983C9.58992 14.8661 6.12132 14.7076 3.92116 12.5074C1.55013 10.1364 1.55012 6.29219 3.92116 3.92116ZM11.4973 4.93129C9.68415 3.11815 6.74443 3.11814 4.93129 4.93129C3.11814 6.74443 3.11815 9.68415 4.93129 11.4973C6.74444 13.3104 9.68415 13.3104 11.4973 11.4973C13.3104 9.68415 13.3104 6.74444 11.4973 4.93129Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;

}



.blog-home .blog-hero__search-input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 44px 0 40px;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--input-text-input);
  background: var(--input-fill-default);
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.blog-home .blog-hero__search-input {
  color: var(--input-text-default);
  -webkit-text-fill-color: var(--input-text-default);
  caret-color: var(--text-main);
}

.blog-hero__search-input::-webkit-search-cancel-button { display: none; }
.blog-hero__search-input::placeholder { color: var(--input-text-default); }
.blog-home .blog-hero__search-input:focus { 	background: var(--hover-overlay); }

.blog-home .blog-hero__search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-main);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}
.blog-home .blog-hero__search-clear:hover { opacity: 0.7; }
.blog-home .blog-hero__search-clear:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }

/* while the results are on the screen, the rest of the page steps aside */
.blog-home.is-searching > section:not(.blog-hero) { display: none; }

/* ===== Search results ===== */
.blog-hero__results-found { margin: 54px 0 48px; }
@media (min-width: 1200px) { .blog-hero__results-found { margin-bottom: 120px; } }

.blog-hero__results-title,
.blog-hero__popular-title {
  max-width: 80%;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  text-align: left;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .blog-hero__results-title,
  .blog-hero__popular-title { max-width: 100%; font-size: 34px; line-height: 40px; letter-spacing: -1.2px; }
}

.blog-hero__results-grid { margin-top: 32px; }
.blog-home .blog-hero__load-more { margin-top: 40px; }

.blog-hero__results-empty { margin: 22px 0 48px; }
@media (min-width: 1200px) { .blog-hero__results-empty { margin-bottom: 120px; } }

.blog-home .blog-hero__nothing-found {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.12px;
  color: var(--text-main);
}
.blog-home .blog-hero__nothing-found-text {
  max-width: 530px;
  margin: 20px auto 96px;
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.12px;
  color: var(--input-text-default);
}
.blog-hero__popular-grid { margin-top: 32px; }


@media (min-width: 1200px) {
  .blog-hero__nav {
    display: flex;
    align-items: center;
    gap: 32px;                /* the distance from the last category link to the search button */
  }

  .blog-home .blog-hero__search-btn { position: static; }
}