/**
 * Blog: archive + single post, DPOS-inspired layout.
 *
 * @package usjdm
 */

body.blog-archive-active,
body.usjdm-blog-single-active {
  background: #f4f5f6;
  color: #1e1f21;
}

.blog-archive-active .site-main.blog-archive-page,
.usjdm-blog-single-active .usjdm-blog-single-main {
  padding-bottom: clamp(56px, 7vw, 96px);
}


.dpos-container {
  width: min(1720px, calc(100% - 32px));
  margin: 0 auto;
}

.dpos-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #63666d;
}

.dpos-heading--xl {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #17181b;
}

.dpos-lead {
  margin: 14px 0 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: #4a4d55;
}

.dpos-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ea580c;
  text-decoration: none;
  font-weight: 700;
}

.dpos-link-more:hover,
.dpos-link-more:focus-visible {
  color: #c2410c;
}

.dpos-blog-index {
  padding: 0 0 clamp(56px, 7vw, 96px);
}

.dpos-blog-index .page-header-default + .dpos-blog-index__list {
  margin-top: clamp(1.6rem, 3.2vw, 2.8rem);
}

.dpos-blog-grid,
.posts-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dpos-blog-card,
.post-card {
  background: #fff;
  border: 1px solid rgba(33, 34, 37, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(16, 18, 25, 0.08);
}

.dpos-blog-card__image,
.post-card-image {
  aspect-ratio: 4 / 3;
  display: block;
}

.dpos-blog-card__image img,
.post-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dpos-blog-card__body,
.post-card-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
}

.dpos-blog-card__body time,
.post-card-body time {
  color: #6b7079;
  font-size: 0.875rem;
}

.dpos-blog-card__body h2,
.post-card-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
}

.dpos-blog-card__body h2 a,
.post-card-title a {
  color: #181a1f;
  text-decoration: none;
}

.dpos-blog-card__body h2 a:hover,
.post-card-title a:hover {
  color: #ea580c;
}

.dpos-blog-card__body p,
.post-card-excerpt {
  margin: 0;
  color: #4d535d;
  line-height: 1.65;
}

.post-card-category {
  margin: 0;
  color: #7b808a;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-archive-pagination,
.navigation.blog-archive-pagination,
.dpos-blog-index .nav-links {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.blog-archive-pagination .page-numbers,
.dpos-blog-index .page-numbers {
  border: 1px solid rgba(20, 22, 29, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  color: #1c1f26;
  background: #fff;
}

.blog-archive-pagination .page-numbers.current,
.blog-archive-pagination .page-numbers:hover,
.dpos-blog-index .page-numbers.current,
.dpos-blog-index .page-numbers:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.dpos-blog-hero.entry-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
  padding: clamp(1.7rem, 3.2vw, 2.7rem);
  padding-top: 150px;
  background: #111318;
}

.dpos-blog-hero.entry-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dpos-hero-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(1);
  transform: scale(1.02);
  transform-origin: center;
}

.dpos-blog-hero.entry-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.5) 0%, rgba(10, 11, 14, 0.8) 100%);
}

.dpos-blog-hero.entry-header > * {
  position: relative;
  z-index: 1;
}

.dpos-blog-breadcrumbs-wrap {
  margin-bottom: 0.4rem;
}

.dpos-blog-breadcrumbs-wrap .breadcrumbs {
  margin: 0;
}

.dpos-blog-breadcrumbs-wrap .breadcrumbs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.9375rem;
}

.dpos-blog-breadcrumbs-wrap .breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.86);
}

.dpos-blog-breadcrumbs-wrap .breadcrumbs-item a,
.dpos-blog-breadcrumbs-wrap .breadcrumbs-item span {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.dpos-blog-breadcrumbs-wrap .breadcrumbs-item a:hover,
.dpos-blog-breadcrumbs-wrap .breadcrumbs-item a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.dpos-blog-breadcrumbs-wrap .breadcrumbs-sep {
  color: rgba(255, 255, 255, 0.55);
}

.dpos-blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #6b7079;
}

.dpos-blog-breadcrumbs a {
  color: #6b7079;
  text-decoration: none;
}

.dpos-blog-breadcrumbs a:hover,
.dpos-blog-breadcrumbs a:focus-visible {
  color: #ea580c;
}

.dpos-blog-hero__meta {
  margin-top: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dpos-blog-hero__dot {
  opacity: 0.6;
}

.dpos-blog-hero__title {
  margin: 0.85rem 0 1rem;
  color: #ffffff;
  font-size: clamp(2rem, 4.75vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.dpos-blog-hero__excerpt {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  line-height: 1.7;
}

.dpos-blog-hero__cats {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dpos-blog-hero__cats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-size: 0.875rem;
}

.dpos-blog-hero__image {
  margin-top: clamp(1.4rem, 3vw, 2.25rem);
}

.dpos-blog-hero__image img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.dpos-blog-layout {
  margin-top: clamp(1.6rem, 3vw, 2.8rem);
  display: grid;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  align-items: start;
}

.dpos-blog-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1rem;
}

.dpos-blog-sidebar__box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 20px;
  padding: 1rem 1.1rem;
}

.dpos-blog-sidebar__box h2 {
  margin: 0 0 0.7rem;
  color: #17191e;
  font-size: 1rem;
}

.dpos-blog-share ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.dpos-blog-toc ol {
  margin: 0;
  padding-left: 1.35rem;
  list-style: decimal;
  display: grid;
  gap: 0.45rem;
}

.dpos-blog-toc li::marker {
  color: #8a919c;
  font-weight: 600;
}

.dpos-blog-toc a,
.dpos-blog-share a {
  color: #565b65;
  text-decoration: none;
}

.dpos-blog-toc a:hover,
.dpos-blog-toc a:focus-visible,
.dpos-blog-share a:hover,
.dpos-blog-share a:focus-visible {
  color: var(--usjdm-accent);
}

.dpos-blog-toc a.is-active {
  color: var(--usjdm-accent);
  font-weight: 500;
}

.dpos-blog-content {
  min-width: 0;
}

.dpos-blog-content > :first-child {
  margin-top: 0;
}

.dpos-blog-content > :last-child {
  margin-bottom: 0;
}

.dpos-blog-content h2,
.dpos-blog-content h3,
.dpos-blog-content h4 {
  color: #15171c;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.dpos-blog-content h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}

.dpos-blog-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.dpos-blog-content p,
.dpos-blog-content li {
  color: #2f333b;
  line-height: 1.72;
}

.dpos-blog-content ul,
.dpos-blog-content ol {
  padding-left: 1.25rem;
}

.dpos-blog-content blockquote {
  margin: 1.35rem 0;
  padding: 1.1rem 1.15rem;
  border-left: 4px solid #ea580c;
  background: #fff6f1;
  border-radius: 12px;
}

.dpos-blog-content img {
  border-radius: 16px;
}

.dpos-blog-content .wp-block-image,
.dpos-blog-content figure {
  margin: 1.35rem 0;
}

.dpos-blog-content table,
.wp-block-table table,
.dpos-blog-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35rem 0;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.dpos-blog-content table thead th,
.wp-block-table table thead th,
.dpos-blog-content .wp-block-table table thead th {
  background: #f7f7f7;
  color: #17191f;
  font-weight: 600;
  text-align: left;
}

.dpos-blog-content table th,
.dpos-blog-content table td,
.wp-block-table table th,
.wp-block-table table td,
.dpos-blog-content .wp-block-table table th,
.dpos-blog-content .wp-block-table table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #ededed;
  vertical-align: top;
}

.dpos-blog-content table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even),
.dpos-blog-content .wp-block-table table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.dpos-blog-content table tbody tr:last-child td,
.wp-block-table table tbody tr:last-child td,
.dpos-blog-content .wp-block-table table tbody tr:last-child td {
  border-bottom: 0;
}

.usjdm-blog-single-main .post-navigation,
nav.navigation.post-navigation {
  display: none;
}

@media (max-width: 1100px) {
  .dpos-blog-grid,
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dpos-blog-sidebar {
    position: static;
    order: 2;
  }

  .dpos-blog-content {
    order: 1;
  }
}

@media (max-width: 760px) {
  .dpos-container {
    width: min(1280px, calc(100% - 24px));
  }

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

  .dpos-blog-content {
    overflow-x: auto;
  }

  .dpos-blog-content table,
  .wp-block-table table,
  .dpos-blog-content .wp-block-table table {
    min-width: 620px;
  }
}


p.post-card-category a {
    position: relative;
    padding-left: 22px;
    color: red;
    text-decoration: none;
}


p.post-card-category a::before {
    content: "";
    display: block;
    height: 15px;
    width: 15px;
    background: red;
    transform: translateY(-50%);
    border-radius: 100%;
    position: absolute;
    left: 0;
    top: 50%;
}