.page-blog {
  padding: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-blog__hero {
  background-color: #1e293b;
  padding: 100px 0 40px 0;
}

.page-blog .page-blog__hero__container {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.page-blog__hero__title {
  font-size: 42px;
  text-transform: uppercase;
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 0;
  font-family: 'josefin', sans-serif;
}

.page-blog__main {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog .page-blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  list-style: none;
}

.page-blog .page-blog__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-blog .page-blog__card:hover {
  transform: translateY(-4px);
}

.page-blog__card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-blog .page-blog__card__image-wrapper {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/10;
  background-color: rgb(245 246 254);
}

.page-blog .page-blog__card__image-wrapper--placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e2e8f0;
}

.page-blog .page-blog__card__image-wrapper--placeholder span {
  color: #94a3b8;
  font-size: 14px;
  font-family: 'inter', sans-serif;
}

.page-blog .page-blog__card__image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.page-blog .page-blog__card__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 12px;
  color: oklch(14.5% 0 0);
  font-family: 'josefin', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 52px;
}

.page-blog .page-blog__card__link:hover .page-blog__card__title {
  color: #3582c4;
}

.page-blog .page-blog__desc {
  display: block;
  font-size: 14px;
  line-height: 22px;
  margin-top: 0;
  color: oklch(40% 0 0);
  font-family: 'inter', sans-serif;
}

.page-blog__no-posts {
  text-align: center;
  padding: 60px 20px;
}

.page-blog__no-posts p {
  font-size: 16px;
  color: oklch(40% 0 0);
  font-family: 'inter', sans-serif;
}

.page-blog .page-blog__pagination {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 32px;
  font-family: 'inter', sans-serif;
}

.page-blog .page-blog__pagination a {
  color: oklch(14.5% 0 0);
}

.page-blog .page-numbers {
  width: 32px;
  height: 32px;
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog .page-numbers.current {
  background-color: #3582c4;
  color: #fff;
}

.page-blog .page-numbers.next, .page-blog .page-numbers.prev {
  width: auto;
}

/* Page Content Styling */
.page-body {
  max-width: 768px;
  margin: 24px auto;
  padding: 0 16px;
}

.page-body p {
  font-size: 16px;
  line-height: 26px;
  margin: 16px 0 0 0;
  color: oklch(30% 0 0);
  font-family: 'inter', sans-serif;
}

.page-body p:first-child {
  margin-top: 0;
}

.page-body ul {
  list-style-type: disc;
  list-style-position: outside;
  margin: 16px 0 0 0;
  padding-left: 24px;
}

.page-body ul li {
  margin-bottom: 10px;
  line-height: 26px;
  font-size: 16px;
  color: oklch(30% 0 0);
  font-family: 'inter', sans-serif;
}

.page-body ul li:last-child {
  margin-bottom: 0;
}

.page-body ol {
  list-style-type: decimal;
  list-style-position: outside;
  margin: 16px 0 0 0;
  padding-left: 24px;
}

.page-body ol li {
  margin-bottom: 10px;
  line-height: 26px;
  font-size: 16px;
  color: oklch(30% 0 0);
  font-family: 'inter', sans-serif;
}

.page-body ol li:last-child {
  margin-bottom: 0;
}

.page-body h1, .page-body h2, .page-body h3, .page-body h4, .page-body h5, .page-body h6 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 700;
  color: oklch(20% 0 0);
  line-height: 1.3;
  font-family: 'josefin', sans-serif;
}

.page-body h1:first-child, .page-body h2:first-child, .page-body h3:first-child, .page-body h4:first-child, .page-body h5:first-child, .page-body h6:first-child {
  margin-top: 0;
}

.page-body h1 {
  font-size: 32px;
}

.page-body h2 {
  font-size: 28px;
}

.page-body h3 {
  font-size: 24px;
}

.page-body h4 {
  font-size: 20px;
}

.page-body h5 {
  font-size: 18px;
}

.page-body h6 {
  font-size: 16px;
}

.page-body blockquote {
  margin-top: 16px;
  position: relative;
  padding: 16px;
  background-color: oklch(98.5% 0 0);
  border-left: 4px solid #3582c4;
  font-family: 'inter', sans-serif;
  font-style: italic;
  color: oklch(30% 0 0);
}

.page-body blockquote:first-child {
  margin-top: 0;
}

.page-body a {
  color: #3582c4;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-body a:hover {
  color: #2b75b6;
}

.page-body img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
}

.page-body .wp-block-image {
  margin: 16px 0;
}

.page-body .wp-block-image:first-child {
  margin-top: 0;
}

@media (min-width: 768px) {
  .page-blog .page-blog__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
  }

  .page-blog__main {
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .page-body {
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .page-blog {
    padding: 0 0 60px 0;
  }

  .page-blog__hero {
    padding: 150px 0 60px 0;
  }

  .page-blog__hero__title {
    font-size: 52px;
  }
}