/* Aanaab v4 Mega Menu Panel Styles (shared across Platform, Solutions, Resources Content Blocks) */
.aanb4-mm-panel,
.aanb4-mm-panel * {
  box-sizing: border-box;
}

.aanb4-mm-panel {
  direction: rtl;
  color: var(--theme-palette-color-4, #180d27);
  font-family: inherit;
  text-align: start;
}

.aanb4-mm-label {
  font-size: 15px;
  font-weight: 700;
  color: #766b80;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--theme-palette-color-5, #e5e0ea);
  margin: 0;
  line-height: 1.5;
}

/* Platform panel */
.aanb4-mm-platform {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: stretch;
}

.aanb4-mm-main {
  min-width: 0;
}

.aanb4-mm-rows {
  display: flex;
  flex-direction: column;
}

.aanb4-mm-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px 0;
  margin: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--theme-palette-color-5, #e5e0ea);
  text-align: start;
  color: var(--theme-palette-color-4, #180d27);
  line-height: 1.55;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s ease;
}

.aanb4-mm-row:last-child,
.aanb4-mm-row-last {
  border-bottom: 0;
}

.aanb4-mm-row:hover,
.aanb4-mm-row:focus-visible {
  color: var(--theme-palette-color-1, #471895);
  background: none;
}

.aanb4-mm-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #e6e1ec;
  border-radius: 6px;
  background: #f6f4f9;
  color: var(--theme-palette-color-1, #471895);
}

.aanb4-mm-svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aanb4-mm-copy {
  flex: 1;
  min-width: 0;
}

.aanb4-mm-copy strong,
.aanb4-mm-row > strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: inherit;
  line-height: 1.45;
}

.aanb4-mm-copy > span {
  display: block;
  margin-top: 6px;
  color: #766b80;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.aanb4-mm-arrow {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-inline-start: auto;
  color: #8b7c98;
  transition: color 0.18s ease, transform 0.18s ease;
}

.aanb4-mm-row:hover .aanb4-mm-arrow,
.aanb4-mm-resource-card:hover .aanb4-mm-arrow {
  color: var(--theme-palette-color-1, #471895);
}

/* Platform feature card */
.aanb4-mm-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #e5dcf0;
  border-radius: 7px;
  background: #f5f0fb;
  padding: 24px;
  color: var(--theme-palette-color-4, #180d27);
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.aanb4-mm-feature > strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--theme-palette-color-4, #180d27);
  line-height: 1.4;
}

.aanb4-mm-feature > p {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: #6c5d7d;
}

.aanb4-mm-feature .aanb4-mm-icon {
  background: var(--theme-palette-color-8, #ffffff);
}

.aanb4-mm-feature-arrow {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--theme-palette-color-1, #471895);
  margin-top: auto;
  align-self: flex-end;
}

.aanb4-mm-feature-arrow .aanb4-mm-arrow {
  width: 18px;
  height: 18px;
  color: var(--theme-palette-color-8, #ffffff);
  margin: 0;
}

.aanb4-mm-feature:hover,
.aanb4-mm-feature:focus-visible {
  background: #eee5fa;
  color: var(--theme-palette-color-4, #180d27);
}

/* Solutions panel */
.aanb4-mm-solutions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.aanb4-mm-column {
  min-width: 0;
  padding-inline: 7px 36px;
}

.aanb4-mm-column + .aanb4-mm-column,
.aanb4-mm-col-second {
  border-inline-start: 1px solid var(--theme-palette-color-5, #e5e0ea);
  padding-inline: 36px 7px;
}

.aanb4-mm-row.compact {
  min-height: 82px;
}

.aanb4-mm-row.compact > strong {
  flex: 1;
  font-size: 20px;
}

/* Resources panel */
.aanb4-mm-resources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.aanb4-mm-resource-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 22px;
  min-height: 155px;
  padding: 22px;
  margin: 0;
  border: 1px solid var(--theme-palette-color-5, #e5e0ea);
  border-radius: 6px;
  text-align: start;
  background: var(--theme-palette-color-8, #ffffff);
  color: var(--theme-palette-color-4, #180d27);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.aanb4-mm-resource-card .aanb4-mm-icon {
  grid-column: 1;
  grid-row: 1;
}

.aanb4-mm-resource-card > .aanb4-mm-arrow {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.aanb4-mm-resource-card > strong {
  grid-column: 1 / -1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: inherit;
}

.aanb4-mm-resource-card:hover,
.aanb4-mm-resource-card:focus-visible {
  background: #f7f3fc;
  border-color: #c8b4e8;
  color: var(--theme-palette-color-4, #180d27);
}

/* Tablet & mobile offcanvas accordion layout (Blocksy <= 999.98px) */
@media (max-width: 999.98px) {
  .aanb4-mm-platform {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .aanb4-mm-label {
    padding-bottom: 12px;
  }

  .aanb4-mm-row {
    gap: 13px;
    padding-block: 17px;
  }

  .aanb4-mm-copy strong {
    font-size: 18px;
  }

  .aanb4-mm-copy > span {
    font-size: 14px;
    line-height: 1.8;
  }

  .aanb4-mm-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .aanb4-mm-svg {
    width: 22px;
    height: 22px;
  }

  .aanb4-mm-feature {
    padding: 20px;
    gap: 12px;
  }

  .aanb4-mm-feature > strong {
    font-size: 21px;
  }

  .aanb4-mm-feature > p {
    font-size: 16px;
  }

  .aanb4-mm-feature > .aanb4-mm-icon {
    display: none;
  }

  .aanb4-mm-feature-arrow {
    width: 30px;
    height: 30px;
  }

  .aanb4-mm-solutions {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .aanb4-mm-column,
  .aanb4-mm-column + .aanb4-mm-column,
  .aanb4-mm-col-second {
    padding: 0;
    border: 0;
  }

  .aanb4-mm-row.compact {
    min-height: 70px;
  }

  .aanb4-mm-row.compact > strong {
    font-size: 18px;
  }

  .aanb4-mm-resources {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .aanb4-mm-resource-card {
    min-height: 140px;
    padding: 18px;
    gap: 18px;
  }

  .aanb4-mm-resource-card > strong {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .aanb4-mm-copy > span {
    font-size: 14px;
  }

  .aanb4-mm-resources {
    gap: 10px;
  }

  .aanb4-mm-resource-card {
    padding: 14px;
    min-height: 135px;
  }

  .aanb4-mm-resource-card > strong {
    font-size: 17px;
  }

  .aanb4-mm-row.compact > strong {
    font-size: 17px;
  }
}
