/* Blog + managed public pages. This layer follows the existing TSWolf theme
   variables so light/dark modes stay visually consistent. */
.content-hero,
.project-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(2.8rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 72%, transparent), transparent);
  border-bottom: 1px solid var(--border);
}

.content-hero h1,
.project-hero h1 {
  max-width: 980px;
  margin: .7rem 0 1rem;
  color: var(--text);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.content-hero p,
.project-hero__lead {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

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

.content-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card,
.project-card {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.content-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content-card--compact .content-card__body {
  padding: 1.1rem 1.2rem;
}

.content-card__media {
  display: grid;
  height: 210px;
  place-items: center;
  overflow: hidden;
  color: var(--brand-2);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 13%, var(--surface-muted)),
    color-mix(in srgb, var(--brand-2) 15%, var(--surface-muted)));
  border-bottom: 1px solid var(--border);
}

.content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.content-card:hover .content-card__media img {
  transform: scale(1.025);
}

.content-card__media span {
  color: var(--brand-2);
  font-size: 3rem;
}

.content-card__body,
.project-card__body {
  min-width: 0;
  padding: 1.35rem;
}

.content-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.content-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  margin-bottom: .65rem;
  color: var(--text-muted);
  font-size: .82rem;
}

.content-card h2,
.content-card h3,
.project-card h2 {
  margin: 0 0 .7rem;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.content-card p,
.project-card p {
  color: var(--text-soft);
}

.content-card a,
.project-card a {
  color: inherit;
  text-decoration: none;
}

.content-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .45rem;
  margin-top: auto;
  padding-top: .55rem;
  color: var(--brand) !important;
  font-weight: 800;
}

.content-card__link:hover {
  color: var(--brand-2) !important;
}

.content-empty {
  grid-column: 1 / -1;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
  color: var(--text-soft);
  text-align: center;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg, 24px);
}

.content-empty i {
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 2rem;
}

.content-empty h2 {
  color: var(--text);
}

.content-pagination {
  margin-top: 2.25rem;
}

.content-pagination nav {
  display: flex;
  justify-content: center;
}

.content-pagination .pagination {
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: 0;
}

.content-pagination .page-link {
  min-width: 40px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px !important;
  text-align: center;
}

.content-pagination .page-link:hover,
.content-pagination .page-link:focus {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
  box-shadow: none;
}

.content-pagination .page-item.active .page-link {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
}

.content-pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
  opacity: .65;
}

.preview-banner {
  position: sticky;
  top: var(--header-h, 0);
  z-index: 45;
  padding: .7rem 0;
  color: #111827;
  background: #fbbf24;
  border-bottom: 1px solid rgba(120, 53, 15, .2);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.article-shell {
  padding: clamp(3rem, 6vw, 5.2rem) 0;
}

.article-shell__container {
  max-width: 980px !important;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin: 1rem 0;
  color: var(--text);
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.article-back:hover {
  color: var(--brand-2);
}

.article-meta,
.article-taxonomy,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem .8rem;
  color: var(--text-muted);
}

.article-taxonomy {
  margin-top: 1rem;
}

.article-taxonomy span,
.article-tags span {
  padding: .32rem .65rem;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 76%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.article-featured {
  margin: 2rem 0;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.article-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-content,
.post-content {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.article-content img,
.post-content img {
  max-width: 100%;
  height: auto;
}

.article-content > :first-child,
.post-content > :first-child {
  margin-top: 0;
}

.article-content > :last-child,
.post-content > :last-child {
  margin-bottom: 0;
}

.article-content h2,
.post-content h2 {
  margin-top: 2.2rem;
  color: var(--text);
}

.article-content h3,
.post-content h3 {
  margin-top: 1.7rem;
  color: var(--text);
}

.article-content pre,
.post-content pre {
  max-width: 100%;
  overflow: auto;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.article-content table,
.post-content table {
  max-width: 100%;
}

.article-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.project-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
}

.project-card__icon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-muted));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 17px;
  font-size: 1.3rem;
}

.project-card__body {
  padding: 0;
}

.project-card__type {
  display: inline-block;
  margin-bottom: .45rem;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-card ul {
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.project-hero__glow {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 520px;
  height: 520px;
  background: color-mix(in srgb, var(--brand-2) 18%, transparent);
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
}

.project-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.project-hero__grid--single {
  grid-template-columns: minmax(0, 920px);
}

.project-actions,
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

.project-badges span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
}

.project-badges i,
.project-checks i,
.pricing-card li i {
  color: var(--success);
}

.project-hero__visual {
  min-width: 0;
}

.project-hero__visual img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.project-feature-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-feature-board > div,
.process-grid article,
.pricing-card {
  min-width: 0;
  padding: 1.3rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.project-feature-board span {
  display: block;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-feature-board strong {
  display: block;
  margin: .3rem 0;
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  overflow-wrap: anywhere;
}

.project-feature-board p,
.process-grid article p,
.pricing-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.project-overview--single {
  grid-template-columns: minmax(0, 920px);
}

.project-checks {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.project-checks li {
  display: flex;
  gap: .6rem;
  margin: .65rem 0;
  color: var(--text-soft);
}

.project-checks i {
  margin-top: .3rem;
}

.project-service-grid,
.process-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-service-grid .about-panel {
  min-height: 0;
}

.process-grid article > span {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--brand);
  font-weight: 900;
}

.process-grid article h3,
.pricing-card h3 {
  color: var(--text);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.special,
.pricing-card.is-featured,
.pricing-card.featured {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--border));
  box-shadow: 0 22px 58px color-mix(in srgb, var(--brand) 14%, transparent), var(--shadow-soft);
}

.pricing-card__price {
  display: block;
  margin: .8rem 0;
  color: var(--brand);
  font-size: 2rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pricing-card ul {
  flex: 1 1 auto;
  margin-bottom: 1.1rem;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: flex;
  gap: .5rem;
  margin: .55rem 0;
  color: var(--text-soft);
}

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

.faq-grid--single {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}

.faq-item {
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.1rem;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  color: var(--brand);
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item > div {
  padding: 0 1.1rem 1rem;
  color: var(--text-soft);
}

.faq-item > div > :last-child {
  margin-bottom: 0;
}

.project-final-cta {
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--brand-2) 15%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.project-final-cta > p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--text-soft);
}

.project-final-cta .project-actions,
.project-badges--center {
  justify-content: center;
}

.project-table-wrap {
  width: 100%;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.project-pricing-table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  color: var(--text);
  border-collapse: collapse;
}

.project-pricing-table th,
.project-pricing-table td {
  padding: 1rem;
  color: var(--text-soft);
  background: transparent;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.project-pricing-table th:last-child,
.project-pricing-table td:last-child {
  border-right: 0;
}

.project-pricing-table tr:last-child > * {
  border-bottom: 0;
}

.project-pricing-table thead th {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface-muted));
}

.project-pricing-table tbody th {
  color: var(--text);
}

.project-plan-badge {
  display: inline-flex;
  margin: .3rem 0 0 .5rem;
  padding: .22rem .5rem;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.project-plan-price {
  display: block;
  margin-top: .45rem;
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 900;
}

.project-pricing-table small {
  display: block;
  margin-top: .35rem;
  color: var(--text-muted);
  font-weight: 400;
}

.project-table-cta {
  display: inline-block;
  margin-top: .45rem;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.project-pricing-addon + .project-pricing-addon {
  margin-top: 2.5rem;
}

.project-pricing-addon > h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.project-pricing-note {
  max-width: 850px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
}

@media (max-width: 991.98px) {
  .content-grid,
  .content-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-hero__grid,
  .project-overview {
    grid-template-columns: 1fr;
  }

  .project-service-grid,
  .process-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-banner {
    top: 84px;
  }
}

@media (max-width: 767.98px) {
  .preview-banner {
    position: relative;
    top: auto;
  }

  .article-shell {
    padding-top: 2.5rem;
  }

  .project-feature-board,
  .faq-grid,
  .faq-grid--single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .content-grid,
  .content-grid--compact,
  .project-service-grid,
  .process-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .content-card__media {
    height: 180px;
  }

  .project-card {
    display: block;
  }

  .project-card__icon {
    margin-bottom: 1rem;
  }

  .project-pricing-table {
    min-width: 600px;
  }
}

/* Flexible page-builder blocks */
.landing-content-blocks {
  display: contents;
}

.landing-content-block {
  position: relative;
  width: 100%;
  padding: 56px 0;
}

.landing-content-block > .container {
  position: relative;
  z-index: 1;
}

.landing-flex-heading,
.landing-flex-rich-text,
.landing-flex-quote,
.landing-flex-media-title,
.landing-flex-media-link {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.landing-flex-heading h2,
.landing-flex-split h2,
.landing-flex-media-title {
  margin: 8px 0 16px;
}

.landing-flex-image {
  margin: 0 auto;
  max-width: 1180px;
}

.landing-flex-image img,
.landing-flex-split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.landing-flex-image figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--text-muted, #667085);
  font-size: .92rem;
}

.landing-flex-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.landing-flex-split--image-left .landing-flex-split__media {
  order: -1;
}

.landing-flex-split__media {
  margin: 0;
}

.landing-flex-actions {
  justify-content: center;
}

.landing-flex-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.landing-flex-card {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 18px;
  padding: 24px;
  background: var(--surface, #fff);
}

.landing-flex-card > img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

.landing-flex-card > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .08);
}

.landing-flex-card h3 {
  margin: 0 0 10px;
}

.landing-flex-card p {
  margin: 0 0 14px;
}

.landing-flex-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.landing-flex-stat {
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 18px;
}

.landing-flex-stat i,
.landing-flex-stat strong,
.landing-flex-stat span {
  display: block;
}

.landing-flex-stat strong {
  margin: 6px 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.landing-flex-stat p {
  margin: 10px 0 0;
}

.landing-flex-quote {
  padding: 34px;
  border-left: 4px solid currentColor;
  border-radius: 0 18px 18px 0;
  background: rgba(15, 23, 42, .035);
}

.landing-flex-quote > i {
  font-size: 1.7rem;
  opacity: .42;
}

.landing-flex-quote blockquote {
  margin: 12px 0 14px;
}

.landing-flex-quote figcaption {
  font-weight: 600;
}

.landing-flex-video {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1220;
}

.landing-flex-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.landing-flex-video-file {
  display: block;
  width: min(100%, 1100px);
  margin: 0 auto;
  border-radius: 18px;
  background: #0b1220;
}

.landing-flex-media-title {
  margin-bottom: 22px;
  text-align: center;
}

.landing-flex-media-link {
  text-align: center;
}

.landing-flex-spacer {
  width: 100%;
}

.landing-flex-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, .14);
}

@media (max-width: 767.98px) {
  .landing-content-block {
    padding: 40px 0;
  }

  .landing-flex-split {
    grid-template-columns: 1fr;
  }

  .landing-flex-split--image-left .landing-flex-split__media {
    order: 0;
  }

  .landing-flex-quote {
    padding: 24px;
  }
}
