/* =============================================
   WordPress Content Pages — Resources & Blog
   ============================================= */

/* Sticky footer layout for short-content pages */
html { height: 100%; }
body:has(.wp-empty__box) { min-height: 100%; display: flex; flex-direction: column; }
body:has(.wp-empty__box) > .pageWrap { flex: 1; display: flex; flex-direction: column; }

/* ─── Hero ─────────────────────────────────── */
.wp-hero {
  background: #0f172a;
  color: #fff;
  padding: 120px 0 64px;
  text-align: center;
}
.wp-hero--topproz {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.wp-hero__kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 16px;
}
.wp-hero--topproz .wp-hero__kicker {
  color: #f97316;
}
.wp-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.15;
}
.wp-hero__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Breadcrumbs ──────────────────────────── */
.wp-breadcrumbs {
  padding: 20px 0;
  background: #f8f9fb;
  font-size: 14px;
}
.wp-breadcrumbs--light {
  background: transparent;
  padding: 0 0 24px;
}
.wp-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}
.wp-breadcrumbs--light a {
  color: rgba(255,255,255,0.7);
}
.wp-breadcrumbs a:hover {
  text-decoration: underline;
}
.wp-breadcrumbs__sep {
  margin: 0 8px;
  color: #94a3b8;
}
.wp-breadcrumbs--light .wp-breadcrumbs__sep {
  color: rgba(255,255,255,0.4);
}
.wp-breadcrumbs__current {
  color: #475569;
}
.wp-breadcrumbs--light .wp-breadcrumbs__current {
  color: #fff;
}

/* ─── Category Cards (Landing page) ────────── */
.wp-categories {
  padding: 64px 0;
}
.wp-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wp-category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.wp-category-card__overlay {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.wp-category-card__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
.wp-category-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ─── Subcategory Cards ────────────────────── */
.wp-subcategories {
  padding: 0 0 48px;
}
.wp-subcategories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.wp-subcategory-card {
  display: block;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wp-subcategory-card:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 16px rgba(34,197,94,0.1);
}
.wp-subcategory-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}
.wp-subcategory-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.wp-subcategory-card p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.5;
}
.wp-subcategory-card__count {
  font-size: 13px;
  color: #22c55e;
  font-weight: 600;
}

/* ─── Category Header ──────────────────────── */
.wp-category-header {
  padding: 64px 0 32px;
  text-align: center;
}
.wp-category-header__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 12px;
}
.wp-category-header__desc {
  font-size: 17px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Post Cards Grid ──────────────────────── */
.wp-posts-section {
  padding: 48px 0 80px;
}
.wp-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 32px;
}
.wp-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.wp-post-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.wp-post-card__img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  overflow: hidden;
}
.wp-post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wp-post-card__img--placeholder {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.wp-post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wp-post-card__date {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.wp-post-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}
.wp-post-card__excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* ─── Pagination ───────────────────────────── */
.wp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 0 0;
}
.wp-pagination__btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  background: #22c55e;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}
.wp-pagination__btn:hover {
  background: #16a34a;
}
.wp-pagination__info {
  font-size: 14px;
  color: #64748b;
}

/* ─── Category Filter (Blog) ──────────────── */
.wp-category-filter {
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.wp-category-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wp-category-filter__item {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #f1f5f9;
  transition: all 0.2s;
}
.wp-category-filter__item:hover,
.wp-category-filter__item.active {
  background: #1e293b;
  color: #fff;
}

/* ─── Article (single post) ────────────────── */
.wp-article {
  padding: 48px 0 64px;
}
.wp-article__header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.wp-article__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
  line-height: 1.2;
}
.wp-article__meta {
  font-size: 14px;
  color: #64748b;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.wp-article__hero {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
}
.wp-article__hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* WordPress content styling */
.wp-article__content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
}
.wp-article__content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 48px 0 16px;
}
.wp-article__content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 36px 0 12px;
}
.wp-article__content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 8px;
}
.wp-article__content p {
  margin: 0 0 20px;
}
.wp-article__content a {
  color: #22c55e;
  text-decoration: underline;
}
.wp-article__content a:hover {
  color: #16a34a;
}
.wp-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}
.wp-article__content ul,
.wp-article__content ol {
  padding-left: 24px;
  margin: 0 0 20px;
}
.wp-article__content li {
  margin-bottom: 8px;
}
.wp-article__content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid #22c55e;
  background: #f8f9fb;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}
.wp-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.wp-article__content th,
.wp-article__content td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.wp-article__content th {
  background: #f1f5f9;
  font-weight: 700;
}
.wp-article__content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}
.wp-article__content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 15px;
}
.wp-article__content pre code {
  background: transparent;
  padding: 0;
}

/* ─── Reading Time ────────────────────────── */
.wp-article__reading-time {
  color: #64748b;
}
.wp-article__reading-time i {
  margin-right: 4px;
}

/* ─── Article Layout with TOC ─────────────── */
.wp-article__layout {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}
.wp-article__layout .wp-article__content {
  flex: 1;
  min-width: 0;
  margin: 0;
}

/* ─── Table of Contents Sidebar ───────────── */
.wp-toc {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}
.wp-toc__inner {
  padding: 20px;
  background: #f8f9fb;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.wp-toc__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin: 0 0 16px;
}
.wp-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wp-toc__item {
  margin-bottom: 4px;
  border-left: 2px solid transparent;
  transition: border-color 0.2s;
}
.wp-toc__item.active {
  border-left-color: #f97316;
}
.wp-toc__item.active .wp-toc__link {
  color: #1e293b;
  font-weight: 600;
}
.wp-toc__item--h3 {
  padding-left: 12px;
}
.wp-toc__link {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.wp-toc__link:hover {
  color: #1e293b;
}

/* ─── Blog Section (Landing Pages) ────────── */
.wp-blog-landing {
  padding: 80px 0;
  background: #f8f9fb;
}
.wp-blog-landing__header {
  text-align: center;
  margin-bottom: 48px;
}
.wp-blog-landing__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 12px;
}
.wp-blog-landing__desc {
  font-size: 17px;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.wp-blog-landing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.wp-blog-landing__more {
  text-align: center;
  margin-top: 40px;
}
.wp-blog-landing__more a {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  background: #1e293b;
  color: #fff;
}
.wp-blog-landing__more a:hover {
  background: #334155;
}

/* ─── CTA Section ──────────────────────────── */
.wp-cta {
  background: #0f172a;
  padding: 80px 0;
}
.wp-cta--topproz {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.wp-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  color: #fff;
}
.wp-cta__inner h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}
.wp-cta__inner p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 28px;
  line-height: 1.6;
}
.wp-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.wp-cta__btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.wp-cta__btn--primary {
  background: #22c55e;
  color: #fff;
}
.wp-cta__btn--primary:hover {
  background: #16a34a;
}
.wp-cta--topproz .wp-cta__btn--primary {
  background: #f97316;
}
.wp-cta--topproz .wp-cta__btn--primary:hover {
  background: #ea580c;
}
.wp-cta__btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.wp-cta__btn--secondary:hover {
  border-color: #fff;
}

/* ─── Tool Cards (Resource Center) ─────────── */
.wp-tools-section {
  padding: 0 0 64px;
}
.wp-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.wp-tool-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.wp-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(9,136,28,0.1);
  border-color: #09881c;
  text-decoration: none;
  color: #1e293b;
}
.wp-tool-card__icon {
  width: 48px;
  height: 48px;
  background: #dcfce7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #09881c;
  margin-bottom: 16px;
}
.wp-tool-card__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0a0a0a;
}
.wp-tool-card__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.wp-tool-card__link {
  font-size: 14px;
  font-weight: 600;
  color: #09881c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wp-tool-card:hover .wp-tool-card__link i {
  transform: translateX(3px);
  transition: transform 0.2s ease;
}

/* ─── Empty state ──────────────────────────── */
.wp-empty,
.wp-posts-section:has(.wp-empty__box) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.wp-empty__box {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.wp-empty__icon {
  width: 56px;
  height: 56px;
  color: #cbd5e1;
  margin-bottom: 20px;
}
.wp-empty__box h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
}
.wp-empty__box p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 991px) {
  .wp-toc { display: none; }
  .wp-article__layout { display: block; }
  .wp-article__layout .wp-article__content { max-width: 760px; margin: 0 auto; }
  .wp-blog-landing__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .wp-categories__grid { grid-template-columns: repeat(2, 1fr); }
  .wp-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .wp-hero { padding: 96px 0 48px; }
  .wp-hero__desc { font-size: 16px; }
  .wp-categories { padding: 40px 0; }
  .wp-categories__grid { grid-template-columns: 1fr; }
  .wp-tools-section { padding: 0 0 40px; }
  .wp-tools-grid { grid-template-columns: 1fr; }
  .wp-posts-grid { grid-template-columns: 1fr; }
  .wp-subcategories__grid { grid-template-columns: 1fr; }
  .wp-article__content { font-size: 16px; }
  .wp-cta { padding: 56px 0; }
  .wp-cta__inner h2 { font-size: 26px; }
  .wp-category-filter__list { gap: 6px; }
  .wp-category-filter__item { padding: 6px 14px; font-size: 13px; }
  .wp-blog-landing { padding: 56px 0; }
  .wp-blog-landing__grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .wp-hero { padding: 80px 0 40px; }
  .wp-post-card__img { height: 160px; }
  .wp-article__meta { flex-direction: column; gap: 4px; }
}
