:root {
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --text: #1b1d29;
  --muted: #5d6275;
  --border: #e3e5ef;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, .92);
  --input-border: #cfd2e0;
  --primary: #5b4cf0;
  --primary-dark: #4636d8;
  --primary-rgb: 91, 76, 240;
  --accent-rgb: 47, 140, 255;
  --accent: #2f8cff;
  --dark: #12131c;
  --radius: 14px;
  --container: 1160px;
  font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
  font-size: var(--font-size, 17px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--link, var(--primary)); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-family: var(--font-heading, inherit); font-weight: var(--heading-weight, 800); color: var(--heading-color, inherit); }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.narrow { max-width: var(--narrow, 780px); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Admin bar (only rendered for logged-in users) */
#adminbar { position: fixed; inset: 0 0 auto 0; height: 32px; z-index: 9999; background: #1d2327; color: #f0f0f1; display: flex; align-items: center; font: 13px/32px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; padding: 0 8px; }
#adminbar .ab-item { color: #f0f0f1; text-decoration: none; padding: 0 10px; display: inline-block; background: none; border: 0; font: inherit; cursor: pointer; white-space: nowrap; }
#adminbar .ab-item:hover { background: #2c3338; color: #72aee6; }
#adminbar .ab-strong { font-weight: 600; }
#adminbar .ab-draft { color: #f0c33c; cursor: default; }
#adminbar .ab-spacer { flex: 1; }
#adminbar .ab-form { margin: 0; }
#adminbar .ab-menu { position: relative; }
#adminbar .ab-dropdown { display: none; position: absolute; top: 32px; left: 0; background: #2c3338; min-width: 140px; padding: 4px 0; }
#adminbar .ab-dropdown a { display: block; color: #f0f0f1; text-decoration: none; padding: 0 14px; line-height: 30px; }
#adminbar .ab-dropdown a:hover { color: #72aee6; }
#adminbar .ab-menu:hover .ab-dropdown, #adminbar .ab-menu:focus-within .ab-dropdown { display: block; }
body.has-adminbar { padding-top: 32px; }
body.has-adminbar .site-header { top: 32px; }

/* Header */
.site-header { position: relative; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-height, 72px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.main-nav a:not(.btn):hover, .main-nav a.current { color: var(--primary); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 20px; padding: 4px 10px; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: var(--btn-padding, 12px 26px); border-radius: var(--btn-radius, 999px); font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--primary); background: transparent; }
.nav-cta { padding: 10px 22px; }

/* Home sections */
.hero { padding: 110px 0 100px; background: radial-gradient(1100px 500px at 85% -10%, rgba(var(--primary-rgb), .35), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(var(--accent-rgb), .3), transparent 60%), var(--dark); color: #fff; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 15ch; letter-spacing: -.02em; }
.hero .lead { font-size: 20px; color: #c9cbe0; max-width: 56ch; }
.hero .btn-ghost { color: #fff; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--primary) 45%, white); background: rgba(var(--primary-rgb), .18); border: 1px solid rgba(var(--primary-rgb), .4); padding: 4px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(28px, 4vw, 40px); margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: 0 6px 24px rgba(27, 29, 41, .05); }
.card h3 { font-size: 22px; color: var(--primary); }
.card p { margin: 0; color: var(--muted); }

/* Single pages */
.single { padding: 60px 0 80px; }
.entry-header h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.01em; }
.page-intro { padding: 60px 0 20px; }
.entry-meta { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.entry-meta a { color: inherit; }
.entry-image { margin: 0 0 30px; }
.entry-image img { border-radius: var(--radius); width: 100%; }
.entry-image figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 6px; }
.site-content h2 { font-size: 28px; margin-top: 1.4em; }
.site-content h3 { font-size: 22px; margin-top: 1.2em; }
.site-content blockquote { border-inline-start: 4px solid var(--primary); margin: 1.4em 0; padding: 4px 20px; color: var(--muted); font-size: 19px; }
.site-content img { border-radius: 10px; }
.full-content > *:not(section) { width: min(var(--container), 100% - 32px); margin-inline: auto; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; padding-bottom: 80px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card-body { padding: 22px; }
.post-card h2 { font-size: 22px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.read-more { font-weight: 700; text-decoration: none; }

/* Forms */
.cms-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.form-row { margin-bottom: 16px; border: 0; padding: 0; }
.form-row label:not(.inline), .form-row legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.form-row input:not([type=checkbox]):not([type=radio]), .form-row textarea, .form-row select { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--surface); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 3px solid rgba(var(--primary-rgb), .2); border-color: var(--primary); }
.form-row .inline { display: inline-flex; gap: 8px; align-items: center; margin-inline-end: 18px; }
.req { color: #d63638; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: #e8f7ee; border: 1px solid #b4e2c5; color: #11622f; padding: 16px 20px; border-radius: 10px; font-weight: 600; margin: 16px 0; }
.form-error { background: #fdecec; border: 1px solid #f3b9b9; color: #9b1c1c; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }

/* Comments */
.comments { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 30px; }
.comment { border-bottom: 1px solid var(--border); padding: 16px 0; }
.comment-text { white-space: pre-wrap; }

/* Footer */
.site-footer { background: var(--dark); color: #c9cbe0; padding-top: 56px; }
.site-footer .brand { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-tagline { margin: 12px 0 0; max-width: 40ch; }
.site-footer nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; }
.footer-nav a { color: #e6e7f2; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 14px; color: #8d90a8; }
.not-found { padding: 120px 0; }
.not-found h1 { font-size: 96px; color: var(--primary); margin: 0; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; }
  .menu-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 70px 0; }
  .section { padding: 60px 0; }
  #adminbar .ab-item:not(.ab-strong):not(button) { display: none; }
}

/* ---------- Search ---------- */
.nav-search input { width: 150px; font: inherit; font-size: 15px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-alt); transition: width .2s; }
.nav-search input:focus { width: 210px; outline: 2px solid rgba(var(--primary-rgb), .25); border-color: var(--primary); background: var(--surface); }
.search-page { padding-bottom: 80px; }
.search-big { display: flex; gap: 10px; margin-bottom: 20px; }
.search-big input { flex: 1; font: inherit; padding: 12px 18px; border: 1px solid var(--input-border); border-radius: 999px; }
.search-result { border-bottom: 1px solid var(--border); padding: 18px 0; }
.search-result h2 { font-size: 22px; margin-bottom: 6px; }
.search-result h2 a { color: var(--text); text-decoration: none; }
.search-result h2 a:hover { color: var(--primary); }
.lead-muted { color: var(--muted); font-size: 19px; max-width: 60ch; }
.empty-note { padding-bottom: 80px; }

/* ---------- Posts ---------- */
.entry-tags { margin-top: 36px; }
.tag-link { display: inline-block; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; font-size: 14px; text-decoration: none; margin: 0 6px 6px 0; }
.preview-notice { background: #fcf9e8; border-bottom: 1px solid #f0d97a; color: #6b5300; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.post-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ---------- Components ---------- */
.block { padding: 80px 0; }
.bg-white { background: var(--surface); }
.bg-light { background: var(--bg-alt); }
.bg-dark { background: var(--dark); color: #e6e7f2; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .muted, .bg-dark .entry-meta { color: #a9acc4; }
.block-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.block-intro { color: var(--muted); font-size: 19px; max-width: 65ch; margin-bottom: 36px; }
.bg-dark .block-intro { color: #c9cbe0; }

.block-hero { padding: 110px 0 100px; }
.block-hero.bg-dark { background: radial-gradient(1100px 500px at 85% -10%, rgba(var(--primary-rgb), .35), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(var(--accent-rgb), .3), transparent 60%), var(--dark); }
.hero-grid { display: grid; gap: 50px; align-items: center; }
.hero-grid.has-image { grid-template-columns: 1.1fr 1fr; }
.hero-grid.align-center { text-align: center; justify-items: center; }
.hero-grid.align-center .hero-actions { justify-content: center; }
.hero-grid.align-center .lead { margin-inline: auto; }
.block-hero h1 { font-size: clamp(36px, 5.5vw, 62px); letter-spacing: -.02em; }
.block-hero .lead { font-size: 20px; max-width: 56ch; color: var(--muted); }
.block-hero.bg-dark .lead { color: #c9cbe0; }
.block-hero.bg-dark .btn-ghost { color: #fff; }
.hero-image { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); width: 100%; }

.block-cta .cta-inner { padding: 10px 0; }
.block-cta p { font-size: 19px; }

.columns-grid { display: grid; gap: 26px; }
.columns-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.columns-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.columns-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.column-item h3 { font-size: 21px; margin-top: 14px; }
.column-item p { color: var(--muted); }
.bg-dark .column-item:not(.card) p { color: #c9cbe0; }
.column-image { width: 100%; border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; }
.column-item.card { padding: 26px; }

.block-image figure { margin: 0; }
.block-image .full-width img { width: 100%; display: block; }
.block-image .block-image { border-radius: var(--radius); width: 100%; }
.block-image figcaption, .video-caption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.image-right .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); }

.carousel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.carousel-head .block-title { margin: 0; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 18px; cursor: pointer; }
.carousel-nav button:hover { border-color: var(--primary); color: var(--primary); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; margin-bottom: 20px; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-track .post-card h3 { font-size: 20px; }
.carousel-track .post-card h3 a { color: var(--text); text-decoration: none; }
.bg-dark .post-card { color: var(--text); }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item > div { padding-bottom: 14px; color: var(--muted); }
.bg-dark .faq-item > div { color: #c9cbe0; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.block-form .cms-form { background: var(--surface); }

@media (max-width: 960px) {
  .columns-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 860px) {
  .nav-search input, .nav-search input:focus { width: 100%; }
  .hero-grid.has-image, .split, .columns-grid.cols-2, .columns-grid.cols-3, .columns-grid.cols-4 { grid-template-columns: 1fr; }
  .split.image-right .split-media { order: 0; }
  .carousel-track { grid-auto-columns: 85%; }
  .block { padding: 56px 0; }
}
.brand-logo { display: block; width: auto; max-width: 260px; object-fit: contain; }

.site-header.is-sticky { position: sticky; }
.brand { font-family: var(--font-heading, inherit); }

input, select, textarea, button { color: inherit; }
.form-row input:not([type=checkbox]):not([type=radio]), .form-row textarea, .form-row select, .search-big input { background: var(--surface); }

/* ---------- Dark mode ---------- */
html[data-theme="dark"] {
  --bg: #0f1117; --bg-alt: #161a24; --surface: #1b1f2b; --text: #e7e9f1; --muted: #a3a8bb;
  --border: #2a3040; --header-bg: rgba(15, 17, 23, .9); --input-border: #3a4256;
  color-scheme: dark;
}
html[data-theme="dark"] .card, html[data-theme="dark"] .post-card { box-shadow: none; }
html[data-theme="dark"] .post-card h2 a, html[data-theme="dark"] .carousel-track .post-card h3 a, html[data-theme="dark"] .search-result h2 a { color: var(--text); }
html[data-theme="dark"] .form-success { background: #12301f; border-color: #1f5c3a; color: #9be3b8; }
html[data-theme="dark"] .form-error { background: #3a1616; border-color: #6b2525; color: #f5b5b5; }
html[data-theme="dark"] .preview-notice { background: #3a3110; border-color: #6b5a1a; color: #f0d97a; }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; font-size: 17px; display: grid; place-items: center; }
.theme-toggle:hover { border-color: var(--primary); }
/* Light mode shows the moon (switch to dark), dark mode shows the sun. */
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: inline; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 18px; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-inline-end: 6px; opacity: .6; }
[dir="rtl"] .breadcrumbs li + li::before { content: "‹"; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs + #main .single { padding-top: 28px; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a.current { background: var(--primary); color: #fff; }

/* ---------- Social links & footer ---------- */
.social-links { list-style: none; display: flex; gap: 10px; margin: 18px 0 0; padding: 0; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #e6e7f2; transition: background .15s, color .15s; }
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link-like { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Popup ---------- */
.cms-popup { position: fixed; inset: 0; z-index: 10000; background: rgba(10, 12, 20, .6); display: grid; place-items: center; padding: 20px; animation: cms-fade .25s ease; }
.cms-popup[hidden] { display: none; }
.cms-popup-box { position: relative; width: min(480px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: cms-pop .3s ease; }
.cms-popup-image { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.cms-popup-body { padding: 26px 28px 30px; }
.cms-popup-body h2 { font-size: 26px; margin-bottom: 10px; }
.cms-popup-body p { color: var(--muted); white-space: pre-line; margin: 0 0 20px; }
.cms-popup-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 1; }
@keyframes cms-fade { from { opacity: 0; } }
@keyframes cms-pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; z-index: 9999; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.cookie-banner[hidden] { display: none; }
.cookie-banner.pos-bottom { inset: auto 16px 16px; border-radius: var(--radius); }
.cookie-banner.pos-center { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); border-radius: var(--radius); }
.cookie-inner { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 18px 22px; }
.cookie-text { flex: 1 1 380px; font-size: 15px; }
.cookie-text p { margin: 4px 0 0; color: var(--muted); }
.cookie-prefs { flex-basis: 100%; display: grid; gap: 10px; }
.cookie-cat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.cookie-cat input { margin-top: 4px; }
.cookie-cat span { display: flex; flex-direction: column; }
.cookie-cat small { color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 18px; font-size: 15px; }

/* ---------- Right-to-left (Hebrew, Arabic) ---------- */
[dir="rtl"] .faq-item summary { padding: 18px 0 18px 36px; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 4px; }
[dir="rtl"] .carousel-nav button { transform: scaleX(-1); }
[dir="rtl"] .hero h1, [dir="rtl"] .block-hero h1 { letter-spacing: 0; }

/* ---------- Posts grid component ---------- */
.posts-grid { display: grid; gap: 26px; }
.posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.posts-grid .post-card h3 { font-size: 20px; }
.posts-grid .post-card h3 a { color: var(--text); text-decoration: none; }
.posts-grid + .center { margin-top: 30px; }
@media (max-width: 960px) { .posts-grid.cols-3, .posts-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid.cols-2, .posts-grid.cols-3, .posts-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Customizer: header & footer styles ---------- */
.site-header.style-dark { --header-bg: rgba(18, 19, 28, .95); --header-text: #fff; border-bottom-color: rgba(255, 255, 255, .08); }
.site-header.style-dark .brand, .site-header.style-dark .main-nav a:not(.btn) { color: #fff; }
.site-header.style-dark .main-nav a:not(.btn):hover, .site-header.style-dark .main-nav a.current { color: color-mix(in srgb, var(--primary) 55%, white); }
.site-header.style-dark .nav-search input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.site-header.style-dark .menu-toggle, .site-header.style-dark .theme-toggle { color: #fff; border-color: rgba(255, 255, 255, .2); }
@media (max-width: 860px) { .site-header.style-dark .main-nav { background: var(--dark); } }
@media (max-width: 860px) {
  .hide-mobile-cta .nav-cta { display: none; }
  .hide-mobile-search .nav-search { display: none; }
}

.site-footer.style-light { background: var(--bg-alt); color: var(--muted); border-top: 1px solid var(--border); }
.site-footer.style-light .brand { color: var(--text); }
.site-footer.style-light .footer-nav a { color: var(--text); }
.site-footer.style-light .footer-nav a:hover { color: var(--primary); }
.site-footer.style-light .footer-bottom { border-top-color: var(--border); color: var(--muted); }
.site-footer.style-light .social-links a { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.site-footer.layout-centered .footer-inner, .site-footer.layout-centered .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
.site-footer.layout-centered nav, .site-footer.layout-centered .footer-nav, .site-footer.layout-centered .social-links { justify-content: center; }
.site-footer.layout-centered .footer-tagline { margin-inline: auto; }
.site-footer.layout-stacked .footer-inner { flex-direction: column; align-items: flex-start; }

/* ---------- Customizer: single post ---------- */
.single.is-wide { max-width: var(--container); }
.related-posts { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 30px; }
.related-posts .post-grid { padding-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related-posts .post-card h3 { font-size: 18px; }
.related-posts .post-card h3 a { color: var(--text); text-decoration: none; }

/* ---------- Customizer: blog / archive ---------- */
.post-grid.cols-1 { grid-template-columns: 1fr; }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.post-grid.layout-list { grid-template-columns: 1fr; }
.post-grid.layout-list .post-card { flex-direction: row; }
.post-grid.layout-list .post-card-image { flex: 0 0 34%; }
.post-grid.layout-list .post-card-image img { height: 100%; aspect-ratio: auto; }
.post-card .post-cats { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.post-card .post-cats a { text-decoration: none; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 0 0 80px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 960px) { .post-grid.cols-3, .post-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .post-grid.cols-2, .post-grid.cols-3, .post-grid.cols-4 { grid-template-columns: 1fr; }
  .post-grid.layout-list .post-card { flex-direction: column; }
}
.footer-bottom { align-items: center; } .footer-bottom .social-links { margin: 0; }

/* ---------- Floating buttons: chatbot, WhatsApp, accessibility, cookies ---------- */
.float-btn { width: var(--size, 56px); height: var(--size, 56px); border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: var(--primary); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: transform .15s; }
.float-btn:hover { transform: scale(1.06); }
.float-btn svg { width: 50%; height: 50%; }
.whatsapp-btn { position: fixed; z-index: 9990; background: #25d366; }
.left-buttons { position: fixed; z-index: 9990; display: flex; flex-direction: column; gap: 10px; }
.left-buttons .a11y-btn { background: #1d4ed8; }
.left-buttons .cookie-btn { background: var(--dark); }
.cms-chatbot { position: fixed; z-index: 9995; }
.chat-window { position: absolute; bottom: calc(var(--size) + 14px); width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 140px)); background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); display: flex; flex-direction: column; overflow: hidden; }
.side-right .chat-window { right: 0; }
.side-left .chat-window { left: 0; }
.chat-window[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--primary); color: #fff; }
.chat-head strong { flex: 1; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.chat-close { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.chat-msg.bot { background: var(--bg-alt); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg .chat-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.chat-msg .chat-links a { font-weight: 700; }
.chat-msg.typing { color: var(--muted); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggestions button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chat-suggestions button:hover { border-color: var(--primary); color: var(--primary); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid var(--input-border); border-radius: 999px; background: var(--surface); }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
/* The cookie banner sits above the floating buttons. */
.cookie-banner { z-index: 9999; }

/* Columns: numbered steps */
.block-columns .columns-grid:has(.step) { counter-reset: step; }
.column-item.step { counter-increment: step; }
.column-item.step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(90deg, var(--primary), var(--accent)); }
[id] { scroll-margin-top: calc(var(--header-height, 72px) + 12px); }

/* Pricing table */
.block-pricing .block-title, .block-pricing .block-intro { text-align: center; margin-inline: auto; }
.price-grid { display: grid; gap: 22px; align-items: stretch; }
.price-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.price-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.price-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.price-card.is-featured { border: 2px solid var(--primary); box-shadow: 0 20px 50px rgba(var(--primary-rgb), .15); }
.price-badge { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price-card h3 { margin: 0 0 4px; font-size: 20px; }
.price-desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.price { margin: 0; }
.price strong { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.price-features { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.price-features li { position: relative; padding-inline-start: 26px; margin: 9px 0; font-size: 15px; }
.price-features li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--primary); font-weight: 800; }
.price-action { margin: 0; }
.price-action .btn { display: block; text-align: center; }
.price-footnote { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.bg-dark .price-card { color: var(--text); }
@media (max-width: 860px) { .price-grid.cols-2, .price-grid.cols-3, .price-grid.cols-4 { grid-template-columns: 1fr; } }
