/* =========================================================
   RFR Web – block-level styles
   ========================================================= */

/* --- Reset & base ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Margin reset for raw wp:html content; :where() keeps specificity
   at zero so explicit margins below win */
:where(.hero-grid, .search-mockup, .contact-form) :where(h1, p) {
  margin: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #0f172a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* --- Header (sticky, blurred) ----------------------------- */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e1e8f0;
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* 1.5rem gutters (core defaults to 2.375em on groups with background) */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* site-title renders as <p> (level 0) */
.site-header .wp-block-site-title {
  margin: 0;
}

.site-header .wp-block-site-title a {
  color: #0f172a;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Blue logo dot after the site title */
.site-header .wp-block-site-title a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2558e8;
}

.site-header .wp-block-navigation {
  gap: 0.25rem;
}

.site-header .wp-block-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  /* !important: the navigation block forces color:inherit on links */
  color: #5a6a7e !important;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.site-header .wp-block-navigation a:hover {
  background: #eef3ff;
  color: #2558e8 !important;
}

/* --- Utility: constrained width fallback ------------------ */
/* Zero-specificity (:where) so WP core layout rules (which honour
   per-block contentSize and alignwide) always win on a live site. */
:where(.wp-block-group.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
  max-width: var(--wp--style--global--content-size, 720px);
  margin-left: auto;
  margin-right: auto;
}

:where(.wp-block-group.is-layout-constrained) > :where(.alignwide) {
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin-left: auto;
  margin-right: auto;
}

/* Wide content is 1152px: the 1200px grid minus the 1.5rem side gutters */
.wp-block-group.is-layout-constrained > .alignwide {
  max-width: 1152px;
}

.section-faq.is-layout-constrained > :not(.alignwide) {
  max-width: 1152px;
}

/* Core gives groups with a background 2.375em side padding;
   use 1.5rem gutters everywhere */
section.wp-block-group[class*="section-"] {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Section titles: fluid size --------------------------- */
h2.wp-block-heading {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* --- Hero section ---------------------------------------- */
.section-hero {
  border-bottom: 1px solid #e1e8f0;
  background-image:
    radial-gradient(ellipse 70% 55% at 100% 5%, rgba(37,88,232,0.07) 0%, transparent 65%),
    radial-gradient(#c7d7f5 1px, transparent 1px);
  background-size: auto, 28px 28px;
  background-position: top right, 0 0;
}

/* Hero 2-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-grid > * { min-width: 0; }
.hero-content { padding-top: 2.5rem; }

.section-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

/* Highlight underline effect on key word in h1 */
.hero-highlight {
  position: relative;
  display: inline-block;
  /* Own stacking context so the ::after underline stays above the
     section's solid background instead of disappearing behind it */
  z-index: 0;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: 2px;
  height: 7px;
  background: rgba(37, 88, 232, 0.18);
  border-radius: 2px;
  z-index: -1;
}

/* Lead paragraph */
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5a6a7e;
  margin-bottom: 2.25rem;
}

/* Hero CTA button */
.hero-btn {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #2558e8 0%, #1b46cc 100%);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 88, 232, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}
.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 88, 232, 0.45);
  color: #ffffff;
}
.hero-btn:active { transform: translateY(0); }

/* Badge chips under the button */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #5a6a7e;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
}
.hero-badge .check { color: #2558e8; font-weight: 700; }

/* =========================================================
   Search Mockup (right side of hero)
   ========================================================= */
.search-mockup {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 2px 4px rgba(15,23,42,0.04),
    0 8px 24px rgba(15,23,42,0.08),
    0 24px 64px rgba(15,23,42,0.06);
  overflow: hidden;
  border: 1px solid #e1e8f0;
  will-change: opacity;
  opacity: 0;
  /* Fixed height prevents hero section from resizing between search cycles */
  height: 452px;
}

/* Browser chrome bar */
.mockup-chrome {
  background: #f1f3f6;
  border-bottom: 1px solid #e1e8f0;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chrome-dots { display: flex; gap: 5px; }
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; }
.chrome-dot:nth-child(1) { background: #fc5f57; }
.chrome-dot:nth-child(2) { background: #fdbc2c; }
.chrome-dot:nth-child(3) { background: #27c840; }
.chrome-bar {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: #5a6a7e;
}

/* Mockup body / search input / results */
.mockup-body { padding: 1.25rem; }

.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #f7f9fc;
  border: 1.5px solid #e1e8f0;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  margin-bottom: 1.1rem;
  transition: border-color 0.2s;
  height: 42px;
}
.search-bar-wrap.active { border-color: #2558e8; }

.search-icon-svg { flex-shrink: 0; color: #5a6a7e; }
.search-typed {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.4;
}

.results-label {
  font-size: 0.72rem;
  color: #5a6a7e;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.625rem;
  opacity: 0;
}

.result-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e1e8f0;
  opacity: 0;
}
.result-item:last-child { border-bottom: none; }

.result-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.result-info { flex: 1; min-width: 0; }
.result-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.15rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.stars { color: #f59e0b; font-size: 0.7rem; letter-spacing: -0.5px; }
.rating-count { font-size: 0.7rem; color: #5a6a7e; }
.result-meta {
  font-size: 0.72rem;
  color: #5a6a7e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.open-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.open-badge--open  { background: #dcfce7; color: #16a34a; }
.open-badge--closed { background: #fee2e2; color: #dc2626; }

/* --- Problem cards ----------------------------------------- */
/* hover transition comes from .reveal */
.section-problem .wp-block-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

/* Card headings inherit the body line-height */
.section-problem h3 {
  line-height: 1.6;
}

/* Icon box at the top of each card */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Solution items ---------------------------------------- */
.solution-item {
  background: #f7f9fc;
  border-radius: 0 8px 8px 0;
  transition: background 0.15s;
}
.solution-item:hover { background: #eef3ff; }

/* Circular blue check */
.sol-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2558e8;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --- Package list items ---------------------------------- */
.package-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  /* List blockGap is not rendered on the front end, so flex gap is needed */
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.package-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.package-list li::before {
  content: '✓';
  color: #2558e8;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* Package cards: equal height with bottom-aligned button + hover */
.section-packages .wp-block-column {
  display: flex;
  flex-direction: column;
}
.section-packages .wp-block-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

/* Price: tight line-height */
.section-packages .wp-block-column h3 {
  line-height: 1;
}

/* Note pushed to the bottom: note + button stay bottom-aligned
   on equal-height cards */
.pkg-note {
  margin-top: auto !important;
}

/* CTA buttons */
.section-packages .wp-block-button__link {
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px !important;
  transition: transform 0.18s, box-shadow 0.18s, background 0.15s, color 0.15s;
}

.btn-package-premium .wp-block-button__link {
  background: linear-gradient(135deg, #2558e8 0%, #1b46cc 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 88, 232, 0.35);
}

.btn-package-premium .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 88, 232, 0.45);
}

/* Featured package: gradient top stripe + stronger shadow */
.package-featured {
  background-image: linear-gradient(180deg, #f5f8ff 0%, #ffffff 60px);
  box-shadow: 0 4px 28px rgba(37, 88, 232, 0.12);
}

/* "Ajánlott" badge: gradient + shadow */
.package-featured p.has-accent-background-color {
  background: linear-gradient(135deg, #2558e8, #1b46cc) !important;
  box-shadow: 0 2px 8px rgba(37, 88, 232, 0.3);
}

/* --- Outline button -------------------------------------- */
.btn-outline .wp-block-button__link {
  background: transparent !important;
  color: #2558e8 !important;
  border: 2px solid #2558e8 !important;
  transition: background 0.15s, color 0.15s;
}

.btn-outline .wp-block-button__link:hover {
  background: #eef3ff !important;
}

/* --- How it works: step circles + watermark numbers ------- */
.section-how-it-works .wp-block-column {
  position: relative;
}

/* Watermark number behind each step */
.section-how-it-works .wp-block-column::before {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(37, 88, 232, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.section-how-it-works .wp-block-column:nth-child(1)::before { content: '1'; }
.section-how-it-works .wp-block-column:nth-child(2)::before { content: '2'; }
.section-how-it-works .wp-block-column:nth-child(3)::before { content: '3'; }

/* Blue circle with white number */
.step-num {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2558e8;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(37, 88, 232, 0.3);
}

/* --- FAQ items ------------------------------------------- */
/* Left-aligned 680px list inside the 1200px section */
.section-faq .faq-item {
  max-width: 680px;
  /* Left-align to the 1152px content edge (not the section padding edge).
     !important: core constrained layout centers children with margin auto !important */
  margin-left: max(0px, calc((100% - 1152px) / 2)) !important;
  margin-right: auto !important;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
}

/* --- Trust section card ------------------------------------ */
.trust-card {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  padding: 2.25rem 2rem;
}

.trust-row {
  margin-bottom: 1.125rem;
}

.trust-row:last-child {
  margin-bottom: 0;
}

.trust-row strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.trust-row p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #5a6a7e;
  margin: 0.2rem 0 0;
}

/* Subtle blog teaser at the bottom of the trust card */
.trust-aside {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dashed #e1e8f0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #5a6a7e;
}

.trust-aside a {
  color: #2558e8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Contact form ---------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

div.contact-form-wrapper {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #7d94b0;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #3d566e;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2558e8;
  box-shadow: 0 0 0 3px rgba(37, 88, 232, 0.2);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  color: #0f172a;
  background: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit {
  align-self: flex-start;
  background: linear-gradient(135deg, #2558e8, #1b46cc);
  border: none;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  box-shadow: 0 4px 14px rgba(37, 88, 232, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 88, 232, 0.45);
}

/* --- Contact Form 7 ---------------------------------------- */
.section-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.section-contact .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.section-contact .wpcf7-response-output {
  color: #ffffff;
  font-size: 0.85rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 7px;
}

.section-contact .wpcf7-response-output:empty {
  display: none;
}

/* CF7 autop wraps each field group in a <p>; lay it out like .form-group */
.section-contact .contact-form p {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.section-contact .contact-form p br {
  display: none;
}

/* Privacy consent checkbox (static form + CF7 acceptance) */
.contact-form .form-consent label,
.section-contact .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: #7d94b0;
  cursor: pointer;
}

.contact-form .form-consent input[type="checkbox"],
.section-contact .wpcf7-acceptance input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: #2558e8;
}

.contact-form .form-consent a,
.section-contact .wpcf7-acceptance a {
  color: #a9c0da;
  text-decoration: underline;
}

/* --- Contact chips --------------------------------------- */
.contact-chip {
  display: inline-flex;
  transition: background 0.15s, border-color 0.15s;
}

.contact-chip:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  border-top: 1px solid #e1e8f0;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Static pages (page.html template) --------------------- */
.page-main .wp-block-post-title {
  font-size: 1.9rem;
}

.page-main .wp-block-post-content h2 {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.6rem;
}

.page-main .wp-block-post-content p,
.page-main .wp-block-post-content li {
  color: #5a6a7e;
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-main .wp-block-post-content p {
  margin: 0 0 1rem;
}

.page-main .wp-block-post-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page-main .wp-block-post-content li {
  margin-bottom: 0.4rem;
}

.page-main .wp-block-post-content strong {
  color: #0f172a;
  font-weight: 600;
}

.page-main .wp-block-post-content a {
  color: #2558e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-main .wp-block-post-content p.policy-meta {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #0f172a;
}

/* =========================================================
   Blog – list (home.html / archive.html)
   ========================================================= */
.blog-head {
  background-image:
    radial-gradient(ellipse 70% 55% at 100% 5%, rgba(37, 88, 232, 0.06) 0%, transparent 65%),
    radial-gradient(#c7d7f5 1px, transparent 1px);
  background-size: auto, 28px 28px;
  background-position: top right, 0 0;
  border-bottom: 1px solid #e1e8f0;
}

h1.blog-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.blog-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5a6a7e;
  margin: 0;
}

.blog-lead a {
  color: #2558e8;
  text-decoration: none;
  font-weight: 500;
}

.blog-lead a:hover {
  text-decoration: underline;
}

/* Card grid (rendered as ul.wp-block-post-template by the query loop) */
.blog-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s, box-shadow 0.18s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.blog-card .wp-block-post-featured-image {
  margin: 0;
}

.blog-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-size: 0.78rem;
  color: #5a6a7e;
  margin: 0 0 0.5rem;
}

h2.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.blog-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-card-title a:hover {
  color: #2558e8;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5a6a7e;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-excerpt p {
  margin: 0 0 1rem;
}

/* "Tovább olvasom" pinned to the card bottom */
.blog-card-excerpt .wp-block-post-excerpt__more-text {
  margin-top: auto;
}

.blog-card-excerpt .wp-block-post-excerpt__more-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2558e8;
  text-decoration: none;
}

.blog-card-excerpt .wp-block-post-excerpt__more-link:hover {
  text-decoration: underline;
}

/* Pagination */
.blog-pagination {
  margin-top: 3rem;
  font-size: 0.9rem;
  gap: 0.4rem;
}

.blog-pagination .wp-block-query-pagination-numbers {
  display: flex;
  gap: 0.4rem;
}

.blog-pagination a,
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers.dots {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
}

.blog-pagination a {
  color: #5a6a7e;
  text-decoration: none;
  border: 1px solid #e1e8f0;
  background: #ffffff;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.blog-pagination a:hover {
  color: #2558e8;
  background: #eef3ff;
  border-color: #c7d7f5;
}

.blog-pagination .page-numbers.current {
  background: #2558e8;
  color: #ffffff;
  font-weight: 600;
}

.blog-empty {
  color: #5a6a7e;
  text-align: center;
  padding: 2rem 0;
}

/* =========================================================
   Blog – single post (single.html)
   ========================================================= */
.post-main .post-meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a6a7e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

h1.post-heading {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
  color: #0f172a;
}

.post-hero-image {
  margin: 0 0 2.5rem;
}

.post-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Long-form reading typography for regular Gutenberg blocks */
.post-main .wp-block-post-content > :first-child {
  margin-top: 0;
}

.post-main .wp-block-post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 1.4rem;
}

.post-main .wp-block-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 2.75rem 0 1rem;
}

.post-main .wp-block-post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  margin: 2rem 0 0.75rem;
}

.post-main .wp-block-post-content ul,
.post-main .wp-block-post-content ol {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
}

.post-main .wp-block-post-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 0.5rem;
}

.post-main .wp-block-post-content li::marker {
  color: #2558e8;
}

.post-main .wp-block-post-content blockquote {
  background: #f7f9fc;
  border-left: 3px solid #2558e8;
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.4rem;
}

.post-main .wp-block-post-content blockquote p {
  margin: 0;
  color: #0f172a;
}

.post-main .wp-block-post-content blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: #5a6a7e;
  margin-top: 0.6rem;
}

.post-main .wp-block-post-content .wp-block-image {
  margin: 2rem 0;
}

.post-main .wp-block-post-content img {
  border-radius: 10px;
  height: auto;
}

.post-main .wp-block-post-content figcaption {
  font-size: 0.8rem;
  color: #5a6a7e;
  text-align: center;
  margin-top: 0.6rem;
}

.post-main .wp-block-post-content a {
  color: #2558e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-main .wp-block-post-content strong {
  color: #0f172a;
  font-weight: 600;
}

.post-main .wp-block-post-content hr {
  border: none;
  height: 1px;
  background: #e1e8f0;
  margin: 2.5rem auto;
}

.post-main .wp-block-post-content code {
  background: #eef3ff;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

.post-main .wp-block-post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.4rem;
}

.post-main .wp-block-post-content th,
.post-main .wp-block-post-content td {
  border: 1px solid #e1e8f0;
  padding: 0.6rem 0.75rem;
  text-align: left;
  color: #334155;
}

.post-main .wp-block-post-content th {
  background: #f7f9fc;
  color: #0f172a;
  font-weight: 600;
}

/* CTA card at the end of every post */
.post-cta {
  margin-top: 3.5rem;
  background-image: linear-gradient(135deg, #f5f8ff 0%, #ffffff 70%);
  border: 1px solid #d9e4fb;
  border-radius: 14px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 28px rgba(37, 88, 232, 0.08);
}

.post-cta h2.wp-block-heading {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 0.6rem;
}

.post-cta-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5a6a7e;
  margin: 0 0 1.5rem;
}

.post-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0;
}

.post-cta-secondary {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2558e8;
  text-decoration: none;
}

.post-cta-secondary:hover {
  text-decoration: underline;
}

/* Prev / next post links */
.post-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e8f0;
  font-size: 0.9rem;
}

.post-nav a {
  color: #5a6a7e;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.post-nav a:hover {
  color: #2558e8;
}

/* --- Scroll reveal ------------------------------------------ */
/* Classes are added by scroll-reveal.js, so content stays visible without JS */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s, transform 0.5s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Responsive adjustments ----------------------------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .search-mockup { max-width: 420px; }
}

@media (max-width: 600px) {
  section.wp-block-group[class*="section-"]:not(.section-contact):not(.section-hero) {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .section-hero {
    padding-top: 3.5rem !important;
    padding-bottom: 4rem !important;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

  /* --- Mobile navigation --- */
  /* Two short links stay inline (overlayMenu:"never"); tighten the gap
     so they fit next to the logo, matching the preview.
     !important overrides the navigation block's generated layout gap. */
  .site-header .wp-block-navigation {
    gap: 0 !important;
  }

  .site-header .wp-block-navigation a {
    padding: 0.4rem 0.5rem;
  }
}

/* --- Blog responsive -------------------------------------- */
@media (max-width: 700px) {
  /* !important: core emits the 2-column grid rule as an inline style */
  .blog-grid {
    grid-template-columns: 1fr !important;
  }

  .blog-head {
    padding-top: 3rem !important;
    padding-bottom: 2.5rem !important;
  }

  .blog-list {
    padding-top: 2.5rem !important;
    padding-bottom: 4rem !important;
  }

  .post-main {
    padding-top: 2.75rem !important;
    padding-bottom: 4rem !important;
  }

  .post-cta {
    padding: 1.75rem 1.5rem;
  }
}
