@charset "UTF-8";

/* =========================================
   Blog: common
   ========================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.p-blog,
.p-blog-single {
  background: var(--color-white);
}

/* =========================================
   Breadcrumb
   ========================================= */
.p-blog-breadcrumb {
  margin-bottom: 5.6rem;
}

.p-blog-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #73758a;
  font-size: 1.2rem;
  line-height: 1.6;
}

.p-blog-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.p-blog-breadcrumb__item + .p-blog-breadcrumb__item::before {
  margin-right: 0.8rem;
  color: #b6b8c7;
  content: "/";
}

.p-blog-breadcrumb__item[aria-current="page"] {
  color: var(--color-text-main);
}

/* =========================================
   Blog hero
   ========================================= */
.p-blog-hero {
  position: relative;
  overflow: hidden;
  padding: 12.8rem 0 8.8rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(132, 97, 248, 0.13), transparent 28%),
    radial-gradient(circle at 88% 70%, rgba(70, 128, 251, 0.12), transparent 30%),
    linear-gradient(180deg, #fafaff 0%, #f6f7fc 100%);
}

.p-blog-hero::after {
  position: absolute;
  top: 9.6rem;
  right: -6rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(132, 97, 248, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.p-blog-hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 8rem;
}

.p-blog-hero__heading {
  text-align: center;
}

.p-blog-hero__lead {
  max-width: 72rem;
  margin: 2.4rem auto 0;
  color: #55586a;
  font-size: 1.5rem;
  line-height: 2;
}

.p-blog-hero__description p {
  margin: 0;
}

.p-blog-hero--compact {
  padding-bottom: 7.2rem;
}

/* =========================================
   Index / archive tools
   ========================================= */
.p-blog-index {
  padding: 8.8rem 0 11rem;
}

.p-blog-index__inner {
  padding: 0 8rem;
}

.p-blog-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3.2rem;
  margin-bottom: 5.6rem;
  padding-bottom: 3.2rem;
  border-bottom: 1px solid #e8e9f0;
}

.p-blog-tools--search {
  justify-content: flex-end;
}

.p-blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

.p-blog-categories__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid #dddfea;
  border-radius: 9999px;
  background: var(--color-white);
  color: #56596c;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.p-blog-categories__item:hover,
.p-blog-categories__item.is-current {
  border-color: var(--color-accent-purple);
  background: var(--color-accent-purple);
  color: var(--color-white);
  opacity: 1;
  transform: translateY(-1px);
}

.p-blog-search {
  width: 30rem;
  flex: 0 0 30rem;
}

.p-blog-search-form {
  position: relative;
  width: 100%;
}

.p-blog-search-form__input {
  width: 100%;
  height: 4.6rem;
  padding: 0 5rem 0 1.8rem;
  border: 1px solid #dddfea;
  border-radius: 9999px;
  outline: none;
  background: #f8f8fb;
  color: var(--color-text-main);
  font-size: 1.3rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.p-blog-search-form__input::placeholder {
  color: #9799a8;
}

.p-blog-search-form__input:focus {
  border-color: rgba(132, 97, 248, 0.7);
  background: var(--color-white);
  box-shadow: 0 0 0 0.3rem rgba(132, 97, 248, 0.08);
}

.p-blog-search-form__button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-btn-grad-start), var(--color-btn-grad-end));
  color: var(--color-white);
  cursor: pointer;
  transform: translateY(-50%);
}

/* =========================================
   Blog cards
   ========================================= */
.p-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.8rem 3.2rem;
}

.p-blog-card {
  min-width: 0;
}

.p-blog-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  opacity: 1;
}

.p-blog-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.6rem;
  background: #eef0f7;
}

.p-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-blog-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(132, 97, 248, 0.95), rgba(70, 128, 251, 0.9)),
    #eef0f7;
  color: rgba(255, 255, 255, 0.94);
}

.p-blog-card__placeholder span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.p-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2rem 0 0;
}

.p-blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.p-blog-card__date {
  color: #858797;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.p-blog-card__category {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  background: #eff0ff;
  color: #5c55d9;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.p-blog-card__title {
  color: var(--color-text-dark);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.p-blog-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 1.2rem;
  color: #66697a;
  font-size: 1.35rem;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.p-blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  align-self: flex-start;
  margin-top: 2rem;
  color: #5755cf;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p-blog-card__arrow {
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .p-blog-card__link:hover {
    opacity: 1;
  }

  .p-blog-card__link:hover .p-blog-card__image {
    transform: scale(1.045);
  }

  .p-blog-card__link:hover .p-blog-card__arrow {
    transform: translateX(0.5rem);
  }
}

/* =========================================
   Pagination
   ========================================= */
.p-blog-pagination {
  margin-top: 8rem;
}

.p-blog-pagination .nav-links,
.p-blog-pagination > .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.p-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 4.4rem;
  padding: 0 1.2rem;
  border: 1px solid #e0e1e9;
  border-radius: 50%;
  background: var(--color-white);
  color: #56596b;
  font-size: 1.3rem;
  font-weight: 700;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.p-blog-pagination .page-numbers.prev,
.p-blog-pagination .page-numbers.next {
  min-width: auto;
  padding: 0 1.8rem;
  border-radius: 9999px;
}

.p-blog-pagination .page-numbers.current,
.p-blog-pagination a.page-numbers:hover {
  border-color: var(--color-accent-purple);
  background: var(--color-accent-purple);
  color: var(--color-white);
  opacity: 1;
}

/* =========================================
   Empty state
   ========================================= */
.p-blog-empty {
  max-width: 68rem;
  margin: 0 auto;
  padding: 6.4rem 4rem;
  border: 1px solid #e5e6ed;
  border-radius: 1.6rem;
  background: #fafafe;
  text-align: center;
}

.p-blog-empty__title {
  color: var(--color-text-dark);
  font-size: 2rem;
  font-weight: 700;
}

.p-blog-empty__text {
  margin-top: 1rem;
  color: #707283;
  font-size: 1.4rem;
}

.p-blog-empty__button {
  margin-top: 3.2rem;
}

/* =========================================
   Single article header
   ========================================= */
.p-blog-article__header {
  padding: 12.8rem 0 6.4rem;
  background:
    radial-gradient(circle at 86% 24%, rgba(70, 128, 251, 0.1), transparent 24%),
    linear-gradient(180deg, #fafaff 0%, #f7f8fc 100%);
}

.p-blog-article__header-inner {
  max-width: 112rem;
  padding: 0 8rem;
}

.p-blog-article__intro {
  max-width: 92rem;
  margin: 0 auto;
}

.p-blog-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.p-blog-article__date {
  color: #777a8b;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.p-blog-article__category {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  background: #ececff;
  color: #5b55d8;
  font-size: 1.2rem;
  font-weight: 700;
}

.p-blog-article__title {
  color: var(--color-text-dark);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* =========================================
   Single article body
   ========================================= */
.p-blog-article__main {
  max-width: 112rem;
  padding: 0 8rem 9.6rem;
}

.p-blog-article__eyecatch {
  overflow: hidden;
  max-width: 96rem;
  margin: 6.4rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 2rem;
  background: #eff0f6;
  box-shadow: 0 2rem 5rem rgba(17, 25, 70, 0.08);
}

.p-blog-article__eyecatch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-blog-article__content-wrap {
  max-width: 80rem;
  margin: 7.2rem auto 0;
}

.p-blog-article__content {
  color: #343644;
  font-size: 1.6rem;
  line-height: 2;
}

.p-blog-article__content > *:first-child {
  margin-top: 0 !important;
}

.p-blog-article__content p,
.p-blog-article__content ul,
.p-blog-article__content ol,
.p-blog-article__content figure,
.p-blog-article__content blockquote,
.p-blog-article__content table,
.p-blog-article__content pre,
.p-blog-article__content .wp-block-group,
.p-blog-article__content .wp-block-columns,
.p-blog-article__content .wp-block-buttons {
  margin-top: 2.4rem;
  margin-bottom: 2.4rem;
}

.p-blog-article__content h2 {
  position: relative;
  margin: 6.4rem 0 2.4rem;
  padding: 1.8rem 2.2rem;
  border-left: 0.5rem solid var(--color-accent-purple);
  border-radius: 0 0.8rem 0.8rem 0;
  background: #f4f4fd;
  color: var(--color-text-dark);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.55;
}

.p-blog-article__content h3 {
  margin: 5rem 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #dfe1e9;
  color: var(--color-text-dark);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-blog-article__content h4 {
  margin: 4rem 0 1.6rem;
  color: var(--color-text-dark);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-blog-article__content ul,
.p-blog-article__content ol {
  padding: 2rem 2.4rem 2rem 4.8rem;
  border-radius: 1rem;
  background: #f8f8fb;
}

.p-blog-article__content ul {
  list-style: disc;
}

.p-blog-article__content ol {
  list-style: decimal;
}

.p-blog-article__content li + li {
  margin-top: 0.8rem;
}

.p-blog-article__content a {
  color: #4f64df;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.p-blog-article__content strong {
  color: var(--color-text-dark);
  font-weight: 700;
}

.p-blog-article__content blockquote {
  position: relative;
  padding: 2.8rem 3.2rem;
  border-left: 0.4rem solid #a99af3;
  background: #f7f7fc;
  color: #565968;
}

.p-blog-article__content blockquote::before {
  position: absolute;
  top: 0.7rem;
  left: 1rem;
  color: rgba(132, 97, 248, 0.18);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  content: "“";
}

.p-blog-article__content img {
  height: auto;
  border-radius: 1.2rem;
}

.p-blog-article__content figcaption {
  margin-top: 0.8rem;
  color: #828494;
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: center;
}

.p-blog-article__content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.p-blog-article__content th,
.p-blog-article__content td {
  padding: 1.4rem 1.6rem;
  border: 1px solid #dfe1e8;
  text-align: left;
}

.p-blog-article__content th {
  background: #f2f3fa;
  color: var(--color-text-dark);
  font-weight: 700;
}

.p-blog-article__content pre {
  overflow-x: auto;
  padding: 2rem;
  border-radius: 1rem;
  background: #15182d;
  color: #f7f7fb;
  font-size: 1.35rem;
  line-height: 1.8;
}

.p-blog-article__content code {
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  background: #f0f1f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.p-blog-article__content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.p-blog-article__content .alignwide {
  width: min(96rem, calc(100vw - 6.4rem));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.p-blog-article__content .alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.p-blog-page-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 4rem;
}

.p-blog-article__tags {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 5.6rem;
  padding-top: 2.8rem;
  border-top: 1px solid #e4e5ec;
}

.p-blog-article__tags-label {
  padding-top: 0.45rem;
  color: #777a8a;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p-blog-article__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.p-blog-article__tags-list a {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  background: #f0f1f6;
  color: #646778;
  font-size: 1.2rem;
}

/* =========================================
   Previous / next
   ========================================= */
.p-blog-post-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 3.2rem;
  max-width: 112rem;
  padding: 4.8rem 8rem;
  border-top: 1px solid #e5e6ed;
}

.p-blog-post-nav__item {
  min-width: 0;
}

.p-blog-post-nav__item--next {
  text-align: right;
}

.p-blog-post-nav__label {
  display: block;
  margin-bottom: 0.8rem;
  color: #9799a7;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p-blog-post-nav__item a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  color: var(--color-text-dark);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-blog-post-nav__index {
  display: grid;
  grid-template-columns: repeat(2, 0.7rem);
  gap: 0.4rem;
  padding: 1rem;
}

.p-blog-post-nav__index span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  background: #777a8a;
}

/* =========================================
   Related posts
   ========================================= */
.p-blog-related {
  padding: 9.6rem 0 11rem;
  background: #f7f8fc;
}

.p-blog-related__inner {
  padding: 0 8rem;
}

.p-blog-related__heading {
  margin-bottom: 5.6rem;
}

.p-blog-grid--related .p-blog-card__media {
  background: #e9ebf2;
}

/* =========================================
   Tablet
   ========================================= */
@media screen and (max-width: 1024px) {
  .p-blog-hero {
    padding: 9.6rem 0 6.4rem;
  }

  .p-blog-hero__inner,
  .p-blog-index__inner,
  .p-blog-related__inner {
    padding-right: 3.2rem;
    padding-left: 3.2rem;
  }

  .p-blog-breadcrumb {
    margin-bottom: 4rem;
  }

  .p-blog-index {
    padding: 7.2rem 0 8.8rem;
  }

  .p-blog-tools {
    flex-direction: column;
    gap: 2.4rem;
    margin-bottom: 4.8rem;
  }

  .p-blog-search {
    width: 100%;
    max-width: 40rem;
    flex: none;
  }

  .p-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem 2.4rem;
  }

  .p-blog-article__header {
    padding: 9.6rem 0 5.6rem;
  }

  .p-blog-article__header-inner,
  .p-blog-article__main,
  .p-blog-post-nav {
    padding-right: 3.2rem;
    padding-left: 3.2rem;
  }

  .p-blog-article__title {
    font-size: 3.4rem;
  }

  .p-blog-article__content-wrap {
    margin-top: 5.6rem;
  }

  .p-blog-related {
    padding: 8rem 0 8.8rem;
  }
}

/* =========================================
   Smartphone
   ========================================= */
@media screen and (max-width: 767px) {
  .p-blog-hero {
    padding: 8.4rem 0 5.6rem;
  }

  .p-blog-hero::after {
    width: 22rem;
    height: 22rem;
  }

  .p-blog-hero__inner,
  .p-blog-index__inner,
  .p-blog-related__inner {
    padding-right: 1.6rem;
    padding-left: 1.6rem;
  }

  .p-blog-breadcrumb {
    margin-bottom: 3.2rem;
  }

  .p-blog-breadcrumb__list {
    font-size: 1.1rem;
  }

  .p-blog-hero__lead {
    margin-top: 1.8rem;
    font-size: 1.3rem;
    line-height: 1.85;
  }

  .p-blog-index {
    padding: 5.6rem 0 7.2rem;
  }

  .p-blog-tools {
    margin-bottom: 3.6rem;
    padding-bottom: 2.4rem;
  }

  .p-blog-categories {
    gap: 0.7rem;
  }

  .p-blog-categories__item {
    min-height: 3.6rem;
    padding: 0.6rem 1.3rem;
    font-size: 1.15rem;
  }

  .p-blog-search {
    max-width: none;
  }

  .p-blog-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .p-blog-card__media {
    border-radius: 1.2rem;
  }

  .p-blog-card__body {
    padding-top: 1.6rem;
  }

  .p-blog-card__title {
    font-size: 1.8rem;
  }

  .p-blog-card__excerpt {
    font-size: 1.3rem;
    line-height: 1.8;
  }

  .p-blog-pagination {
    margin-top: 5.6rem;
  }

  .p-blog-pagination .page-numbers {
    min-width: 4rem;
    height: 4rem;
  }

  .p-blog-pagination__label {
    display: none;
  }

  .p-blog-article__header {
    padding: 8.4rem 0 4.8rem;
  }

  .p-blog-article__header-inner,
  .p-blog-article__main,
  .p-blog-post-nav {
    padding-right: 1.6rem;
    padding-left: 1.6rem;
  }

  .p-blog-article__title {
    font-size: 2.7rem;
    line-height: 1.55;
  }

  .p-blog-article__main {
    padding-bottom: 7.2rem;
  }

  .p-blog-article__eyecatch {
    margin-top: 4rem;
    border-radius: 1.2rem;
    box-shadow: 0 1rem 3rem rgba(17, 25, 70, 0.08);
  }

  .p-blog-article__content-wrap {
    margin-top: 4.8rem;
  }

  .p-blog-article__content {
    font-size: 1.5rem;
    line-height: 1.95;
  }

  .p-blog-article__content h2 {
    margin-top: 5rem;
    padding: 1.5rem 1.6rem;
    font-size: 2.2rem;
  }

  .p-blog-article__content h3 {
    margin-top: 4rem;
    font-size: 1.9rem;
  }

  .p-blog-article__content h4 {
    font-size: 1.7rem;
  }

  .p-blog-article__content ul,
  .p-blog-article__content ol {
    padding: 1.6rem 1.6rem 1.6rem 3.6rem;
  }

  .p-blog-article__content blockquote {
    padding: 2.4rem 2rem;
  }

  .p-blog-article__content .alignwide {
    width: calc(100vw - 3.2rem);
  }

  .p-blog-article__tags {
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 4.8rem;
  }

  .p-blog-post-nav {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.2rem;
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .p-blog-post-nav__item a {
    font-size: 0;
  }

  .p-blog-post-nav__item a > span[aria-hidden="true"] {
    font-size: 2rem;
  }

  .p-blog-post-nav__label {
    margin-bottom: 0.4rem;
  }

  .p-blog-related {
    padding: 6.4rem 0 7.2rem;
  }

  .p-blog-related__heading {
    margin-bottom: 4rem;
  }

  .p-blog-empty {
    padding: 4.8rem 2rem;
  }
}
