/* ============================================================
   ZAFA — WordPress Integration Fixes
   Bridges the static design system with WordPress output
   ============================================================ */

/* ── WordPress core blocks alignment ─────────────────────── */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.alignwide { max-width: 1180px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* ── Buttons ─────────────────────────────────────────────── */
.wp-block-button__link {
  display: inline-block; padding: 12px 28px;
  background: var(--red); color: var(--white);
  border-radius: 4px; font-weight: 700; text-decoration: none;
}
.wp-block-button__link:hover { background: var(--red-dark); }

/* ── Content area ────────────────────────────────────────── */
.entry-content { font-size: 16px; line-height: 1.8; color: #333; }

/* ── Post/Page meta ──────────────────────────────────────── */
.post-meta { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.post-meta span { margin: 0 8px; }

/* ── Pagination ──────────────────────────────────────────── */
.nav-links { display: flex; justify-content: center; gap: 12px; margin: 40px 0; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--dark); font-weight: 700; }
.page-numbers.current { background: var(--red); color: var(--white); border-color: var(--red); }
.page-numbers:hover { background: var(--pale); }
.page-numbers.current:hover { background: var(--red-dark); }

/* ── Search form ─────────────────────────────────────────── */
.search-form { display: flex; gap: 8px; max-width: 400px; }
.search-form input[type="search"] {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-size: 14px;
}
.search-form button {
  padding: 10px 18px; background: var(--red); color: var(--white);
  border: none; border-radius: 4px; font-weight: 700; cursor: pointer;
}

/* ── Breadcrumbs via Yoast/other ─────────────────────────── */
.breadcrumbs { padding: 16px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .breadcrumb_last { color: var(--dark); font-weight: 700; }

/* ── Elementor header icon size fix ──────────────────────── */
.elementor-location-header .elementor-icon-list-icon svg {
  width: 16px !important;
  height: 16px !important;
}
.elementor-location-header .elementor-icon-list-item {
  font-size: 14px !important;
}

/* ── Single post article styling ─────────────────────────── */
.single-post article {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.7;
}
.single-post article h2,
.single-post article h3 {
  margin-top: 1.5em;
}
.single-post article h2 {
  font-size: 24px;
  color: #2d2d2d;
}
.single-post article h3 {
  font-size: 18px;
  color: #444;
}
.single-post article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
  display: table;
}
.single-post article table td,
.single-post article table th {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}
.single-post article table th {
  background: #f5f5f5;
  font-weight: 600;
}
.single-post article tr:nth-child(even) td {
  background: #fafafa;
}
.single-post article hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid #eee;
}
.single-post article figure {
  margin: 1.5em 0;
  overflow-x: auto;
}
.single-post article ul,
.single-post article ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.single-post article li {
  margin: 0.5em 0;
}
