/*
Theme Name: HCLP Theme
Theme URI: https://homecontentslistpro.com
Author: Home Contents List Pro
Author URI: https://homecontentslistpro.com
Description: A WordPress theme based on the Home Contents List Pro landing page design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hclp-theme
*/

/* CSS Variables */
:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --primary: #2256f2;
  --primary-dark: #173bb0;
  --text-main: #0b1020;
  --text-muted: #6b7280;
  --accent: #10b981;
  --danger: #ef4444;
  --border: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  width: 100%;
  min-height: auto;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  width: 100%;
}

/* Logo/left side container */
.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.nav-left .logo {
  white-space: nowrap;
}

/* Container for links + CTA */
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

/* Links row */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

/* CTA buttons (right side) */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Hamburger button (hidden by default) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
  border-radius: 999px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* Each bar of the hamburger */
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1070px) {
  .nav-links .hideNarrow {
    display: none;
  }
}

/* Logo container */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Icon – blue outline house */
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Wordmark */
.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-text-main {
  color: #000000;
}

.logo-text-pro {
  color: var(--primary);
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}

main { 
  flex: 1; 
  width: 100%;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.section-tight { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* HERO (home) */
.hero {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.hero-inner {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 2rem 0 0;
}

.hero-content {
  max-width: 650px;
  margin: 0 auto;
}

.hero-copy-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subheadline {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto;
  margin-bottom: 1.25rem;
}

.hero-cta-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-microcopy { font-size: 0.85rem; color: var(--text-muted); }

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.hero-visual {
  background: var(--bg-alt);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-centered {
  display: flex;
  justify-content: center;
  text-align: center;
}

.image-placeholder {
  border-radius: 20px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  padding: 1.5rem;
  background: repeating-linear-gradient(
    45deg,
    #f9fafb,
    #f9fafb 8px,
    #e5e7eb 8px,
    #e5e7eb 9px
  );
  color: #4b5563;
  font-size: 0.9rem;
}

.image-placeholder strong { display: block; margin-bottom: 0.25rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.section-heading {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.section-subheading {
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.75rem;
  font-size: 0.96rem;
}

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

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

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-screenshot {
  padding-top: 1rem;
  padding-bottom: 0;
}

.screenshot-narrow {
  max-width: 620px;
  margin: 0 auto;
}

.feature-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Adds a white frame around each screenshot */
.feature-screenshot-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.screenshot-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  display: block;
}

.parallax-float {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
}

.parallax-float:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.item-screenshot-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* Generic form styles (used on contact page) */
.form-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.form-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-card label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-card input[type="text"]:focus,
.form-card input[type="email"]:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.form-card textarea {
  min-height: 130px;
  resize: vertical;
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-alt);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin-top: 1.5rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #f3f4ff;
  font-weight: 600;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-check { color: var(--accent); font-weight: 700; }

.comparison-cross { color: var(--danger); font-weight: 700; }

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

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.testimonial-name { font-size: 0.9rem; font-weight: 600; }

.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

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

.faq-item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.final-cta {
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
}

.final-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

footer {
  border-top: 1px solid var(--border);
  background: #f9fafb;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pricing page specific */
.pricing-hero {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.pricing-hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.pricing-hero-subheadline {
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.billing-toggle {
  margin-top: 1.8rem;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: #e5e7eb;
  font-size: 0.9rem;
}

.billing-option {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.billing-option.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.billing-note {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.plan-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.plan-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.plan-price { font-size: 2rem; font-weight: 700; }

.plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.plan-price-alt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.plan-savings {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.1rem;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.plan-feature-list {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

.plan-feature-list li { margin-bottom: 0.35rem; }

.plan-cta { margin-top: auto; }

.plan-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.included-strip {
  background: #eef2ff;
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  margin-top: 2.5rem;
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #312e81;
}

.included-strip strong { font-size: 0.98rem; }

.cost-section { margin-top: 3rem; }

.check { color: var(--accent); font-weight: 700; }

.dash { color: #9ca3af; font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .testimonials { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  
  /* Show the hamburger, hide the desktop layout */
  .nav-toggle {
    display: inline-flex;
  }
  
  .nav-main .hideNarrow {
    display: block !important;
  }

  .nav-main {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1.5rem 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 15;
  }

  /* When nav is open */
  .nav.nav-open .nav-main {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Blog/Post Styles */
.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
}

.post-card-image {
  display: block;
  overflow: hidden;
  background: var(--bg);
}

.post-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-card-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.post-card-meta a:hover {
  color: var(--primary);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.post-card-excerpt p {
  margin: 0;
}

.post-card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  margin-top: auto;
}

.post-card-link:hover {
  color: var(--primary-dark);
}

/* Single Post Styles */
.single-post {
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.post-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--primary);
}

.post-featured-image {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--primary-dark);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-tags {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-tags a {
  color: var(--primary);
  text-decoration: none;
  margin-left: 0.5rem;
}

.post-tags a:hover {
  text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
  display: block;
  font-weight: 600;
  color: var(--text-main);
}

.post-navigation a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-navigation a:hover .nav-title {
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background: transparent;
  color: var(--text-main);
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.comment-content {
  color: var(--text-main);
  line-height: 1.6;
}

.comment-form {
  margin-top: 2rem;
}

.comment-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form .submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-form .submit:hover {
  background: var(--primary-dark);
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.search-form label {
  display: none;
}

.search-form .search-field {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form .search-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-form .search-submit {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form .search-submit:hover {
  background: var(--primary-dark);
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .post-navigation .nav-next {
    text-align: right;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-form .search-submit {
    width: 100%;
  }
}

/* Content Layout Styles for Page/Post Content */
.styled-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.styled-container section {
  margin-bottom: 3.5rem;
}

.styled-container section:last-child {
  margin-bottom: 0;
}

.styled-container h2 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-weight: 700;
}

.styled-container h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 600;
}

.styled-container h4 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 600;
}

.styled-container p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.styled-container ul,
.styled-container ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: var(--text-muted);
}

.styled-container li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.styled-container strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Two Column Layout - Simplified */
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0;
}

/* Only apply flex to direct div children that are NOT column cards */
.two-columns > div:not(.column-card) {
  display: flex;
  flex-direction: column;
}

.two-columns h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.two-columns h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Three Column Layout - Simplified */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

/* Column Cards - Simplified */
.column-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.column-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Ensure images stay within their card */
.column-card .img-container {
  order: -1;
  margin-top: 0;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
  position: relative;
  contain: layout;
}

.column-card .img-container img,
.column-card .img-container .wp-caption,
.column-card .img-container figure {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  display: block;
}

.column-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
  order: 0;
}

.column-card p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.column-card ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.column-card li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* CTA Blocks - Simplified */
.cta-block {
  background: rgba(37, 99, 235, 0.05);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  text-align: center;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.cta-block-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 700;
}

.cta-block h2.cta-block-title {
  font-size: 1.75rem;
}

.cta-block-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-block h4 {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.cta-btn-large {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.cta-btn-full {
  width: 100%;
  max-width: 400px;
}

/* Image Container - Simplified */
.img-container {
  margin: 2rem 0;
  max-width: 100%;
}

.img-container img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  display: block;
}

.img-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

/* WordPress Image Responsive Styles */
.styled-container img,
.styled-container .wp-image,
.styled-container img.size-large,
.styled-container img.size-medium,
.styled-container img.size-full,
.styled-container img[class*="wp-image"] {
  max-width: 100% !important;
  height: auto !important;
  width: 100% !important;
}

/* WordPress Caption Containers */
.styled-container .wp-caption,
.styled-container .wp-caption-text,
.styled-container figure,
.styled-container figure.wp-caption {
  max-width: 100% !important;
  width: 100% !important;
  margin: 1.5rem 0;
}

.styled-container .wp-caption img,
.styled-container figure img,
.styled-container figure.wp-caption img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Ensure WordPress captions stay within column cards */
.column-card .wp-caption,
.column-card figure,
.column-card figure.wp-caption {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  position: relative;
  contain: layout;
}

.column-card .wp-caption img,
.column-card figure img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  position: relative;
}

.styled-container .wp-caption-text,
.styled-container figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Image Alignment Overrides */
.styled-container img.alignnone,
.styled-container img.aligncenter,
.styled-container img.alignleft,
.styled-container img.alignright {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure images in columns are responsive and contained */
.two-columns > div:not(.column-card) img,
.three-columns img,
.column-card img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}

.two-columns > div:not(.column-card) .img-container,
.three-columns .img-container,
.column-card .img-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

/* Ensure column cards contain all their content */
.column-card {
  contain: layout style;
}

.column-card * {
  max-width: 100%;
}

/* List Numbers (Numbered Lists) - Simplified */
.list-numbers {
  margin: 2.5rem 0;
}

.list-numbers ul {
  list-style: none;
  padding: 0;
  counter-reset: item-counter;
}

.list-numbers li {
  counter-increment: item-counter;
  margin-bottom: 3rem;
  padding-left: 3.5rem;
  position: relative;
}

.list-numbers li:last-child {
  margin-bottom: 0;
}

.list-numbers li::before {
  content: counter(item-counter);
  position: absolute;
  left: 0;
  top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.list-numbers h3 {
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.list-numbers p {
  margin-bottom: 1rem;
}

.list-numbers .img-container {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* Blockquotes (Testimonials) - Simplified */
.blockquote {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 1.75rem;
  border-left: 3px solid var(--primary);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.blockquote p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.blockquote p:last-child {
  margin-bottom: 0;
}

.blockquote-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  font-style: normal;
  margin-top: 1rem;
}

/* FAQ Items - Simplified */
.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Schema Section */
.schema-section {
  margin-top: 3rem;
}

/* Custom List Styles - Simplified */
.custom-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.custom-list li {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.8;
}

.custom-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.custom-list strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .styled-container {
    padding: 1.5rem 1rem;
    font-size: 1rem;
  }
  
  .styled-container h2 {
    font-size: 1.5rem;
  }
  
  .styled-container h3 {
    font-size: 1.25rem;
  }
  
  .two-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .three-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .column-card {
    padding: 1.5rem;
  }
  
  .cta-block {
    padding: 2rem 1.5rem;
  }
  
  .cta-block-title {
    font-size: 1.35rem;
  }
  
  .cta-block h2.cta-block-title {
    font-size: 1.5rem;
  }
  
  .list-numbers li {
    padding-left: 3rem;
    margin-bottom: 2.5rem;
  }
  
  .list-numbers li::before {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
  
  .blockquote {
    padding: 1.5rem;
  }
  
  /* Ensure all images are responsive on mobile */
  .styled-container img,
  .styled-container .img-container img,
  .styled-container .wp-caption img,
  .styled-container figure img,
  .two-columns img,
  .three-columns img,
  .column-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .styled-container .wp-caption,
  .styled-container figure,
  .styled-container .img-container {
    max-width: 100% !important;
    width: 100% !important;
  }
}

