/**
 * AILAAV brand utilities - Stitch Concept 1 tokens.
 * Use via Elementor Advanced → CSS Classes on containers/buttons.
 */

:root {
  --ailaav-pink: #fd35e2;
  --ailaav-orange: #ff791a;
  --ailaav-soft-pink: #ffa7f3;
  --ailaav-soft-gray: #f5f5f7;
  --ailaav-ink: #251721;
  --ailaav-muted: #56404f;
  --ailaav-white: #ffffff;
  --ailaav-surface: #fff7f9;
  --ailaav-gradient: linear-gradient(to right, var(--ailaav-pink), var(--ailaav-orange));
  --ailaav-radius: 1rem;
  --ailaav-radius-lg: 2rem;
  --ailaav-radius-xl: 3rem;
  --ailaav-radius-pill: 9999px;
  --ailaav-container-max: 1280px;
  --ailaav-gutter: 24px;
  --ailaav-stack-xxl: 120px;
  --ailaav-font-headline: "Plus Jakarta Sans", system-ui, sans-serif;
  --ailaav-font-body: Inter, system-ui, sans-serif;
  --ailaav-glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Full-bleed hero / brand planes */
.ailaav-gradient-bg {
  background: var(--ailaav-gradient) !important;
  color: var(--ailaav-white);
}

.ailaav-gradient-text,
.ailaav-gradient-text .elementor-heading-title {
  background: var(--ailaav-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/*
 * Primary CTA.
 * Specificity must beat Elementor container lazy-load:
 * `.e-con.e-parent:nth-of-type(n+4):not(.e-lazyloaded) * { background-image: none !important }`
 */
.ailaav-v2 .e-con.e-parent .ailaav-gradient-btn .elementor-button,
.elementor-location-header .e-con .ailaav-gradient-btn .elementor-button,
.ailaav-gradient-btn .elementor-button {
  background-image: linear-gradient(to right, var(--ailaav-pink), var(--ailaav-orange)) !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: var(--ailaav-radius-pill) !important;
  color: var(--ailaav-white) !important;
  box-shadow: 0 4px 14px rgba(253, 53, 226, 0.25);
  transition: filter 0.2s ease-out, transform 0.2s ease-out;
}

.ailaav-v2 .e-con.e-parent .ailaav-gradient-btn .elementor-button:hover,
.elementor-location-header .e-con .ailaav-gradient-btn .elementor-button:hover,
.ailaav-gradient-btn .elementor-button:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  color: var(--ailaav-white) !important;
}

/* Inverted gradient CTA on brand gradient bands (orange -> pink) */
.ailaav-v2 .e-con.e-parent .ailaav-gradient-btn-invert .elementor-button,
.ailaav-v2 .ailaav-gradient-bg .ailaav-gradient-btn .elementor-button,
.ailaav-gradient-btn-invert .elementor-button {
  background-image: linear-gradient(to right, var(--ailaav-orange), var(--ailaav-pink)) !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: var(--ailaav-radius-pill) !important;
  color: var(--ailaav-white) !important;
  box-shadow: 0 6px 20px rgba(37, 23, 33, 0.22);
}

.ailaav-v2 .e-con.e-parent .ailaav-gradient-btn-invert .elementor-button:hover,
.ailaav-v2 .ailaav-gradient-bg .ailaav-gradient-btn .elementor-button:hover,
.ailaav-gradient-btn-invert .elementor-button:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
  color: var(--ailaav-white) !important;
}

/* Popular badge / other gradient surfaces inside lazy sections */
.ailaav-v2 .e-con.e-parent .ailaav-gradient-bg,
.ailaav-v2 .e-con.e-parent.ailaav-gradient-bg {
  background-image: linear-gradient(to right, var(--ailaav-pink), var(--ailaav-orange)) !important;
}

.ailaav-pill,
.ailaav-pill .elementor-button {
  border-radius: var(--ailaav-radius-pill) !important;
}

.ailaav-card {
  background: var(--ailaav-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--ailaav-radius-lg);
  box-shadow: var(--ailaav-glass-shadow);
  height: 100%;
}

.ailaav-soft-surface {
  background-color: var(--ailaav-soft-gray) !important;
}

.ailaav-headline,
.ailaav-headline .elementor-heading-title {
  font-family: var(--ailaav-font-headline) !important;
}

.ailaav-body,
.ailaav-body .elementor-widget-container {
  font-family: var(--ailaav-font-body) !important;
}

/* Sticky Stitch nav (Theme Builder header + in-page fallback) */
.ailaav-v2 .ailaav-nav,
.ailaav-v2 .elementor-location-header .ailaav-nav-bar,
.page-id-22507 .ailaav-nav,
.page-id-22507 .elementor-location-header .ailaav-nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ailaav-nav-link a,
.ailaav-nav-link .elementor-icon-list-text,
.ailaav-nav-link .elementor-button-text {
  font-family: var(--ailaav-font-body) !important;
  font-weight: 500 !important;
  color: var(--ailaav-muted) !important;
  transition: color 0.2s ease;
}

.ailaav-nav-link a:hover,
.ailaav-nav-link .elementor-icon-list-text:hover {
  color: var(--ailaav-pink) !important;
}

.ailaav-nav-brand .elementor-heading-title,
.ailaav-nav-brand a {
  font-family: var(--ailaav-font-headline) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em;
  color: var(--ailaav-ink) !important;
  text-decoration: none;
}

.ailaav-nav-brand .elementor-button-content-wrapper {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35em;
}

.ailaav-nav-brand .elementor-button-text {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
}

/* Pink heart next to AILAAV wordmark (header + footer) */
.ailaav-nav-brand .elementor-button-text::after,
.ailaav-footer-bar .elementor-widget-heading .elementor-heading-title::after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  flex: 0 0 auto;
  margin-left: 0.4em;
  background-color: var(--ailaav-pink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(0.02em);
  vertical-align: -0.05em;
}

.ailaav-footer-bar .elementor-widget-heading .elementor-heading-title {
  display: inline-flex;
  align-items: center;
}

/* Team section - light Stitch rhythm */
.ailaav-v2 .ailaav-team-photo img,
.page-id-22507 .ailaav-team-photo img {
  width: 280px !important;
  height: 280px !important;
  max-width: 100%;
  object-fit: cover !important;
  border-radius: 32px !important;
  box-shadow: 0 8px 32px rgba(37, 23, 33, 0.08);
}

@media (max-width: 767px) {
  .ailaav-v2 .ailaav-team-photo img,
  .page-id-22507 .ailaav-team-photo img {
    width: 200px !important;
    height: 200px !important;
  }
}

/* Header row: brand | nav | actions - never wrap/overlap */
.ailaav-v2 .elementor-location-header .ailaav-nav-bar.e-con,
.ailaav-v2 .elementor-location-header .ailaav-nav-bar > .e-con-inner,
.page-id-22507 .elementor-location-header .ailaav-nav-bar.e-con,
.page-id-22507 .elementor-location-header .ailaav-nav-bar > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
}

.ailaav-v2 .ailaav-nav-brand,
.page-id-22507 .ailaav-nav-brand {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  position: relative;
  z-index: 2;
}

.ailaav-v2 .ailaav-nav-desktop,
.page-id-22507 .ailaav-nav-desktop {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden;
}

.ailaav-v2 .ailaav-nav-desktop .elementor-widget-container,
.page-id-22507 .ailaav-nav-desktop .elementor-widget-container {
  display: flex !important;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.ailaav-v2 .ailaav-nav-desktop .elementor-icon-list-items,
.page-id-22507 .ailaav-nav-desktop .elementor-icon-list-items {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center;
  gap: 20px !important;
  column-gap: 20px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  max-width: 100%;
}

.ailaav-v2 .ailaav-nav-desktop .elementor-icon-list-item,
.page-id-22507 .ailaav-nav-desktop .elementor-icon-list-item {
  white-space: nowrap !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ailaav-v2 .ailaav-nav-desktop .elementor-icon-list-item::marker,
.page-id-22507 .ailaav-nav-desktop .elementor-icon-list-item::marker {
  content: none;
  font-size: 0;
}

.ailaav-v2 .ailaav-nav-desktop .elementor-icon-list-item a,
.page-id-22507 .ailaav-nav-desktop .elementor-icon-list-item a {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 0 !important;
}

.ailaav-v2 .ailaav-nav-actions,
.page-id-22507 .ailaav-nav-actions {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.ailaav-v2 .ailaav-nav-actions.e-con,
.ailaav-v2 .ailaav-nav-actions > .e-con-inner,
.page-id-22507 .ailaav-nav-actions.e-con,
.page-id-22507 .ailaav-nav-actions > .e-con-inner {
  width: auto !important;
  max-width: none !important;
  flex-grow: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.ailaav-nav-toggle .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px !important;
  min-height: 44px !important;
  min-width: 44px !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  color: var(--ailaav-ink) !important;
  gap: 0 !important;
}

.ailaav-nav-toggle .elementor-button-content-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  gap: 0 !important;
}

.ailaav-nav-toggle .elementor-button-text {
  /* Keep accessible label, hide visually when tight */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CSS burger lines - clearer than small FA glyph; morphs to X when open */
.ailaav-nav-toggle .elementor-button-icon {
  position: relative !important;
  display: block !important;
  width: 18px !important;
  height: 12px !important;
  margin: 0 !important;
  background: linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat;
  transition: background 0.2s ease;
}

.ailaav-nav-toggle .elementor-button-icon i {
  display: none !important;
}

.ailaav-nav-toggle .elementor-button-icon::before,
.ailaav-nav-toggle .elementor-button-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.ailaav-nav-toggle .elementor-button-icon::before {
  top: 0;
}

.ailaav-nav-toggle .elementor-button-icon::after {
  top: 10px;
}

.ailaav-nav-open .ailaav-nav-toggle .elementor-button-icon {
  background: none;
}

.ailaav-nav-open .ailaav-nav-toggle .elementor-button-icon::before {
  top: 5px;
  transform: rotate(45deg);
}

.ailaav-nav-open .ailaav-nav-toggle .elementor-button-icon::after {
  top: 5px;
  transform: rotate(-45deg);
}

.ailaav-nav-actions {
  flex-shrink: 0;
}

/* Polylang language switcher (Connect Polylang for Elementor widget) */
.ailaav-v2 .ailaav-lang-switcher .cpel-switcher__list,
.page-id-22507 .ailaav-lang-switcher .cpel-switcher__list {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ailaav-v2 .ailaav-lang-switcher .cpel-switcher__lang,
.page-id-22507 .ailaav-lang-switcher .cpel-switcher__lang {
  margin: 0;
}

.ailaav-v2 .ailaav-lang-switcher .cpel-switcher__lang a,
.page-id-22507 .ailaav-lang-switcher .cpel-switcher__lang a {
  font-family: var(--ailaav-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ailaav-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ailaav-v2 .ailaav-lang-switcher .cpel-switcher__lang--active a,
.ailaav-v2 .ailaav-lang-switcher .cpel-switcher__lang a:hover,
.page-id-22507 .ailaav-lang-switcher .cpel-switcher__lang--active a,
.page-id-22507 .ailaav-lang-switcher .cpel-switcher__lang a:hover {
  color: var(--ailaav-ink);
}

/* Mobile drawer: closed by default, open via body.ailaav-nav-open */
.ailaav-v2 .ailaav-mobile-panel,
.page-id-22507 .ailaav-mobile-panel {
  display: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff !important;
}

.ailaav-v2.ailaav-nav-open .ailaav-mobile-panel,
.page-id-22507.ailaav-nav-open .ailaav-mobile-panel {
  display: block !important;
}

.ailaav-v2 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-items,
.page-id-22507 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.ailaav-v2 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-item,
.page-id-22507 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-item {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ailaav-v2 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-item a,
.page-id-22507 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-item a {
  display: flex !important;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px !important;
  color: var(--ailaav-ink) !important;
  text-decoration: none;
}

.ailaav-v2 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-icon,
.page-id-22507 .ailaav-mobile-panel .ailaav-nav-mobile-list .elementor-icon-list-icon {
  display: none !important;
}

@media (min-width: 1025px) {
  .ailaav-v2 .ailaav-nav-toggle,
  .ailaav-v2 .ailaav-mobile-panel,
  .page-id-22507 .ailaav-nav-toggle,
  .page-id-22507 .ailaav-mobile-panel {
    display: none !important;
  }

  .ailaav-v2.ailaav-nav-open .ailaav-mobile-panel,
  .page-id-22507.ailaav-nav-open .ailaav-mobile-panel {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  /* Hero already has the primary CTA - keep header to brand + lang + menu */
  .ailaav-v2 .ailaav-nav-book,
  .page-id-22507 .ailaav-nav-book {
    display: none !important;
  }

  .ailaav-v2 .elementor-location-header .ailaav-nav-bar.e-con,
  .ailaav-v2 .elementor-location-header .ailaav-nav-bar > .e-con-inner,
  .page-id-22507 .elementor-location-header .ailaav-nav-bar.e-con,
  .page-id-22507 .elementor-location-header .ailaav-nav-bar > .e-con-inner {
    gap: 12px !important;
  }

  .ailaav-v2 .ailaav-nav-actions.e-con,
  .ailaav-v2 .ailaav-nav-actions > .e-con-inner,
  .page-id-22507 .ailaav-nav-actions.e-con,
  .page-id-22507 .ailaav-nav-actions > .e-con-inner {
    gap: 8px !important;
  }

  /* Compact language labels: Eesti/English → EE/EN */
  .ailaav-v2 .ailaav-lang-switcher .cpel-switcher__name,
  .page-id-22507 .ailaav-lang-switcher .cpel-switcher__name {
    font-size: 0 !important;
    letter-spacing: 0 !important;
  }

  .ailaav-v2 .ailaav-lang-switcher .cpel-switcher__name::after,
  .page-id-22507 .ailaav-lang-switcher .cpel-switcher__name::after {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .ailaav-v2 .ailaav-lang-switcher a[hreflang="et"] .cpel-switcher__name::after,
  .page-id-22507 .ailaav-lang-switcher a[hreflang="et"] .cpel-switcher__name::after {
    content: "EE";
  }

  .ailaav-v2 .ailaav-lang-switcher a[hreflang^="en"] .cpel-switcher__name::after,
  .page-id-22507 .ailaav-lang-switcher a[hreflang^="en"] .cpel-switcher__name::after {
    content: "EN";
  }

  .ailaav-v2 .ailaav-lang-switcher .cpel-switcher__list,
  .page-id-22507 .ailaav-lang-switcher .cpel-switcher__list {
    gap: 6px;
  }

  .ailaav-v2 .ailaav-nav-brand .elementor-button-text,
  .page-id-22507 .ailaav-nav-brand .elementor-button-text {
    font-size: 20px !important;
  }
}

/* Content pages (legal etc.) */
.ailaav-v2 .ailaav-content-page a {
  color: var(--ailaav-pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ailaav-v2 .ailaav-content-page .elementor-widget-text-editor p {
  margin: 0 0 1.1em;
  line-height: 1.7;
}

.ailaav-v2 .ailaav-content-page .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

/* Hide legacy sierra title bar if it still leaks through */
.ailaav-v2 .page-header {
  display: none !important;
}

.ailaav-popular-badge .elementor-heading-title,
.ailaav-popular-badge {
  display: inline-block;
}

/* Home v2 polish scoped to Stitch chrome pages */
.ailaav-v2,
.ailaav-v2 .elementor-location-header,
.ailaav-v2 .elementor-location-footer,
.ailaav-v2,
.page-id-22507 .elementor-location-header,
.page-id-22507 .elementor-location-footer {
  font-family: var(--ailaav-font-body);
  color: var(--ailaav-ink);
}

.ailaav-v2 .elementor-heading-title {
  font-family: var(--ailaav-font-headline);
  letter-spacing: -0.02em;
}

.ailaav-v2 .elementor-widget-text-editor ul {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  --listStyleType: none;
  --listIndent: 0px;
}

.ailaav-v2 .elementor-widget-text-editor li {
  margin: 0.55em 0;
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.ailaav-v2 .elementor-widget-text-editor li::marker {
  content: "" !important;
  font-size: 0 !important;
}

.ailaav-v2 .elementor-accordion .elementor-accordion-item {
  margin-bottom: 12px;
  border: none !important;
  border-radius: 1rem !important;
  overflow: hidden;
  background: var(--ailaav-soft-gray) !important;
}

.ailaav-v2 .elementor-accordion .elementor-tab-title {
  padding: 20px 24px !important;
  background: var(--ailaav-soft-gray) !important;
  font-family: var(--ailaav-font-headline) !important;
  font-size: 20px !important;
}

.ailaav-v2 .elementor-accordion .elementor-tab-content {
  padding: 0 24px 20px !important;
  background: var(--ailaav-soft-gray) !important;
  color: var(--ailaav-muted);
}

.ailaav-v2 .elementor-element.ailaav-avatar {
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  --width: 48px !important;
  --flex-grow: 0 !important;
  --flex-shrink: 0 !important;
}

.ailaav-v2 .ailaav-avatar .elementor-widget-container,
.ailaav-v2 .ailaav-avatar img {
  width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  border-radius: 9999px !important;
  object-fit: cover !important;
}

.ailaav-v2 .ailaav-art img {
  width: 100% !important;
  height: auto !important;
  border-radius: 1rem;
  object-fit: cover;
  display: block;
}

/* Case study screenshots */
.ailaav-v2 .ailaav-case-shot img,
.ailaav-case-shot img {
  width: 100% !important;
  height: auto !important;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--ailaav-glass-shadow);
  display: block;
}

.ailaav-v2 .ailaav-case-shot .widget-image-caption,
.ailaav-case-shot .widget-image-caption {
  margin-top: 0.5rem;
  color: var(--ailaav-muted);
  font-size: 0.9rem;
  font-family: var(--ailaav-font-body);
}

/* Case study: facts strip + scroll cue (not a faux footer) */
.ailaav-v2 #case-facts,
#case-facts,
.ailaav-v2 .ailaav-case-facts,
.ailaav-case-facts {
  border-top: 1px solid rgba(37, 23, 33, 0.08) !important;
  margin-top: 8px !important;
}

.ailaav-v2 #case-facts h3.elementor-heading-title,
#case-facts h3.elementor-heading-title,
.ailaav-v2 .ailaav-case-fact h3.elementor-heading-title,
.ailaav-case-fact h3.elementor-heading-title {
  margin: 0 !important;
  letter-spacing: 0.06em;
}

.ailaav-v2 #case-facts .elementor-widget-text-editor p,
#case-facts .elementor-widget-text-editor p,
.ailaav-v2 .ailaav-case-fact .elementor-widget-text-editor p,
.ailaav-case-fact .elementor-widget-text-editor p {
  margin: 0 !important;
}

.ailaav-v2 .ailaav-case-scroll-cue,
.ailaav-case-scroll-cue {
  margin: 4px 0 0 !important;
}

.ailaav-v2 .ailaav-case-scroll-cue a,
.ailaav-case-scroll-cue a {
  color: var(--ailaav-ink) !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 23, 33, 0.25);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ailaav-v2 .ailaav-case-scroll-cue a:hover,
.ailaav-case-scroll-cue a:hover {
  color: var(--ailaav-pink) !important;
  border-bottom-color: var(--ailaav-pink);
}

.ailaav-v2 #case-story,
#case-story,
.ailaav-case-story {
  scroll-margin-top: 96px;
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.7) 0%, #ffffff 140px) !important;
}

.ailaav-v2 #case-hero,
#case-hero {
  padding-bottom: 12px !important;
}

@keyframes ailaav-case-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.ailaav-v2 .ailaav-case-scroll-cue a::after,
.ailaav-case-scroll-cue a::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.35em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  animation: ailaav-case-nudge 1.6s ease-in-out infinite;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .ailaav-v2 .ailaav-case-scroll-cue a::after,
  .ailaav-case-scroll-cue a::after {
    animation: none;
  }
}

/* Department cards: equal height, shared rhythm, image pinned to bottom */
.ailaav-v2 #department .ailaav-dept-card {
  height: 100% !important;
  min-height: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 40px !important;
  box-sizing: border-box;
}

.ailaav-v2 #department .ailaav-dept-card > .e-con-inner,
.ailaav-v2 #department .ailaav-dept-card.e-con {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.ailaav-v2 #department .ailaav-dept-card > .e-con-inner > .elementor-widget-image,
.ailaav-v2 #department .ailaav-dept-card > .elementor-widget-image,
.ailaav-v2 #department .ailaav-dept-card .ailaav-art {
  margin-top: auto !important;
  width: 100% !important;
}

.ailaav-v2 #department .ailaav-dept-card .ailaav-art img {
  aspect-ratio: 16 / 10 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 1rem !important;
  display: block;
}

/* Icon circles: glyph visible on soft tint (not stacked fill) */
.ailaav-v2 #department .ailaav-icon-circle .elementor-icon,
.ailaav-v2 #department .ailaav-icon-circle-orange .elementor-icon {
  background-color: transparent !important;
}

.ailaav-v2 #department .ailaav-icon-circle .elementor-icon-wrapper {
  width: 64px !important;
  height: 64px !important;
  border-radius: 9999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 167, 243, 0.2) !important;
}

.ailaav-v2 #department .ailaav-icon-circle-orange .elementor-icon-wrapper {
  width: 64px !important;
  height: 64px !important;
  border-radius: 9999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #fff7ed !important;
}

/* Center narrowed intro copy (Elementor align_self often does not emit CSS) */
.ailaav-v2 #services > .e-con-inner > .elementor-widget-text-editor,
.ailaav-v2 #services > .e-con-inner > .elementor-widget-heading,
.ailaav-v2 #services > .e-con-inner > .e-con,
.ailaav-v2 #team > .e-con-inner > .elementor-widget-text-editor,
.ailaav-v2 #team > .e-con-inner > .elementor-widget-heading {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Two-column myth / content rows: top-align text with media */
.ailaav-v2 #launch-myth.e-con,
.ailaav-v2 #launch-myth > .e-con-inner,
.ailaav-v2 #launch-myth .e-con {
  align-items: flex-start !important;
}

@media (max-width: 1280px) {
  .ailaav-v2 .ailaav-nav-desktop .elementor-icon-list-items,
  .page-id-22507 .ailaav-nav-desktop .elementor-icon-list-items {
    gap: 14px !important;
    column-gap: 14px !important;
  }

  .ailaav-v2 .ailaav-nav-desktop .elementor-icon-list-item a,
  .page-id-22507 .ailaav-nav-desktop .elementor-icon-list-item a {
    font-size: 14px !important;
  }

  .ailaav-v2 .elementor-location-header .ailaav-nav-bar.e-con,
  .ailaav-v2 .elementor-location-header .ailaav-nav-bar > .e-con-inner,
  .page-id-22507 .elementor-location-header .ailaav-nav-bar.e-con,
  .page-id-22507 .elementor-location-header .ailaav-nav-bar > .e-con-inner {
    gap: 12px !important;
  }
}

.ailaav-v2 .ailaav-icon-circle .elementor-icon-wrapper,
.ailaav-v2 .ailaav-icon-circle-orange .elementor-icon-wrapper {
  width: 64px !important;
  height: 64px !important;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ailaav-v2 .ailaav-icon-circle .elementor-icon,
.ailaav-v2 .ailaav-icon-circle-orange .elementor-icon {
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ailaav-v2 .ailaav-icon-circle .elementor-icon-wrapper {
  background: rgba(255, 167, 243, 0.2) !important;
}

.ailaav-v2 .ailaav-icon-circle-orange .elementor-icon-wrapper {
  background: #fff7ed !important;
}

.ailaav-section {
  padding-top: var(--ailaav-stack-xxl);
  padding-bottom: var(--ailaav-stack-xxl);
}

.ailaav-footer-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--ailaav-white);
}

/* Care plans / Partnerluspaketid: equal card height + aligned CTA */
.ailaav-v2 #care-plans .e-con.e-child > .e-con-inner {
  align-items: stretch !important;
}

.ailaav-v2 #care-plans .ailaav-card,
.ailaav-v2 #care-plans .ailaav-plan-card {
  height: 100% !important;
  min-height: 100%;
  display: flex !important;
  flex-direction: column !important;
}

.ailaav-v2 #care-plans .ailaav-card.e-con,
.ailaav-v2 #care-plans .ailaav-card > .e-con-inner,
.ailaav-v2 #care-plans .ailaav-plan-card.e-con,
.ailaav-v2 #care-plans .ailaav-plan-card > .e-con-inner {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/*
 * Reserve Popular badge row so titles line up.
 * Do not use ::before spacers - Elementor sets container ::before to position:absolute.
 * Extra space = badge height (37px) + card flex gap (16px) on top of existing 40px pad.
 */
.ailaav-v2 #care-plans .ailaav-card:not(:has(.ailaav-gradient-bg)) {
  padding-top: calc(40px + 37px + 16px) !important;
}

.ailaav-v2 #care-plans .ailaav-plan-badge-slot {
  min-height: 37px !important;
}

/* Price line: keep € amounts and "Kokkuleppel" the same block height */
.ailaav-v2 #care-plans .ailaav-card:not(:has(.ailaav-gradient-bg)) > .elementor-widget-text-editor:nth-child(3),
.ailaav-v2 #care-plans .ailaav-card:has(.ailaav-gradient-bg) > .elementor-widget-text-editor:nth-child(4),
.ailaav-v2 #care-plans .ailaav-plan-price,
.ailaav-v2 #care-plans .ailaav-plan-price .elementor-widget-container {
  min-height: 70px;
  display: flex;
  align-items: flex-end;
}

.ailaav-v2 #care-plans .ailaav-card .elementor-widget-button,
.ailaav-v2 #care-plans .ailaav-plan-cta {
  margin-top: auto !important;
}

.ailaav-footer-bar.e-con,
.ailaav-footer-bar > .e-con-inner {
  align-items: center !important;
}

.ailaav-footer-bar > .e-con-inner > .e-con:first-child {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none;
}

.ailaav-footer-bar .ailaav-footer-links {
  min-width: 0;
  flex: 1 1 auto !important;
  align-self: center !important;
  justify-content: flex-end !important;
  gap: 8px 20px !important;
}

.ailaav-footer-bar .ailaav-footer-partner {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 12px;
}

.ailaav-footer-bar .ailaav-footer-partner .elementor-widget-image a {
  display: block;
  line-height: 0;
}

.ailaav-footer-bar .ailaav-footer-partner .elementor-widget-image img {
  display: block;
  max-width: 148px;
  width: 100%;
  height: auto;
  /* Soft lift without a frame - no border/padding card around the badge */
  filter: drop-shadow(0 4px 10px rgba(37, 23, 33, 0.12));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.ailaav-footer-bar .ailaav-footer-partner .elementor-widget-image a:hover img,
.ailaav-footer-bar .ailaav-footer-partner .elementor-widget-image a:focus img {
  filter: drop-shadow(0 8px 16px rgba(37, 23, 33, 0.16));
  transform: translateY(-1px);
}

.ailaav-footer-bar .ailaav-footer-link {
  width: auto !important;
  flex: 0 0 auto !important;
}

.ailaav-footer-bar .ailaav-footer-link .elementor-button {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  color: var(--ailaav-muted, #56404F) !important;
  font-family: var(--ailaav-font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ailaav-footer-bar .ailaav-footer-link .elementor-button:hover,
.ailaav-footer-bar .ailaav-footer-link .elementor-button:focus {
  color: var(--ailaav-pink, #FD35E2) !important;
  background: transparent !important;
}

@media (max-width: 1024px) {
  .ailaav-footer-bar.e-con,
  .ailaav-footer-bar > .e-con-inner {
    align-items: center !important;
  }

  .ailaav-footer-bar .ailaav-footer-links {
    justify-content: center !important;
    align-self: center !important;
  }

  .ailaav-footer-bar .ailaav-footer-partner {
    margin-left: 0;
    align-items: center !important;
  }

  .ailaav-footer-bar .ailaav-footer-partner .elementor-widget-image a {
    margin-inline: auto;
    width: fit-content;
  }
}

@media (max-width: 767px) {
  .ailaav-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* -------------------------------------------------------------------------
 * Stitch blog archive + single posts
 * ------------------------------------------------------------------------- */

.ailaav-v2.blog #content,
.ailaav-v2.single-post #content,
.ailaav-v2.archive #content {
  background: var(--ailaav-surface);
  font-family: var(--ailaav-font-body);
  color: var(--ailaav-ink);
}

.ailaav-v2.blog .site-main,
.ailaav-v2.archive .site-main {
  max-width: var(--ailaav-container-max);
  margin: 0 auto;
  padding: 36px var(--ailaav-gutter) 72px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 32px !important;
  row-gap: 0 !important;
  flex-direction: unset !important;
}

.ailaav-v2.blog .site-main > .page-header,
.ailaav-v2.archive .site-main > .page-header,
.ailaav-v2.blog .site-main > .navigation,
.ailaav-v2.archive .site-main > .navigation,
.ailaav-v2.blog .site-main > nav,
.ailaav-v2.archive .site-main > nav {
  grid-column: 1 / -1;
}

.ailaav-v2.single-post .site-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px var(--ailaav-gutter) 72px;
}

.ailaav-v2.blog .page-header,
.ailaav-v2.archive .page-header {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.ailaav-v2.blog .page-title,
.ailaav-v2.archive .page-title,
.ailaav-v2.single-post .entry-title,
.ailaav-v2.single-post .post-title,
.ailaav-v2.blog .post-title,
.ailaav-v2.archive .post-title {
  font-family: var(--ailaav-font-headline) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--ailaav-ink) !important;
}

.ailaav-v2.blog .page-title,
.ailaav-v2.archive .page-title {
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
  margin: 0 0 4px !important;
}

/* Compact rows inside a 2-column desktop grid */
.ailaav-v2.blog .posts-wrapper,
.ailaav-v2.archive .posts-wrapper,
.ailaav-v2.blog .blog-layout,
.ailaav-v2.archive .blog-layout,
.ailaav-v2.blog .blog-layout-horizontal .site-main,
.ailaav-v2.archive .blog-layout-horizontal .site-main {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 32px !important;
  row-gap: 0 !important;
  flex-direction: unset !important;
}

.ailaav-v2.blog .keydesign-card,
.ailaav-v2.archive .keydesign-card,
.ailaav-v2.blog.blog-layout-horizontal .keydesign-card,
.ailaav-v2 .blog-layout-horizontal .keydesign-card {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 14px 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  height: auto !important;
  flex-direction: unset !important;
  transition: background-color 0.15s ease;
}

.ailaav-v2.blog .keydesign-card:hover,
.ailaav-v2.archive .keydesign-card:hover {
  transform: none;
  box-shadow: none !important;
  border-color: transparent !important;
  background: rgba(253, 53, 226, 0.03) !important;
}

.ailaav-v2.blog .keydesign-card .entry-image,
.ailaav-v2.archive .keydesign-card .entry-image,
.ailaav-v2.blog .keydesign-card .entry-thumbnail,
.ailaav-v2.archive .keydesign-card .entry-thumbnail,
.ailaav-v2.blog .keydesign-card .post-thumbnail,
.ailaav-v2.archive .keydesign-card .post-thumbnail,
.ailaav-v2 .blog-layout-horizontal .keydesign-card .entry-image {
  margin: 0 !important;
  width: 112px !important;
  max-width: 112px !important;
  height: 72px !important;
  flex: 0 0 112px !important;
  aspect-ratio: 112 / 72 !important;
  overflow: hidden;
  background: var(--ailaav-soft-gray);
  border-radius: 10px !important;
  flex-shrink: 0 !important;
  padding-bottom: 0 !important;
}

.ailaav-v2.blog .keydesign-card .entry-image a,
.ailaav-v2.archive .keydesign-card .entry-image a,
.ailaav-v2.blog .keydesign-card .entry-thumbnail a,
.ailaav-v2.archive .keydesign-card .entry-thumbnail a,
.ailaav-v2.blog .keydesign-card .post-thumbnail a,
.ailaav-v2.archive .keydesign-card .post-thumbnail a {
  display: block;
  height: 100%;
}

.ailaav-v2.blog .keydesign-card .entry-image img,
.ailaav-v2.archive .keydesign-card .entry-image img,
.ailaav-v2.blog .keydesign-card .entry-thumbnail img,
.ailaav-v2.archive .keydesign-card .entry-thumbnail img,
.ailaav-v2.blog .keydesign-card .post-thumbnail img,
.ailaav-v2.archive .keydesign-card .post-thumbnail img,
.ailaav-v2.blog .keydesign-card img.wp-post-image,
.ailaav-v2.archive .keydesign-card img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-height: 72px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 0 !important;
}

.ailaav-v2.blog .keydesign-card .entry-wrapper,
.ailaav-v2.archive .keydesign-card .entry-wrapper,
.ailaav-v2 .blog-layout-horizontal .keydesign-card .entry-wrapper {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ailaav-v2.blog .keydesign-card .post-title,
.ailaav-v2.archive .keydesign-card .post-title,
.ailaav-v2 .blog-layout-horizontal .keydesign-card .post-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  color: var(--ailaav-ink) !important;
}

.ailaav-v2.blog .keydesign-card .post-title a,
.ailaav-v2.archive .keydesign-card .post-title a {
  display: inline !important;
  color: var(--ailaav-ink) !important;
  -webkit-text-fill-color: var(--ailaav-ink) !important;
  text-decoration: none !important;
}

.ailaav-v2.blog .keydesign-card:not(:has(.entry-image)):not(:has(.entry-thumbnail)):not(:has(.post-thumbnail)),
.ailaav-v2.archive .keydesign-card:not(:has(.entry-image)):not(:has(.entry-thumbnail)):not(:has(.post-thumbnail)) {
  grid-template-columns: minmax(0, 1fr) !important;
}

.ailaav-v2.blog .blog-label a,
.ailaav-v2.archive .blog-label a,
.ailaav-v2.single-post .blog-label a {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--ailaav-radius-pill);
  background: rgba(253, 53, 226, 0.1);
  color: var(--ailaav-pink) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
}

.ailaav-v2.blog .category-meta,
.ailaav-v2.archive .category-meta {
  margin: 0 !important;
  line-height: 1.2;
}

.ailaav-v2.blog .post-title,
.ailaav-v2.archive .post-title {
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

.ailaav-v2.blog .post-title a,
.ailaav-v2.archive .post-title a {
  color: var(--ailaav-ink) !important;
  text-decoration: none !important;
}

.ailaav-v2.blog .post-title a:hover,
.ailaav-v2.archive .post-title a:hover {
  color: var(--ailaav-pink) !important;
  background: none;
  -webkit-text-fill-color: unset;
}

.ailaav-v2.blog .entry-meta,
.ailaav-v2.archive .entry-meta,
.ailaav-v2.single-post .entry-meta {
  color: var(--ailaav-muted) !important;
  font-size: 12px !important;
  gap: 8px;
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ailaav-v2.blog .entry-meta .author,
.ailaav-v2.archive .entry-meta .author,
.ailaav-v2.single-post .entry-meta .author {
  display: inline-flex !important;
  align-items: center;
}

.ailaav-v2 .ailaav-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ailaav-v2 .ailaav-author-avatar,
.ailaav-v2 .ailaav-author-chip img.avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: block;
  flex-shrink: 0;
}

.ailaav-v2.blog .entry-meta .author a,
.ailaav-v2.archive .entry-meta .author a,
.ailaav-v2.single-post .entry-meta .author a {
  color: var(--ailaav-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* Hide long excerpts on listing */
.ailaav-v2.blog .entry-content-card,
.ailaav-v2.archive .entry-content-card {
  display: none !important;
}

.ailaav-v2.blog .navigation.pagination,
.ailaav-v2.archive .navigation.pagination {
  margin-top: 28px;
}

.ailaav-v2.blog .navigation.pagination .page-numbers,
.ailaav-v2.archive .navigation.pagination .page-numbers {
  border-radius: var(--ailaav-radius-pill) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-family: var(--ailaav-font-body) !important;
}

.ailaav-v2.blog .navigation.pagination .page-numbers.current,
.ailaav-v2.archive .navigation.pagination .page-numbers.current {
  background-image: var(--ailaav-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Single post */
.ailaav-v2.single-post .article-single,
.ailaav-v2.single-post article.article-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--ailaav-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--ailaav-radius-lg);
  box-shadow: var(--ailaav-glass-shadow);
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Reorder: share sits directly under the article body, not floating far left. */
.ailaav-v2.single-post .category-meta {
  order: 1;
}

.ailaav-v2.single-post .single-post-title,
.ailaav-v2.single-post .entry-title,
.ailaav-v2.single-post .post-title {
  order: 2;
}

.ailaav-v2.single-post .entry-meta {
  order: 3;
}

.ailaav-v2.single-post .entry-image,
.ailaav-v2.single-post .post-thumbnail,
.ailaav-v2.single-post .entry-thumbnail {
  order: 4;
}

.ailaav-v2.single-post .entry-content,
.ailaav-v2.single-post .post-content {
  order: 5;
}

.ailaav-v2.single-post .post-share {
  order: 6;
  display: flex !important;
  position: static !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ailaav-v2.single-post .post-share .post-share-inner {
  position: static !important;
  top: auto !important;
  width: 100%;
}

.ailaav-v2.single-post .post-share .social-sharing-list {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ailaav-v2.single-post .post-share .social-sharing-list div a {
  margin-bottom: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  background: var(--ailaav-soft-gray) !important;
}

.ailaav-v2.single-post .post-share .social-sharing-list div a:hover {
  background-image: var(--ailaav-gradient) !important;
}

.ailaav-v2.single-post .post-share .social-sharing-list div a:hover path {
  fill: #fff !important;
}

.ailaav-v2.single-post .author-box-wrapper {
  order: 7;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 24px 0 0;
  padding: 20px;
  border-radius: var(--ailaav-radius);
  background: var(--ailaav-soft-gray);
}

.ailaav-v2.single-post .author-box-wrapper .author-avatar img,
.ailaav-v2.single-post .author-box-wrapper .author-avatar .avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display: block;
}

/* No second small avatar inside the author name. */
.ailaav-v2.single-post .author-box-wrapper .ailaav-author-chip img,
.ailaav-v2.single-post .author-box-wrapper .ailaav-author-avatar,
.ailaav-v2.single-post .entry-meta .ailaav-author-chip img,
.ailaav-v2.single-post .entry-meta .ailaav-author-avatar {
  display: none !important;
}

.ailaav-v2.single-post .navigation.post-navigation {
  order: 8;
}

.ailaav-v2.single-post .entry-image,
.ailaav-v2.single-post .post-thumbnail,
.ailaav-v2.single-post .entry-thumbnail {
  margin: 8px 0 24px !important;
  border-radius: var(--ailaav-radius) !important;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ailaav-soft-gray);
}

.ailaav-v2.single-post .entry-image img,
.ailaav-v2.single-post .post-thumbnail img,
.ailaav-v2.single-post .entry-thumbnail img,
.ailaav-v2.single-post img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.ailaav-v2.single-post .post-title,
.ailaav-v2.single-post .entry-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  margin: 12px 0 16px !important;
}

.ailaav-v2.single-post .entry-content,
.ailaav-v2.single-post .post-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ailaav-ink);
}

.ailaav-v2.single-post .entry-content h2,
.ailaav-v2.single-post .post-content h2 {
  font-family: var(--ailaav-font-headline) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin-top: 2em;
}

.ailaav-v2.single-post .entry-content h3,
.ailaav-v2.single-post .post-content h3 {
  font-family: var(--ailaav-font-headline) !important;
  font-weight: 700 !important;
}

.ailaav-v2.single-post .entry-content blockquote,
.ailaav-v2.single-post .post-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border: 0;
  border-radius: var(--ailaav-radius);
  background: var(--ailaav-soft-gray);
  color: var(--ailaav-ink);
  font-size: 1.02em;
}

.ailaav-v2.single-post .entry-content table,
.ailaav-v2.single-post .post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  overflow: hidden;
  border-radius: var(--ailaav-radius);
}

.ailaav-v2.single-post .entry-content th,
.ailaav-v2.single-post .post-content th {
  background: var(--ailaav-soft-gray);
  font-family: var(--ailaav-font-headline);
}

.ailaav-v2.single-post .entry-content a,
.ailaav-v2.single-post .post-content a {
  color: var(--ailaav-pink);
}

@media (max-width: 767px) {
  .ailaav-v2.blog .site-main,
  .ailaav-v2.single-post .site-main,
  .ailaav-v2.archive .site-main {
    padding: 24px 16px 56px;
  }

  .ailaav-v2.blog .site-main,
  .ailaav-v2.archive .site-main,
  .ailaav-v2.blog .posts-wrapper,
  .ailaav-v2.archive .posts-wrapper,
  .ailaav-v2.blog .blog-layout,
  .ailaav-v2.archive .blog-layout,
  .ailaav-v2.blog .blog-layout-horizontal .site-main,
  .ailaav-v2.archive .blog-layout-horizontal .site-main {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    column-gap: 0 !important;
  }

  .ailaav-v2.blog .keydesign-card,
  .ailaav-v2.archive .keydesign-card,
  .ailaav-v2 .blog-layout-horizontal .keydesign-card {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    flex-direction: unset !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 0 !important;
    height: auto !important;
  }

  .ailaav-v2.blog .keydesign-card .entry-image,
  .ailaav-v2.archive .keydesign-card .entry-image,
  .ailaav-v2 .blog-layout-horizontal .keydesign-card .entry-image {
    width: 88px !important;
    max-width: 88px !important;
    height: 60px !important;
    flex: 0 0 88px !important;
    aspect-ratio: 88 / 60 !important;
  }

  .ailaav-v2.blog .keydesign-card .entry-image img,
  .ailaav-v2.archive .keydesign-card .entry-image img,
  .ailaav-v2.blog .keydesign-card img.wp-post-image,
  .ailaav-v2.archive .keydesign-card img.wp-post-image {
    max-height: 60px !important;
  }

  .ailaav-v2.blog .keydesign-card .entry-wrapper,
  .ailaav-v2.archive .keydesign-card .entry-wrapper,
  .ailaav-v2 .blog-layout-horizontal .keydesign-card .entry-wrapper {
    padding: 0 !important;
    display: flex !important;
    min-width: 0 !important;
  }

  .ailaav-v2.blog .post-title,
  .ailaav-v2.archive .post-title,
  .ailaav-v2.blog .keydesign-card .post-title,
  .ailaav-v2.archive .keydesign-card .post-title {
    display: block !important;
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    color: var(--ailaav-ink) !important;
  }

  .ailaav-v2.blog .keydesign-card .post-title a,
  .ailaav-v2.archive .keydesign-card .post-title a {
    color: var(--ailaav-ink) !important;
    -webkit-text-fill-color: var(--ailaav-ink) !important;
  }

  .ailaav-v2.single-post .article-single,
  .ailaav-v2.single-post article.article-content {
    padding: 18px 16px 28px;
  }

  .ailaav-v2.single-post .entry-image,
  .ailaav-v2.single-post .post-thumbnail,
  .ailaav-v2.single-post .entry-thumbnail {
    margin: 8px 0 20px !important;
  }
}

.ailaav-related-reading {
  box-sizing: border-box;
  width: min(100%, 1120px);
  margin: 48px auto 24px;
  padding: 24px 28px;
  border-radius: var(--ailaav-radius-lg, 16px);
  background: var(--ailaav-soft-gray);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ailaav-related-reading h2 {
  font-family: var(--ailaav-font-headline) !important;
  font-size: 1.15rem !important;
  margin: 0 0 12px !important;
  color: var(--ailaav-ink) !important;
}

.ailaav-related-reading ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
}

.ailaav-related-reading a {
  color: var(--ailaav-ink);
  font-weight: 600;
  text-decoration: none;
}

.ailaav-related-reading a:hover {
  color: var(--ailaav-pink);
}

.ailaav-seo-midtail {
  box-sizing: border-box;
  width: min(100%, 1120px);
  margin: 40px auto 8px;
  padding: 8px 28px 0;
  color: var(--ailaav-ink);
}

.ailaav-seo-midtail h2 {
  font-family: var(--ailaav-font-headline) !important;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem) !important;
  line-height: 1.25 !important;
  margin: 28px 0 12px !important;
  color: var(--ailaav-ink) !important;
}

.ailaav-seo-midtail p,
.ailaav-seo-midtail li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ailaav-muted, #56404F);
}

.ailaav-seo-midtail ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
}

.ailaav-seo-midtail a {
  color: var(--ailaav-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ailaav-seo-midtail a:hover {
  color: var(--ailaav-pink);
}

/* Keep short-answer callout readable on service pages */
.ailaav-v2 .elementor-widget-text-editor blockquote {
  margin: 0;
  padding: 20px 24px;
  border-left: 3px solid var(--ailaav-pink);
  background: var(--ailaav-soft-gray);
  border-radius: 0 var(--ailaav-radius, 12px) var(--ailaav-radius, 12px) 0;
  color: var(--ailaav-ink);
}

/* Service hero: keep media inset from viewport edges */
.ailaav-v2 .hero-section.e-con {
  --padding-left: 48px !important;
  --padding-right: 48px !important;
}

.ailaav-v2 .hero-section .elementor-widget-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .ailaav-v2 .hero-section.e-con {
    --padding-left: 20px !important;
    --padding-right: 20px !important;
  }

  /* AI hero phone graphic: Elementor used large negative right margin */
  .ailaav-v2.elementor-page-1181 .elementor-element-70536a2,
  .ailaav-v2.elementor-page-22592 .elementor-element-70536a2 {
    margin-right: 0 !important;
    max-width: 100%;
  }

  .ailaav-v2.elementor-page-1181 .elementor-element-70536a2 img,
  .ailaav-v2.elementor-page-22592 .elementor-element-70536a2 img {
    max-width: 100%;
    height: auto;
  }

  .ailaav-v2.elementor-page-1181 .hero-section,
  .ailaav-v2.elementor-page-22592 .hero-section {
    overflow-x: clip;
  }
}

.ailaav-v2 .elementor-location-header + #content,
.ailaav-v2 .elementor-location-header ~ #content {
  border-top: 0;
}

.ailaav-v2.blog #secondary,
.ailaav-v2.archive #secondary,
.ailaav-v2.single-post #secondary,
.ailaav-v2.blog .keydesign-sidebar,
.ailaav-v2.archive .keydesign-sidebar,
.ailaav-v2.single-post .keydesign-sidebar,
.ailaav-v2.blog .sidebar,
.ailaav-v2.archive .sidebar,
.ailaav-v2.single-post .sidebar {
  display: none !important;
}

.ailaav-v2.blog #primary,
.ailaav-v2.archive #primary,
.ailaav-v2.single-post #primary,
.ailaav-v2.blog .content-area,
.ailaav-v2.archive .content-area,
.ailaav-v2.single-post .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.ailaav-v2.blog .comment-count,
.ailaav-v2.archive .comment-count {
  display: none !important;
}

/* Kontakt / Ninja Forms */
.ailaav-v2 #contact-main .nf-form-content input[type="text"],
.ailaav-v2 #contact-main .nf-form-content input[type="email"],
.ailaav-v2 #contact-main .nf-form-content textarea {
  border: 1px solid rgba(37, 23, 33, 0.12) !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1rem !important;
  font-family: var(--ailaav-font-body) !important;
}

.ailaav-v2 #contact-main .nf-form-content .submit-container input[type="submit"],
.ailaav-v2 #contact-main .nf-form-content input[type="button"] {
  background-image: linear-gradient(to right, var(--ailaav-pink), var(--ailaav-orange)) !important;
  border: 0 !important;
  border-radius: 9999px !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.9rem 1.6rem !important;
}
