/* Pages: posts, post detail, pricing, breadcrumbs */

/* Breadcrumbs */
.breadcrumbs {
  padding: 18px 0 0;
  background: var(--surface);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--muted);
  opacity: 0.6;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Shared CTA row */
.section-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Post grid + cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-soft), var(--green-soft));
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-media.post-type-video {
  background: linear-gradient(135deg, #ffe8e8, var(--blue-soft));
}

.post-card-media.post-type-guide {
  background: linear-gradient(135deg, var(--purple-soft), var(--blue-soft));
}

.post-card-icon svg {
  width: 54px;
  height: 54px;
  color: var(--blue);
}

.post-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}

.post-card-title {
  margin: 0 0 10px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.post-card-excerpt {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-more {
  margin-top: auto;
  color: var(--blue);
  font-weight: 600;
  font-size: var(--fs-xs);
}

/* Filters */
.post-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.post-filter {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-filter:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.post-filter.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.post-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* Post single */
.post-single-inner {
  max-width: 820px;
}

.post-single-head {
  text-align: center;
  margin-bottom: 28px;
}

.post-single-head .post-type-badge {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.post-single-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.post-single-date {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-bottom: 14px;
}

.post-single-excerpt {
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin-bottom: 8px;
}

.post-single-excerpt > :first-child { margin-top: 0; }
.post-single-excerpt > :last-child { margin-bottom: 0; }
.post-single-excerpt p { margin-bottom: 10px; }
.post-single-excerpt ul,
.post-single-excerpt ol {
  margin: 10px 0;
  padding-left: 1.4em;
  text-align: left;
}
.post-single-excerpt ul { list-style: disc; }
.post-single-excerpt ol { list-style: decimal; }
.post-single-excerpt a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-single-cover,
.post-single-video {
  margin: 0 auto 32px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-single-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.post-single-video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.post-single-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-single-body {
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.85;
}

.post-single-body h2 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
  color: var(--blue-dark);
}

.post-single-body h3 {
  margin: 24px 0 10px;
  font-size: 1.12rem;
  color: var(--text);
}

.post-single-body p {
  margin-bottom: 16px;
}

.post-single-body ul,
.post-single-body ol {
  margin: 0 0 16px 22px;
}

.post-single-body blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: var(--muted);
}

.post-single-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-single-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.post-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.is-highlight {
  border: 2px solid var(--green);
  box-shadow: 0 28px 60px rgba(53, 169, 54, 0.18);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  color: var(--white);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.pricing-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.pricing-tagline {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 42px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.pricing-amount {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-period {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.pricing-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335a936' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pricing-cta {
  width: 100%;
  text-align: center;
}

.pricing-note {
  margin-top: 44px;
  text-align: center;
}

.pricing-note p {
  color: var(--muted);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .post-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .post-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
