/* Blog page — Figma node 4177:158 */

:root {
  --blog-blue: #0003a7;
  --blog-date-bg: #f4f4ff;
  --blog-filter-active: #e4e5ff;
  --blog-accent: #2671fb;
}

.blog-hero {
  padding-bottom: 120px;
}

.blog-hero .page-hero__wrap {
  padding-top: 24px;
}

.blog-hero .breadcrumb {
  margin-bottom: 40px;
}

.blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  justify-content: space-between;
  align-items: start;
  gap: 56px;
}

.blog-hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 28px;
  max-width: 620px;
}

.blog-hero__title-accent {
  color: var(--blog-accent);
}

.blog-hero__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  max-width: 580px;
}

/*Serach form*/
.blog-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.blog-hero__search input {
  width: 332px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #d9d9d9;
  border-radius: 834px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
  outline: none;
  box-sizing: border-box;
}

.blog-hero__search input::placeholder {
  color: #777;
}

.blog-hero__search button {
  width: 129px;
  height: 42px;
  border: none;
  border-radius: 834px;
  background: #ff9300;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}


/* Featured card */
.blog-featured {
  background: var(--white);
  border-radius: 40px;
  width: 100%;
  max-width: none;
  min-height: 560px;
  overflow: hidden;
  margin-top: 0;
  box-shadow: 0 12px 40px rgba(18, 19, 72, 0.06);
}

.blog-featured__image {
  width: calc(100% - 40px);
  height: 360px;
  margin: 20px auto 0;
  border-radius: 32px;
  overflow: hidden;
}

.blog-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-featured__body {
  padding: 23px 33px 40px 22px;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 17px;
}

.blog-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 6px 12px;
  background: var(--blog-date-bg);
  border-radius: 15px;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--blog-blue);
  white-space: nowrap;
}

.blog-category {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: var(--blog-blue);
  white-space: nowrap;
}

.blog-featured__title {
  font-size: 25px;
  font-weight: 700;
  line-height: normal;
  color: var(--navy);
  max-width: 544px;
  margin-bottom: 12px;
}

.blog-featured__text {
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  color: var(--navy);
  max-width: 497px;
}

/* Category filters */
.blog-listing {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.blog-filters {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.blog-filters__pill {
  margin-right: 51px;
}

.blog-filters__tab + .blog-filters__tab {
  margin-left: 46px;
}

.blog-filters__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 39px;
  padding: 6px 12px;
  border-radius: 36px;
  background: var(--blog-filter-active);
  border: none;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 500;
  line-height: normal;
  color: var(--blog-blue);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.blog-filters__pill.is-active {
  background: var(--blog-filter-active);
  color: var(--blog-blue);
}

.blog-filters__tab {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 500;
  line-height: normal;
  color: var(--black);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}

.blog-filters__tab.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 39px;
  padding: 6px 12px;
  border-radius: 36px;
  background: var(--blog-filter-active);
  color: var(--blog-blue);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 56px;
}

.blog-card__media {
  width: 100%;
  height: 280px;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 18px;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .blog-date {
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
  max-width: none;
}

.blog-card:nth-child(3n+1) .blog-card__title {
  max-width: none;
}

.blog-card__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
  max-width: none;
}

.blog-card:nth-child(3n+1) .blog-card__text {
  max-width: none;
}

.blog-card.is-hidden {
  display: none;
}

/*filter css*/
.blog-filters__pill {
  background: transparent;
  color: var(--black);
}

.blog-filters__pill.is-active {
  background: var(--blog-filter-active);
  color: var(--blog-blue);
}

.blog-filters__tab {
  background: none;
  color: var(--black);
}

.blog-filters__tab.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 39px;
  padding: 6px 12px;
  border-radius: 36px;
  background: var(--blog-filter-active);
  color: var(--blog-blue);
}

/* Newsletter */
.blog-newsletter {
  padding-bottom: 71px;
}

.blog-newsletter__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 136px;
  padding: 24px 44px;
  background: var(--purple-light);
  border-radius: var(--radius-cta);
  max-width: 1199px;
}

.blog-newsletter__icon {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-icon);
  border-radius: var(--radius-cta-icon);
}

.blog-newsletter__icon img {
  width: 54px;
  height: 50px;
  object-fit: contain;
}

.blog-newsletter__text {
  flex: 1;
  min-width: 200px;
}

.blog-newsletter__text h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  color: var(--navy);
}

.blog-newsletter__text p {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 400;
  line-height: normal;
  color: var(--navy);
}

.blog-newsletter__form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.blog-newsletter__form input {
  width: 312px;
  min-height: 37px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.81);
  border: 0.8px solid var(--purple);
  border-radius: 38px;
  color: var(--purple-text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
}

.blog-newsletter__form input::placeholder {
  color: var(--purple-text);
}

.blog-newsletter__form input:focus {
  outline: 2px solid rgba(80, 69, 232, 0.35);
  outline-offset: 2px;
}

.btn--subscribe {
  background: var(--purple);
  color: var(--white);
  min-width: 145px;
  border-radius: 32px;
  font-size: 15px;
  padding: 4px 16px;
}

/* Desktop — hero background matches other solution pages */
@media (min-width: 993px) {
  .blog-hero .page-hero__bg {
    height: var(--hero-bg-height);
  }
}

/* Responsive */
@media (max-width: 1320px) {
  .blog-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-featured {
    width: 100%;
    max-width: none;
    margin-top: 0;
    min-height: auto;
  }

  .blog-featured__image {
    width: calc(100% - 40px);
    max-width: none;
    height: 300px;
  }

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

  .blog-filters {
    flex-wrap: wrap;
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .blog-hero {
    overflow: visible;
    padding-bottom: 32px;
  }

  .blog-hero .page-hero__wrap {
    overflow: visible;
    min-width: 0;
  }

  .blog-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    min-width: 0;
    width: 100%;
  }

  .blog-hero__content {
    min-width: 0;
    width: 100%;
  }

  .blog-hero__title,
  .blog-hero__desc {
    max-width: 100%;
  }

  .blog-hero__search {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
  }

  .blog-hero__search input,
  .blog-hero__search button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .blog-featured {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 30px;
    min-height: auto;
    position: relative;
    z-index: 1;
  }

  .blog-featured__image {
    width: calc(100% - 32px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 565 / 314;
    margin-inline: auto;
  }

  .blog-featured__body {
    padding: 20px 20px 20px;
  }

  .blog-featured__title,
  .blog-featured__text {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .blog-featured__meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .blog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 40px;
  }

  .blog-filters__pill {
    margin-right: 0;
  }

  .blog-filters__tab + .blog-filters__tab {
    margin-left: 0;
  }

  .blog-filters__pill,
  .blog-filters__tab {
    min-width: 0;
    width: 100%;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .blog-filters__pill,
  .blog-filters__tab.is-active {
    min-width: 0;
    height: auto;
    min-height: 39px;
    padding: 8px 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-newsletter__form {
    width: 100%;
    flex-wrap: wrap;
  }

  .blog-newsletter__form input {
    flex: 1;
    width: auto;
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  .blog-featured__image {
    border-radius: 24px;
    aspect-ratio: auto;
    height: 200px;
  }
}

@media (min-width: 1321px) {
  .blog-featured {
    min-height: 400px;
  }

  .blog-featured__image {
    height: 220px;
  }

  .blog-featured__body {
    padding-bottom: 10px;
  }
}

/* Card / featured links — preserve layout */
.blog-card__link,
.blog-featured__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-empty {
  grid-column: 1 / -1;
  color: var(--navy);
  font-size: 18px;
}

/* ========== Single post (detail) ========== */

.blog-single-hero {
  padding-bottom: 100px;
}

/* Override listing’s large crumb gap on detail pages */
.blog-single-hero .breadcrumb {
  margin-bottom: 32px;
}

.blog-single-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  justify-content: space-between;
  align-items: start;
  gap: 56px;
}

.blog-single-hero__content {
  max-width: 640px;
  padding-top: 8px;
}

.blog-single-hero__content .blog-hero__title {
  margin-top: 8px;
  margin-bottom: 24px;
  max-width: 640px;
  font-size: 44px;
}

.blog-single-hero__content .blog-hero__desc {
  max-width: 600px;
  margin-bottom: 0;
}

.blog-single-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.blog-single-hero__visual {
  margin: 0;
  width: 100%;
}

.blog-single-hero__media {
  width: 100%;
  max-width: none;
  background: var(--white);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(18, 19, 72, 0.08);
  padding: 20px;
}

.blog-single-hero__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.blog-single {
  padding: 0 0 var(--section-space);
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.blog-single__shell {
  max-width: none;
  width: 100%;
}

.blog-single__panel {
  background: var(--white);
  border-radius: 36px;
  padding: 56px 64px 48px;
  box-shadow: 0 8px 32px rgba(18, 19, 72, 0.06);
  border: 1px solid rgba(18, 19, 72, 0.06);
  max-width: 1100px;
  margin: 0 auto;
}

.blog-single__content {
  font-size: 19px;
  line-height: 1.8;
  color: var(--navy);
  font-weight: 400;
}

/* No scroll-word blur on article body */
.blog-single__content .scroll-word,
.blog-single__content .scroll-word.is-visible {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

.blog-single__content > *:first-child {
  margin-top: 0;
}

.blog-single__content p {
  margin-bottom: 1.4em;
}

.blog-single__content h2,
.blog-single__content h3 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 1.85em 0 0.7em;
}

.blog-single__content h2 {
  font-size: 30px;
}

.blog-single__content h3 {
  font-size: 24px;
}

.blog-single__content ul,
.blog-single__content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  list-style: disc;
}

.blog-single__content ol {
  list-style: decimal;
}

.blog-single__content li {
  margin-bottom: 0.5em;
}

.blog-single__content a {
  color: var(--blog-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-single__content blockquote {
  margin: 1.6em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--blog-accent);
  background: var(--blog-date-bg);
  border-radius: 0 16px 16px 0;
  font-size: 20px;
  color: var(--navy);
}

.blog-single__content img {
  border-radius: 24px;
  margin: 1.5em 0;
}

.blog-single__footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(18, 19, 72, 0.08);
}

.blog-single__cat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 834px;
  background: var(--blog-filter-active);
  color: var(--blog-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Related posts */
.blog-related {
  padding: var(--section-space) 0;
}

.blog-related__head {
  margin-bottom: 48px;
  max-width: 640px;
}

.blog-related__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.blog-related__desc {
  font-size: 20px;
  color: var(--navy);
  opacity: 0.85;
}

.blog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
}

.blog-single-page .cta {
  padding-bottom: var(--section-space-cta);
}

@media (max-width: 1100px) {
  .blog-single-hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .blog-single-hero__content {
    max-width: none;
    padding-top: 0;
  }

  .blog-single-hero__media {
    max-width: none;
  }

  .blog-single-hero__media img {
    height: 320px;
  }

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

@media (max-width: 992px) {
  .blog-single-hero {
    padding-bottom: 56px;
  }

  .blog-single-hero .breadcrumb {
    margin-bottom: 16px;
  }

  .blog-single {
    margin-top: -16px;
    padding-bottom: var(--mobile-section-space);
  }

  .blog-single__panel {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .blog-single__content {
    font-size: 16px;
  }

  .blog-single__content h2 {
    font-size: 24px;
  }

  .blog-single-hero__media {
    padding: 12px;
    border-radius: 28px;
  }

  .blog-single-hero__media img {
    height: 220px;
    border-radius: 20px;
  }

  .blog-related {
    padding: var(--mobile-section-space) 0;
  }

  .blog-related__title {
    font-size: 28px;
  }

  .blog-grid--related {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .blog-single-hero__actions .btn {
    min-width: 0;
  }

  .blog-listing {
    padding-top: var(--mobile-section-space);
    padding-bottom: var(--mobile-section-space);
  }

  .blog-card__media {
    height: 220px;
  }
}



